t1.run()
wsUpload在app / build.gradle文件的底部定义在外部并阻塞 我希望它执行ws_upload.sh脚本,然后将apk上传到结构测试版。
在android块中我有几个productFlavors
task wsUpload(type: Exec) {
commandLine '../scripts/ws_upload.sh'
args = [rootProject.ext.VERSION_CODE]
crashlyticsUploadDistributionMinAPI16ProdRelease
}
但是,当我尝试同步时,我收到flavorDimensions "api", "mode"
productFlavors {
// Define separate dev and prod product flavors.
dev {
}
prod {
}
minAPI21 {
}
minAPI16 {
}
}