@@ -3,8 +3,6 @@ apply plugin: "com.facebook.react"
33apply plugin : " com.google.firebase.firebase-perf"
44apply from : project(' :react-native-config' ). projectDir. getPath() + " /dotenv.gradle"
55
6- import com.android.build.OutputFile
7-
86/**
97 * This is the configuration block to customize your React Native Android app.
108 * By default you don't need to apply any configuration, just uncomment the lines you need.
@@ -15,8 +13,8 @@ react {
1513 // root = file("../")
1614 // The folder where the react-native NPM package is. Default is ../node_modules/react-native
1715 // reactNativeDir = file("../node_modules/react-native")
18- // The folder where the react-native Codegen package is. Default is ../node_modules/react-native- codegen
19- // codegenDir = file("../node_modules/react-native- codegen")
16+ // The folder where the react-native Codegen package is. Default is ../node_modules/@ react-native/ codegen
17+ // codegenDir = file("../node_modules/@ react-native/ codegen")
2018 // The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
2119 // cliFile = file("../node_modules/react-native/cli.js")
2220
@@ -59,14 +57,6 @@ project.ext.envConfigFiles = [
5957 release : " .env.production" ,
6058]
6159
62- /**
63- * Set this to true to create four separate APKs instead of one,
64- * one for each native architecture. This is useful if you don't
65- * use App Bundles (https://developer.android.com/guide/app-bundle/)
66- * and want to have separate APKs to upload to the Play Store.
67- */
68- def enableSeparateBuildPerCPUArchitecture = false
69-
7060/**
7161 * Set this to true to Run Proguard on Release builds to minify the Java bytecode.
7262 */
@@ -85,16 +75,6 @@ def enableProguardInReleaseBuilds = false
8575 */
8676def jscFlavor = ' org.webkit:android-jsc:+'
8777
88- /**
89- * Private function to get the list of Native Architectures you want to build.
90- * This reads the value from reactNativeArchitectures in your gradle.properties
91- * file and works together with the --active-arch-only flag of react-native run-android.
92- */
93- def reactNativeArchitectures () {
94- def value = project. getProperties(). get(" reactNativeArchitectures" )
95- return value ? value. split(" ," ) : [" armeabi-v7a" , " x86" , " x86_64" , " arm64-v8a" ]
96- }
97-
9878android {
9979 ndkVersion rootProject. ext. ndkVersion
10080
@@ -110,14 +90,6 @@ android {
11090 versionName " 1.3.49-1"
11191 }
11292
113- splits {
114- abi {
115- reset()
116- enable enableSeparateBuildPerCPUArchitecture
117- universalApk false // If true, also generate a universal APK
118- include (* reactNativeArchitectures())
119- }
120- }
12193 signingConfigs {
12294 release {
12395 if (project. hasProperty(' MYAPP_UPLOAD_STORE_FILE' )) {
@@ -155,27 +127,11 @@ android {
155127 signingConfig signingConfigs. debug
156128 }
157129 }
158-
159- // applicationVariants are e.g. debug, release
160- applicationVariants. all { variant ->
161- variant. outputs. each { output ->
162- // For each separate APK per architecture, set a unique version code as described here:
163- // https://developer.android.com/studio/build/configure-apk-splits.html
164- def versionCodes = [" armeabi-v7a" : 1 , " x86" : 2 , " arm64-v8a" : 3 , " x86_64" : 4 ]
165- def abi = output. getFilter(OutputFile . ABI )
166- if (abi != null ) { // null for the universal-debug, universal-release variants
167- output. versionCodeOverride =
168- versionCodes. get(abi) * 1048576 + defaultConfig. versionCode
169- }
170-
171- }
172- }
173130}
174131
175132dependencies {
176133 // The version of react-native is set by the React Native Gradle Plugin
177134 implementation(" com.facebook.react:react-android" )
178- implementation(" androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" )
179135 debugImplementation(" com.facebook.flipper:flipper:${ FLIPPER_VERSION} " )
180136
181137 debugImplementation(" com.facebook.flipper:flipper:${ FLIPPER_VERSION} " ) {
0 commit comments