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
16c73829
Unverified
Commit
16c73829
authored
Apr 16, 2021
by
Jenn Magder
Committed by
GitHub
Apr 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate reporting library to null safety (#80320)
parent
2bc7939a
Changes
19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
183 additions
and
170 deletions
+183
-170
gradle_utils.dart
packages/flutter_tools/lib/src/android/gradle_utils.dart
+1
-1
build_linux.dart
packages/flutter_tools/lib/src/commands/build_linux.dart
+1
-1
build_macos.dart
packages/flutter_tools/lib/src/commands/build_macos.dart
+1
-1
build_windows.dart
packages/flutter_tools/lib/src/commands/build_windows.dart
+1
-1
config.dart
packages/flutter_tools/lib/src/commands/config.dart
+1
-1
web_driver_service.dart
packages/flutter_tools/lib/src/drive/web_driver_service.dart
+1
-1
globals.dart
packages/flutter_tools/lib/src/globals.dart
+0
-2
globals_null_migrated.dart
packages/flutter_tools/lib/src/globals_null_migrated.dart
+2
-0
devices.dart
packages/flutter_tools/lib/src/ios/devices.dart
+1
-1
disabled_usage.dart
packages/flutter_tools/lib/src/reporting/disabled_usage.dart
+7
-9
events.dart
packages/flutter_tools/lib/src/reporting/events.dart
+44
-45
reporting.dart
packages/flutter_tools/lib/src/reporting/reporting.dart
+1
-3
usage.dart
packages/flutter_tools/lib/src/reporting/usage.dart
+117
-97
run_hot.dart
packages/flutter_tools/lib/src/run_hot.dart
+1
-1
packages_test.dart
...er_tools/test/commands.shard/permeable/packages_test.dart
+1
-1
analytics_test.dart
...ages/flutter_tools/test/general.shard/analytics_test.dart
+1
-1
events_test.dart
...utter_tools/test/general.shard/reporting/events_test.dart
+0
-2
resident_web_runner_cold_test.dart
...ols/test/general.shard/resident_web_runner_cold_test.dart
+1
-1
resident_web_runner_test.dart
...er_tools/test/general.shard/resident_web_runner_test.dart
+1
-1
No files found.
packages/flutter_tools/lib/src/android/gradle_utils.dart
View file @
16c73829
...
@@ -16,7 +16,7 @@ import '../base/utils.dart';
...
@@ -16,7 +16,7 @@ import '../base/utils.dart';
import
'../base/version.dart'
;
import
'../base/version.dart'
;
import
'../build_info.dart'
;
import
'../build_info.dart'
;
import
'../cache.dart'
;
import
'../cache.dart'
;
import
'../globals.dart'
as
globals
;
import
'../globals
_null_migrated
.dart'
as
globals
;
import
'../project.dart'
;
import
'../project.dart'
;
import
'../reporting/reporting.dart'
;
import
'../reporting/reporting.dart'
;
...
...
packages/flutter_tools/lib/src/commands/build_linux.dart
View file @
16c73829
...
@@ -12,7 +12,7 @@ import '../base/os.dart';
...
@@ -12,7 +12,7 @@ import '../base/os.dart';
import
'../build_info.dart'
;
import
'../build_info.dart'
;
import
'../cache.dart'
;
import
'../cache.dart'
;
import
'../features.dart'
;
import
'../features.dart'
;
import
'../globals.dart'
as
globals
;
import
'../globals
_null_migrated
.dart'
as
globals
;
import
'../linux/build_linux.dart'
;
import
'../linux/build_linux.dart'
;
import
'../project.dart'
;
import
'../project.dart'
;
import
'../runner/flutter_command.dart'
show
FlutterCommandResult
;
import
'../runner/flutter_command.dart'
show
FlutterCommandResult
;
...
...
packages/flutter_tools/lib/src/commands/build_macos.dart
View file @
16c73829
...
@@ -11,7 +11,7 @@ import '../base/common.dart';
...
@@ -11,7 +11,7 @@ import '../base/common.dart';
import
'../build_info.dart'
;
import
'../build_info.dart'
;
import
'../cache.dart'
;
import
'../cache.dart'
;
import
'../features.dart'
;
import
'../features.dart'
;
import
'../globals.dart'
as
globals
;
import
'../globals
_null_migrated
.dart'
as
globals
;
import
'../macos/build_macos.dart'
;
import
'../macos/build_macos.dart'
;
import
'../project.dart'
;
import
'../project.dart'
;
import
'../runner/flutter_command.dart'
show
FlutterCommandResult
;
import
'../runner/flutter_command.dart'
show
FlutterCommandResult
;
...
...
packages/flutter_tools/lib/src/commands/build_windows.dart
View file @
16c73829
...
@@ -11,7 +11,7 @@ import '../base/common.dart';
...
@@ -11,7 +11,7 @@ import '../base/common.dart';
import
'../build_info.dart'
;
import
'../build_info.dart'
;
import
'../cache.dart'
;
import
'../cache.dart'
;
import
'../features.dart'
;
import
'../features.dart'
;
import
'../globals.dart'
as
globals
;
import
'../globals
_null_migrated
.dart'
as
globals
;
import
'../project.dart'
;
import
'../project.dart'
;
import
'../runner/flutter_command.dart'
show
FlutterCommandResult
;
import
'../runner/flutter_command.dart'
show
FlutterCommandResult
;
import
'../windows/build_windows.dart'
;
import
'../windows/build_windows.dart'
;
...
...
packages/flutter_tools/lib/src/commands/config.dart
View file @
16c73829
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
import
'../base/common.dart'
;
import
'../base/common.dart'
;
import
'../convert.dart'
;
import
'../convert.dart'
;
import
'../features.dart'
;
import
'../features.dart'
;
import
'../globals.dart'
as
globals
;
import
'../globals
_null_migrated
.dart'
as
globals
;
import
'../reporting/reporting.dart'
;
import
'../reporting/reporting.dart'
;
import
'../runner/flutter_command.dart'
;
import
'../runner/flutter_command.dart'
;
...
...
packages/flutter_tools/lib/src/drive/web_driver_service.dart
View file @
16c73829
...
@@ -17,7 +17,7 @@ import '../base/process.dart';
...
@@ -17,7 +17,7 @@ import '../base/process.dart';
import
'../build_info.dart'
;
import
'../build_info.dart'
;
import
'../convert.dart'
;
import
'../convert.dart'
;
import
'../device.dart'
;
import
'../device.dart'
;
import
'../globals.dart'
as
globals
;
import
'../globals
_null_migrated
.dart'
as
globals
;
import
'../project.dart'
;
import
'../project.dart'
;
import
'../resident_runner.dart'
;
import
'../resident_runner.dart'
;
import
'../web/web_runner.dart'
;
import
'../web/web_runner.dart'
;
...
...
packages/flutter_tools/lib/src/globals.dart
View file @
16c73829
...
@@ -21,7 +21,6 @@ import 'macos/xcdevice.dart';
...
@@ -21,7 +21,6 @@ import 'macos/xcdevice.dart';
import
'macos/xcode.dart'
;
import
'macos/xcode.dart'
;
import
'project.dart'
;
import
'project.dart'
;
import
'reporting/crash_reporting.dart'
;
import
'reporting/crash_reporting.dart'
;
import
'reporting/reporting.dart'
;
import
'runner/local_engine.dart'
;
import
'runner/local_engine.dart'
;
export
'globals_null_migrated.dart'
;
export
'globals_null_migrated.dart'
;
...
@@ -30,7 +29,6 @@ Artifacts get artifacts => context.get<Artifacts>();
...
@@ -30,7 +29,6 @@ Artifacts get artifacts => context.get<Artifacts>();
BuildSystem
get
buildSystem
=>
context
.
get
<
BuildSystem
>();
BuildSystem
get
buildSystem
=>
context
.
get
<
BuildSystem
>();
CrashReporter
get
crashReporter
=>
context
.
get
<
CrashReporter
>();
CrashReporter
get
crashReporter
=>
context
.
get
<
CrashReporter
>();
Doctor
get
doctor
=>
context
.
get
<
Doctor
>();
Doctor
get
doctor
=>
context
.
get
<
Doctor
>();
Usage
get
flutterUsage
=>
context
.
get
<
Usage
>();
DeviceManager
get
deviceManager
=>
context
.
get
<
DeviceManager
>();
DeviceManager
get
deviceManager
=>
context
.
get
<
DeviceManager
>();
FlutterProjectFactory
get
projectFactory
{
FlutterProjectFactory
get
projectFactory
{
...
...
packages/flutter_tools/lib/src/globals_null_migrated.dart
View file @
16c73829
...
@@ -25,6 +25,7 @@ import 'base/user_messages.dart';
...
@@ -25,6 +25,7 @@ import 'base/user_messages.dart';
import
'cache.dart'
;
import
'cache.dart'
;
import
'ios/plist_parser.dart'
;
import
'ios/plist_parser.dart'
;
import
'persistent_tool_state.dart'
;
import
'persistent_tool_state.dart'
;
import
'reporting/reporting.dart'
;
import
'version.dart'
;
import
'version.dart'
;
Cache
get
cache
=>
context
.
get
<
Cache
>()!;
Cache
get
cache
=>
context
.
get
<
Cache
>()!;
...
@@ -36,6 +37,7 @@ Signals get signals => context.get<Signals>() ?? LocalSignals.instance;
...
@@ -36,6 +37,7 @@ Signals get signals => context.get<Signals>() ?? LocalSignals.instance;
AndroidStudio
?
get
androidStudio
=>
context
.
get
<
AndroidStudio
>();
AndroidStudio
?
get
androidStudio
=>
context
.
get
<
AndroidStudio
>();
AndroidSdk
?
get
androidSdk
=>
context
.
get
<
AndroidSdk
>();
AndroidSdk
?
get
androidSdk
=>
context
.
get
<
AndroidSdk
>();
FlutterVersion
get
flutterVersion
=>
context
.
get
<
FlutterVersion
>()!;
FlutterVersion
get
flutterVersion
=>
context
.
get
<
FlutterVersion
>()!;
Usage
get
flutterUsage
=>
context
.
get
<
Usage
>()!;
PersistentToolState
?
get
persistentToolState
=>
PersistentToolState
.
instance
;
PersistentToolState
?
get
persistentToolState
=>
PersistentToolState
.
instance
;
...
...
packages/flutter_tools/lib/src/ios/devices.dart
View file @
16c73829
...
@@ -21,7 +21,7 @@ import '../build_info.dart';
...
@@ -21,7 +21,7 @@ import '../build_info.dart';
import
'../convert.dart'
;
import
'../convert.dart'
;
import
'../device.dart'
;
import
'../device.dart'
;
import
'../device_port_forwarder.dart'
;
import
'../device_port_forwarder.dart'
;
import
'../globals.dart'
as
globals
;
import
'../globals
_null_migrated
.dart'
as
globals
;
import
'../macos/xcdevice.dart'
;
import
'../macos/xcdevice.dart'
;
import
'../project.dart'
;
import
'../project.dart'
;
import
'../protocol_discovery.dart'
;
import
'../protocol_discovery.dart'
;
...
...
packages/flutter_tools/lib/src/reporting/disabled_usage.dart
View file @
16c73829
...
@@ -2,8 +2,6 @@
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// @dart = 2.8
part of
reporting
;
part of
reporting
;
class
DisabledUsage
implements
Usage
{
class
DisabledUsage
implements
Usage
{
...
@@ -20,28 +18,28 @@ class DisabledUsage implements Usage {
...
@@ -20,28 +18,28 @@ class DisabledUsage implements Usage {
set
enabled
(
bool
value
)
{
}
set
enabled
(
bool
value
)
{
}
@override
@override
String
get
clientId
=>
null
;
String
get
clientId
=>
''
;
@override
@override
void
sendCommand
(
String
command
,
{
Map
<
String
,
String
>
parameters
})
{
}
void
sendCommand
(
String
command
,
{
Map
<
String
,
String
>
?
parameters
})
{
}
@override
@override
void
sendEvent
(
void
sendEvent
(
String
category
,
String
category
,
String
parameter
,
{
String
parameter
,
{
String
label
,
String
?
label
,
int
value
,
int
?
value
,
Map
<
String
,
String
>
parameters
,
Map
<
String
,
String
>
?
parameters
,
})
{
}
})
{
}
@override
@override
void
sendTiming
(
String
category
,
String
variableName
,
Duration
duration
,
{
String
label
})
{
}
void
sendTiming
(
String
category
,
String
variableName
,
Duration
duration
,
{
String
?
label
})
{
}
@override
@override
void
sendException
(
dynamic
exception
)
{
}
void
sendException
(
dynamic
exception
)
{
}
@override
@override
Stream
<
Map
<
String
,
dynamic
>>
get
onSend
=>
null
;
Stream
<
Map
<
String
,
dynamic
>>
get
onSend
=>
const
Stream
<
Map
<
String
,
dynamic
>>.
empty
()
;
@override
@override
Future
<
void
>
ensureAnalyticsSent
()
=>
Future
<
void
>.
value
();
Future
<
void
>
ensureAnalyticsSent
()
=>
Future
<
void
>.
value
();
...
...
packages/flutter_tools/lib/src/reporting/events.dart
View file @
16c73829
...
@@ -2,8 +2,6 @@
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// @dart = 2.8
part of
reporting
;
part of
reporting
;
/// A generic usage even that does not involve custom dimensions.
/// A generic usage even that does not involve custom dimensions.
...
@@ -14,13 +12,13 @@ class UsageEvent {
...
@@ -14,13 +12,13 @@ class UsageEvent {
UsageEvent
(
this
.
category
,
this
.
parameter
,
{
UsageEvent
(
this
.
category
,
this
.
parameter
,
{
this
.
label
,
this
.
label
,
this
.
value
,
this
.
value
,
@
required
this
.
flutterUsage
,
required
this
.
flutterUsage
,
});
});
final
String
category
;
final
String
category
;
final
String
parameter
;
final
String
parameter
;
final
String
label
;
final
String
?
label
;
final
int
value
;
final
int
?
value
;
final
Usage
flutterUsage
;
final
Usage
flutterUsage
;
void
send
()
{
void
send
()
{
...
@@ -37,11 +35,11 @@ class UsageEvent {
...
@@ -37,11 +35,11 @@ class UsageEvent {
/// sync/transfer "overhead" of updating this number of source files.
/// sync/transfer "overhead" of updating this number of source files.
class
HotEvent
extends
UsageEvent
{
class
HotEvent
extends
UsageEvent
{
HotEvent
(
String
parameter
,
{
HotEvent
(
String
parameter
,
{
@
required
this
.
targetPlatform
,
required
this
.
targetPlatform
,
@
required
this
.
sdkName
,
required
this
.
sdkName
,
@
required
this
.
emulator
,
required
this
.
emulator
,
@
required
this
.
fullRestart
,
required
this
.
fullRestart
,
@
required
this
.
fastReassemble
,
required
this
.
fastReassemble
,
this
.
reason
,
this
.
reason
,
this
.
finalLibraryCount
,
this
.
finalLibraryCount
,
this
.
syncedLibraryCount
,
this
.
syncedLibraryCount
,
...
@@ -53,20 +51,20 @@ class HotEvent extends UsageEvent {
...
@@ -53,20 +51,20 @@ class HotEvent extends UsageEvent {
this
.
overallTimeInMs
,
this
.
overallTimeInMs
,
})
:
super
(
'hot'
,
parameter
,
flutterUsage:
globals
.
flutterUsage
);
})
:
super
(
'hot'
,
parameter
,
flutterUsage:
globals
.
flutterUsage
);
final
String
reason
;
final
String
?
reason
;
final
String
targetPlatform
;
final
String
targetPlatform
;
final
String
sdkName
;
final
String
sdkName
;
final
bool
emulator
;
final
bool
emulator
;
final
bool
fullRestart
;
final
bool
fullRestart
;
final
bool
fastReassemble
;
final
bool
fastReassemble
;
final
int
finalLibraryCount
;
final
int
?
finalLibraryCount
;
final
int
syncedLibraryCount
;
final
int
?
syncedLibraryCount
;
final
int
syncedClassesCount
;
final
int
?
syncedClassesCount
;
final
int
syncedProceduresCount
;
final
int
?
syncedProceduresCount
;
final
int
syncedBytes
;
final
int
?
syncedBytes
;
final
int
invalidatedSourcesCount
;
final
int
?
invalidatedSourcesCount
;
final
int
transferTimeInMs
;
final
int
?
transferTimeInMs
;
final
int
overallTimeInMs
;
final
int
?
overallTimeInMs
;
@override
@override
void
send
()
{
void
send
()
{
...
@@ -76,7 +74,7 @@ class HotEvent extends UsageEvent {
...
@@ -76,7 +74,7 @@ class HotEvent extends UsageEvent {
CustomDimensions
.
hotEventEmulator
:
emulator
.
toString
(),
CustomDimensions
.
hotEventEmulator
:
emulator
.
toString
(),
CustomDimensions
.
hotEventFullRestart
:
fullRestart
.
toString
(),
CustomDimensions
.
hotEventFullRestart
:
fullRestart
.
toString
(),
if
(
reason
!=
null
)
if
(
reason
!=
null
)
CustomDimensions
.
hotEventReason
:
reason
,
CustomDimensions
.
hotEventReason
:
reason
!
,
if
(
finalLibraryCount
!=
null
)
if
(
finalLibraryCount
!=
null
)
CustomDimensions
.
hotEventFinalLibraryCount
:
finalLibraryCount
.
toString
(),
CustomDimensions
.
hotEventFinalLibraryCount
:
finalLibraryCount
.
toString
(),
if
(
syncedLibraryCount
!=
null
)
if
(
syncedLibraryCount
!=
null
)
...
@@ -103,9 +101,9 @@ class HotEvent extends UsageEvent {
...
@@ -103,9 +101,9 @@ class HotEvent extends UsageEvent {
/// An event that reports the result of a [DoctorValidator]
/// An event that reports the result of a [DoctorValidator]
class
DoctorResultEvent
extends
UsageEvent
{
class
DoctorResultEvent
extends
UsageEvent
{
DoctorResultEvent
({
DoctorResultEvent
({
@
required
this
.
validator
,
required
this
.
validator
,
@
required
this
.
result
,
required
this
.
result
,
Usage
flutterUsage
,
Usage
?
flutterUsage
,
})
:
super
(
})
:
super
(
'doctor-result'
,
'doctor-result'
,
'
${validator.runtimeType}
'
,
'
${validator.runtimeType}
'
,
...
@@ -139,20 +137,20 @@ class DoctorResultEvent extends UsageEvent {
...
@@ -139,20 +137,20 @@ class DoctorResultEvent extends UsageEvent {
/// An event that reports on the result of a pub invocation.
/// An event that reports on the result of a pub invocation.
class
PubResultEvent
extends
UsageEvent
{
class
PubResultEvent
extends
UsageEvent
{
PubResultEvent
({
PubResultEvent
({
@
required
String
context
,
required
String
context
,
@
required
String
result
,
required
String
result
,
@
required
Usage
usage
,
required
Usage
usage
,
})
:
super
(
'pub-result'
,
context
,
label:
result
,
flutterUsage:
usage
);
})
:
super
(
'pub-result'
,
context
,
label:
result
,
flutterUsage:
usage
);
}
}
/// An event that reports something about a build.
/// An event that reports something about a build.
class
BuildEvent
extends
UsageEvent
{
class
BuildEvent
extends
UsageEvent
{
BuildEvent
(
String
label
,
{
BuildEvent
(
String
label
,
{
String
command
,
String
?
command
,
String
settings
,
String
?
settings
,
String
eventError
,
String
?
eventError
,
@
required
Usage
flutterUsage
,
required
Usage
flutterUsage
,
@
required
String
type
,
required
String
type
,
})
:
_command
=
command
,
})
:
_command
=
command
,
_settings
=
settings
,
_settings
=
settings
,
_eventError
=
eventError
,
_eventError
=
eventError
,
...
@@ -165,19 +163,19 @@ class BuildEvent extends UsageEvent {
...
@@ -165,19 +163,19 @@ class BuildEvent extends UsageEvent {
flutterUsage:
flutterUsage
,
flutterUsage:
flutterUsage
,
);
);
final
String
_command
;
final
String
?
_command
;
final
String
_settings
;
final
String
?
_settings
;
final
String
_eventError
;
final
String
?
_eventError
;
@override
@override
void
send
()
{
void
send
()
{
final
Map
<
String
,
String
>
parameters
=
_useCdKeys
(<
CustomDimensions
,
String
>{
final
Map
<
String
,
String
>
parameters
=
_useCdKeys
(<
CustomDimensions
,
String
>{
if
(
_command
!=
null
)
if
(
_command
!=
null
)
CustomDimensions
.
buildEventCommand
:
_command
,
CustomDimensions
.
buildEventCommand
:
_command
!
,
if
(
_settings
!=
null
)
if
(
_settings
!=
null
)
CustomDimensions
.
buildEventSettings
:
_settings
,
CustomDimensions
.
buildEventSettings
:
_settings
!
,
if
(
_eventError
!=
null
)
if
(
_eventError
!=
null
)
CustomDimensions
.
buildEventError
:
_eventError
,
CustomDimensions
.
buildEventError
:
_eventError
!
,
});
});
flutterUsage
.
sendEvent
(
flutterUsage
.
sendEvent
(
category
,
category
,
...
@@ -226,7 +224,7 @@ class CommandResultEvent extends UsageEvent {
...
@@ -226,7 +224,7 @@ class CommandResultEvent extends UsageEvent {
class
AnalyticsConfigEvent
extends
UsageEvent
{
class
AnalyticsConfigEvent
extends
UsageEvent
{
AnalyticsConfigEvent
({
AnalyticsConfigEvent
({
/// Whether analytics reporting is being enabled (true) or disabled (false).
/// Whether analytics reporting is being enabled (true) or disabled (false).
@
required
bool
enabled
,
required
bool
enabled
,
})
:
super
(
})
:
super
(
'analytics'
,
'analytics'
,
'enabled'
,
'enabled'
,
...
@@ -238,11 +236,11 @@ class AnalyticsConfigEvent extends UsageEvent {
...
@@ -238,11 +236,11 @@ class AnalyticsConfigEvent extends UsageEvent {
/// An event that reports when the code size measurement is run via `--analyze-size`.
/// An event that reports when the code size measurement is run via `--analyze-size`.
class
CodeSizeEvent
extends
UsageEvent
{
class
CodeSizeEvent
extends
UsageEvent
{
CodeSizeEvent
(
String
platform
,
{
CodeSizeEvent
(
String
platform
,
{
@
required
Usage
flutterUsage
,
required
Usage
flutterUsage
,
})
:
super
(
})
:
super
(
'code-size-analysis'
,
'code-size-analysis'
,
platform
,
platform
,
flutterUsage:
flutterUsage
??
globals
.
flutterUsage
,
flutterUsage:
flutterUsage
);
);
}
}
...
@@ -279,14 +277,15 @@ class NullSafetyAnalysisEvent implements UsageEvent {
...
@@ -279,14 +277,15 @@ class NullSafetyAnalysisEvent implements UsageEvent {
return
;
return
;
}
}
int
migrated
=
0
;
int
migrated
=
0
;
LanguageVersion
languageVersion
;
LanguageVersion
?
languageVersion
;
for
(
final
Package
package
in
packageConfig
.
packages
)
{
for
(
final
Package
package
in
packageConfig
.
packages
)
{
final
LanguageVersion
?
packageLanguageVersion
=
package
.
languageVersion
;
if
(
package
.
name
==
currentPackage
)
{
if
(
package
.
name
==
currentPackage
)
{
languageVersion
=
package
.
l
anguageVersion
;
languageVersion
=
package
L
anguageVersion
;
}
}
if
(
package
.
l
anguageVersion
!=
null
&&
if
(
package
L
anguageVersion
!=
null
&&
package
.
l
anguageVersion
.
major
>=
nullSafeVersion
.
major
&&
package
L
anguageVersion
.
major
>=
nullSafeVersion
.
major
&&
package
.
l
anguageVersion
.
minor
>=
nullSafeVersion
.
minor
)
{
package
L
anguageVersion
.
minor
>=
nullSafeVersion
.
minor
)
{
migrated
+=
1
;
migrated
+=
1
;
}
}
}
}
...
...
packages/flutter_tools/lib/src/reporting/reporting.dart
View file @
16c73829
...
@@ -2,8 +2,6 @@
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// @dart = 2.8
library
reporting
;
library
reporting
;
import
'dart:async'
;
import
'dart:async'
;
...
@@ -20,7 +18,7 @@ import '../build_info.dart';
...
@@ -20,7 +18,7 @@ import '../build_info.dart';
import
'../dart/language_version.dart'
;
import
'../dart/language_version.dart'
;
import
'../doctor_validator.dart'
;
import
'../doctor_validator.dart'
;
import
'../features.dart'
;
import
'../features.dart'
;
import
'../globals.dart'
as
globals
;
import
'../globals
_null_migrated
.dart'
as
globals
;
import
'../version.dart'
;
import
'../version.dart'
;
import
'first_run.dart'
;
import
'first_run.dart'
;
...
...
packages/flutter_tools/lib/src/reporting/usage.dart
View file @
16c73829
This diff is collapsed.
Click to expand it.
packages/flutter_tools/lib/src/run_hot.dart
View file @
16c73829
...
@@ -25,7 +25,7 @@ import 'dart/package_map.dart';
...
@@ -25,7 +25,7 @@ import 'dart/package_map.dart';
import
'devfs.dart'
;
import
'devfs.dart'
;
import
'device.dart'
;
import
'device.dart'
;
import
'features.dart'
;
import
'features.dart'
;
import
'globals.dart'
as
globals
;
import
'globals
_null_migrated
.dart'
as
globals
;
import
'reporting/reporting.dart'
;
import
'reporting/reporting.dart'
;
import
'resident_devtools_handler.dart'
;
import
'resident_devtools_handler.dart'
;
import
'resident_runner.dart'
;
import
'resident_runner.dart'
;
...
...
packages/flutter_tools/test/commands.shard/permeable/packages_test.dart
View file @
16c73829
...
@@ -18,7 +18,7 @@ import 'package:flutter_tools/src/cache.dart';
...
@@ -18,7 +18,7 @@ import 'package:flutter_tools/src/cache.dart';
import
'package:flutter_tools/src/commands/packages.dart'
;
import
'package:flutter_tools/src/commands/packages.dart'
;
import
'package:flutter_tools/src/dart/pub.dart'
;
import
'package:flutter_tools/src/dart/pub.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:flutter_tools/src/globals.dart'
as
globals
;
import
'package:flutter_tools/src/globals
_null_migrated
.dart'
as
globals
;
import
'../../src/common.dart'
;
import
'../../src/common.dart'
;
import
'../../src/context.dart'
;
import
'../../src/context.dart'
;
...
...
packages/flutter_tools/test/general.shard/analytics_test.dart
View file @
16c73829
...
@@ -17,7 +17,7 @@ import 'package:flutter_tools/src/commands/config.dart';
...
@@ -17,7 +17,7 @@ import 'package:flutter_tools/src/commands/config.dart';
import
'package:flutter_tools/src/commands/doctor.dart'
;
import
'package:flutter_tools/src/commands/doctor.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/features.dart'
;
import
'package:flutter_tools/src/features.dart'
;
import
'package:flutter_tools/src/globals.dart'
as
globals
;
import
'package:flutter_tools/src/globals
_null_migrated
.dart'
as
globals
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:flutter_tools/src/runner/flutter_command.dart'
;
import
'package:flutter_tools/src/runner/flutter_command.dart'
;
import
'package:flutter_tools/src/version.dart'
;
import
'package:flutter_tools/src/version.dart'
;
...
...
packages/flutter_tools/test/general.shard/reporting/events_test.dart
View file @
16c73829
...
@@ -2,8 +2,6 @@
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// @dart = 2.8
import
'package:flutter_tools/src/build_info.dart'
;
import
'package:flutter_tools/src/build_info.dart'
;
import
'package:flutter_tools/src/doctor_validator.dart'
;
import
'package:flutter_tools/src/doctor_validator.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
...
...
packages/flutter_tools/test/general.shard/resident_web_runner_cold_test.dart
View file @
16c73829
...
@@ -15,7 +15,7 @@ import 'package:flutter_tools/src/isolated/devfs_web.dart';
...
@@ -15,7 +15,7 @@ import 'package:flutter_tools/src/isolated/devfs_web.dart';
import
'package:flutter_tools/src/isolated/resident_web_runner.dart'
;
import
'package:flutter_tools/src/isolated/resident_web_runner.dart'
;
import
'package:flutter_tools/src/build_system/build_system.dart'
;
import
'package:flutter_tools/src/build_system/build_system.dart'
;
import
'package:flutter_tools/src/device.dart'
;
import
'package:flutter_tools/src/device.dart'
;
import
'package:flutter_tools/src/globals.dart'
as
globals
;
import
'package:flutter_tools/src/globals
_null_migrated
.dart'
as
globals
;
import
'package:flutter_tools/src/project.dart'
;
import
'package:flutter_tools/src/project.dart'
;
import
'package:flutter_tools/src/resident_runner.dart'
;
import
'package:flutter_tools/src/resident_runner.dart'
;
import
'package:flutter_tools/src/web/chrome.dart'
;
import
'package:flutter_tools/src/web/chrome.dart'
;
...
...
packages/flutter_tools/test/general.shard/resident_web_runner_test.dart
View file @
16c73829
...
@@ -21,7 +21,7 @@ import 'package:flutter_tools/src/isolated/resident_web_runner.dart';
...
@@ -21,7 +21,7 @@ import 'package:flutter_tools/src/isolated/resident_web_runner.dart';
import
'package:flutter_tools/src/compile.dart'
;
import
'package:flutter_tools/src/compile.dart'
;
import
'package:flutter_tools/src/devfs.dart'
;
import
'package:flutter_tools/src/devfs.dart'
;
import
'package:flutter_tools/src/device.dart'
;
import
'package:flutter_tools/src/device.dart'
;
import
'package:flutter_tools/src/globals.dart'
as
globals
;
import
'package:flutter_tools/src/globals
_null_migrated
.dart'
as
globals
;
import
'package:flutter_tools/src/project.dart'
;
import
'package:flutter_tools/src/project.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:flutter_tools/src/resident_runner.dart'
;
import
'package:flutter_tools/src/resident_runner.dart'
;
...
...
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