@@ -120,16 +120,16 @@ def jscFlavor = 'org.webkit:android-jsc:+'
120120 */
121121def enableHermes = project. ext. react. get(" enableHermes" , false );
122122
123+ /**
124+ * Architectures to build native code for in debug.
125+ */
126+ def nativeArchitectures = project. getProperties(). get(" reactNativeDebugArchitectures" )
127+
123128android {
124129 ndkVersion rootProject. ext. ndkVersion
125130
126131 compileSdkVersion rootProject. ext. compileSdkVersion
127132
128- compileOptions {
129- sourceCompatibility JavaVersion . VERSION_1_8
130- targetCompatibility JavaVersion . VERSION_1_8
131- }
132-
133133 defaultConfig {
134134 applicationId " com.rnpermissionsexample"
135135 minSdkVersion rootProject. ext. minSdkVersion
@@ -156,6 +156,11 @@ android {
156156 buildTypes {
157157 debug {
158158 signingConfig signingConfigs. debug
159+ if (nativeArchitectures) {
160+ ndk {
161+ abiFilters nativeArchitectures. split(' ,' )
162+ }
163+ }
159164 }
160165 release {
161166 // Caution! In production, you need to generate your own keystore file.
@@ -198,7 +203,7 @@ dependencies {
198203 implementation " androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
199204
200205 debugImplementation(" com.facebook.flipper:flipper:${ FLIPPER_VERSION} " ) {
201- exclude group :' com.facebook.fbjni'
206+ exclude group :' com.facebook.fbjni'
202207 }
203208
204209 debugImplementation(" com.facebook.flipper:flipper-network-plugin:${ FLIPPER_VERSION} " ) {
@@ -221,7 +226,7 @@ dependencies {
221226// Run this once to be able to run the application with BUCK
222227// puts all compile dependencies into folder libs for BUCK to use
223228task copyDownloadableDepsToLibs (type : Copy ) {
224- from configurations. compile
229+ from configurations. implementation
225230 into ' libs'
226231}
227232
0 commit comments