Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd358b0

Browse files
authored
[package_info] Register IntegrationTestPlugin in the example app. (flutter#3478)
This change registers the IntegrationTestPlugin in the example app, so test results are correctly reported back to FTL. The end-to-end firebase tests for package_info haven't passed in a while (nor have been reported as broken before), but after this change, they start passing again.
1 parent 8f66b2d commit cd358b0

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

packages/package_info/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.4.3+4
2+
3+
* Ensure `IntegrationTestPlugin` is registered in `example` app, so Firebase Test Lab tests report test results correctly. [Issue](https://github.com/flutter/flutter/issues/74944).
4+
15
## 0.4.3+3
26

37
* Update Flutter SDK constraint.

packages/package_info/example/android/app/src/main/java/io/flutter/plugins/packageinfoexample/EmbedderV1Activity.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
package io.flutter.plugins.packageinfoexample;
66

77
import android.os.Bundle;
8+
import dev.flutter.plugins.integration_test.IntegrationTestPlugin;
89
import io.flutter.app.FlutterActivity;
910
import io.flutter.plugins.packageinfo.PackageInfoPlugin;
1011

@@ -14,5 +15,7 @@ protected void onCreate(Bundle savedInstanceState) {
1415
super.onCreate(savedInstanceState);
1516
PackageInfoPlugin.registerWith(
1617
registrarFor("io.flutter.plugins.packageinfo.PackageInfoPlugin"));
18+
IntegrationTestPlugin.registerWith(
19+
registrarFor("dev.flutter.plugins.integration_test.IntegrationTestPlugin"));
1720
}
1821
}

packages/package_info/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ homepage: https://github.com/flutter/plugins/tree/master/packages/package_info
55
# 0.4.y+z is compatible with 1.0.0, if you land a breaking change bump
66
# the version to 2.0.0.
77
# See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
8-
version: 0.4.3+3
8+
version: 0.4.3+4
99

1010
flutter:
1111
plugin:

0 commit comments

Comments
 (0)