@@ -2,8 +2,6 @@ apply plugin: "com.android.application"
2
2
apply plugin : " com.facebook.react"
3
3
apply plugin : " kotlin-android" // manual
4
4
5
- import com.android.build.OutputFile
6
-
7
5
/**
8
6
* This is the configuration block to customize your React Native Android app.
9
7
* By default you don't need to apply any configuration, just uncomment the lines you need.
@@ -13,9 +11,9 @@ react {
13
11
// The root of your project, i.e. where "package.json" lives. Default is '..'
14
12
// root = file("../")
15
13
// The folder where the react-native NPM package is. Default is ../node_modules/react-native
16
- // reactNativeDir = file("../node_smodules /react-native")
17
- // The folder where the react-native Codegen package is. Default is ../node_modules/react-native- codegen
18
- // codegenDir = file("../node_smodules/ react-native- codegen")
14
+ // reactNativeDir = file("../node_modules /react-native")
15
+ // The folder where the react-native Codegen package is. Default is ../node_modules/@ react-native/ codegen
16
+ // codegenDir = file("../node_modules/@ react-native/ codegen")
19
17
// The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
20
18
// cliFile = file("../node_modules/react-native/cli.js")
21
19
@@ -53,14 +51,6 @@ react {
53
51
// hermesFlags = ["-O", "-output-source-map"]
54
52
}
55
53
56
- /**
57
- * Set this to true to create four separate APKs instead of one,
58
- * one for each native architecture. This is useful if you don't
59
- * use App Bundles (https://developer.android.com/guide/app-bundle/)
60
- * and want to have separate APKs to upload to the Play Store.
61
- */
62
- def enableSeparateBuildPerCPUArchitecture = true
63
-
64
54
/**
65
55
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
66
56
*/
@@ -79,16 +69,6 @@ def enableProguardInReleaseBuilds = false
79
69
*/
80
70
def jscFlavor = ' org.webkit:android-jsc:+'
81
71
82
- /**
83
- * Private function to get the list of Native Architectures you want to build.
84
- * This reads the value from reactNativeArchitectures in your gradle.properties
85
- * file and works together with the --active-arch-only flag of react-native run-android.
86
- */
87
- def reactNativeArchitectures () {
88
- def value = project. getProperties(). get(" reactNativeArchitectures" )
89
- return value ? value. split(" ," ) : [" armeabi-v7a" , " x86" , " x86_64" , " arm64-v8a" ]
90
- }
91
-
92
72
android {
93
73
ndkVersion rootProject. ext. ndkVersion
94
74
@@ -103,14 +83,6 @@ android {
103
83
versionName " 1.0.0-alpha.5"
104
84
}
105
85
106
- splits {
107
- abi {
108
- reset()
109
- enable enableSeparateBuildPerCPUArchitecture
110
- universalApk false // If true, also generate a universal APK
111
- include (* reactNativeArchitectures())
112
- }
113
- }
114
86
signingConfigs {
115
87
debug {
116
88
storeFile file(' debug.keystore' )
@@ -139,22 +111,6 @@ android {
139
111
proguardFiles getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro"
140
112
}
141
113
}
142
-
143
- // applicationVariants are e.g. debug, release
144
- applicationVariants. all { variant ->
145
- variant. outputs. each { output ->
146
- // For each separate APK per architecture, set a unique version code as described here:
147
- // https://developer.android.com/studio/build/configure-apk-splits.html
148
- // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
149
- def versionCodes = [" armeabi-v7a" : 1 , " x86" : 2 , " arm64-v8a" : 3 , " x86_64" : 4 ]
150
- def abi = output. getFilter(OutputFile . ABI )
151
- if (abi != null ) { // null for the universal-debug, universal-release variants
152
- output. versionCodeOverride =
153
- defaultConfig. versionCode * 1000 + versionCodes. get(abi)
154
- }
155
-
156
- }
157
- }
158
114
}
159
115
160
116
dependencies {
@@ -165,8 +121,6 @@ dependencies {
165
121
// The version of react-native is set by the React Native Gradle Plugin
166
122
implementation(" com.facebook.react:react-android" )
167
123
168
- implementation(" androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" )
169
-
170
124
debugImplementation(" com.facebook.flipper:flipper:${ FLIPPER_VERSION} " )
171
125
debugImplementation(" com.facebook.flipper:flipper-network-plugin:${ FLIPPER_VERSION} " ) {
172
126
exclude group :' com.squareup.okhttp3' , module :' okhttp'
0 commit comments