@@ -126,13 +126,9 @@ def enableHermes = project.ext.react.get("enableHermes", false);
126126def nativeArchitectures = project. getProperties(). get(" reactNativeDebugArchitectures" )
127127
128128android {
129+ ndkVersion rootProject. ext. ndkVersion
129130 compileSdkVersion rootProject. ext. compileSdkVersion
130131
131- compileOptions {
132- sourceCompatibility JavaVersion . VERSION_1_8
133- targetCompatibility JavaVersion . VERSION_1_8
134- }
135-
136132 defaultConfig {
137133 applicationId " com.testingrnapps"
138134 minSdkVersion rootProject. ext. minSdkVersion
@@ -189,8 +185,7 @@ android {
189185 def versionCodes = [" armeabi-v7a" : 1 , " x86" : 2 , " arm64-v8a" : 3 , " x86_64" : 4 ]
190186 def abi = output. getFilter(OutputFile . ABI )
191187 if (abi != null ) { // null for the universal-debug, universal-release variants
192- output. versionCodeOverride =
193- versionCodes. get(abi) * 1048576 + defaultConfig. versionCode
188+ output. versionCodeOverride = defaultConfig. versionCode * 1000 + versionCodes. get(abi)
194189 }
195190
196191 }
@@ -229,7 +224,7 @@ dependencies {
229224// Run this once to be able to run the application with BUCK
230225// puts all compile dependencies into folder libs for BUCK to use
231226task copyDownloadableDepsToLibs (type : Copy ) {
232- from configurations. compile
227+ from configurations. implementation
233228 into ' libs'
234229}
235230
0 commit comments