gradle fix

This commit is contained in:
2025-12-06 13:59:06 +08:00
parent a9688b06de
commit 51e0b9430b

View File

@@ -4,8 +4,9 @@
android {
def winbollProps = new Properties()
def winbollPropsFile = rootProject.file("${winbollFilePath}")
assert(winbollPropsFile.exists())
if(winbollPropsFile.exists()) {
winbollProps.load(new FileInputStream(winbollPropsFile))
}
// 读取秘钥配置文件
//
@@ -14,8 +15,9 @@ android {
//println 'Test keystore path'
//println 'KeyProsFile :' + Boolean.toString(keyPropsFile.exists())
//assert(false)
assert(keyPropsFile.exists())
if(keyPropsFile.exists()) {
keyProps.load(new FileInputStream(keyPropsFile))
}
// 配置签名
signingConfigs {
@@ -298,7 +300,7 @@ android {
// 如果配置了APK额外输出路径就复制一份拷贝到额外路径。
//
if(winbollProps['ExtraAPKOutputPath'] != null ) {
if(winbollProps != null && winbollProps['ExtraAPKOutputPath'] != null ) {
File apkFile = new File(winbollProps['ExtraAPKOutputPath'])
File outCommonDir = apkFile.getParentFile();
String commandAPKName = apkFile.getName();