Skip to content

Commit e5b2ffa

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

File tree

83 files changed

+349
-257
lines changed

Some content is hidden

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

83 files changed

+349
-257
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: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
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"
1313
androidx-compose = "1.1.0-rc01"
@@ -16,17 +16,18 @@ androidx-constraintlayout = "2.1.4"
1616
androidx-core = "1.6.0"
1717
androidx-fragment = "1.3.6"
1818
androidx-gridlayout = "1.0.0"
19-
androidx-lifecycle = "2.4.0"
19+
androidx-lifecycle = "2.5.1"
2020
androidx-navigation = "2.4.0-alpha09"
2121
androidx-paging = "3.0.1"
2222
androidx-profileinstaller = "1.2.0-alpha02"
2323
androidx-recyclerview = "1.2.1"
2424
androidx-room = "2.4.0-alpha04"
2525
androidx-savedstate = "1.1.0"
2626
androidx-startup = "1.1.0"
27-
androidx-test = "1.3.0"
27+
androidx-test = "1.5.0"
2828
androidx-test-espresso = "3.3.0"
2929
androidx-test-junit-ext = "1.1.3"
30+
androidx-test-runner = "1.5.2"
3031
androidx-test-truth-ext = "1.4.0"
3132
androidx-tracing = "1.1.0"
3233
androidx-transition = "1.4.1"
@@ -64,14 +65,14 @@ mockito-core = "3.3.3"
6465
mockito-kotlin = "3.2.0"
6566

6667
mockk = "1.11.0"
67-
robolectric = "4.6.1"
68+
robolectric = "4.9.2"
6869

6970
rxjava2-android = "2.1.1"
7071
rxjava2-core = "2.2.21"
7172

