Skip to content

Commit 8ca6bc1

Browse files
authored
[google_maps_flutter_android, url_launcher_android] bump roboelectric version (flutter#3372)
[google_maps_flutter_android, url_launcher_android] bump roboelectric version
1 parent fe71a8c commit 8ca6bc1

File tree

9 files changed

+18
-6
lines changed

9 files changed

+18
-6
lines changed

packages/google_maps_flutter/google_maps_flutter_android/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.4.10
2+
3+
* Bump RoboElectric dependency to 4.4.1 to support AndroidX.
4+
15
## 2.4.9
26

37
* Clarifies explanation of endorsement in README.

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
@@ -41,7 +41,7 @@ android {
4141
testImplementation 'junit:junit:4.13.2'
4242
testImplementation 'org.mockito:mockito-core:5.1.1'
4343
testImplementation 'androidx.test:core:1.2.0'
44-
testImplementation "org.robolectric:robolectric:4.3.1"
44+
testImplementation "org.robolectric:robolectric:4.4.1"
4545
}
4646

4747
compileOptions {

packages/google_maps_flutter/google_maps_flutter_android/android/src/test/java/io/flutter/plugins/googlemaps/GoogleMapControllerTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import android.content.Context;
1616
import android.os.Build;
17+
import android.os.Looper;
1718
import androidx.activity.ComponentActivity;
1819
import androidx.test.core.app.ApplicationProvider;
1920
import com.google.android.gms.maps.GoogleMap;
@@ -32,6 +33,7 @@
3233
import org.mockito.MockitoAnnotations;
3334
import org.robolectric.Robolectric;
3435
import org.robolectric.RobolectricTestRunner;
36+
import org.robolectric.Shadows;
3537
import org.robolectric.annotation.Config;
3638

3739
@RunWith(RobolectricTestRunner.class)
@@ -118,6 +120,7 @@ public void InvalidateMapAfterMethodCalls() throws InterruptedException {
118120

119121
verify(mapView, never()).invalidate();
120122
argument.getValue().onMapLoaded();
123+
Shadows.shadowOf(Looper.getMainLooper()).idle();
121124
verify(mapView).invalidate();
122125
}
123126
}
@@ -141,6 +144,7 @@ public void InvalidateMapOnceAfterMethodCall() throws InterruptedException {
141144

142145
verify(mapView, never()).invalidate();
143146
argument.getValue().onMapLoaded();
147+
Shadows.shadowOf(Looper.getMainLooper()).idle();
144148
verify(mapView).invalidate();
145149
}
146150

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
org.gradle.jvmargs=-Xmx4G
22
android.useAndroidX=true
3-
android.enableJetifier=true
3+
android.enableJetifier=false

packages/google_maps_flutter/google_maps_flutter_android/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: google_maps_flutter_android
22
description: Android implementation of the google_maps_flutter plugin.
33
repository: https://github.com/flutter/packages/tree/main/packages/google_maps_flutter/google_maps_flutter_android
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+maps%22
5-
version: 2.4.9
5+
version: 2.4.10
66

77
environment:
88
sdk: ">=2.17.0 <3.0.0"

packages/url_launcher/url_launcher_android/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 6.0.26
2+
3+
* Bump RoboElectric dependency to 4.4.1 to support AndroidX.
4+
15
## 6.0.25
26

37
* Clarifies explanation of endorsement in README.

packages/url_launcher/url_launcher_android/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ dependencies {
5151
testImplementation 'junit:junit:4.13.2'
5252
testImplementation 'org.mockito:mockito-core:5.1.1'
5353
testImplementation 'androidx.test:core:1.0.0'
54-
testImplementation 'org.robolectric:robolectric:4.3'
54+
testImplementation 'org.robolectric:robolectric:4.4.1'
5555
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
org.gradle.jvmargs=-Xmx4G
22
android.useAndroidX=true
3-
android.enableJetifier=true
3+
android.enableJetifier=false

packages/url_launcher/url_launcher_android/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: url_launcher_android
22
description: Android implementation of the url_launcher plugin.
33
repository: https://github.com/flutter/packages/tree/main/packages/url_launcher/url_launcher_android
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22
5-
version: 6.0.25
5+
version: 6.0.26
66

77
environment:
88
sdk: ">=2.17.0 <3.0.0"

0 commit comments

Comments
 (0)