Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@dnfield
Copy link
Contributor

@dnfield dnfield commented May 2, 2019

This shouldn't be landed until #8820 (it contains the same changes).

This removes any assert from Java code and guards an AssertionError instead with BuildConfig.DEBUG.

Also adds logic to GN to generate the BuildConfig class.

Fixes flutter/flutter#31928

Addresses part of flutter/flutter#28848

@dnfield
Copy link
Contributor Author

dnfield commented May 2, 2019

Meant to open this as a draft - oh well.

I will be rebasing this against #8820 once it lands.

@dnfield dnfield changed the title Remove asserts Remove asserts and add BuildConfig May 2, 2019
@dnfield dnfield mentioned this pull request May 2, 2019
@dnfield
Copy link
Contributor Author

dnfield commented May 2, 2019

This is ready for review.

Copy link
Contributor

@mklim mklim left a 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.

@dnfield dnfield mentioned this pull request May 2, 2019
]

build_config = []
assert(build_config == [] || true)
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are correct.

@dnfield dnfield merged commit 4808446 into flutter:master May 3, 2019
@dnfield
Copy link
Contributor Author

dnfield commented May 3, 2019

@mehmetf this is going to need something for the google3 build. Maybe we can talk tomorrow about how to make sure this works

@dnfield dnfield deleted the remove_assert branch May 3, 2019 02:00
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 3, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request May 3, 2019
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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove asserts from Android embedding

4 participants