Skip to content

Commit d1a52de

Browse files
committed
Bump robolectric and mockito versions
Gradle 8.9 uses JDK 22 to run test, bumping mock libraries to stop tests failing.
1 parent af577d3 commit d1a52de

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

androidbrowserhelper/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ android {
4040
}
4141

4242
compileOptions {
43-
sourceCompatibility = 1.8
44-
targetCompatibility = 1.8
43+
sourceCompatibility = JavaVersion.VERSION_1_8
44+
targetCompatibility = JavaVersion.VERSION_1_8
4545
}
4646

4747
testOptions {
@@ -61,7 +61,7 @@ dependencies {
6161

6262
testImplementation 'junit:junit:4.12'
6363
testImplementation 'org.mockito:mockito-core:3.0.0'
64-
testImplementation 'org.robolectric:robolectric:4.4'
64+
testImplementation 'org.robolectric:robolectric:4.12.2'
6565

6666
androidTestImplementation 'androidx.test:runner:1.2.0'
6767
androidTestImplementation 'androidx.test:rules:1.2.0'

locationdelegation/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ dependencies {
5555
implementation 'com.google.android.gms:play-services-location:21.0.1'
5656

5757
testImplementation 'junit:junit:4.12'
58-
testImplementation 'org.mockito:mockito-core:3.0.0'
59-
testImplementation 'org.mockito:mockito-inline:2.13.0'
60-
testImplementation 'org.robolectric:robolectric:4.4'
58+
testImplementation 'org.mockito:mockito-core:5.15.2'
59+
testImplementation 'org.mockito:mockito-inline:5.2.0'
60+
testImplementation 'org.robolectric:robolectric:4.12.2'
6161
testImplementation 'androidx.test:core:1.4.0'
6262

6363
debugImplementation project(path: ':androidbrowserhelper')

playbilling/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ dependencies {
6363
implementation 'com.android.billingclient:billing:6.2.1'
6464

6565
testImplementation 'junit:junit:4.12'
66-
testImplementation 'org.robolectric:robolectric:4.4'
66+
testImplementation 'org.robolectric:robolectric:4.12.2'
6767

6868
androidTestImplementation 'androidx.test:runner:1.2.0'
6969
androidTestImplementation 'androidx.test:rules:1.2.0'

0 commit comments

Comments
 (0)