Skip to content

Commit 2ad3f28

Browse files
authored
Merge pull request #45 from wealthfront/api-35
Update samples, libraries for Edge-to-Edge
2 parents 247d676 + 4d0d9d8 commit 2ad3f28

26 files changed

+83
-67
lines changed

.github/workflows/runTests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ jobs:
2020
build:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v3
23+
- name: Checkout sources
24+
uses: actions/checkout@v4
2425
- name: Set up our JDK environment
2526
uses: actions/setup-java@v4
2627
with:
2728
distribution: 'temurin'
28-
java-version: '17.0.10'
29+
java-version: '17.0.14'
30+
- name: Set up Gradle
31+
uses: gradle/actions/setup-gradle@v4
2932
- name: Build with Gradle
30-
uses: gradle/actions/setup-gradle@v3
31-
with:
32-
arguments: testDebugUnitTest
33+
run: ./gradlew testDebugUnitTest

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ kotlin.code.style=official
2222
# thereby reducing the size of the R class for that library
2323
android.nonTransitiveRClass=true
2424
android.enableJetifier=false
25+
android.injected.androidTest.leaveApksInstalledAfterRun=true
2526

2627
GROUP=com.wealthfront
2728
VERSION_NAME=2.1.2-SNAPSHOT

gradle/android-module.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
android {
2-
compileSdkVersion 34
2+
compileSdkVersion 35
33

44
defaultConfig {
55
minSdkVersion 26

gradle/libs.versions.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
[versions]
2-
recyclerview = "1.3.2"
2+
recyclerview = "1.4.0"
33
appcompat = "1.7.0"
4+
androidx-activity-ktx = "1.9.1"
45
screenshotty = "1.0.4"
5-
robolectric = "4.13"
6+
robolectric = "4.14.1"
67
test-core = "1.6.1"
78
test-rules = "1.6.1"
89
test-ext = "1.2.1"
910
junit = "4.13.2"
10-
truth = "1.0"
11+
truth = "1.4.0"
1112
espresso = "3.6.1"
12-
agp = "8.5.1"
13-
kotlin = "2.0.0"
14-
compose-bom = "2023.09.02"
13+
agp = "8.9.0"
14+
kotlin = "2.0.21"
15+
compose-bom = "2025.03.00"
1516

1617
[libraries]
1718
recyclerview = { group = "androidx.recyclerview", name = "recyclerview", version.ref = "recyclerview" }
1819
appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
20+
androidx-activity-ktx = { group = "androidx.activity", name = "activity-ktx", version.ref = "androidx-activity-ktx" }
1921
screenshotty = { group = "eu.bolt", name = "screenshotty", version.ref = "screenshotty" }
2022
junit = { group = "junit", name = "junit", version.ref = "junit" }
2123
truth = { group = "com.google.truth", name = "truth", version.ref = "truth" }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Wed Jan 10 11:07:40 PST 2024
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

screencaptor-sample-tests/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ plugins {
44
alias(libs.plugins.compose.compiler)
55
}
66

7+
apply(from = "../gradle/android-module.gradle")
8+
79
android {
810
namespace = "com.wealthfront.screencaptor.sample.test"
9-
compileSdk = 34
1011

1112
testOptions {
1213
animationsDisabled = true
1314
}
1415

1516
defaultConfig {
16-
minSdk = 26
1717
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1818
}
1919

screencaptor-sample-tests/src/main/java/com/wealthfront/screencaptor/sample/ScreenshotComposeTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ScreenshotComposeTest {
6161
screenshotDirectory = screenShotDirectory
6262
)
6363

64-
compareScreenshots("compose", TestRes.raw.compose_pixel7_api33)
64+
compareScreenshots("compose", TestRes.raw.compose_pixel7_api35)
6565
}
6666

6767
@Test
@@ -81,7 +81,7 @@ class ScreenshotComposeTest {
8181
screenshotDirectory = screenShotDirectory
8282
)
8383

84-
compareScreenshots("compose_dialogs", TestRes.raw.compose_dialogs_pixel7_api33)
84+
compareScreenshots("compose_dialogs", TestRes.raw.compose_dialogs_pixel7_api35)
8585
}
8686

8787

Binary file not shown.
103 KB
Loading
Binary file not shown.

0 commit comments

Comments
 (0)