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