-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate video player plugin to Dart 2.12 and Flutter 2.0
- Loading branch information
1 parent
9feaec5
commit 89a4938
Showing
11 changed files
with
155 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
## 1.0.0 | ||
|
||
* Initial release. | ||
|
||
## 2.0.0 | ||
|
||
* Update Dart and Flutter SDK constraints | ||
* Update Flutter copyright information | ||
* Update example and integration_test | ||
* Update platform interface to 2.0.1 | ||
* Organize dev_dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 6 additions & 3 deletions
9
packages/video_player/example/test_driver/integration_test.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
packages/video_player/example/test_driver/video_player.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright 2013 The Flutter Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
// TODO(egarciad): Remove once Flutter driver is migrated to null safety. | ||
// @dart = 2.9 | ||
|
||
import 'package:flutter_driver/driver_extension.dart'; | ||
import 'package:video_player_example/main.dart' as app; | ||
|
||
void main() { | ||
enableFlutterDriverExtension(); | ||
app.main(); | ||
} |
30 changes: 30 additions & 0 deletions
30
packages/video_player/example/test_driver/video_player_test.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright 2013 The Flutter Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
// TODO(egarciad): Remove once Flutter driver is migrated to null safety. | ||
// @dart = 2.9 | ||
|
||
import 'dart:async'; | ||
import 'package:flutter_driver/flutter_driver.dart'; | ||
import 'package:test/test.dart'; | ||
|
||
Future<void> main() async { | ||
final FlutterDriver driver = await FlutterDriver.connect(); | ||
tearDownAll(() async { | ||
await driver.close(); | ||
}); | ||
|
||
//TODO(cyanglaz): Use TabBar tabs to navigate between pages after https://github.com/flutter/flutter/issues/16991 is fixed. | ||
//TODO(cyanglaz): Un-skip the test after https://github.com/flutter/flutter/issues/43012 is fixed | ||
test('Push a page contains video and pop back, do not crash.', () async { | ||
final SerializableFinder pushTab = find.byValueKey('push_tab'); | ||
await driver.waitFor(pushTab); | ||
await driver.tap(pushTab); | ||
await driver.waitForAbsent(pushTab); | ||
await driver.waitFor(find.byValueKey('home_page')); | ||
await driver.waitUntilNoTransientCallbacks(); | ||
final Health health = await driver.checkHealth(); | ||
expect(health.status, HealthStatus.ok); | ||
}, skip: 'Cirrus CI currently hangs while playing videos'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters