Skip to content

Commit

Permalink
Build Realm Android from Source
Browse files Browse the repository at this point in the history
  • Loading branch information
takameyer committed Dec 13, 2023
1 parent 6a0505c commit 0247c75
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 0 additions & 1 deletion integration-tests/environments/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
"test:android": {
"command": "npm run common",
"dependencies": [
"../../../packages/realm:build:android",
"../../../packages/realm:bundle",
"../../../packages/mocha-reporter:bundle",
"../../../packages/realm-network-transport:bundle"
Expand Down
14 changes: 14 additions & 0 deletions packages/realm/react-native/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,26 @@ android {
defaultConfig {
minSdkVersion rootProject.hasProperty('minSdkVersion') ? rootProject.minSdkVersion : 16
targetSdkVersion rootProject.hasProperty('targetSdkVersion') ? rootProject.targetSdkVersion : 28
externalNativeBuild {
cmake {
arguments '-DANDROID_STL=c++_shared'
targets 'realm-js-android'
cppFlags ''
abiFilters "armeabi-v7a", "x86", "x86_64", "arm64-v8a"
}
}
}
buildTypes {
debug {
jniDebuggable true
}
}
externalNativeBuild {
cmake {
path file('../../bindgen/CMakeLists.txt')
version '3.22.1'
}
}

// Do not strip debug symbols from debug builds of Realm
buildTypes {
Expand Down

0 comments on commit 0247c75

Please sign in to comment.