Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 970b365

Browse files
committed
Adding code push.gradle step to the RNPM installation
1 parent 9e94301 commit 970b365

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,15 @@ In order to accomodate as many developer preferences as possible, the CodePush p
209209

210210
*Note: If you don't already have RNPM installed, you can do so by simply running `npm i -g rnpm` and then executing the above command.*
211211
212+
2. (Only needed in v1.8.0+ of the plugin) In your `android/app/build.gradle` file, add the `codepush.gradle` file as an additional build task definition underneath `react.gradle`:
213+
214+
```gradle
215+
...
216+
apply from: "react.gradle"
217+
apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"
218+
...
219+
```
220+
212221
And that's it for installation using RNPM! Continue below to the [Plugin Configuration](#plugin-configuration-android) section to complete the setup.
213222

214223
#### Plugin Installation (Android - Manual)
@@ -219,6 +228,7 @@ And that's it for installation using RNPM! Continue below to the [Plugin Configu
219228
include ':app', ':react-native-code-push'
220229
project(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app')
221230
```
231+
222232
2. In your `android/app/build.gradle` file, add the `:react-native-code-push` project as a compile-time dependency:
223233

224234
```gradle
@@ -227,7 +237,8 @@ And that's it for installation using RNPM! Continue below to the [Plugin Configu
227237
...
228238
compile project(':react-native-code-push')
229239
}
230-
```
240+
```
241+
231242
3. (Only needed in v1.8.0+ of the plugin) In your `android/app/build.gradle` file, add the `codepush.gradle` file as an additional build task definition underneath `react.gradle`:
232243

233244
```gradle

0 commit comments

Comments
 (0)