Skip to content

Commit 63fbbd0

Browse files
stuartmorgan-gFMorschel
authored andcommitted
[various] Bump androidx.test:core to 1.4.0 (flutter#8710)
This is pulled out of flutter#8693 to land on its own while the other issues with that PR are investigated, since it's a useful change regardless. This updates all packages in the repo to have `androidx.test:core` 1.4.0 if it's not already higher. This fixes a latent problem where older versions of `androidx.test.core` aren't compatible with targeting the current SDK, because it has activities that are not annotated as exported. This issue is currently being masked by the dependency on `integration_test`, which forced a higher version of that package, but `integration_test` will stop exporting that dependency onto the app as of recent master, dropping all the packages here back to a too-old `androidx.test:core`.
1 parent 0b89e73 commit 63fbbd0

14 files changed

Lines changed: 14 additions & 15 deletions

File tree

packages/file_selector/file_selector_android/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ android {
3838
implementation 'androidx.annotation:annotation:1.9.1'
3939
testImplementation 'junit:junit:4.13.2'
4040
testImplementation 'org.mockito:mockito-inline:5.1.0'
41-
testImplementation 'androidx.test:core:1.3.0'
41+
testImplementation 'androidx.test:core:1.4.0'
4242
testImplementation "org.robolectric:robolectric:4.12.1"
4343
}
4444

packages/google_maps_flutter/google_maps_flutter/example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ android {
5757
testImplementation 'junit:junit:4.13.2'
5858
androidTestImplementation 'androidx.test:runner:1.2.0'
5959
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
60-
api 'androidx.test:core:1.2.0'
60+
api 'androidx.test:core:1.4.0'
6161
testImplementation 'com.google.android.gms:play-services-maps:17.0.0'
6262
}
6363
namespace 'io.flutter.plugins.googlemapsexample'

packages/google_maps_flutter/google_maps_flutter_android/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ android {
4444
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
4545
testImplementation 'junit:junit:4.13.2'
4646
testImplementation 'org.mockito:mockito-core:5.1.1'
47-
testImplementation 'androidx.test:core:1.2.0'
47+
testImplementation 'androidx.test:core:1.4.0'
4848
testImplementation "org.robolectric:robolectric:4.10.3"
4949
}
5050

packages/google_maps_flutter/google_maps_flutter_android/example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ android {
5858
testImplementation 'junit:junit:4.13.2'
5959
androidTestImplementation 'androidx.test:runner:1.2.0'
6060
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
61-
api 'androidx.test:core:1.2.0'
61+
api 'androidx.test:core:1.4.0'
6262
testImplementation 'com.google.android.gms:play-services-maps:17.0.0'
6363
testImplementation 'com.google.maps.android:android-maps-utils:3.6.0'
6464
}

packages/google_sign_in/google_sign_in/example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ dependencies {
6161
testImplementation'junit:junit:4.12'
6262
androidTestImplementation 'androidx.test:runner:1.2.0'
6363
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
64-
api 'androidx.test:core:1.2.0'
64+
api 'androidx.test:core:1.4.0'
6565
}

packages/google_sign_in/google_sign_in_android/example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ dependencies {
6161
testImplementation'junit:junit:4.12'
6262
androidTestImplementation 'androidx.test:runner:1.2.0'
6363
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
64-
api 'androidx.test:core:1.2.0'
64+
api 'androidx.test:core:1.4.0'
6565
}

packages/image_picker/image_picker/example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ dependencies {
6161
testImplementation 'junit:junit:4.13.2'
6262
androidTestImplementation 'androidx.test:runner:1.2.0'
6363
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
64-
api 'androidx.test:core:1.2.0'
64+
api 'androidx.test:core:1.4.0'
6565
}

packages/interactive_media_ads/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ android {
5454
testImplementation 'org.jetbrains.kotlin:kotlin-test'
5555
testImplementation "org.mockito.kotlin:mockito-kotlin:5.4.0"
5656
testImplementation 'org.mockito:mockito-inline:5.1.0'
57-
testImplementation 'androidx.test:core:1.3.0'
57+
testImplementation 'androidx.test:core:1.4.0'
5858
}
5959

6060
lintOptions {

packages/quick_actions/quick_actions/example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ dependencies {
5454
testImplementation 'junit:junit:4.13.2'
5555
androidTestImplementation 'androidx.test:runner:1.2.0'
5656
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
57-
api 'androidx.test:core:1.2.0'
57+
api 'androidx.test:core:1.4.0'
5858
}

packages/quick_actions/quick_actions_android/example/android/app/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if (flutterVersionName == null) {
2222
flutterVersionName = '1.0'
2323
}
2424

25-
def androidXTestVersion = '1.2.0'
25+
def androidXTestVersion = '1.4.0'
2626

2727
android {
2828
namespace 'io.flutter.plugins.quickactionsexample'
@@ -54,7 +54,6 @@ flutter {
5454

5555
dependencies {
5656
testImplementation 'junit:junit:4.13.2'
57-
androidTestImplementation 'androidx.test:runner:1.2.0'
5857
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
5958
api "androidx.test:core:$androidXTestVersion"
6059

0 commit comments

Comments
 (0)