You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
3.1 KiB
Groovy
108 lines
3.1 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
android {
|
|
compileSdk 32
|
|
|
|
defaultConfig {
|
|
applicationId "com.dowse.i1app"
|
|
minSdk 28
|
|
targetSdk 32
|
|
|
|
//版本号
|
|
versionCode 62
|
|
versionName "3.0.${defaultConfig.versionCode}.101.${releaseTime()}"
|
|
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
ndk {
|
|
//设置支持的SO库架构
|
|
abiFilters 'arm64-v8a' //, 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
|
|
}
|
|
}
|
|
|
|
signingConfigs {
|
|
debug {
|
|
storeFile file("../sign/platform.jks")
|
|
storePassword 'dowse_mtk8788'
|
|
keyAlias 'ds_mt8788_key'
|
|
keyPassword 'dowse_mtk8788'
|
|
}
|
|
|
|
release {
|
|
storeFile file("../sign/platform.jks")
|
|
storePassword 'dowse_mtk8788'
|
|
keyAlias 'ds_mt8788_key'
|
|
keyPassword 'dowse_mtk8788'
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
shrinkResources true
|
|
minifyEnabled true
|
|
buildConfigField "java.util.Date", "BUILD_TIME", "new java.util.Date(" + System.currentTimeMillis() + "L)"
|
|
proguardFiles 'proguard-rules.pro'
|
|
//proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.release
|
|
}
|
|
debug {
|
|
shrinkResources false
|
|
minifyEnabled false
|
|
buildConfigField "java.util.Date", "BUILD_TIME", "new java.util.Date(" + System.currentTimeMillis() + "L)"
|
|
proguardFiles 'proguard-rules.pro'
|
|
//proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
|
|
flavorDimensions "default"
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
sourceSets {
|
|
main {
|
|
aidl {
|
|
srcDirs 'src\\main\\aidl'
|
|
}
|
|
}
|
|
}
|
|
namespace 'com.dowse.i1app'
|
|
android.applicationVariants.all {
|
|
variant ->
|
|
variant.outputs.all {
|
|
def debugStr
|
|
if (variant.buildType.name == 'release') {
|
|
debugStr = "-re"
|
|
} else if (variant.buildType.name == 'debug') {
|
|
debugStr = "-debug"
|
|
}
|
|
outputFileName = "ds_i1gw-${defaultConfig.versionName}${debugStr}.apk"
|
|
}
|
|
}
|
|
|
|
packagingOptions {
|
|
pickFirst 'lib/arm64-v8a/libds_camera.so'
|
|
}
|
|
}
|
|
|
|
|
|
static String releaseTime() {
|
|
return new Date().format("MMdd", TimeZone.getDefault())//"yyyy.MM.dd.HHmm"
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'com.tencent:mmkv:1.2.15'
|
|
implementation 'org.greenrobot:eventbus:3.3.1'
|
|
// app崩溃之后自动重启
|
|
implementation 'com.jakewharton:process-phoenix:2.1.2'
|
|
|
|
implementation 'com.google.code.gson:gson:2.10.1'
|
|
implementation 'com.kyleduo.switchbutton:library:2.1.0'
|
|
implementation project(':i1base')
|
|
implementation(fileTree("../../i1base/i1aar"))
|
|
} |