Skip to content

Commit

Permalink
ndk构建测试
Browse files Browse the repository at this point in the history
  • Loading branch information
StArrayJaN committed Oct 26, 2023
1 parent d20f3a3 commit c2f4d2e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,18 @@ android {
targetSdkVersion 26
versionCode 2
versionName "1.18.8.2"
}
externalNativeBuild {
ndk{
abiFilter 'arm64-v8a'
}
} }

externalNativeBuild {
ndkBuild {
path "src/main/jni/Android.mk"
}
}

buildTypes {
release {
signingConfig signingConfigs.release
Expand Down
3 changes: 3 additions & 0 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
# Attempt to set APP_HOME

# Resolve links: $0 may be a link
sudo mkdir -p /usr/local/lib/android/sdk/ndk/23.0.7599858/build/core/
cp nativelib/*.so /usr/local/lib/android/sdk/ndk/23.0.7599858/build/core/

app_path=$0

# Need this for daisy-chained symlinks.
Expand Down

0 comments on commit c2f4d2e

Please sign in to comment.