From 2af0200ea721ed6066630d0f6aaf2df2a048d71a Mon Sep 17 00:00:00 2001 From: Hilal Alsibai Date: Tue, 25 Feb 2020 19:10:10 -0800 Subject: [PATCH] Update to AGP 3.6 Summary: Newest version of AGP. Fixes #233 Reviewed By: sjkirby Differential Revision: D20103032 fbshipit-source-id: 57ffe559c88a0d13049b520a8704fa0f8565490e --- .../facebook/testing/screenshot/build/PullScreenshotsTask.kt | 2 +- versions.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/kotlin/com/facebook/testing/screenshot/build/PullScreenshotsTask.kt b/plugin/src/main/kotlin/com/facebook/testing/screenshot/build/PullScreenshotsTask.kt index 720ff831..6cb762fc 100644 --- a/plugin/src/main/kotlin/com/facebook/testing/screenshot/build/PullScreenshotsTask.kt +++ b/plugin/src/main/kotlin/com/facebook/testing/screenshot/build/PullScreenshotsTask.kt @@ -47,7 +47,7 @@ open class PullScreenshotsTask : ScreenshotTask() { val packageTask = variant.packageApplicationProvider.orNull ?: throw IllegalArgumentException("Can't find package application provider") - apkPath = File(packageTask.outputDirectory, output.outputFileName) + apkPath = File(packageTask.outputDirectory.asFile.get(), output.outputFileName) } @TaskAction diff --git a/versions.gradle b/versions.gradle index 4c1318f6..41acb56b 100644 --- a/versions.gradle +++ b/versions.gradle @@ -27,7 +27,7 @@ ext { ] plugs = [ - agp : "com.android.tools.build:gradle:3.5.1", + agp : "com.android.tools.build:gradle:3.6.0", screenshot : "com.facebook.testing.screenshot:plugin:$screenshotTestVersion", kotlin : "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}", versions : 'com.github.ben-manes:gradle-versions-plugin:0.20.0'