version:1.0.1
fix: update:增加W5A平台
This commit is contained in:
@@ -108,9 +108,37 @@ android {
|
|||||||
v1SigningEnabled true
|
v1SigningEnabled true
|
||||||
v2SigningEnabled true
|
v2SigningEnabled true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
W5A {
|
||||||
|
storeFile file("keystore/Unisoc_W5A.jks")
|
||||||
|
storePassword "123456"
|
||||||
|
keyAlias "Unisoc_W5A"
|
||||||
|
keyPassword "123456"
|
||||||
|
v2SigningEnabled false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
W5ADebug.initWith(debug)
|
||||||
|
W5ADebug {
|
||||||
|
versionNameSuffix "-debug"
|
||||||
|
debuggable true
|
||||||
|
signingConfig signingConfigs.W5A
|
||||||
|
buildConfigField "String", "platform", '"YKWA5E"'
|
||||||
|
manifestPlaceholders = [
|
||||||
|
Baidu_AK: "YCmfZSw54O992lChzS3c4roYioitT54h"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
W5ARelease.initWith(release)
|
||||||
|
W5ARelease {
|
||||||
|
signingConfig signingConfigs.W5A
|
||||||
|
buildConfigField "String", "platform", '"YKWA5E"'
|
||||||
|
manifestPlaceholders = [
|
||||||
|
Baidu_AK: "YCmfZSw54O992lChzS3c4roYioitT54h"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
Aigo1071Debug.initWith(debug)
|
Aigo1071Debug.initWith(debug)
|
||||||
Aigo1071Debug {
|
Aigo1071Debug {
|
||||||
versionNameSuffix "-debug"
|
versionNameSuffix "-debug"
|
||||||
@@ -213,7 +241,7 @@ android {
|
|||||||
applicationVariants.all { variant ->
|
applicationVariants.all { variant ->
|
||||||
variant.outputs.each { output ->
|
variant.outputs.each { output ->
|
||||||
if (outputFile != null) {
|
if (outputFile != null) {
|
||||||
def fileName = "${appName()}-${variant.versionCode}-V${variant.versionName}-${releaseTime()}-${buildType.name}.apk"
|
def fileName = "${appName()}_${variant.versionCode}_V${variant.versionName}_${releaseTime()}_${buildType.name}.apk"
|
||||||
output.outputFileName = fileName
|
output.outputFileName = fileName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -233,7 +261,7 @@ android {
|
|||||||
variant.outputs.each { output ->
|
variant.outputs.each { output ->
|
||||||
def outputFile = ""
|
def outputFile = ""
|
||||||
if (outputFile != null) {
|
if (outputFile != null) {
|
||||||
def fileName = "${appName()}-${variant.versionCode}-V${variant.versionName}-${releaseTime()}-${buildType.name}.apk"
|
def fileName = "${appName()}_${variant.versionCode}_V${variant.versionName}_${releaseTime()}_${buildType.name}.apk"
|
||||||
output.outputFileName = new File(outputFile, fileName)
|
output.outputFileName = new File(outputFile, fileName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
app/keystore/Unisoc_W5A.jks
Normal file
BIN
app/keystore/Unisoc_W5A.jks
Normal file
Binary file not shown.
20
build.gradle
20
build.gradle
@@ -4,11 +4,13 @@ buildscript {
|
|||||||
ext.kotlin_version = '1.4.32'
|
ext.kotlin_version = '1.4.32'
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
mavenCentral()
|
// mavenCentral()
|
||||||
maven { url "https://jitpack.io" }
|
maven { url "https://jitpack.io" }
|
||||||
maven { url 'http://developer.huawei.com/repo/' }
|
maven { url 'https://developer.huawei.com/repo/' }
|
||||||
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
|
maven { url 'https://maven.aliyun.com/repository/central' }
|
||||||
maven { url 'http://maven.aliyun.com/nexus/content/repositories/releases/' }
|
maven { url "https://maven.aliyun.com/repository/jcenter" }
|
||||||
|
maven { url 'https://maven.aliyun.com/repository/public' }
|
||||||
|
maven { url 'https://maven.aliyun.com/repository/google' }
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@@ -23,11 +25,13 @@ buildscript {
|
|||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
mavenCentral()
|
// mavenCentral()
|
||||||
maven { url "https://jitpack.io" }
|
maven { url "https://jitpack.io" }
|
||||||
maven { url 'http://developer.huawei.com/repo/' }
|
maven { url 'https://developer.huawei.com/repo/' }
|
||||||
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
|
maven { url 'https://maven.aliyun.com/repository/central' }
|
||||||
maven { url 'http://maven.aliyun.com/nexus/content/repositories/releases/' }
|
maven { url "https://maven.aliyun.com/repository/jcenter" }
|
||||||
|
maven { url 'https://maven.aliyun.com/repository/public' }
|
||||||
|
maven { url 'https://maven.aliyun.com/repository/google' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user