From b6ca66ce25d45a5428089d20a10400c1a7c27294 Mon Sep 17 00:00:00 2001 From: Josh Feinberg Date: Tue, 22 Mar 2022 17:07:17 -0500 Subject: [PATCH] Upgrade gradle and plugin version for library and sample app --- build.gradle | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- sample/gradle/wrapper/gradle-wrapper.properties | 2 +- .../detector/sample/ExampleAndroidTest.kt | 16 ++++++++++++++++ 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 sample/sample-app/src/androidTest/java/com/dropbox/detector/sample/ExampleAndroidTest.kt diff --git a/build.gradle b/build.gradle index a50e08f0..36395522 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ buildscript { } } dependencies { - classpath "com.android.tools.build:gradle:7.0.4" + classpath "com.android.tools.build:gradle:7.1.2" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath("org.jlleitschuh.gradle:ktlint-gradle:10.2.0") classpath("org.jacoco:org.jacoco.core:0.8.7") diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 4ff9b259..e0ffc7e4 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip diff --git a/sample/gradle/wrapper/gradle-wrapper.properties b/sample/gradle/wrapper/gradle-wrapper.properties index 1cc659f5..ad9e0cbe 100644 --- a/sample/gradle/wrapper/gradle-wrapper.properties +++ b/sample/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip diff --git a/sample/sample-app/src/androidTest/java/com/dropbox/detector/sample/ExampleAndroidTest.kt b/sample/sample-app/src/androidTest/java/com/dropbox/detector/sample/ExampleAndroidTest.kt new file mode 100644 index 00000000..544559fc --- /dev/null +++ b/sample/sample-app/src/androidTest/java/com/dropbox/detector/sample/ExampleAndroidTest.kt @@ -0,0 +1,16 @@ +package com.dropbox.detector.sample + +import org.junit.Assert.assertEquals +import org.junit.Test + +/** + * Example local unit test, which will execute on the development machine (host). + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +class ExampleAndroidTest { + @Test + fun addition_isCorrect() { + assertEquals(5, 2 + 2) + } +}