Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[plugin_platform_interface] typo in link #2888

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
9d126ab
[plugin_platform_interface] typo in link
jarrodcolburn Jul 21, 2020
b9a6be4
Update changelog 1.0.2+1
jarrodcolburn Jul 21, 2020
0a5fd3d
Typo: Fix homepage
jarrodcolburn Jul 21, 2020
8480743
bump version
jarrodcolburn Jul 21, 2020
4a28a75
Update CHANGELOG.md
ditman Aug 19, 2020
92c0bbc
Update pubspec.yaml
ditman Aug 19, 2020
f8de6e1
Revert "[path_provider] Use the application ID in the application sup…
dnfield Jul 24, 2020
db07cd3
Make package:e2e a relative reference (#2889)
dnfield Jul 24, 2020
2cbb8b1
[e2e] Fix incorrect test results when one test passes then another fa…
jiahaog Jul 25, 2020
b2766ba
Clarify e2e readme for running on firebase test lab (#2898)
CareF Jul 29, 2020
3e7cca2
Fixed typo manuelly for manually (#2902)
MauScheff Aug 1, 2020
d7be458
[google_maps_flutter + platform] Tweaks to enable a web implementatio…
ditman Aug 5, 2020
22f31a4
[e2e] Add new e2e_driver for handling response data and performance w…
CareF Aug 5, 2020
17cf861
[google_maps_flutter_platform_interface] Add dispose method. (#2908)
ditman Aug 10, 2020
05f45da
[camera] Improving handling when camera permissions are not granted. …
panmari Aug 11, 2020
8dd2c6c
[e2e] Revert performance tracker utilities (#2917)
CareF Aug 11, 2020
7de16cd
[google_maps_flutter] Pin GoogleMaps cocoapod dep to last good known …
ditman Aug 12, 2020
2bc253a
[google_maps_flutter] Call platform.dispose from widget. (#2909)
ditman Aug 12, 2020
a789e4e
[video_player_platform_interface] Add interface changes for audio mix…
wwwdata Aug 12, 2020
503b567
[device_info] Moved device_info to a subdir (#2923)
yash1200 Aug 12, 2020
d80e539
Fix unguarded availability in Camera plugin (#2928)
dnfield Aug 13, 2020
9bdb4e5
[url_launcher_web] Fix link in README (#2932)
TahaTesser Aug 14, 2020
cee1e0a
[video_player] Set audio mix options (#2922)
wwwdata Aug 17, 2020
de1413a
[versions] increase package:platform constraint (#2934)
jonahwilliams Aug 17, 2020
9e01f9c
Revert "[video_player] Set audio mix options (#2922)" (#2938)
Aug 18, 2020
b6c4e0b
Revert "Revert "[video_player] Set audio mix options (#2922)" (#2938)…
Aug 18, 2020
dad123c
Fix sharding and shard count on apk tests (#2936)
dnfield Aug 18, 2020
570ffd6
[device_info_platform_interface] Introduce package (#2929)
yash1200 Aug 18, 2020
7feea75
[google_maps_flutter_web] First version of the plugin. (#2933)
ditman Aug 19, 2020
a075d4c
[e2e] Update code onwer. (#2915)
digiter Aug 19, 2020
6bd2999
Rename e2e -> integration_test (#2918)
dnfield Aug 19, 2020
5461bb4
[device_info] Port device_info to use platform interface (#2942)
yash1200 Aug 19, 2020
bf8fd44
[google_maps_flutter_web] Move e2e tests to integration_test. (#2945)
ditman Aug 19, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 12 additions & 10 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ task:
cpu: 8
memory: 16G
env:
E2E_PATH: "./packages/e2e"
INTEGRATION_TEST_PATH: "./packages/integration_test"
upgrade_script:
- flutter channel stable
- flutter upgrade
Expand Down Expand Up @@ -47,9 +47,9 @@ task:
- if [[ "$CHANNEL" -eq "stable" ]]; then find . | grep _web$ | xargs rm -rf; fi
- flutter channel $CHANNEL
- ./script/build_all_plugins_app.sh apk
- name: e2e_web_smoke_test
# Tests e2e example test in web.
only_if: "changesInclude('.cirrus.yml', 'packages/e2e/**') || $CIRRUS_PR == ''"
- name: integration_web_smoke_test
# Tests integration example test in web.
only_if: "changesInclude('.cirrus.yml', 'packages/integration_test/**') || $CIRRUS_PR == ''"
install_script:
- flutter config --enable-web
- git clone https://github.com/flutter/web_installers.git
Expand All @@ -58,13 +58,15 @@ task:
- dart lib/web_driver_installer.dart chromedriver --install-only
- ./chromedriver/chromedriver --port=4444 &
test_script:
- cd $E2E_PATH/example/
- flutter drive -v --target=test_driver/example_e2e.dart -d web-server --release --browser-name=chrome
- cd $INTEGRATION_TEST_PATH/example/
- flutter drive -v --target=test_driver/example_integration.dart -d web-server --release --browser-name=chrome
- name: build-apks+java-test+firebase-test-lab
env:
matrix:
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 2"
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 2"
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 4"
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 4"
PLUGIN_SHARDING: "--shardIndex 2 --shardCount 4"
PLUGIN_SHARDING: "--shardIndex 3 --shardCount 4"
matrix:
CHANNEL: "master"
CHANNEL: "stable"
Expand Down Expand Up @@ -105,7 +107,7 @@ task:
cpu: 8
memory: 16G
env:
E2E_PATH: "./packages/e2e"
INTEGRATION_TEST_PATH: "./packages/integration_test"
upgrade_script:
- flutter channel stable
- flutter upgrade
Expand Down Expand Up @@ -157,7 +159,7 @@ task:
- find . -name "*.podspec" | xargs grep -l "osx" | xargs rm
# Skip the dummy podspecs used to placate the tool.
- find . -name "*_web*.podspec" -o -name "*_mac*.podspec" | xargs rm
- ./script/incremental_build.sh podspecs --no-analyze camera --ignore-warnings camera
- ./script/incremental_build.sh podspecs
- name: build-ipas+drive-examples
env:
PATH: $PATH:/usr/local/bin
Expand Down
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ packages/battery/* @amirh @matthew-carroll
packages/camera/* @bparrishMines
packages/connectivity/* @cyanglaz @matthew-carroll
packages/device_info/* @matthew-carroll
packages/e2e/* @collinjackson @digiter
packages/espresso/* @collinjackson @adazh
packages/google_maps_flutter/* @cyanglaz
packages/google_sign_in/* @cyanglaz @mehmetf
packages/image_picker/* @cyanglaz
packages/integration_test/* @dnfield
packages/in_app_purchase/* @mklim @cyanglaz @LHLL
packages/ios_platform_images/* @gaaclarke
packages/package_info/* @cyanglaz @matthew-carroll
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@ These are the available plugins in this repository.
| [camera](./packages/camera/) | [![pub package](https://img.shields.io/pub/v/camera.svg)](https://pub.dev/packages/camera) |
| [connectivity](./packages/connectivity/) | [![pub package](https://img.shields.io/pub/v/connectivity.svg)](https://pub.dev/packages/connectivity) |
| [device_info](./packages/device_info/) | [![pub package](https://img.shields.io/pub/v/device_info.svg)](https://pub.dev/packages/device_info) |
| [e2e](./packages/e2e/) | [![pub package](https://img.shields.io/pub/v/e2e.svg)](https://pub.dev/packages/e2e) |
| [e2e (Discontinued, use integration_test)](./packages/e2e/) | [![pub package](https://img.shields.io/pub/v/e2e.svg)](https://pub.dev/packages/e2e) |
| [espresso](./packages/espresso/) | [![pub package](https://img.shields.io/pub/v/espresso.svg)](https://pub.dev/packages/espresso) |
| [flutter_plugin_android_lifecycle](./packages/flutter_plugin_android_lifecycle/) | [![pub package](https://img.shields.io/pub/v/flutter_plugin_android_lifecycle.svg)](https://pub.dev/packages/flutter_plugin_android_lifecycle) |
| [google_maps_flutter](./packages/google_maps_flutter) | [![pub package](https://img.shields.io/pub/v/google_maps_flutter.svg)](https://pub.dev/packages/google_maps_flutter) |
| [google_sign_in](./packages/google_sign_in/) | [![pub package](https://img.shields.io/pub/v/google_sign_in.svg)](https://pub.dev/packages/google_sign_in) |
| [image_picker](./packages/image_picker/) | [![pub package](https://img.shields.io/pub/v/image_picker.svg)](https://pub.dev/packages/image_picker) |
| [integration_test](./packages/integration_test/) | [![pub package](https://img.shields.io/pub/v/integration_test.svg)](https://pub.dev/packages/integration_test) |
| [in_app_purchase](./packages/in_app_purchase/) | [![pub package](https://img.shields.io/pub/v/in_app_purchase.svg)](https://pub.dev/packages/in_app_purchase) |
| [ios_platform_images](./packages/ios_platform_images/) | [![pub package](https://img.shields.io/pub/v/ios_platform_images.svg)](https://pub.dev/packages/ios_platform_images) |
| [local_auth](./packages/local_auth/) | [![pub package](https://img.shields.io/pub/v/local_auth.svg)](https://pub.dev/packages/local_auth) |
Expand Down
5 changes: 5 additions & 0 deletions packages/android_alarm_manager/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.4.5+12

* Update package:e2e reference to use the local version in the flutter/plugins
repository.

## 0.4.5+11

* Update lower bound of dart dependency to 2.1.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package io.flutter.plugins.androidalarmmanagerexample;

import androidx.test.rule.ActivityTestRule;
import dev.flutter.plugins.e2e.FlutterTestRunner;
import dev.flutter.plugins.integration_test.FlutterTestRunner;
import io.flutter.embedding.android.FlutterActivity;
import org.junit.Rule;
import org.junit.runner.RunWith;
Expand Down
3 changes: 2 additions & 1 deletion packages/android_alarm_manager/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ dependencies:
android_alarm_manager:
path: ../
shared_preferences: ^0.5.6
e2e: 0.3.0
integration_test:
path: ../../integration_test
path_provider: ^1.3.1

dev_dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'dart:async';
import 'dart:io';
import 'package:android_alarm_manager_example/main.dart' as app;
import 'package:android_alarm_manager/android_alarm_manager.dart';
import 'package:e2e/e2e.dart';
import 'package:integration_test/integration_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_driver/driver_extension.dart';
import 'package:path_provider/path_provider.dart';
Expand Down Expand Up @@ -55,7 +55,7 @@ void appMain() {
}

void main() {
E2EWidgetsFlutterBinding.ensureInitialized();
IntegrationTestWidgetsFlutterBinding.ensureInitialized();

setUp(() async {
await AndroidAlarmManager.initialize();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

import 'dart:async';
import 'dart:convert';
import 'dart:io';

import 'package:flutter_driver/flutter_driver.dart';
Expand Down Expand Up @@ -33,9 +34,12 @@ Future<void> main() async {
// for this plugin will need to be resumed for the test to pass.
final StreamSubscription<VMIsolateRef> subscription =
await resumeIsolatesOnPause(driver);
final String result =
await driver.requestData(null, timeout: const Duration(minutes: 5));
final String data = await driver.requestData(
null,
timeout: const Duration(minutes: 1),
);
await driver.close();
await subscription.cancel();
exit(result == 'pass' ? 0 : 1);
final Map<String, dynamic> result = jsonDecode(data);
exit(result['result'] == 'true' ? 0 : 1);
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package io.flutter.plugins.androidintentexample;

import androidx.test.rule.ActivityTestRule;
import dev.flutter.plugins.e2e.FlutterRunner;
import dev.flutter.plugins.integration_test.FlutterTestRunner;
import org.junit.Rule;
import org.junit.runner.RunWith;

@RunWith(FlutterRunner.class)
@RunWith(FlutterTestRunner.class)
public class EmbeddingV1ActivityTest {
@Rule
public ActivityTestRule<EmbeddingV1Activity> rule =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package io.flutter.plugins.androidintentexample;

import androidx.test.rule.ActivityTestRule;
import dev.flutter.plugins.e2e.FlutterRunner;
import dev.flutter.plugins.integration_test.FlutterTestRunner;
import org.junit.Rule;
import org.junit.runner.RunWith;

@RunWith(FlutterRunner.class)
@RunWith(FlutterTestRunner.class)
public class MainActivityTest {
@Rule public ActivityTestRule<MainActivity> rule = new ActivityTestRule<>(MainActivity.class);
}
3 changes: 2 additions & 1 deletion packages/android_intent/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ dependencies:
path: ../

dev_dependencies:
e2e: "^0.2.1"
integration_test:
path: ../../integration_test
flutter_driver:
sdk: flutter
pedantic: ^1.8.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'dart:io';

import 'package:android_intent/android_intent.dart';
import 'package:android_intent_example/main.dart';
import 'package:e2e/e2e.dart';
import 'package:integration_test/integration_test.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
Expand All @@ -12,7 +12,7 @@ import 'package:flutter_test/flutter_test.dart';
/// possible to meaningfully test it through its Dart interface currently. There
/// are more useful unit tests for the platform logic under android/src/test/.
void main() {
E2EWidgetsFlutterBinding.ensureInitialized();
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
testWidgets('Embedding example app loads', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(MyApp());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import 'dart:async';
import 'dart:convert';
import 'dart:io';

import 'package:flutter_driver/flutter_driver.dart';

Future<void> main() async {
final FlutterDriver driver = await FlutterDriver.connect();
final String result =
await driver.requestData(null, timeout: const Duration(minutes: 1));
final String data = await driver.requestData(
null,
timeout: const Duration(minutes: 1),
);
await driver.close();
exit(result == 'pass' ? 0 : 1);
final Map<String, dynamic> result = jsonDecode(data);
exit(result['result'] == 'true' ? 0 : 1);
}
10 changes: 10 additions & 0 deletions packages/battery/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 1.0.3

* Update package:e2e to use package:integration_test


## 1.0.2

* Update package:e2e reference to use the local version in the flutter/plugins
repository.

## 1.0.1

* Update lower bound of dart dependency to 2.1.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
package io.flutter.plugins.batteryexample;

import androidx.test.rule.ActivityTestRule;
import dev.flutter.plugins.e2e.FlutterRunner;
import dev.flutter.plugins.integration_test.FlutterTestRunner;
import org.junit.Rule;
import org.junit.runner.RunWith;

@RunWith(FlutterRunner.class)
@RunWith(FlutterTestRunner.class)
public class EmbedderV1ActivityTest {
@Rule
public ActivityTestRule<EmbedderV1Activity> rule =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
package io.flutter.plugins.batteryexample;

import androidx.test.rule.ActivityTestRule;
import dev.flutter.plugins.e2e.FlutterRunner;
import dev.flutter.plugins.integration_test.FlutterTestRunner;
import io.flutter.embedding.android.FlutterActivity;
import org.junit.Rule;
import org.junit.runner.RunWith;

@RunWith(FlutterRunner.class)
@RunWith(FlutterTestRunner.class)
public class FlutterActivityTest {
@Rule
public ActivityTestRule<FlutterActivity> rule = new ActivityTestRule<>(FlutterActivity.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package io.flutter.plugins.batteryexample;

import android.os.Bundle;
import dev.flutter.plugins.e2e.E2EPlugin;
import dev.flutter.plugins.integration_test.IntegrationTestPlugin;
import io.flutter.app.FlutterActivity;
import io.flutter.plugins.battery.BatteryPlugin;

Expand All @@ -14,6 +14,7 @@ public class EmbedderV1Activity extends FlutterActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
BatteryPlugin.registerWith(registrarFor("io.flutter.plugins.battery.BatteryPlugin"));
E2EPlugin.registerWith(registrarFor("dev.flutter.plugins.e2e.E2EPlugin"));
IntegrationTestPlugin.registerWith(
registrarFor("dev.flutter.plugins.integration_test.IntegrationTestPlugin"));
}
}
3 changes: 2 additions & 1 deletion packages/battery/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ dependencies:
dev_dependencies:
flutter_driver:
sdk: flutter
e2e: ^0.2.1
integration_test:
path: ../../integration_test
pedantic: ^1.8.0

flutter:
Expand Down
5 changes: 3 additions & 2 deletions packages/battery/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: battery
description: Flutter plugin for accessing information about the battery state
(full, charging, discharging) on Android and iOS.
homepage: https://github.com/flutter/plugins/tree/master/packages/battery
version: 1.0.1
version: 1.0.3

flutter:
plugin:
Expand All @@ -24,7 +24,8 @@ dev_dependencies:
mockito: 3.0.0
flutter_test:
sdk: flutter
e2e: ^0.2.1
integration_test:
path: ../integration_test
pedantic: ^1.8.0

environment:
Expand Down
4 changes: 2 additions & 2 deletions packages/battery/test/battery_e2e.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

import 'package:flutter_test/flutter_test.dart';
import 'package:battery/battery.dart';
import 'package:e2e/e2e.dart';
import 'package:integration_test/integration_test.dart';

void main() {
E2EWidgetsFlutterBinding.ensureInitialized();
IntegrationTestWidgetsFlutterBinding.ensureInitialized();

testWidgets('Can get battery level', (WidgetTester tester) async {
final Battery battery = Battery();
Expand Down
10 changes: 9 additions & 1 deletion packages/camera/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
## 0.5.8+5

* Fix compilation/availability issues on iOS.

## 0.5.8+4

* Fixed bug caused by casting a `CameraAccessException` on Android.

## 0.5.8+3

* Fix bug in usage example in README.md
* Fix bug in usage example in README.md

## 0.5.8+2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,10 @@ private void instantiateCamera(MethodCall call, Result result) throws CameraAcce
private void handleException(Exception exception, Result result) {
if (exception instanceof CameraAccessException) {
result.error("CameraAccess", exception.getMessage(), null);
return;
}

// CameraAccessException can not be cast to a RuntimeException.
throw (RuntimeException) exception;
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package io.flutter.plugins.cameraexample;

import androidx.test.rule.ActivityTestRule;
import dev.flutter.plugins.e2e.FlutterRunner;
import dev.flutter.plugins.integration_test.FlutterTestRunner;
import org.junit.Rule;
import org.junit.runner.RunWith;

@RunWith(FlutterRunner.class)
@RunWith(FlutterTestRunner.class)
public class EmbeddingV1ActivityTest {
@Rule
public ActivityTestRule<EmbeddingV1Activity> rule =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package io.flutter.plugins.cameraexample;

import androidx.test.rule.ActivityTestRule;
import dev.flutter.plugins.e2e.FlutterRunner;
import dev.flutter.plugins.integration_test.FlutterTestRunner;
import io.flutter.embedding.android.FlutterActivity;
import org.junit.Rule;
import org.junit.runner.RunWith;

@RunWith(FlutterRunner.class)
@RunWith(FlutterTestRunner.class)
public class FlutterActivityTest {
@Rule
public ActivityTestRule<FlutterActivity> rule = new ActivityTestRule<>(FlutterActivity.class);
Expand Down
Loading