Skip to content

Commit

Permalink
move src/main/jniLibs to libs/jniLibs to fix jniLibs local conflict i…
Browse files Browse the repository at this point in the history
…ssue, and set matterFromSource = false by default
  • Loading branch information
xylophone21 authored and restyled-io[bot] committed Aug 27, 2021
1 parent d84f29a commit 30f40c9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/examples/android_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ gn gen --check --fail-on-unused-args out/"android_$TARGET_CPU" --args="target_os
ninja -C out/"android_$TARGET_CPU" src/setup_payload/java src/controller/java default

rsync -a out/"android_$TARGET_CPU"/lib/*.jar src/android/CHIPTool/app/libs
rsync -a out/"android_$TARGET_CPU"/lib/jni/* src/android/CHIPTool/app/src/main/jniLibs
rsync -a out/"android_$TARGET_CPU"/lib/jni/* src/android/CHIPTool/app/libs/jniLibs
7 changes: 7 additions & 0 deletions src/android/CHIPTool/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ android {
}
}
}
else {
sourceSets {
main {
jniLibs.srcDirs = ['libs/jniLibs']
}
}
}
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion src/android/CHIPTool/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ext {
// true to build SDK from source code and debug in Android Stduio
// use scripts/examples/android_app_as.sh to preapre it
// false to use SDK prebuilt by scripts/examples/android_app.sh
matterFromSource = true
matterFromSource = false
}

task clean(type: Delete) {
Expand Down

0 comments on commit 30f40c9

Please sign in to comment.