[go: nahoru, domu]

Revert "Revert "Support for testing different dependency versions""

This reverts commit 4e0409161cc998c8ac8004ff78b6ee404fb37cc2.

Reason for revert: Now that we are pushing the new updated AGP, this OutOfMemory error has a high chance of disappearing, so we are going to test one more time.

Test: ./gradlew bOS

Change-Id: I01b69ca02683a1bfff1dafabb960c344bf73c17b
diff --git a/navigation/common/build.gradle b/navigation/common/build.gradle
index e55c040..24fd3eb 100644
--- a/navigation/common/build.gradle
+++ b/navigation/common/build.gradle
@@ -49,7 +49,7 @@
 
 //used by testCompile safe-args-generator
 android.libraryVariants.all { variant ->
-    def name = variant.buildType.name
+    def name = variant.name
     def suffix = name.capitalize()
     project.tasks.create(name: "jar${suffix}", type: Jar){
         dependsOn variant.javaCompile