Skip to content

Commit 09ea93b

Browse files
authored
Adds abi filters to fix compilation when building RN from source (#393)
1 parent 4b6e898 commit 09ea93b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

android/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ def getExtOrIntegerDefault(name) {
2727
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["OPSQLite_" + name]).toInteger()
2828
}
2929

30+
def reactNativeArchitectures() {
31+
def value = project.getProperties().get("reactNativeArchitectures")
32+
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
33+
}
34+
3035
def useSQLCipher = false
3136
def useLibsql = false
3237
def useCRSQLite = false
@@ -168,7 +173,7 @@ android {
168173
}
169174

170175
cppFlags "-O3 -frtti -fexceptions -Wall -fstack-protector-all"
171-
176+
abiFilters(*reactNativeArchitectures())
172177
arguments "-DANDROID_STL=c++_shared",
173178
"-DSQLITE_FLAGS='$sqliteFlags'",
174179
"-DUSE_SQLCIPHER=${useSQLCipher ? 1 : 0}",

0 commit comments

Comments
 (0)