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

Commit b354a0e

Browse files
authored
Update instructions to refer to correct files in Readme
1 parent 4e2d78c commit b354a0e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,16 +579,20 @@ To set this up, perform the following steps:
579579

580580
*NOTE: As a reminder, you can retrieve these keys by running `code-push deployment ls <APP_NAME> -k` from your terminal.*
581581

582-
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.
582+
4. Pass the deployment key to the `CodePush` constructor via the build config you just defined, as opposed to a string literal.
583583

584584
**For React Native >= v0.29**
585585

586+
Open up your `MainApplication.java` file and make the following changes:
587+
586588
```java
587589
new CodePush(BuildConfig.CODEPUSH_KEY, MainApplication.this, BuildConfig.DEBUG);
588590
```
589591

590592
**For React Native v0.19 - v0.28**
591593

594+
Open up your `MainActivity.java` file and make the following changes:
595+
592596
```java
593597
new CodePush(BuildConfig.CODEPUSH_KEY, this, BuildConfig.DEBUG);
594598
```

0 commit comments

Comments
 (0)