version:4.5

fix:
update:优化aihua版本
This commit is contained in:
2022-04-25 21:10:34 +08:00
parent 7903e3c21b
commit 6bd36a3afb
7 changed files with 196 additions and 118 deletions

View File

@@ -2,7 +2,7 @@ buildscript {
repositories {
google()
mavenCentral()
maven {url 'http://developer.huawei.com/repo/'}
maven { url 'http://developer.huawei.com/repo/' }
maven { url "https://jitpack.io" }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
@@ -43,7 +43,7 @@ android {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
Set<File> fileSet = options.bootstrapClasspath.getFiles()
List<File> newFileList = new ArrayList<>();
List<File> newFileList = new ArrayList<>();
//JAVA语法可连续调用输入参数建议为相对路径
newFileList.add(new File("libs/framework.jar"))
//最后将原始参数添加
@@ -65,19 +65,17 @@ android {
defaultConfig {
minSdkVersion 26
targetSdkVersion 28
versionCode 35
versionName "4.4"
versionCode 36
versionName "4.5"
ndk {
//选择要添加的对应 cpu 类型的 .so 库。
abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
// 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
}
manifestPlaceholders = [
XG_ACCESS_ID : "1500026378",
XG_ACCESS_KEY: "AH5QD9ZMBJ6R",
// JPUSH_PKGNAME: "com.aoleyun.os",
// JPUSH_APPKEY : "0c7ba5a1622dba78d5bd00cc", //JPush 上注册的包名对应的 Appkey.
// JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
]
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -86,16 +84,16 @@ android {
//签名
signingConfigs {
alldocube {
zhanRui {
storeFile file("src/doc/zhanxun.keystore")
storePassword "123456"
keyAlias "zhanxun"
keyPassword "123456"
v1SigningEnabled true
v2SigningEnabled false
v2SigningEnabled true
}
alldocubeDebug {
zhanRuiUserdebug {
storeFile file("src/doc/zhanxunUserdebug.keystore")
storePassword "123456"
keyAlias "zhanxunUserdebug"
@@ -103,32 +101,55 @@ android {
v1SigningEnabled true
v2SigningEnabled false
}
mtk {
storeFile file("src/doc/xueshibaoos.jks")
storePassword "123456"
keyAlias "xueshibaoos"
keyPassword "123456"
v1SigningEnabled true
v2SigningEnabled true
}
}
buildTypes {
alldocubeDebug.initWith(debug)
alldocubeDebug {
zhanRuiDebug.initWith(debug)
zhanRuiDebug {
versionNameSuffix "-debug"
buildConfigField "String", "platform", '"ZhanRui"'
debuggable true
signingConfig signingConfigs.zhanRui
}
zhanRuiRelease.initWith(release)
zhanRuiRelease {
buildConfigField "String", "platform", '"ZhanRui"'
signingConfig signingConfigs.zhanRui
}
alldocubeDebug.initWith(debug)
alldocubeDebug {
buildConfigField "String", "platform", '"ZhanRuiCube"'
debuggable true
versionNameSuffix "-debug"
signingConfig signingConfigs.alldocubeDebug
signingConfig signingConfigs.zhanRuiUserdebug
}
alldocubeDebugReleas.initWith(release)
alldocubeDebugReleas {
buildConfigField "String", "platform", '"ZhanRui"'
signingConfig signingConfigs.alldocubeDebug
buildConfigField "String", "platform", '"ZhanRuiCube"'
signingConfig signingConfigs.zhanRuiUserdebug
}
debug {
buildConfigField "String", "platform", '"ZhanRui"'
buildConfigField "String", "platform", '"MTK"'
debuggable true
versionNameSuffix "-debug"
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
//Zipalign优化
zipAlignEnabled true
signingConfig signingConfigs.alldocube
signingConfig signingConfigs.mtk
applicationVariants.all { variant ->
variant.outputs.each { output ->
def outputFile = output.outputFile
@@ -141,7 +162,7 @@ android {
}
release {
buildConfigField "String", "platform", '"ZhanRui"'
buildConfigField "String", "platform", '"MTK"'
//混淆
minifyEnabled false
//前一部分代表系统默认的android程序的混淆文件该文件已经包含了基本的混淆声明后一个文件是自己的定义混淆文件
@@ -149,7 +170,7 @@ android {
//Zipalign优化
zipAlignEnabled true
//签名
signingConfig signingConfigs.alldocube
signingConfig signingConfigs.mtk
//将release版本的包名重命名加上版本及日期
applicationVariants.all { variant ->
variant.outputs.each { output ->