-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Ensures flutter jar is added to all build types on plugin projects #34573
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
Conversation
6adbd4e to
90ff400
Compare
|
This may require some rework once #34592 is merged to keep the logic consistent. |
90ff400 to
3b1d993
Compare
# Conflicts: # packages/flutter_tools/gradle/flutter.gradle
|
@blasten this PR is ready to go now, would you mind taking a look? |
|
@dnfield @matthew-carroll who is the best person to review this? |
|
Probably @blasten |
|
Thanks for the review @blasten, I've addressed all of the comments. |
blasten
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.
Thanks for cleaning this up!
|
It looks like this breaks one of the smoke tests. |
|
I think that test is failing because of an unrelated issue - it should be safe to ignore, and should pass on post submit. |
|
(The contributor isn't able to access the encrypted variable) |
|
Gotcha. Thanks @dnfield! Merging on red as per Dan's comment. |
|
The test passed on post submit. We should probably improve this test so that it doesn't fail if the JSON is invalid for the service account, or at least somehow make the test itself make it clear that it failed but is safe to ignore. |
Description
The flutter jar is currently only added to debug/profile/release build types for plugin projects.
Plugin projects could have extra build types, or an app could add extra build types to all subprojects:
This causes compilation failures as the plugin projects can't find Flutter classes.
Related Issues
#34089
Tests
Added a test to gradle_plugin_light_apk_test.dart which tests building an android app containing custom build types in all subprojects (i.e. plugins)
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?
@blasten Requesting your review on this one :)