7273
squareup-curtains = "1.2.2"
7374
squareup-cycler = "0.1.9"
74-
squareup-leakcanary = "2.8.1"
75+
squareup-leakcanary = "2.10"
7576
squareup-moshi = "1.13.0"
7677
squareup-okhttp = "4.9.1"
7778
squareup-okio = "3.0.0"
@@ -158,7 +159,7 @@ androidx-test-espresso-core = { module = "androidx.test.espresso:espresso-core",
158159
androidx-test-espresso-idlingResource = { module = "androidx.test.espresso:espresso-idling-resource", version.ref = "androidx-test-espresso" }
159160
androidx-test-espresso-intents = { module = "androidx.test.espresso:espresso-intents", version.ref = "androidx-test-espresso" }
160161
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" }
162+
androidx-test-runner = { module = "androidx.test:runner", version.ref = "androidx-test-runner" }
162163
androidx-test-truth = { module = "androidx.test.ext:truth", version.ref = "androidx-test-truth-ext" }
163164

164165
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

samples/compose-samples/src/androidTest/java/com/squareup/sample/compose/hellocomposeworkflow/HelloComposeWorkflowTest.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

samples/compose-samples/src/androidTest/java/com/squareup/sample/compose/inlinerendering/InlineRenderingTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import androidx.compose.ui.test.junit4.createAndroidComposeRule
77
import androidx.compose.ui.test.performClick
88
import androidx.test.ext.junit.runners.AndroidJUnit4
99
import com.squareup.workflow1.ui.WorkflowUiExperimentalApi
10-
import com.squareup.workflow1.ui.internal.test.DetectLeaksAfterTestSuccess
1110
import com.squareup.workflow1.ui.internal.test.IdleAfterTestRule
1211
import com.squareup.workflow1.ui.internal.test.IdlingDispatcherRule
1312
import com.squareup.workflow1.ui.internal.test.compose.settleForNextRendering
1413
import com.squareup.workflow1.ui.internal.test.retry
1514
import kotlinx.coroutines.runBlocking
15+
import leakcanary.DetectLeaksAfterTestSuccess
1616
import org.junit.Rule
1717
import org.junit.Test
1818
import org.junit.rules.RuleChain

samples/compose-samples/src/androidTest/java/com/squareup/sample/compose/launcher/SampleLauncherTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import androidx.test.ext.junit.runners.AndroidJUnit4
1212
import androidx.test.platform.app.InstrumentationRegistry
1313
import com.squareup.sample.compose.R
1414
import com.squareup.workflow1.ui.WorkflowUiExperimentalApi
15-
import com.squareup.workflow1.ui.internal.test.DetectLeaksAfterTestSuccess
1615
import com.squareup.workflow1.ui.internal.test.IdleAfterTestRule
1716
import com.squareup.workflow1.ui.internal.test.IdlingDispatcherRule
17+
import leakcanary.DetectLeaksAfterTestSuccess
1818
import org.junit.Rule
1919
import org.junit.Test
2020
import org.junit.rules.RuleChain

samples/compose-samples/src/androidTest/java/com/squareup/sample/compose/nestedrenderings/NestedRenderingsTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import androidx.compose.ui.test.onNodeWithText
1010
import androidx.compose.ui.test.performClick
1111
import androidx.test.ext.junit.runners.AndroidJUnit4
1212
import com.squareup.workflow1.ui.WorkflowUiExperimentalApi
13-
import com.squareup.workflow1.ui.internal.test.DetectLeaksAfterTestSuccess
1413
import com.squareup.workflow1.ui.internal.test.IdleAfterTestRule
1514
import com.squareup.workflow1.ui.internal.test.IdlingDispatcherRule
15+
import leakcanary.DetectLeaksAfterTestSuccess
1616
import org.junit.Rule
1717
import org.junit.Test
1818
import org.junit.rules.RuleChain

samples/compose-samples/src/androidTest/java/com/squareup/sample/compose/preview/PreviewTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import androidx.compose.ui.test.junit4.createAndroidComposeRule
66
import androidx.compose.ui.test.onNodeWithText
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

samples/compose-samples/src/androidTest/java/com/squareup/sample/compose/textinput/TextInputTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import androidx.compose.ui.test.performTextInput
1010
import androidx.compose.ui.test.performTextReplacement
1111
import androidx.test.ext.junit.runners.AndroidJUnit4
1212
import com.squareup.workflow1.ui.WorkflowUiExperimentalApi
13-
import com.squareup.workflow1.ui.internal.test.DetectLeaksAfterTestSuccess
1413
import com.squareup.workflow1.ui.internal.test.IdleAfterTestRule
1514
import com.squareup.workflow1.ui.internal.test.IdlingDispatcherRule
1615
import com.squareup.workflow1.ui.internal.test.compose.settleForNextRendering
1716
import com.squareup.workflow1.ui.internal.test.retry
1817
import kotlinx.coroutines.runBlocking
18+
import leakcanary.DetectLeaksAfterTestSuccess
1919
import org.junit.Rule
2020
import org.junit.Test
2121
import org.junit.rules.RuleChain

samples/compose-samples/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools">
44

5+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
56
<application
67
android:allowBackup="false"
78
android:label="@string/app_name"
89
android:theme="@style/AppTheme"
910
tools:ignore="GoogleAppIndexingWarning,MissingApplicationIcon"
1011
>
1112

12-
<activity android:name=".launcher.SampleLauncherActivity">
13+
<activity android:name=".launcher.SampleLauncherActivity"
14+
android:exported="true">
1315
<intent-filter>
1416
<action android:name="android.intent.action.MAIN"/>
1517
<category android:name="android.intent.category.LAUNCHER"/>

samples/containers/app-poetry/src/androidTest/java/com/squareup/sample/poetryapp/PoetryAppTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import androidx.test.ext.junit.rules.ActivityScenarioRule
77
import androidx.test.ext.junit.runners.AndroidJUnit4
88
import com.squareup.sample.container.poetryapp.R
99
import com.squareup.workflow1.ui.WorkflowUiExperimentalApi
10-
import com.squareup.workflow1.ui.internal.test.DetectLeaksAfterTestSuccess
1110
import com.squareup.workflow1.ui.internal.test.IdlingDispatcherRule
1211
import com.squareup.workflow1.ui.internal.test.inAnyView
12+
import leakcanary.DetectLeaksAfterTestSuccess
1313
import org.junit.Rule
1414
import org.junit.Test
1515
import org.junit.rules.RuleChain

samples/containers/app-poetry/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools">
44

5+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
56
<application
67
android:allowBackup="false"
78
android:label="@string/app_name"
89
android:theme="@style/AppTheme"
910
tools:ignore="AllowBackup,GoogleAppIndexingWarning,MissingApplicationIcon"
1011
>
1112

12-
<activity android:name="com.squareup.sample.poetryapp.PoetryActivity">
13+
<activity android:name="com.squareup.sample.poetryapp.PoetryActivity"
14+
android:exported="true">
1315

1416
<intent-filter>
1517
<action android:name="android.intent.action.MAIN" />

samples/containers/app-raven/src/androidTest/java/com/squareup/sample/ravenapp/RavenAppTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import androidx.test.espresso.matcher.ViewMatchers.withText
66
import androidx.test.ext.junit.rules.ActivityScenarioRule
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.IdlingDispatcherRule
1110
import com.squareup.workflow1.ui.internal.test.inAnyView
11+
import leakcanary.DetectLeaksAfterTestSuccess
1212
import org.junit.Rule
1313
import org.junit.Test
1414
import org.junit.rules.RuleChain

samples/containers/app-raven/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools">
44

5+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
56
<application
67
android:allowBackup="false"
78
android:label="@string/app_name"
89
android:theme="@style/AppTheme"
910
tools:ignore="AllowBackup,GoogleAppIndexingWarning,MissingApplicationIcon"
1011
>
1112

12-
<activity android:name="com.squareup.sample.ravenapp.RavenActivity">
13+
<activity android:name="com.squareup.sample.ravenapp.RavenActivity"
14+
android:exported="true">
1315

1416
<intent-filter>
1517
<action android:name="android.intent.action.MAIN" />

samples/containers/hello-back-button/src/androidTest/java/com/squareup/sample/hellobackbutton/HelloBackButtonEspressoTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import androidx.test.espresso.matcher.ViewMatchers.withText
88
import androidx.test.ext.junit.rules.ActivityScenarioRule
99
import androidx.test.ext.junit.runners.AndroidJUnit4
1010
import com.squareup.workflow1.ui.WorkflowUiExperimentalApi
11-
import com.squareup.workflow1.ui.internal.test.DetectLeaksAfterTestSuccess
1211
import com.squareup.workflow1.ui.internal.test.IdlingDispatcherRule
1312
import com.squareup.workflow1.ui.internal.test.actuallyPressBack
1413
import com.squareup.workflow1.ui.internal.test.inAnyView
1514
import com.squareup.workflow1.ui.internal.test.retryBlocking
15+
import leakcanary.DetectLeaksAfterTestSuccess
1616
import org.junit.Rule
1717
import org.junit.Test
1818
import org.junit.rules.RuleChain

samples/containers/hello-back-button/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools">
44

5+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
56
<application
67
android:allowBackup="false"
78
android:label="@string/app_name"
89
android:theme="@style/AppTheme"
910
tools:ignore="GoogleAppIndexingWarning,MissingApplicationIcon"
1011
>
1112

12-
<activity android:name=".HelloBackButtonActivity">
13+
<activity android:name=".HelloBackButtonActivity"
14+
android:exported="true">
1315

1416
<intent-filter>
1517
<action android:name="android.intent.action.MAIN" />

samples/dungeon/app/src/androidTest/java/com/squareup/sample/dungeon/DungeonAppTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import androidx.test.espresso.matcher.ViewMatchers.withText
66
import androidx.test.ext.junit.rules.ActivityScenarioRule
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.IdlingDispatcherRule
1110
import com.squareup.workflow1.ui.internal.test.inAnyView
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)