Skip to content

Commit c8cdc45

Browse files
committed
docs: update doc about new arch on android
1 parent 2bd3be4 commit c8cdc45

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

docs/setup-android.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,20 @@
6060
}
6161
```
6262

63-
3. Add the release channel public ID to `strings.xml`:
63+
3. If you use New Architecture, make sure to have bridgeless mode enabled:
64+
65+
```kotlin
66+
override fun onCreate() {
67+
super.onCreate()
68+
SoLoader.init(this, OpenSourceMergedSoMapping)
69+
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
70+
// If you opted-in for the New Architecture, we load the native entry point for this app.
71+
load() // NOT load(bridgelessEnabled = false)
72+
}
73+
}
74+
```
75+
76+
4. Add the release channel public ID to `strings.xml`:
6477

6578
To let the CodePush runtime know which release channel it should query for updates, open your app's `strings.xml` file and add a new string named `CodePushReleaseChannelPublicId`, whose value is the public ID of the release channel you want to configure this app against. You can retrieve this value by running `appzung release-channels list` in the AppZung CLI and copying the value of the `Public ID` column.
6679

@@ -77,4 +90,4 @@
7790

7891
_Note: If you need to dynamically use a different release channel, you can also override your release channel public ID in JS code using [Code-Push options](./api-js/interfaces/CodePushOptions.md)_
7992

80-
4. [Configure code signing](./code-signing.md)
93+
5. [Configure code signing](./code-signing.md)

0 commit comments

Comments
 (0)