@@ -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.
@@ -196,10 +201,9 @@ dependencies {
196201 implementation " com.facebook.react:react-native:+" // From node_modules
197202
198203 implementation " androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
199- implementation(' com.squareup.okhttp3:okhttp:4.9.1' )
200204
201205 debugImplementation(" com.facebook.flipper:flipper:${ FLIPPER_VERSION} " ) {
202- exclude group :' com.facebook.fbjni'
206+ exclude group :' com.facebook.fbjni'
203207 }
204208
205209 debugImplementation(" com.facebook.flipper:flipper-network-plugin:${ FLIPPER_VERSION} " ) {
@@ -222,7 +226,7 @@ dependencies {
222226// Run this once to be able to run the application with BUCK
223227// puts all compile dependencies into folder libs for BUCK to use
224228task copyDownloadableDepsToLibs (type : Copy ) {
225- from configurations. compile
229+ from configurations. implementation
226230 into ' libs'
227231}
228232
0 commit comments