2021.04.08
完善ndk使用
This commit is contained in:
@@ -16,7 +16,7 @@ android {
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.tt.ttutils"
|
||||
minSdkVersion 16
|
||||
minSdkVersion 24
|
||||
targetSdkVersion 30
|
||||
// versionCode 1
|
||||
// versionName "1.0"
|
||||
@@ -26,8 +26,8 @@ android {
|
||||
|
||||
ndk {
|
||||
//选择要添加的对应 cpu 类型的 .so 库。
|
||||
abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a','x86'
|
||||
// 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
|
||||
abiFilters 'armeabi-v7a', 'arm64-v8a'
|
||||
// 还可以添加 'armeabi' , 'x86', 'x86_64', 'mips', 'mips64'
|
||||
}
|
||||
manifestPlaceholders = [
|
||||
JPUSH_PKGNAME: applicationId,
|
||||
@@ -35,6 +35,12 @@ android {
|
||||
JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
|
||||
]
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
exclude 'META-INF/DEPENDENCIES'
|
||||
exclude 'META-INF/LICENSE'
|
||||
@@ -72,7 +78,7 @@ android {
|
||||
}
|
||||
}
|
||||
sourceSets {
|
||||
beta.res.srcDirs = ['src/beta/res']
|
||||
beta.res.srcDirs = ['src/beta/res']
|
||||
}
|
||||
|
||||
//签名
|
||||
@@ -97,6 +103,15 @@ android {
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
externalNativeBuild {
|
||||
ndkBuild {
|
||||
path 'src/main/jni/Android.mk'
|
||||
}
|
||||
}
|
||||
sourceSets.main {
|
||||
jni.srcDirs = []
|
||||
jniLibs.srcDirs = ['src/main/jniLibs']
|
||||
}
|
||||
debug {
|
||||
// 显示Log
|
||||
buildConfigField "boolean", "LOG_DEBUG", "true"
|
||||
@@ -169,6 +184,9 @@ dependencies {
|
||||
//Jackson
|
||||
implementation 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
|
||||
implementation 'org.codehaus.jackson:jackson-core-asl:1.9.13'
|
||||
//view绑定
|
||||
implementation 'com.jakewharton:butterknife:10.1.0'
|
||||
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
|
||||
//二维码
|
||||
implementation 'com.google.zxing:core:3.3.0'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user