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.
In order to integrate CodePush into your Android project, please perform the following steps:
4
18
5
19
### Plugin Installation (Android)
6
20
@@ -64,7 +78,9 @@ And that's it for installation using RNPM! Continue below to the [Plugin Configu
64
78
65
79
After installing the plugin and syncing your Android Studio project with Gradle, you need to configure your app to consult CodePush for the location of your JS bundle, since it will "take control" of managing the current and all future versions. To do this:
66
80
67
-
**For React Native >= v0.29**
81
+
#### For React Native >= v0.29
82
+
83
+
##### For newly created React Native application
68
84
69
85
If you are integrating Code Push into React Native application please do the following steps:
If you are integrating React Native into existing native application please do the following steps:
113
131
114
132
Update `MyReactActivity.java` (it could be named differently in your app) file to use CodePush via the following changes:
@@ -143,7 +161,7 @@ public class MyReactActivity extends Activity {
143
161
}
144
162
```
145
163
146
-
**For React Native v0.19 - v0.28**
164
+
#### For React Native v0.19 - v0.28
147
165
148
166
Update the `MainActivity.java` file to use CodePush via the following changes:
149
167
@@ -183,7 +201,7 @@ public class MainActivity extends ReactActivity {
183
201
184
202
In order to update/restart your React Native instance, CodePush must be configured with a `ReactInstanceHolder` before attempting to restart an instance in the background. This is usually done in your `Application` implementation.
185
203
186
-
**For React Native >= v0.29**
204
+
##### For React Native >= v0.29 (Background React Instances)
187
205
188
206
Update the `MainApplication.java` file to use CodePush via the following changes:
189
207
@@ -210,7 +228,7 @@ public class MainApplication extends Application implements ReactApplication {
210
228
}
211
229
```
212
230
213
-
**For React Native v0.19 - v0.28**
231
+
##### For React Native v0.19 - v0.28 (Background React Instances)
214
232
215
233
Before v0.29, React Native did not provide a `ReactNativeHost` abstraction. If you're launching a background instance, you'll likely have built your own, which should now implement `ReactInstanceHolder`. Once that's done:
216
234
@@ -230,6 +248,70 @@ public class MainApplication extends Application {
230
248
231
249
In order to effectively make use of the `Staging` and `Production` deployments that were created along with your CodePush app, refer to the [multi-deployment testing](../README.md#multi-deployment-testing) docs below before actually moving your app's usage of CodePush into production.
232
250
251
+
#### WIX React Native Navigation applications
252
+
253
+
If you are using [WIX React Native Navigation **version 1.x**](https://github.com/wix/react-native-navigation) based application, please do the following steps to integrate CodePush:
254
+
255
+
1. No need to change `MainActivity.java` file, so if you are integrating CodePush to newly created RNN application it might be looking like this:
Starting with CLI version **2.1.0** you can self sign bundles during release and verify its signature before installation of update. For more info about Code Signing please refer to [relevant code-push documentation section](https://github.com/Microsoft/code-push/tree/master/cli#code-signing). In order to use Public Key for Code Signing you need to do following steps:
0 commit comments