Skip to content
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

Revert "Better Android Gradle Plugin 3.x integration" #18189

Closed

Conversation

janicduplessis
Copy link
Contributor

This reverts commit d16ff3b.

Motivation

Currently breaks with the gradle version used by RN, I think there has been some work to update that to a more recent one but for now I think we should just revert it.

It errors with:

Could not find method registerGeneratedResFolders() for arguments [file collection] on object of type com.android.build.gradle.internal.api.ApplicationVariantImpl.

Test Plan

Tested that RN tester now builds when using the right react.gradle (#18188)

Release Notes

[ ANDROID ] [ BUGFIX ] [ react.gradle ] - REVERT "Support Android Gradle Plugin 3.x and AAPT2"
[ ANDROID ] [ FEATURE ] [ react.gradle ] - REVERT "Expose the bundling task and its outputs via ext properties"

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 5, 2018
@janicduplessis
Copy link
Contributor Author

@CFKevinRef If you can find a way that also works with gradle 2.14.1 it would be great. Otherwise I think we'll have to hold on a bit before relanding this.

@pull-bot
Copy link

pull-bot commented Mar 5, 2018

Warnings
⚠️

📋 Release Notes - This PR may have incorrectly formatted Release Notes.

Generated by 🚫 dangerJS

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Mar 5, 2018
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@hramos is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@CFKevinRef
Copy link
Contributor

Not a problem, I do have an idea but will be a few days before I can get back to this. Thanks for the heads up!

@janicduplessis
Copy link
Contributor Author

@CFKevinRef Thanks! If this is a blocker for anyone it is possible to copy the content of the react.gradle file inside your project and change the plugin apply path to point to that instead of the one under node_modules/react-native.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Import Started This pull request has been imported. This does not imply the PR has been approved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants