-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
49 lines (45 loc) · 1.29 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
apply plugin: 'com.android.library'
android {
compileSdkVersion 32
defaultConfig {
minSdkVersion 19
targetSdkVersion 32
versionCode 1
versionName "1.0"
//ndk编译
ndk{
abiFilters "armeabi-v7a","arm64-v8a","x86_64", "x86" //输出指定三种abi体系结构下的so库。
}
externalNativeBuild {
cmake {
cppFlags ''
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets.main {
jniLibs.srcDirs 'src/main/libs'
jni.srcDirs = [] // This prevents the auto generation of Android.mk
}
ndkVersion '21.4.7075529'
buildToolsVersion '32.0.0'
externalNativeBuild {
externalNativeBuild {
ndkBuild {
// jni文件存放路径
path 'src/main/jni/Android.mk'
}
}
}
}
if (rootProject.file('gradle/gradle-mvn-push.gradle').exists()) {
apply from: rootProject.file('gradle/gradle-mvn-push.gradle')
}
if (rootProject.file('gradle/gradle-bintray-upload.gradle').exists()) {
apply from: rootProject.file('gradle/gradle-bintray-upload.gradle')
}