From 211c778d45fd646686af36e6585080ac9c181530 Mon Sep 17 00:00:00 2001 From: utzcoz Date: Sat, 8 Jul 2023 23:24:22 +0800 Subject: [PATCH] Migrate buildToolVersion to property style The previous function style is deprecated. See https://cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-main:build-system/gradle-api/src/main/java/com/android/build/api/dsl/CommonExtension.kt;l=723?q=buildToolsVersion&ss=android-studio. Signed-off-by: utzcoz --- ui/espresso/DataAdapterSample/app/build.gradle | 2 +- ui/espresso/EspressoDeviceSample/app/build.gradle | 2 +- ui/espresso/IdlingResourceSample/app/build.gradle | 2 +- ui/espresso/IntentsAdvancedSample/app/build.gradle | 2 +- ui/espresso/IntentsBasicSample/app/build.gradle | 2 +- ui/espresso/MultiProcessSample/app/build.gradle | 2 +- ui/espresso/MultiWindowSample/app/build.gradle | 2 +- ui/espresso/RecyclerViewSample/app/build.gradle | 2 +- ui/espresso/WebBasicSample/app/build.gradle | 2 +- ui/uiautomator/BasicSample/app/build.gradle | 2 +- unit/BasicSample/app/build.gradle | 2 +- unit/BasicUnitAndroidTest/app/build.gradle | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ui/espresso/DataAdapterSample/app/build.gradle b/ui/espresso/DataAdapterSample/app/build.gradle index 3eb3301ba..ddbb1f325 100644 --- a/ui/espresso/DataAdapterSample/app/build.gradle +++ b/ui/espresso/DataAdapterSample/app/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 33 - buildToolsVersion rootProject.buildToolsVersion + buildToolsVersion = rootProject.buildToolsVersion defaultConfig { applicationId "com.example.android.testing.espresso.DataAdapterSample" minSdkVersion 14 diff --git a/ui/espresso/EspressoDeviceSample/app/build.gradle b/ui/espresso/EspressoDeviceSample/app/build.gradle index a65bca6e6..3845a9d9a 100644 --- a/ui/espresso/EspressoDeviceSample/app/build.gradle +++ b/ui/espresso/EspressoDeviceSample/app/build.gradle @@ -6,7 +6,7 @@ apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 33 - buildToolsVersion rootProject.buildToolsVersion + buildToolsVersion = rootProject.buildToolsVersion defaultConfig { applicationId "com.example.android.testing.espresso.EspressoDeviceSample" minSdkVersion 14 diff --git a/ui/espresso/IdlingResourceSample/app/build.gradle b/ui/espresso/IdlingResourceSample/app/build.gradle index f02900699..47501d55e 100644 --- a/ui/espresso/IdlingResourceSample/app/build.gradle +++ b/ui/espresso/IdlingResourceSample/app/build.gradle @@ -18,7 +18,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 33 - buildToolsVersion rootProject.buildToolsVersion + buildToolsVersion = rootProject.buildToolsVersion defaultConfig { applicationId "com.example.android.testing.espresso.IdlingResourceSample" diff --git a/ui/espresso/IntentsAdvancedSample/app/build.gradle b/ui/espresso/IntentsAdvancedSample/app/build.gradle index fc31f633b..5e92fb19b 100644 --- a/ui/espresso/IntentsAdvancedSample/app/build.gradle +++ b/ui/espresso/IntentsAdvancedSample/app/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 33 - buildToolsVersion rootProject.buildToolsVersion + buildToolsVersion = rootProject.buildToolsVersion defaultConfig { applicationId "com.example.android.testing.espresso.intents.AdvancedSample" minSdkVersion 14 diff --git a/ui/espresso/IntentsBasicSample/app/build.gradle b/ui/espresso/IntentsBasicSample/app/build.gradle index 3a3a66745..a0d84185d 100644 --- a/ui/espresso/IntentsBasicSample/app/build.gradle +++ b/ui/espresso/IntentsBasicSample/app/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 33 - buildToolsVersion rootProject.buildToolsVersion + buildToolsVersion = rootProject.buildToolsVersion defaultConfig { applicationId "com.example.android.testing.espresso.IntentsBasicSample" minSdkVersion 14 diff --git a/ui/espresso/MultiProcessSample/app/build.gradle b/ui/espresso/MultiProcessSample/app/build.gradle index 5bf853cca..97eba4724 100644 --- a/ui/espresso/MultiProcessSample/app/build.gradle +++ b/ui/espresso/MultiProcessSample/app/build.gradle @@ -18,7 +18,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 33 - buildToolsVersion rootProject.buildToolsVersion + buildToolsVersion = rootProject.buildToolsVersion defaultConfig { applicationId "com.example.android.testing.espresso.multiprocesssample" minSdkVersion 14 diff --git a/ui/espresso/MultiWindowSample/app/build.gradle b/ui/espresso/MultiWindowSample/app/build.gradle index be23191f9..dbbfd2681 100644 --- a/ui/espresso/MultiWindowSample/app/build.gradle +++ b/ui/espresso/MultiWindowSample/app/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 33 - buildToolsVersion rootProject.buildToolsVersion + buildToolsVersion = rootProject.buildToolsVersion defaultConfig { applicationId "com.example.android.testing.espresso.MultiWindowSample" minSdkVersion 14 diff --git a/ui/espresso/RecyclerViewSample/app/build.gradle b/ui/espresso/RecyclerViewSample/app/build.gradle index 2904c049a..516b3ecf9 100644 --- a/ui/espresso/RecyclerViewSample/app/build.gradle +++ b/ui/espresso/RecyclerViewSample/app/build.gradle @@ -18,7 +18,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 33 - buildToolsVersion rootProject.buildToolsVersion + buildToolsVersion = rootProject.buildToolsVersion defaultConfig { applicationId "com.example.android.testing.espresso.RecyclerViewSample" minSdkVersion 14 diff --git a/ui/espresso/WebBasicSample/app/build.gradle b/ui/espresso/WebBasicSample/app/build.gradle index ae1cd9734..990abee07 100644 --- a/ui/espresso/WebBasicSample/app/build.gradle +++ b/ui/espresso/WebBasicSample/app/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 33 - buildToolsVersion rootProject.buildToolsVersion + buildToolsVersion = rootProject.buildToolsVersion defaultConfig { applicationId "com.example.android.testing.espresso.web.BasicSample" minSdkVersion 14 diff --git a/ui/uiautomator/BasicSample/app/build.gradle b/ui/uiautomator/BasicSample/app/build.gradle index 1aa4d5d71..226847acd 100644 --- a/ui/uiautomator/BasicSample/app/build.gradle +++ b/ui/uiautomator/BasicSample/app/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 33 - buildToolsVersion rootProject.buildToolsVersion + buildToolsVersion = rootProject.buildToolsVersion defaultConfig { applicationId "com.example.android.testing.uiautomator.BasicSample" minSdkVersion 18 diff --git a/unit/BasicSample/app/build.gradle b/unit/BasicSample/app/build.gradle index 68bd91064..757174488 100644 --- a/unit/BasicSample/app/build.gradle +++ b/unit/BasicSample/app/build.gradle @@ -18,7 +18,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 30 - buildToolsVersion rootProject.buildToolsVersion + buildToolsVersion = rootProject.buildToolsVersion defaultConfig { applicationId "com.example.android.testing.unittesting.BasicSample" minSdkVersion 14 diff --git a/unit/BasicUnitAndroidTest/app/build.gradle b/unit/BasicUnitAndroidTest/app/build.gradle index 325d10ae5..f1565e484 100644 --- a/unit/BasicUnitAndroidTest/app/build.gradle +++ b/unit/BasicUnitAndroidTest/app/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 30 - buildToolsVersion rootProject.buildToolsVersion + buildToolsVersion = rootProject.buildToolsVersion defaultConfig { applicationId "com.example.android.testing.unittesting.basicunitandroidtest"