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

Correction to android setup for RN > 60 #1889

Closed
wants to merge 3 commits into from

Conversation

rinku-k
Copy link

@rinku-k rinku-k commented Jun 26, 2020

Correction to android setup for RN > 60 causing bundling issue
#1872

@andreidubov
Copy link
Contributor

Hi @rinku-k , Thanks for contributing!

We will investigate it soon.

Copy link
Author

@rinku-k rinku-k left a 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
Copy link
Contributor

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)):
Copy link
Contributor

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.

@andreidubov
Copy link
Contributor

Hi @rinku-k,

I'm going to close this PR for now as I haven't heard from you in a while. We've added some of your suggestions here #1968
Please feel free to reopen it.

@andreidubov andreidubov closed this Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants