Skip to content

Conversation

@josh-burton
Copy link
Contributor

@josh-burton josh-burton commented Jun 17, 2019

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:

subprojects {
	android.buildTypes {
		debug {}
        staging {}
        release {}
	}
}

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.

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I signed the [CLA].
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require Flutter developers to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (Please read [Handling breaking changes]). Replace this with a link to the e-mail where you asked for input on this proposed change.
  • No, this is not a breaking change.

@blasten Requesting your review on this one :)

@Piinks Piinks added t: gradle "flutter build" and "flutter run" on Android tool Affects the "flutter" command-line tool. See also t: labels. labels Jun 17, 2019
@josh-burton
Copy link
Contributor Author

This may require some rework once #34592 is merged to keep the logic consistent.

@josh-burton
Copy link
Contributor Author

@blasten this PR is ready to go now, would you mind taking a look?

@josh-burton
Copy link
Contributor Author

@dnfield @matthew-carroll who is the best person to review this?

@matthew-carroll
Copy link
Contributor

Probably @blasten

@josh-burton
Copy link
Contributor Author

Thanks for the review @blasten, I've addressed all of the comments.

Copy link

@blasten blasten left a 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!

@blasten
Copy link

blasten commented Jun 25, 2019

It looks like this breaks one of the smoke tests.

@dnfield
Copy link
Contributor

dnfield commented Jun 25, 2019

I think that test is failing because of an unrelated issue - it should be safe to ignore, and should pass on post submit.

@dnfield
Copy link
Contributor

dnfield commented Jun 25, 2019

(The contributor isn't able to access the encrypted variable)

@blasten
Copy link

blasten commented Jun 25, 2019

Gotcha. Thanks @dnfield! Merging on red as per Dan's comment.

@blasten blasten merged commit 577c2fc into flutter:master Jun 25, 2019
@dnfield
Copy link
Contributor

dnfield commented Jun 25, 2019

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

t: gradle "flutter build" and "flutter run" on Android tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants