启动图,签名更换
This commit is contained in:
@@ -7,9 +7,12 @@ plugins {
|
||||
apply plugin: 'top.niunaijun.blackobfuscator'
|
||||
apply plugin: 'walle'
|
||||
|
||||
def bundledReleaseKeystore = file('../keystore/nut.jks')
|
||||
def legacyBundledReleaseKeystore = file('../keystore/nut.jks.old')
|
||||
def resolvedReleaseKeystore = bundledReleaseKeystore.exists() ? bundledReleaseKeystore : legacyBundledReleaseKeystore
|
||||
// 本产品独立签名:jks 与密码放在 android/key.properties(已 gitignore,勿提交),与其他产品不共用
|
||||
def keystoreProperties = new Properties()
|
||||
def keystorePropertiesFile = rootProject.file('key.properties')
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
keystorePropertiesFile.withInputStream { keystoreProperties.load(it) }
|
||||
}
|
||||
|
||||
android {
|
||||
namespace "com.xvproject"
|
||||
@@ -31,7 +34,7 @@ android {
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.jydj.tzzoer"
|
||||
applicationId "com.hgmj.manju"
|
||||
minSdk = 24
|
||||
targetSdk = 36
|
||||
versionCode = 1
|
||||
@@ -40,11 +43,11 @@ android {
|
||||
|
||||
signingConfigs {
|
||||
release {
|
||||
storeFile resolvedReleaseKeystore
|
||||
storePassword 'jiahua123456'
|
||||
storeFile keystoreProperties['storeFile'] ? rootProject.file(keystoreProperties['storeFile']) : null
|
||||
storePassword keystoreProperties['storePassword']
|
||||
storeType 'jks'
|
||||
keyAlias 'nut'
|
||||
keyPassword 'jiahua123456'
|
||||
keyAlias keystoreProperties['keyAlias']
|
||||
keyPassword keystoreProperties['keyPassword']
|
||||
v1SigningEnabled false
|
||||
v2SigningEnabled true
|
||||
}
|
||||
@@ -81,7 +84,7 @@ android {
|
||||
println "outputFileDir= ${outputFileDir}"
|
||||
def abi = filters.find { it.filterType.toString() == "ABI" }?.identifier
|
||||
def abiSuffix = (variant.outputs.size() > 1 && abi) ? "_${abi}" : ""
|
||||
def path = "91dj" + '_release' + "_" + variant.versionName + abiSuffix + "_" + createTime + ".apk"
|
||||
def path = "hgmj" + '_release' + "_" + variant.versionName + abiSuffix + "_" + createTime + ".apk"
|
||||
println("path= " + path)
|
||||
outputFileName = path
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user