-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Update link command for Android project #20853
Update link command for Android project #20853
Conversation
PR #20767 bumped the version of the Android Gradle Plugin to v3 which uses the newer Gradle dependency configurations `implementation` and `api` which make `compile` obsolete. While the PR updated the template Gradle configuration, it did not cover the `link` command which will still link native modules using `compile` which will result in a warning message during app build. Since `compile` will be eventually removed by Gradle, this commit updates the `link` command to attach native modules using `implementation`.
@facebook-github-bot shipit |
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.
dulmandakh is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@matt-block merged commit 4dfdec9 into Once this commit is added to a release, you will see the corresponding version tag below the description at 4dfdec9. If the commit has a single |
Summary: Motivation: -------------- PR facebook#20767 bumped the version of the Android Gradle Plugin to v3 which uses the newer Gradle dependency configurations `implementation` and `api` which make `compile` obsolete. While the PR updated the template Gradle configuration, it did not cover the `link` command which will still link native modules using `compile` resulting in a warning message beeing displayed during an app build. Since `compile` will be eventually removed by Gradle, this commit updates the `link` command to attach native modules using `implementation`. Pull Request resolved: facebook#20853 Differential Revision: D9733888 Pulled By: hramos fbshipit-source-id: 22853480d7ba7be65e3387effda2fd6c72b6906a
Summary: Motivation: -------------- PR #20767 bumped the version of the Android Gradle Plugin to v3 which uses the newer Gradle dependency configurations `implementation` and `api` which make `compile` obsolete. While the PR updated the template Gradle configuration, it did not cover the `link` command which will still link native modules using `compile` resulting in a warning message beeing displayed during an app build. Since `compile` will be eventually removed by Gradle, this commit updates the `link` command to attach native modules using `implementation`. Pull Request resolved: facebook/react-native#20853 Differential Revision: D9733888 Pulled By: hramos fbshipit-source-id: 22853480d7ba7be65e3387effda2fd6c72b6906a
Summary: Motivation: -------------- PR facebook#20767 bumped the version of the Android Gradle Plugin to v3 which uses the newer Gradle dependency configurations `implementation` and `api` which make `compile` obsolete. While the PR updated the template Gradle configuration, it did not cover the `link` command which will still link native modules using `compile` resulting in a warning message beeing displayed during an app build. Since `compile` will be eventually removed by Gradle, this commit updates the `link` command to attach native modules using `implementation`. Pull Request resolved: facebook#20853 Differential Revision: D9733888 Pulled By: hramos fbshipit-source-id: 22853480d7ba7be65e3387effda2fd6c72b6906a
Motivation:
PR #20767 bumped the version of the Android Gradle Plugin to v3 which uses the newer Gradle dependency configurations
implementation
andapi
which makecompile
obsolete.While the PR updated the template Gradle configuration, it did not cover the
link
command which will still link native modules usingcompile
resulting in a warning message beeing displayed during an app build.Since
compile
will be eventually removed by Gradle, this commit updates thelink
command to attach native modules usingimplementation
.Test Plan:
Ran the tests on my branch:
Note: test_android, test_detox_end_to_end and test_objc seem to fail for other reasons discussed in #20854.
then,
implementation
dependency configuration keywordlocal-cli/link
folder from my branch intodemoProject/node_modules/react-native/local-cli
android/app/build.gradle
has been patched correctly withimplementation
.android/settings.gradle
andMainApplication.java
have been patched as usual.Related PRs:
Release Notes:
[CLI] [ENHANCEMENT] [local-cli/link] - Updated
link
to link Android modules asimplementation
dependencies.