Skip to content

Commit 0e4603c

Browse files
authored
Merge pull request #402 from jpudysz/feature/android
feat: make android compile
2 parents 5c21fdd + 7077434 commit 0e4603c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

android/build.gradle

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ buildscript {
1212
}
1313
}
1414

15+
def reactNativeArchitectures() {
16+
def value = rootProject.getProperties().get("reactNativeArchitectures")
17+
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
18+
}
19+
1520
apply plugin: 'com.android.library'
1621
apply plugin: 'org.jetbrains.kotlin.android'
1722
apply from: '../nitrogen/generated/android/unistyles+autolinking.gradle'
@@ -41,6 +46,7 @@ android {
4146
externalNativeBuild {
4247
cmake {
4348
arguments "-DANDROID_STL=c++_shared"
49+
abiFilters (*reactNativeArchitectures())
4450
}
4551
}
4652
}

0 commit comments

Comments
 (0)