@@ -76,7 +76,7 @@ apply from: "../../../react.gradle"
76
76
* Upload all the APKs to the Play Store and people will download
77
77
* the correct one based on the CPU architecture of their device.
78
78
*/
79
- def enableSeparateBuildPerCPUArchitecture = false
79
+ def enableSeparateBuildPerCPUArchitecture = true
80
80
81
81
/**
82
82
* Run Proguard to shrink the Java bytecode in release builds.
@@ -93,9 +93,6 @@ android {
93
93
targetSdkVersion 27
94
94
versionCode 1
95
95
versionName " 1.0"
96
- ndk {
97
- abiFilters " armeabi-v7a" , " x86"
98
- }
99
96
}
100
97
signingConfigs {
101
98
release {
@@ -110,7 +107,7 @@ android {
110
107
enable enableSeparateBuildPerCPUArchitecture
111
108
universalApk false
112
109
reset()
113
- include " armeabi-v7a" , " x86"
110
+ include " armeabi-v7a" , " x86" , " x86_64 " , " arm64-v8a "
114
111
}
115
112
}
116
113
buildTypes {
@@ -123,20 +120,6 @@ android {
123
120
signingConfig signingConfigs. release
124
121
}
125
122
}
126
-
127
- // applicationVariants are e.g. debug, release
128
- applicationVariants. all { variant ->
129
- variant. outputs. each { output ->
130
- // For each separate APK per architecture, set a unique version code as described here:
131
- // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
132
- def versionCodes = [" armeabi-v7a" :1 , " x86" :2 ]
133
- def abi = output. getFilter(OutputFile . ABI )
134
- if (abi != null ) { // null for the universal-debug, universal-release variants
135
- output. versionCodeOverride =
136
- versionCodes. get(abi) * 1048576 + defaultConfig. versionCode
137
- }
138
- }
139
- }
140
123
}
141
124
142
125
dependencies {
0 commit comments