Flavor check for artifact upload

This commit is contained in:
rahul bhat
2022-05-26 12:02:38 +05:30
parent 15bf9a1464
commit 35e2b1d7aa

View File

@@ -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")
}
}
}