-
Notifications
You must be signed in to change notification settings - Fork 6k
Remove asserts and add BuildConfig #8821
Conversation
|
Meant to open this as a draft - oh well. I will be rebasing this against #8820 once it lands. |
|
This is ready for review. |
mklim
left a comment
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.
LGTM. Someone with more familiarity with the build scripts should also verify the .GN changes though.
shell/platform/android/io/flutter/plugin/common/StandardMessageCodec.java
Outdated
Show resolved
Hide resolved
shell/platform/android/BUILD.gn
Outdated
| ] | ||
|
|
||
| build_config = [] | ||
| assert(build_config == [] || true) |
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 dont think you meant to leave this in here.
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.
You are correct.
|
@mehmetf this is going to need something for the google3 build. Maybe we can talk tomorrow about how to make sure this works |
flutter/engine@39a950e...4808446 git log 39a950e..4808446 --no-merges --oneline 4808446 Remove asserts and add BuildConfig (flutter/engine#8821) c97bd45 Download the Fuchsia SDK and toolchain in a gclient hook. (flutter/engine#8794) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md If the roll is causing failures, please contact the current sheriff (amirha@google.com), and stop the roller if necessary.
This shouldn't be landed until #8820 (it contains the same changes).
This removes any
assertfrom Java code and guards an AssertionError instead withBuildConfig.DEBUG.Also adds logic to GN to generate the BuildConfig class.
Fixes flutter/flutter#31928
Addresses part of flutter/flutter#28848