Skip to content

Commit 3c1e69f

Browse files
compileSdkVersion 33; androidx.activity/appcompat upgrades; transitives
1 parent 44e334f commit 3c1e69f

File tree

86 files changed

+414
-306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+414
-306
lines changed

benchmarks/dungeon-benchmark/build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import com.squareup.workflow1.libsCatalog
2+
import com.squareup.workflow1.version
3+
14
plugins {
25
id("com.android.test")
36
id("org.jetbrains.kotlin.android")
@@ -7,7 +10,7 @@ plugins {
710
// dependencies that those include.
811

912
android {
10-
compileSdk = 32
13+
compileSdk = libsCatalog.version("compileSdk").toInt()
1114

1215
compileOptions {
1316
sourceCompatibility = JavaVersion.VERSION_1_8
@@ -21,7 +24,7 @@ android {
2124

2225
defaultConfig {
2326
minSdk = 23
24-
targetSdk = 32
27+
targetSdk = libsCatalog.version("targetSdk").toInt()
2528

2629
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2730
}

benchmarks/performance-poetry/complex-benchmark/build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import com.squareup.workflow1.libsCatalog
2+
import com.squareup.workflow1.version
3+
14
plugins {
25
id("com.android.test")
36
id("org.jetbrains.kotlin.android")
@@ -7,7 +10,7 @@ plugins {
710
// dependencies that those include.
811

912
android {
10-
compileSdk = 32
13+
compileSdk = libsCatalog.version("compileSdk").toInt()
1114

1215
compileOptions {
1316
sourceCompatibility = JavaVersion.VERSION_1_8
@@ -21,7 +24,7 @@ android {
2124

2225
defaultConfig {
2326
minSdk = 26
24-
targetSdk = 32
27+
targetSdk = libsCatalog.version("targetSdk").toInt()
2528

2629
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2730
}

benchmarks/performance-poetry/complex-poetry/build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
import com.squareup.workflow1.libsCatalog
2+
import com.squareup.workflow1.version
3+
14
plugins {
25
id("com.android.application")
36
`kotlin-android`
47
id("kotlin-parcelize")
58
}
69
android {
7-
compileSdk = 32
10+
compileSdk = libsCatalog.version("compileSdk").toInt()
811

912
compileOptions {
1013
sourceCompatibility = JavaVersion.VERSION_1_8
@@ -16,7 +19,7 @@ android {
1619
}
1720

1821
defaultConfig {
19-
targetSdk = 32
22+
targetSdk = libsCatalog.version("targetSdk").toInt()
2023
minSdk = 29
2124
applicationId = "com.squareup.benchmarks.performance.complex.poetry"
2225

benchmarks/performance-poetry/complex-poetry/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<uses-permission
66
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
77
tools:ignore="ScopedStorage" />
8+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
89

910
<application
1011
android:allowBackup="false"

buildSrc/src/main/java/Versions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@Suppress("UNUSED") // used in Groovy convention scripts
22
object Versions {
3-
const val compileSdk = 31
4-
const val targetSdk = 30
3+
const val compileSdk = 33
4+
const val targetSdk = 33
55
}

buildSrc/src/main/java/android-defaults.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
import com.android.build.gradle.TestedExtension
2+
import com.squareup.workflow1.libsCatalog
3+
import com.squareup.workflow1.version
24

35
configure<TestedExtension> {
4-
compileSdkVersion(31)
6+
compileSdkVersion(libsCatalog.version("compileSdk").toInt())
57

68
compileOptions {
79
sourceCompatibility = JavaVersion.VERSION_1_8
810
targetCompatibility = JavaVersion.VERSION_1_8
911
}
1012

1113
defaultConfig {
12-
minSdk = 21
13-
targetSdk = 30
14+
minSdk = libsCatalog.version("minSdk").toInt()
15+
targetSdk = libsCatalog.version("targetSdk").toInt()
1416
versionCode = 1
1517
versionName = "1.0"
1618
}

buildSrc/src/main/java/android-ui-tests.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ plugins {
99
configure<TestedExtension> {
1010
defaultConfig {
1111
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
12-
testInstrumentationRunnerArguments["listener"] = "leakcanary.FailTestOnLeakRunListener"
1312
}
1413

1514
testOptions {

gradle/libs.versions.toml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,35 @@
22

33
androidTools = "7.4.1"
44

5-
compileSdk = "31"
6-
minSdkVersion = "21"
7-
targetSdk = "30"
5+
compileSdk = "33"
6+
minSdk = "21"
7+
targetSdk = "33"
88

9-
androidx-activity = "1.3.0"
10-
androidx-appcompat = "1.3.1"
9+
androidx-activity = "1.6.1"
10+
androidx-appcompat = "1.6.1"
1111
androidx-benchmark = "1.1.1"
1212
androidx-cardview = "1.0.0"
13-
androidx-compose = "1.1.0-rc01"
1413
androidx-compose-compiler = "1.3.2"
14+
androidx-compose-foundation = "1.3.1"
15+
androidx-compose-material = "1.3.1"
16+
androidx-compose-runtime = "1.3.3"
17+
androidx-compose-ui = "1.3.3"
1518
androidx-constraintlayout = "2.1.4"
1619
androidx-core = "1.6.0"
1720
androidx-fragment = "1.3.6"
1821
androidx-gridlayout = "1.0.0"
19-
androidx-lifecycle = "2.4.0"
22+
androidx-lifecycle = "2.5.1"
2023
androidx-navigation = "2.4.0-alpha09"
2124
androidx-paging = "3.0.1"
2225
androidx-profileinstaller = "1.2.0-alpha02"
2326
androidx-recyclerview = "1.2.1"
2427
androidx-room = "2.4.0-alpha04"
2528
androidx-savedstate = "1.1.0"
2629
androidx-startup = "1.1.0"
27-
androidx-test = "1.3.0"
30+
androidx-test = "1.5.0"
2831
androidx-test-espresso = "3.3.0"
2932
androidx-test-junit-ext = "1.1.3"
33+
androidx-test-runner = "1.5.2"
3034
androidx-test-truth-ext = "1.4.0"
3135
androidx-tracing = "1.1.0"
3236
androidx-transition = "1.4.1"
@@ -64,14 +68,14 @@ mockito-core = "3.3.3"
6468
mockito-kotlin = "3.2.0"
6569

6670
mockk = "1.11.0"
67-
robolectric = "4.6.1"
71+
robolectric = "4.9.2"
6872

6973
rxjava2-android = "2.1.1"
7074
rxjava2-core = "2.2.21"
7175

7276
squareup-curtains = "1.2.2"
7377
squareup-cycler = "0.1.9"
74-
squareup-leakcanary = "2.8.1"
78+
squareup-leakcanary = "2.10"
7579
squareup-moshi = "1.13.0"
7680
squareup-okhttp = "4.9.1"
7781
squareup-okio = "3.0.0"
@@ -113,20 +117,20 @@ androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "a
113117

114118
androidx-cardview = { module = "androidx.cardview:cardview", version.ref = "androidx-cardview" }
115119

116-
androidx-compose-foundation = { module = "androidx.compose.foundation:foundation", version.ref = "androidx-compose" }
117-
androidx-compose-foundation-layout = { module = "androidx.compose.foundation:foundation-layout", version.ref = "androidx-compose" }
120+
androidx-compose-foundation = { module = "androidx.compose.foundation:foundation", version.ref = "androidx-compose-foundation" }
121+
androidx-compose-foundation-layout = { module = "androidx.compose.foundation:foundation-layout", version.ref = "androidx-compose-foundation" }
118122

119-
androidx-compose-material = { module = "androidx.compose.material:material", version.ref = "androidx-compose" }
123+
androidx-compose-material = { module = "androidx.compose.material:material", version.ref = "androidx-compose-material" }
120124

121-
androidx-compose-runtime = { module = "androidx.compose.runtime:runtime", version.ref = "androidx-compose" }
122-
androidx-compose-runtime-saveable = { module = "androidx.compose.runtime:runtime-saveable", version.ref = "androidx-compose" }
125+
androidx-compose-runtime = { module = "androidx.compose.runtime:runtime", version.ref = "androidx-compose-runtime" }
126+
androidx-compose-runtime-saveable = { module = "androidx.compose.runtime:runtime-saveable", version.ref = "androidx-compose-runtime" }
123127

124-
androidx-compose-ui = { module = "androidx.compose.ui:ui", version.ref = "androidx-compose" }
125-
androidx-compose-ui-geometry = { module = "androidx.compose.ui:ui-geometry", version.ref = "androidx-compose" }
126-
androidx-compose-ui-graphics = { module = "androidx.compose.ui:ui-graphics", version.ref = "androidx-compose" }
127-
androidx-compose-ui-test-junit4 = { module = "androidx.compose.ui:ui-test-junit4", version.ref = "androidx-compose" }
128-
androidx-compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "androidx-compose" }
129-
androidx-compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview", version.ref = "androidx-compose" }
128+
androidx-compose-ui = { module = "androidx.compose.ui:ui", version.ref = "androidx-compose-ui" }
129+
androidx-compose-ui-geometry = { module = "androidx.compose.ui:ui-geometry", version.ref = "androidx-compose-ui" }
130+
androidx-compose-ui-graphics = { module = "androidx.compose.ui:ui-graphics", version.ref = "androidx-compose-ui" }
131+
androidx-compose-ui-test-junit4 = { module = "androidx.compose.ui:ui-test-junit4", version.ref = "androidx-compose-ui" }
132+
androidx-compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "androidx-compose-ui" }
133+
androidx-compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview", version.ref = "androidx-compose-ui" }
130134

131135
androidx-constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "androidx-constraintlayout" }
132136

@@ -158,7 +162,7 @@ androidx-test-espresso-core = { module = "androidx.test.espresso:espresso-core",
158162
androidx-test-espresso-idlingResource = { module = "androidx.test.espresso:espresso-idling-resource", version.ref = "androidx-test-espresso" }
159163
androidx-test-espresso-intents = { module = "androidx.test.espresso:espresso-intents", version.ref = "androidx-test-espresso" }
160164
androidx-test-junit = { module = "androidx.test.ext:junit", version.ref = "androidx-test-junit-ext" }
161-
androidx-test-runner = { module = "androidx.test:runner", version.ref = "androidx-test" }
165+
androidx-test-runner = { module = "androidx.test:runner", version.ref = "androidx-test-runner" }
162166
androidx-test-truth = { module = "androidx.test.ext:truth", version.ref = "androidx-test-truth-ext" }
163167

164168
androidx-test-uiautomator = "androidx.test.uiautomator:uiautomator:2.2.0"

samples/compose-samples/src/androidTest/java/com/squareup/sample/compose/hellocompose/HelloComposeTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import androidx.compose.ui.test.onNodeWithText
66
import androidx.compose.ui.test.performClick
77
import androidx.test.ext.junit.runners.AndroidJUnit4
88
import com.squareup.workflow1.ui.WorkflowUiExperimentalApi
9-
import com.squareup.workflow1.ui.internal.test.DetectLeaksAfterTestSuccess
109
import com.squareup.workflow1.ui.internal.test.IdleAfterTestRule
1110
import com.squareup.workflow1.ui.internal.test.IdlingDispatcherRule
1211
import com.squareup.workflow1.ui.internal.test.compose.settleForNextRendering
1312
import com.squareup.workflow1.ui.internal.test.retry
1413
import kotlinx.coroutines.runBlocking
14+
import leakcanary.DetectLeaksAfterTestSuccess
1515
import org.junit.Rule
1616
import org.junit.Test
1717
import org.junit.rules.RuleChain

samples/compose-samples/src/androidTest/java/com/squareup/sample/compose/hellocomposebinding/HelloBindingTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import androidx.compose.ui.test.onNodeWithText
66
import androidx.compose.ui.test.performClick
77
import androidx.test.ext.junit.runners.AndroidJUnit4
88
import com.squareup.workflow1.ui.WorkflowUiExperimentalApi
9-
import com.squareup.workflow1.ui.internal.test.DetectLeaksAfterTestSuccess
109
import com.squareup.workflow1.ui.internal.test.IdleAfterTestRule
1110
import com.squareup.workflow1.ui.internal.test.IdlingDispatcherRule
11+
import leakcanary.DetectLeaksAfterTestSuccess
1212
import org.junit.Rule
1313
import org.junit.Test
1414
import org.junit.rules.RuleChain

0 commit comments

Comments
 (0)