You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -579,16 +579,20 @@ To set this up, perform the following steps:
579
579
580
580
*NOTE: As a reminder, you can retrieve these keys by running `code-push deployment ls <APP_NAME> -k` from your terminal.*
581
581
582
-
4.Open up your `MainActivity.java` file and change the `CodePush`constructorto pass the deployment key in via the build config you just defined, as opposed to a string literal.
582
+
4.Pass the deployment key to the `CodePush`constructor via the build config you just defined, as opposed to a string literal.
583
583
584
584
**For React Native >= v0.29**
585
585
586
+
Open up your `MainApplication.java` file and make the following changes:
587
+
586
588
```java
587
589
new CodePush(BuildConfig.CODEPUSH_KEY, MainApplication.this, BuildConfig.DEBUG);
588
590
```
589
591
590
592
**For React Native v0.19 - v0.28**
591
593
594
+
Open up your `MainActivity.java` file and make the following changes:
595
+
592
596
```java
593
597
new CodePush(BuildConfig.CODEPUSH_KEY, this, BuildConfig.DEBUG);
0 commit comments