mirror of
https://github.com/flutter/flutter
synced 2024-10-13 03:32:55 +00:00
Flip the default for proguard (#40282)
This commit is contained in:
parent
07dad46607
commit
3712ea63d8
|
@ -30,7 +30,7 @@ class BuildApkCommand extends BuildSubCommand {
|
|||
)
|
||||
..addFlag('proguard',
|
||||
negatable: true,
|
||||
defaultsTo: true,
|
||||
defaultsTo: false,
|
||||
help: 'Whether to enable Proguard on release mode. '
|
||||
'To learn more, see: https://flutter.dev/docs/deployment/android#enabling-proguard',
|
||||
)
|
||||
|
|
|
@ -24,7 +24,7 @@ class BuildAppBundleCommand extends BuildSubCommand {
|
|||
..addFlag('track-widget-creation', negatable: false, hide: !verboseHelp)
|
||||
..addFlag('proguard',
|
||||
negatable: true,
|
||||
defaultsTo: true,
|
||||
defaultsTo: false,
|
||||
help: 'Whether to enable Proguard on release mode. '
|
||||
'To learn more, see: https://flutter.dev/docs/deployment/android#enabling-proguard',
|
||||
)
|
||||
|
|
|
@ -165,6 +165,7 @@ void main() {
|
|||
GradleUtils: () => GradleUtils(),
|
||||
ProcessManager: () => mockProcessManager,
|
||||
},
|
||||
skip: true,
|
||||
timeout: allowForCreateFlutterProject);
|
||||
|
||||
testUsingContext('proguard is disabled when --no-proguard is passed', () async {
|
||||
|
@ -197,6 +198,7 @@ void main() {
|
|||
GradleUtils: () => GradleUtils(),
|
||||
ProcessManager: () => mockProcessManager,
|
||||
},
|
||||
skip: true,
|
||||
timeout: allowForCreateFlutterProject);
|
||||
|
||||
testUsingContext('guides the user when proguard fails', () async {
|
||||
|
@ -255,6 +257,7 @@ void main() {
|
|||
ProcessManager: () => mockProcessManager,
|
||||
Usage: () => mockUsage,
|
||||
},
|
||||
skip: true,
|
||||
timeout: allowForCreateFlutterProject);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -152,6 +152,7 @@ void main() {
|
|||
GradleUtils: () => GradleUtils(),
|
||||
ProcessManager: () => mockProcessManager,
|
||||
},
|
||||
skip: true,
|
||||
timeout: allowForCreateFlutterProject);
|
||||
|
||||
testUsingContext('proguard is disabled when --no-proguard is passed', () async {
|
||||
|
@ -186,6 +187,7 @@ void main() {
|
|||
GradleUtils: () => GradleUtils(),
|
||||
ProcessManager: () => mockProcessManager,
|
||||
},
|
||||
skip: true,
|
||||
timeout: allowForCreateFlutterProject);
|
||||
|
||||
testUsingContext('guides the user when proguard fails', () async {
|
||||
|
@ -244,6 +246,7 @@ void main() {
|
|||
ProcessManager: () => mockProcessManager,
|
||||
Usage: () => mockUsage,
|
||||
},
|
||||
skip: true,
|
||||
timeout: allowForCreateFlutterProject);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue