Skip to content

Commit

Permalink
Merge pull request #485 from android/updateagp
Browse files Browse the repository at this point in the history
Update to AGP 8.1.1, kotlin 1.8.20, and robolectric 4.10.3
  • Loading branch information
brettchabot committed Sep 5, 2023
2 parents 2fc9a4c + a8d4940 commit e60b0b0
Show file tree
Hide file tree
Showing 119 changed files with 253 additions and 225 deletions.
10 changes: 5 additions & 5 deletions integration/ServiceTestRuleSample/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 33
buildToolsVersion rootProject.buildToolsVersion
compileSdk 33
defaultConfig {
applicationId "com.example.android.testing.integrationtesting.ServiceTestRuleSample"
minSdkVersion 14
Expand All @@ -12,9 +11,6 @@ android {

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
abortOnError false
}
productFlavors {
}
testOptions {
Expand All @@ -31,6 +27,10 @@ android {
}
}
}
namespace 'com.example.android.testing.ServiceTestRuleSample'
lint {
abortOnError false
}
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
-->


<manifest package="com.example.android.testing.ServiceTestRuleSample"
xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:icon="@mipmap/ic_launcher"
Expand Down
3 changes: 1 addition & 2 deletions integration/ServiceTestRuleSample/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.agpVersion = "7.3.1"
ext.agpVersion = '8.1.1'
repositories {
// Insert local test repo here
google()
Expand All @@ -24,7 +24,6 @@ allprojects {
}

ext {
buildToolsVersion = "32.0.0"
coreVersion = "1.6.0-alpha01"
extJUnitVersion = "1.2.0-alpha01"
runnerVersion = "1.6.0-alpha03"
Expand Down
3 changes: 3 additions & 0 deletions integration/ServiceTestRuleSample/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
android.nonTransitiveRClass=false
android.useAndroidX=true
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions runner/AndroidJunitRunnerSample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ apply plugin: 'com.android.application'


android {
compileSdkVersion 33
buildToolsVersion rootProject.buildToolsVersion
compileSdk 33
defaultConfig {
applicationId "com.example.android.testing.androidjunitrunnersample"
minSdkVersion 14
Expand Down Expand Up @@ -39,6 +38,7 @@ android {

useLibrary 'android.test.base'
useLibrary 'android.test.mock'
namespace 'com.example.android.testing.androidjunitrunnersample'

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
limitations under the License.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.testing.androidjunitrunnersample" >
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:icon="@drawable/ic_launcher"
Expand Down
2 changes: 1 addition & 1 deletion runner/AndroidJunitRunnerSample/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.agpVersion = "7.3.1"
ext.agpVersion = '8.1.1'
repositories {
// Insert local test repo here
google()
Expand Down
3 changes: 3 additions & 0 deletions runner/AndroidJunitRunnerSample/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
android.nonTransitiveRClass=false
android.useAndroidX=true
android.useAndroidX=true
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions runner/AndroidTestOrchestratorSample/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 33
buildToolsVersion rootProject.buildToolsVersion
compileSdk 33
defaultConfig {
applicationId "com.example.android.testing.androidtestorchestratorsample"
minSdkVersion 14
Expand Down Expand Up @@ -37,6 +36,7 @@ android {
}
}
}
namespace 'com.example.android.testing.androidtestorchestratorsample'
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
limitations under the License.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.testing.androidtestorchestratorsample" >
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:icon="@drawable/ic_launcher"
Expand Down
3 changes: 1 addition & 2 deletions runner/AndroidTestOrchestratorSample/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.agpVersion = "7.3.1"
ext.agpVersion = '8.1.1'
repositories {
// Insert local test repo here
google()
Expand All @@ -24,7 +24,6 @@ allprojects {
}

ext {
buildToolsVersion = "32.0.0"
androidxAnnotationVersion = "1.5.0"
guavaVersion = "31.1-android"
coreVersion = "1.6.0-alpha01"
Expand Down
3 changes: 3 additions & 0 deletions runner/AndroidTestOrchestratorSample/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
android.nonTransitiveRClass=false
android.useAndroidX=true
android.useAndroidX=true
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 31
buildToolsVersion rootProject.buildToolsVersion
compileSdk 33
defaultConfig {
applicationId "com.example.android.testing.androidtestorchestratorsample"
minSdkVersion 14
targetSdkVersion 31
targetSdkVersion 33
versionCode 1
versionName "1.0"

Expand All @@ -22,6 +21,7 @@ android {
testOptions {
execution 'ANDROIDX_TEST_ORCHESTRATOR'
}
namespace 'com.example.android.testing.androidtestorchestratorsample'
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
limitations under the License.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.testing.androidtestorchestratorsample" >
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:icon="@drawable/ic_launcher"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.agpVersion = "7.3.0-beta01"
ext.agpVersion = '8.1.1'
repositories {
// Insert local test repo here
google()
Expand All @@ -24,15 +24,14 @@ allprojects {
}

ext {
buildToolsVersion = "31.0.0"
androidxAnnotationVersion = "1.2.0"
guavaVersion = "30.1.1-android"
coreVersion = "1.4.1-alpha03"
extJUnitVersion = "1.1.4-alpha03"
runnerVersion = "1.4.1-alpha03"
rulesVersion = "1.4.1-alpha03"
testServicesVersion = "1.4.1-alpha03"
orchestratorVersion = "1.4.1-alpha03"
espressoVersion = "3.5.0-alpha03"
coreVersion = "1.6.0-alpha01"
extJUnitVersion = "1.2.0-alpha01"
runnerVersion = "1.6.0-alpha03"
rulesVersion = "1.6.0-alpha01"
testServicesVersion = "1.5.0-alpha01"
orchestratorVersion = "1.5.0-alpha01"
espressoVersion = "3.6.0-alpha01"
truthVersion = "1.1.3"
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
android.useAndroidX=true
android.enableAdditionalTestOutput=false
android.enableAdditionalTestOutput=false
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Jun 01 11:09:45 PDT 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion test_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for p in $(cat projects.conf); do
echo "====================================================================="

pushd $p > /dev/null # Silent pushd
./gradlew $@ testDebug nexusOneApi30DebugAndroidTest | sed "s@^@$p @" # Prefix every line with directory
./gradlew $@ testDebug nexusOneApi30DebugAndroidTest --info | sed "s@^@$p @" # Prefix every line with directory
code=${PIPESTATUS[0]}
if [ "$code" -ne "0" ]; then
exit $code
Expand Down
11 changes: 6 additions & 5 deletions ui/espresso/AccessibilitySample/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 33
buildToolsVersion rootProject.buildToolsVersion
compileSdk 33
defaultConfig {
applicationId "com.example.android.testing.espresso.AccessibilitySample"
minSdkVersion 14
Expand All @@ -14,9 +13,6 @@ android {

multiDexEnabled true
}
lintOptions {
abortOnError false
}
productFlavors {
}
testOptions {
Expand All @@ -40,6 +36,11 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
namespace 'com.example.android.testing.espresso.AccessibilitySample'
testNamespace 'com.example.android.testing.espresso.AccessibilitySample.test'
lint {
abortOnError false
}
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.android.testing.espresso.AccessibilitySample.test"
android:versionCode="1"
android:versionCode="1"
android:versionName="1.0">

<instrumentation android:targetPackage="com.example.android.testing.espresso.AccessibilitySample"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
~ limitations under the License.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.testing.espresso.AccessibilitySample" >
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:icon="@drawable/ic_launcher"
Expand Down
3 changes: 1 addition & 2 deletions ui/espresso/AccessibilitySample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

buildscript {
ext.kotlinVersion = "1.7.10"
ext.agpVersion = "7.3.1"
ext.agpVersion = '8.1.1'
repositories {
// Insert local test repo here
google()
Expand All @@ -26,7 +26,6 @@ allprojects {
}

ext {
buildToolsVersion = "32.0.0"
androidxAnnotationVersion = "1.5.0"
robolectricVersion = "4.9"
extTruthVersion = "1.6.0-alpha01"
Expand Down
3 changes: 3 additions & 0 deletions ui/espresso/AccessibilitySample/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
android.nonTransitiveRClass=false
android.useAndroidX=true

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit e60b0b0

Please sign in to comment.