Flavor check for artifact upload
This commit is contained in:
@@ -206,17 +206,6 @@ static def formatString(String value) {
|
||||
return '"' + value + '"'
|
||||
}
|
||||
|
||||
/*artifacts {
|
||||
if (project.hasProperty('FLAVOR')) {
|
||||
if ("$FLAVOR" == "PROD")
|
||||
archives file('build/outputs/apk/prod/release/app-prod-release.apk')
|
||||
else if ("$FLAVOR" == "QA")
|
||||
archives file('build/outputs/apk/qa/release/app-qa-release.apk')
|
||||
else
|
||||
archives file('build/outputs/apk/dev/release/app-dev-release.apk')
|
||||
}
|
||||
}*/
|
||||
|
||||
ext {
|
||||
version_kotlin_coroutines = '1.3.2'
|
||||
lottie_version = '4.2.2'
|
||||
@@ -249,7 +238,12 @@ publishing {
|
||||
} else {
|
||||
version = "navi_v$VERSION_NAME-SNAPSHOT"
|
||||
}
|
||||
artifact("build/outputs/apk/prod/release/app-prod-release.apk")
|
||||
if ("$FLAVOR" == "PROD")
|
||||
artifact("build/outputs/apk/prod/release/app-prod-release.apk")
|
||||
else if ("$FLAVOR" == "QA")
|
||||
artifact("build/outputs/apk/qa/release/app-qa-release.apk")
|
||||
else
|
||||
artifact("build/outputs/apk/dev/release/app-dev-release.apk")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user