-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Remove default for stripped option in engine/src/flutter/tools/gn
, don't strip by default on android
#161546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove default for stripped option in engine/src/flutter/tools/gn
, don't strip by default on android
#161546
Conversation
engine/src/flutter/tools/gn
, don't strip by default on android
processManager.addCommand( | ||
const FakeCommand( | ||
command: <String>[ | ||
'gradlew', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a lot of flags here that probably came from the flutter tool. Later when the tool is changed and we need to update this test it will be harder to figure out why.
link where you came up with these flags and their values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pulled out to a constant which will make updating easy. For where they came from, I just copied them from the existing tests. I can go find where all the flags come from if you think it is worthwhile
packages/flutter_tools/test/general.shard/android/android_gradle_builder_test.dart
Outdated
Show resolved
Hide resolved
packages/flutter_tools/test/general.shard/android/android_gradle_builder_test.dart
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can share a lot of the logic between tests, so it's probably worth taking another look and refactoring them.
packages/flutter_tools/test/general.shard/android/android_gradle_builder_test.dart
Outdated
Show resolved
Hide resolved
packages/flutter_tools/test/general.shard/android/android_gradle_builder_test.dart
Show resolved
Hide resolved
packages/flutter_tools/test/general.shard/android/android_gradle_builder_test.dart
Show resolved
Hide resolved
packages/flutter_tools/test/general.shard/android/android_gradle_builder_test.dart
Outdated
Show resolved
Hide resolved
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
…ls/gn`, don't strip by default on android (flutter/flutter#161546)
Remake of flutter/engine#52852.
Makes it so that
stripped
defaults to false for android ingn
arguments, i.e. we don't strip the Android engine builds. AGP does this by default when the NDK is installed (and we download it automatically now after #159756).In testing, the step that AGP does to strip symbols adds ~1-2 seconds to the build.
Adds a tool verification for release app bundle builds that checks to make sure we have stripped the debug symbols and placed them in the
BUNDLE-METADATA
directory. The check is done by invokingapkanalyzer
, which takes ~0.5
seconds, which is why the check is only enabled for release builds.BEFORE LANDING: I need to follow up on flutter/engine#50443 (comment), to ensure we start stripping symbols internally as well.
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.