cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [14/45] android commit: CB-9392 Fixed printing flavored versions. This closes #184
Date Wed, 23 Sep 2015 19:58:25 GMT
CB-9392 Fixed printing flavored versions. This closes #184


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/29ff5402
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/29ff5402
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/29ff5402

Branch: refs/heads/5.0.x
Commit: 29ff54024374675c3f80c23e66520599bb3dd335
Parents: e124669
Author: Jose Pereira <onaips@gmail.com>
Authored: Fri Jun 19 11:33:45 2015 -0700
Committer: Joe Bowser <bowserj@apache.org>
Committed: Thu Aug 20 13:48:02 2015 -0700

----------------------------------------------------------------------
 bin/templates/project/build.gradle | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/29ff5402/bin/templates/project/build.gradle
----------------------------------------------------------------------
diff --git a/bin/templates/project/build.gradle b/bin/templates/project/build.gradle
index 289b7af..4195308 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)
     }
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message