Skip to content

Commit

Permalink
avoid uploading .so files with each android release
Browse files Browse the repository at this point in the history
  • Loading branch information
s1rius committed Oct 24, 2023
1 parent 5ae8710 commit cf31b79
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 4 deletions.
3 changes: 1 addition & 2 deletions android/b_android.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
#!/bin/bash
cargo ndk -t armeabi-v7a -t arm64-v8a -t x86 -t x86_64 -o lib-ezlog/src/main/jniLibs build -Zbuild-std -p ezlog --features "android_logger" --release
./gradlew :lib-ezlog:assembleRelease
cargo ndk -t armeabi-v7a -t arm64-v8a -t x86 -t x86_64 -o lib-ezlog/src/main/jniLibs build -Zbuild-std -p ezlog --features "android_logger" --release
3 changes: 2 additions & 1 deletion android/lib-ezlog/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/build
/build
/src/main/jniLibs
10 changes: 9 additions & 1 deletion android/lib-ezlog/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@ dependencies {
testImplementation("junit:junit:4.13.2")
androidTestImplementation "androidx.test:runner:1.5.2"
androidTestImplementation "androidx.test:rules:1.5.0"
}
}


task buildRust(type: Exec) {
workingDir '../'
commandLine 'sh', 'b_android.sh'
}

preBuild.dependsOn buildRust
Binary file not shown.
Binary file not shown.
Binary file removed android/lib-ezlog/src/main/jniLibs/x86/libezlog.so
Binary file not shown.
Binary file not shown.

0 comments on commit cf31b79

Please sign in to comment.