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
Copy file name to clipboardExpand all lines: README.md
+35-25Lines changed: 35 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,8 @@
5
5
### Why should we use react-native-keys over react-native-config?
6
6
7
7
We should use **react-native-keys** instead of **react-native-config** because **react-native-keys** gives guarantee of undecryptable **envs** whereas **react-native-config****envs** can be decompile and hack
8
-
#### See the [ Migration from react-native-config](docs/react-native-config-migration-guide.md)
8
+
9
+
#### See the [Migration from react-native-config](docs/react-native-config-migration-guide.md)
- Go to _Edit scheme..._ -> _Build_ -> _Pre-actions_, click _+_ and select _New Run Script Action_. Paste below code which will generate KEYS keys on native ios side (into node*modules) Make sure to select your target under \_Provide build settings from*, so `$SRCROOT` environment variables is available to the script.
This also works for `run-android`. Alternatively, there are platform-specific options below.
@@ -289,13 +299,13 @@ This also works for `run-android`. Alternatively, there are platform-specific op
289
299
290
300
The same environment variable can be used to assemble releases with a different config:
291
301
292
-
```
293
-
$ cd android && KEYSFILE=keys.staging.json ./gradlew assembleRelease
302
+
```sh
303
+
cd android && KEYSFILE=keys.staging.json ./gradlew assembleRelease
294
304
```
295
305
296
306
Alternatively, you can define a map in `build.gradle` associating builds with env files. Do it before the `apply from` call, and use build cases in lowercase, like:
In `android/app/build.gradle`, if you use `applicationIdSuffix` or `applicationId` that is different from the package name indicated in `AndroidManifest.xml` in `<manifest package="...">` tag, for example, to support different build variants:
0 commit comments