gradle fix
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user