diff --git a/bin/templates/project/build.gradle b/bin/templates/project/build.gradle index 289b7afa..41953081 100644 --- a/bin/templates/project/build.gradle +++ b/bin/templates/project/build.gradle @@ -152,11 +152,8 @@ task cdvPrintProps << { println('cdvDebugSigningPropertiesFile=' + cdvDebugSigningPropertiesFile) println('cdvBuildArch=' + cdvBuildArch) println('computedVersionCode=' + android.defaultConfig.versionCode) - if (android.productFlavors.has('armv7')) { - println('computedArmv7VersionCode=' + android.productFlavors.armv7.versionCode) - } - if (android.productFlavors.has('x86')) { - println('computedx86VersionCode=' + android.productFlavors.x86.versionCode) + android.productFlavors.each { flavor -> + println('computed' + flavor.name.capitalize() + 'VersionCode=' + flavor.versionCode) } }