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

Commit c232b00

Browse files
authored
Add separate Android installation step for >= 0.29
1 parent d3a5e84 commit c232b00

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,10 +581,19 @@ To set this up, perform the following steps:
581581

582582
4. Open up your `MainActivity.java` file and change the `CodePush` constructor to pass the deployment key in via the build config you just defined, as opposed to a string literal.
583583

584+
**For React Native >= v0.29**
585+
586+
```java
587+
new CodePush(BuildConfig.CODEPUSH_KEY, MainApplication.this, BuildConfig.DEBUG);
588+
```
589+
590+
**For React Native v0.19 - v0.28**
591+
584592
```java
585593
new CodePush(BuildConfig.CODEPUSH_KEY, this, BuildConfig.DEBUG);
586594
```
587595

596+
588597
*Note: If you gave your build setting a different name in your Gradle file, simply make sure to reflect that in your Java code.*
589598

590599
And that's it! Now when you run or build your app, your debug builds will automatically be configured to sync with your `Staging` deployment, and your release builds will be configured to sync with your `Production` deployment.

0 commit comments

Comments
 (0)