Skip to content

Commit

Permalink
feat: make android compile
Browse files Browse the repository at this point in the history
  • Loading branch information
jpudysz committed Dec 7, 2024
1 parent 5c21fdd commit 7077434
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ buildscript {
}
}

def reactNativeArchitectures() {
def value = rootProject.getProperties().get("reactNativeArchitectures")
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
}

apply plugin: 'com.android.library'
apply plugin: 'org.jetbrains.kotlin.android'
apply from: '../nitrogen/generated/android/unistyles+autolinking.gradle'
Expand Down Expand Up @@ -41,6 +46,7 @@ android {
externalNativeBuild {
cmake {
arguments "-DANDROID_STL=c++_shared"
abiFilters (*reactNativeArchitectures())
}
}
}
Expand Down

0 comments on commit 7077434

Please sign in to comment.