|
|
|
@ -1,6 +1,21 @@ |
|
|
|
|
apply plugin: 'com.android.application' |
|
|
|
|
|
|
|
|
|
android { |
|
|
|
|
|
|
|
|
|
signingConfigs { |
|
|
|
|
debug { |
|
|
|
|
storeFile file('/ruijapkkey') |
|
|
|
|
storePassword 'ruijie888888' |
|
|
|
|
keyAlias 'ruijie' |
|
|
|
|
keyPassword 'ruijie888888' |
|
|
|
|
} |
|
|
|
|
release { |
|
|
|
|
storeFile file('/ruijapkkey') |
|
|
|
|
storePassword 'ruijie888888' |
|
|
|
|
keyAlias 'ruijie' |
|
|
|
|
keyPassword 'ruijie888888' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
compileSdkVersion 29 |
|
|
|
|
buildToolsVersion "29.0.3" |
|
|
|
|
defaultConfig { |
|
|
|
@ -25,8 +40,21 @@ android { |
|
|
|
|
} |
|
|
|
|
buildTypes { |
|
|
|
|
release { |
|
|
|
|
minifyEnabled false |
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
|
|
|
|
zipAlignEnabled true |
|
|
|
|
debuggable false |
|
|
|
|
// minifyEnabled true //是否混淆 |
|
|
|
|
// shrinkResources true //是否去除无效的资源文件 |
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
|
|
|
|
signingConfig signingConfigs.release |
|
|
|
|
} |
|
|
|
|
debug { |
|
|
|
|
debuggable true |
|
|
|
|
zipAlignEnabled true |
|
|
|
|
debuggable true |
|
|
|
|
// minifyEnabled false //是否混淆,注意release出现的bug有可能是因为混淆造成的 |
|
|
|
|
// shrinkResources false //是否去除无效的资源文件 |
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
|
|
|
|
signingConfig signingConfigs.debug |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
lintOptions { |
|
|
|
@ -47,6 +75,20 @@ android { |
|
|
|
|
pickFirst 'lib/x86_64/libc++_shared.so' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
android.applicationVariants.all { |
|
|
|
|
variant -> |
|
|
|
|
variant.outputs.all { output -> |
|
|
|
|
if (variant.buildType.name == 'debug') { |
|
|
|
|
output.outputFileName = "unionhealthTV_${android.defaultConfig.versionName}_${getNowTime()}_debug.apk" |
|
|
|
|
} else if (variant.buildType.name == 'release') { |
|
|
|
|
output.outputFileName = "unionhealthTV_${android.defaultConfig.versionName}_${getNowTime()}_release.apk" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static def getNowTime() { |
|
|
|
|
return new Date().format("MM-dd_HH.mm") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
dependencies { |
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar']) |
|
|
|
|