@@ -15,18 +15,17 @@ def enableProguardInReleaseBuilds = false
1515def jscFlavor = ' org.webkit:android-jsc:+'
1616def enableHermes = project. ext. react. get(" enableHermes" , false )
1717
18+ /**
19+ * Architectures to build native code for in debug.
20+ */
21+ def nativeArchitectures = project. getProperties(). get(" reactNativeDebugArchitectures" )
22+
1823android {
1924 ndkVersion rootProject. ext. ndkVersion
2025
2126 compileSdkVersion rootProject. ext. compileSdkVersion
2227 buildToolsVersion rootProject. ext. buildToolsVersion
2328
24-
25- compileOptions {
26- sourceCompatibility JavaVersion . VERSION_1_8
27- targetCompatibility JavaVersion . VERSION_1_8
28- }
29-
3029 defaultConfig {
3130 applicationId " com.calendarsexample"
3231 minSdkVersion rootProject. ext. minSdkVersion
@@ -53,6 +52,11 @@ android {
5352 buildTypes {
5453 debug {
5554 signingConfig signingConfigs. debug
55+ if (nativeArchitectures) {
56+ ndk {
57+ abiFilters nativeArchitectures. split(' ,' )
58+ }
59+ }
5660 }
5761 release {
5862 // Caution! In production, you need to generate your own keystore file.
@@ -106,7 +110,7 @@ dependencies {
106110// Run this once to be able to run the application with BUCK
107111// puts all compile dependencies into folder libs for BUCK to use
108112task copyDownloadableDepsToLibs (type : Copy ) {
109- from configurations. compile
113+ from configurations. implementation
110114 into ' libs'
111115}
112116
0 commit comments