-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Correction to android setup for RN > 60 #1889
Conversation
Hi @rinku-k , Thanks for contributing! We will investigate it soon. |
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.
Since my PR is of month June, I think the documentation will not be valid against new version of RN.
We can discard this PR if any update to the docs is already done
@@ -22,16 +22,18 @@ In order to integrate CodePush into your Android project, please perform the fol | |||
1. In your `android/settings.gradle` file, make the following additions: | |||
|
|||
```gradle | |||
include ':app', ':react-native-code-push' | |||
include ':app', ':react-native-code-push'. // Append ':react-native-code-push' to :app |
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.
Yes I agree with this addition, now it gives more clarity.
project(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app') | ||
``` | ||
|
||
2. In your `android/app/build.gradle` file, add the `codepush.gradle` file as an additional build task definition underneath `react.gradle`: | ||
2. In your `android/app/build.gradle` file, add the `codepush.gradle` file as an additional build task definition underneath `react.gradle` or `native_modules.gradle`(in case of RN [build issue](https://github.com/facebook/react-native/issues/25631)): |
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.
Thank you for your contribution, but in fact, I think that this does not apply to setting up CodePush, but is related to setting up the react-native app, and should not appear in our documentation. In my opinion, we should remove this so as not to confuse people who do not use native_modules.gradle
. Could update this PR and remove this change. If you have a different opinion, let me know and we will discuss it.
Correction to android setup for RN > 60 causing bundling issue
#1872