-
Notifications
You must be signed in to change notification settings - Fork 38
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
Gradle 4.8-rc-1 compat fix - use def when finding the buildType #110
Conversation
4.8-rc-1 changes the buildtypes store to return an iterable rather than a set, which would previously lead to a runtime error with the plugin.
@@ -259,7 +259,7 @@ class BugsnagPlugin implements Plugin<Project> { | |||
private static boolean isJackEnabled(Project project, BaseVariant variant) { | |||
|
|||
// First check the selected build type to see if there are jack settings | |||
TreeSet buildTypes = project.android.buildTypes.store | |||
def buildTypes = project.android.buildTypes.store |
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.
haha, Groovy is helpful sometimes right
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.
Looks good to me, I'm unsure what's up with the CI suite though.
CHANGELOG.md
Outdated
|
||
### Bug fixes | ||
|
||
* Gradle 4.8-rc-1 compat fix - use def when finding the buildType |
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.
This summary seems unclear. It should say is happening from a user perspective, e.g. "Add compatibility with Gradle 4.8-rc1"
Looks like whatever is wrong with CI is wrong on master also. |
a727fbf
Goal
Gradle 4.8-rc-1 changes
project.android.buildTypes.store
to return anIterable
rather than aSet
, which can lead to a runtime error within the plugin. This changeset prevents the runtime error by usingdef
instead.Changeset
Changed
Altered affected types from specific
Set
implementation todef
.Tests
Mazerunner was run locally after running
./gradlew wrapper --gradle-version 4.8-rc-1
in each of the fixture projects.Discussion
Alternative Approaches
We could use
Iterable
instead ofdef
.Linked issues
#109
Review
For the submitter, initial self-review:
For the pull request reviewer(s), this changeset has been reviewed for: