@@ -20,7 +20,7 @@ import com.android.build.OutputFile
2020 * // default. Can be overridden with ENTRY_FILE environment variable.
2121 * entryFile: "index.android.js",
2222 *
23- * // https://facebook.github.io/react-native /docs/performance#enable-the-ram-format
23+ * // https://reactnative.dev /docs/performance#enable-the-ram-format
2424 * bundleCommand: "ram-bundle",
2525 *
2626 * // whether to bundle JS and assets in debug mode
@@ -120,6 +120,8 @@ def jscFlavor = 'org.webkit:android-jsc:+'
120120def enableHermes = project. ext. react. get(" enableHermes" , false );
121121
122122android {
123+ ndkVersion rootProject. ext. ndkVersion
124+
123125 compileSdkVersion rootProject. ext. compileSdkVersion
124126 buildToolsVersion rootProject. ext. buildToolsVersion
125127
@@ -160,7 +162,7 @@ android {
160162 }
161163 release {
162164 // Caution! In production, you need to generate your own keystore file.
163- // see https://facebook.github.io/react-native /docs/signed-apk-android.
165+ // see https://reactnative.dev /docs/signed-apk-android.
164166 signingConfig signingConfigs. debug
165167 minifyEnabled enableProguardInReleaseBuilds
166168 proguardFiles getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro"
@@ -178,13 +180,13 @@ android {
178180 applicationVariants. all { variant ->
179181 variant. outputs. each { output ->
180182 // For each separate APK per architecture, set a unique version code as described here:
181-
182183 // https://developer.android.com/studio/build/configure-apk-splits.html
184+ // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
183185 def versionCodes = [" armeabi-v7a" : 1 , " x86" : 2 , " arm64-v8a" : 3 , " x86_64" : 4 ]
184186 def abi = output. getFilter(OutputFile . ABI )
185187 if (abi != null ) { // null for the universal-debug, universal-release variants
186188 output. versionCodeOverride =
187- versionCodes . get(abi) * 1048576 + defaultConfig . versionCode
189+ defaultConfig . versionCode * 1000 + versionCodes . get(abi)
188190 }
189191
190192 }
@@ -203,6 +205,7 @@ dependencies {
203205 }
204206 debugImplementation(" com.facebook.flipper:flipper-network-plugin:${ FLIPPER_VERSION} " ) {
205207 exclude group :' com.facebook.flipper'
208+ exclude group :' com.squareup.okhttp3' , module :' okhttp'
206209 }
207210 debugImplementation(" com.facebook.flipper:flipper-fresco-plugin:${ FLIPPER_VERSION} " ) {
208211 exclude group :' com.facebook.flipper'
0 commit comments