Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
b083bc14
Unverified
Commit
b083bc14
authored
Apr 02, 2021
by
Jenn Magder
Committed by
GitHub
Apr 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate android_sdk and application_package to null safety (#79611)
parent
75453e6a
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
77 deletions
+80
-77
android_sdk.dart
packages/flutter_tools/lib/src/android/android_sdk.dart
+75
-68
application_package.dart
packages/flutter_tools/lib/src/application_package.dart
+5
-9
No files found.
packages/flutter_tools/lib/src/android/android_sdk.dart
View file @
b083bc14
This diff is collapsed.
Click to expand it.
packages/flutter_tools/lib/src/application_package.dart
View file @
b083bc14
...
...
@@ -2,16 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import
'package:meta/meta.dart'
;
import
'base/context.dart'
;
import
'base/file_system.dart'
;
import
'build_info.dart'
;
abstract
class
ApplicationPackageFactory
{
static
ApplicationPackageFactory
get
instance
=>
context
.
get
<
ApplicationPackageFactory
>();
static
ApplicationPackageFactory
?
get
instance
=>
context
.
get
<
ApplicationPackageFactory
>();
/// Create an [ApplicationPackage] for the given platform.
Future
<
ApplicationPackage
>
getPackageForPlatform
(
...
...
@@ -22,17 +18,17 @@ abstract class ApplicationPackageFactory {
}
abstract
class
ApplicationPackage
{
ApplicationPackage
({
@
required
this
.
id
})
ApplicationPackage
({
required
this
.
id
})
:
assert
(
id
!=
null
);
/// Package ID from the Android Manifest or equivalent.
final
String
id
;
String
get
name
;
String
?
get
name
;
String
get
displayName
=>
name
;
String
?
get
displayName
=>
name
;
File
get
packagesFile
=>
null
;
File
?
get
packagesFile
=>
null
;
@override
String
toString
()
=>
displayName
??
id
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment