Unverified Commit 3712ea63 authored by Emmanuel Garcia's avatar Emmanuel Garcia Committed by GitHub

Flip the default for proguard (#40282)

parent 07dad466
......@@ -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);
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment