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

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

Commit c9c234a

Browse files
[video_player] Add 5.0 interface support (#4627)
Allows the other video_player packages to use either 4.x or 5.x of `video_player_platform_interface`, since the only breaking change doesn't affect them (as it just removes test code that they no longer use). This allows clients of `video_player` to no longer have a transitive dependency on test packages, but doesn't create any version lock with any unendorsed implementations that might exist. Fixes flutter/flutter#83562
1 parent 3972212 commit c9c234a

File tree

5 files changed

+15
-54
lines changed

5 files changed

+15
-54
lines changed

packages/video_player/video_player/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 2.2.9
2+
3+
* Adds compatibility with `video_player_platform_interface` 5.0, which does not
4+
include non-dev test dependencies.
5+
16
## 2.2.8
27

38
* Changes the way the `VideoPlayerPlatform` instance is cached in the

packages/video_player/video_player/CONTRIBUTING.md

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -31,52 +31,3 @@ pigeon, not your version or the version on master.
3131
In either case, the configuration will be obtained automatically from
3232
the `pigeons/messages.dart` file (see `configurePigeon` at the bottom
3333
of that file).
34-
35-
While contributing, you may also want to set the following dependency
36-
overrides:
37-
38-
```yaml
39-
dependency_overrides:
40-
video_player_platform_interface:
41-
path:
42-
../video_player_platform_interface
43-
video_player_web:
44-
path:
45-
../video_player_web
46-
```
47-
48-
## Publishing plugin updates that span multiple plugin packages
49-
50-
If your change affects both the interface package and the
51-
implementation packages, then you will need to publish a version of
52-
the plugin in between landing the interface changes and the
53-
implementation changes, since the implementations depend on the
54-
interface via pub.
55-
56-
To do this, follow these steps:
57-
58-
1. Create a PR that has all the changes, and update the
59-
`pubspec.yaml`s to have path-based dependency overrides as described
60-
in the "Updating pigeon-generated files" section above.
61-
62-
2. Upload that PR and get it reviewed and into a state where the only
63-
test failure is the one complaining that you can't publish a package
64-
that has dependency overrides.
65-
66-
3. Create a PR that's a subset of the one in the previous step that
67-
only includes the interface changes, with no dependency overrides, and
68-
submit that.
69-
70-
4. Once you have had that reviewed and landed, publish the interface
71-
parts of the plugin to pub.
72-
73-
5. Now, update the original full PR to not use dependency overrides
74-
but to instead refer to the new version of the plugin, and sync it to
75-
master (so that the interface changes are gone from the PR). Submit
76-
that PR.
77-
78-
6. Once you have had _that_ PR reviewed and landed, publish the
79-
implementation parts of the plugin to pub.
80-
81-
You may need to publish each implementation package independently of
82-
the main package also, depending on exactly what your change entails.

packages/video_player/video_player/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin for displaying inline video with other Flutter
33
widgets on Android, iOS, and web.
44
repository: https://github.com/flutter/plugins/tree/master/packages/video_player/video_player
55
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+video_player%22
6-
version: 2.2.8
6+
version: 2.2.9
77

88
environment:
99
sdk: ">=2.14.0 <3.0.0"
@@ -24,7 +24,7 @@ dependencies:
2424
flutter:
2525
sdk: flutter
2626
meta: ^1.3.0
27-
video_player_platform_interface: ^4.2.0
27+
video_player_platform_interface: ">=4.2.0 <6.0.0"
2828
video_player_web: ^2.0.0
2929
html: ^0.15.0
3030

packages/video_player/video_player_web/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
## 2.0.5
2+
3+
* Adds compatibility with `video_player_platform_interface` 5.0, which does not
4+
include non-dev test dependencies.
5+
16
## 2.0.4
27

38
* Adopt `video_player_platform_interface` 4.2 and opt out of `contentUri` data source.
4-
9+
510
## 2.0.3
611

712
* Add `implements` to pubspec.

packages/video_player/video_player_web/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: video_player_web
22
description: Web platform implementation of video_player.
33
repository: https://github.com/flutter/plugins/tree/master/packages/video_player/video_player_web
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+video_player%22
5-
version: 2.0.4
5+
version: 2.0.5
66

77
environment:
88
sdk: ">=2.12.0 <3.0.0"
@@ -23,7 +23,7 @@ dependencies:
2323
sdk: flutter
2424
meta: ^1.3.0
2525
pedantic: ^1.10.0
26-
video_player_platform_interface: ^4.2.0
26+
video_player_platform_interface: ">=4.2.0 <6.0.0"
2727

2828
dev_dependencies:
2929
flutter_test:

0 commit comments

Comments
 (0)