|
|
|
|
248
|
applicationId "com.yourproject"
|
248
|
applicationId "com.yourproject"
|
249
|
minSdkVersion rootProject.ext.minSdkVersion
|
249
|
minSdkVersion rootProject.ext.minSdkVersion
|
250
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
250
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
251
|
-+ missingDimensionStrategy "RNN.reactNativeVersion", "reactNative57"
|
|
|
|
|
251
|
++ missingDimensionStrategy "RNN.reactNativeVersion", "reactNative57" // See note below!
|
252
|
versionCode 1
|
252
|
versionCode 1
|
253
|
versionName "1.0"
|
253
|
versionName "1.0"
|
254
|
...
|
254
|
...
|
|
|
|
|
257
|
}
|
257
|
}
|
258
|
```
|
258
|
```
|
259
|
|
259
|
|
260
|
-RNN only support react-native 0.51 (`"reactNative51"`), 0.55 (`"reactNative55"`), and 0.56 (`"reactNative56"`),
|
|
|
|
|
260
|
+!>Important note about `missingDimensionStrategy`<Br>
|
|
|
261
|
+>`reactNative51` - RN 0.54.x and below<Br>
|
|
|
262
|
+>`reactNative55` - RN 0.55.x<Br>
|
|
|
263
|
+>`reactNative56` - RN 0.56.x<Br>
|
|
|
264
|
+>`reactNative57` - RN 0.57.0 - 0.57.4<Br>
|
|
|
265
|
+>`reactNative57_5` - RN 0.57.5 and above<Br>
|
261
|
|
266
|
|
262
|
Now we need to instruct gradle how to build that flavor. To do so here two solutions:
|
267
|
Now we need to instruct gradle how to build that flavor. To do so here two solutions:
|
263
|
|
268
|
|