Skip to content

Commit e21952a

Browse files
authored
[video_player_platform_interface] Bump version for NNBD stable (flutter#3578)
1 parent af50af7 commit e21952a

File tree

5 files changed

+70
-109
lines changed

5 files changed

+70
-109
lines changed

packages/video_player/video_player_platform_interface/CHANGELOG.md

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,15 @@
1-
## 4.0.0-nullsafety.1
1+
## 4.0.0
22

3+
* **Breaking Changes**:
4+
* Migrate to null-safety
5+
* Update to latest Pigeon. This includes a breaking change to how the test logic is exposed.
36
* Add note about the `mixWithOthers` option being ignored on the web.
4-
5-
## 4.0.0-nullsafety.0
6-
7-
* Update to latest Pigeon.
8-
This includes a breaking change to how the test logic is exposed.
9-
10-
## 3.0.0-nullsafety.3
11-
12-
* `messages.dart` sets Dart `2.12`.
13-
14-
## 3.0.0-nullsafety.2
15-
16-
* Bump Dart SDK to support null safety.
17-
18-
## 3.0.0-nullsafety.1
19-
207
* Make DataSource's `uri` parameter nullable.
8+
* `messages.dart` sets Dart `2.12`.
219

22-
## 3.0.0-nullsafety
10+
## 3.0.0
2311

24-
* Migrate to null safety.
12+
* Version 3 only was published as nullsafety "previews".
2513

2614
## 2.2.1
2715

packages/video_player/video_player_platform_interface/lib/messages.dart

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Autogenerated from Pigeon (v0.1.19), do not edit directly.
1+
// Autogenerated from Pigeon (v0.1.21), do not edit directly.
22
// See also: https://pub.dev/packages/pigeon
33
// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import
44
// @dart = 2.12
@@ -18,7 +18,7 @@ class TextureMessage {
1818

1919
static TextureMessage decode(Object message) {
2020
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
21-
return TextureMessage()..textureId = pigeonMap['textureId'] as int;
21+
return TextureMessage()..textureId = pigeonMap['textureId'] as int?;
2222
}
2323
}
2424

@@ -40,10 +40,10 @@ class CreateMessage {
4040
static CreateMessage decode(Object message) {
4141
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
4242
return CreateMessage()
43-
..asset = pigeonMap['asset'] as String
44-
..uri = pigeonMap['uri'] as String
45-
..packageName = pigeonMap['packageName'] as String
46-
..formatHint = pigeonMap['formatHint'] as String;
43+
..asset = pigeonMap['asset'] as String?
44+
..uri = pigeonMap['uri'] as String?
45+
..packageName = pigeonMap['packageName'] as String?
46+
..formatHint = pigeonMap['formatHint'] as String?;
4747
}
4848
}
4949

@@ -61,8 +61,8 @@ class LoopingMessage {
6161
static LoopingMessage decode(Object message) {
6262
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
6363
return LoopingMessage()
64-
..textureId = pigeonMap['textureId'] as int
65-
..isLooping = pigeonMap['isLooping'] as bool;
64+
..textureId = pigeonMap['textureId'] as int?
65+
..isLooping = pigeonMap['isLooping'] as bool?;
6666
}
6767
}
6868

@@ -80,8 +80,8 @@ class VolumeMessage {
8080
static VolumeMessage decode(Object message) {
8181
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
8282
return VolumeMessage()
83-
..textureId = pigeonMap['textureId'] as int
84-
..volume = pigeonMap['volume'] as double;
83+
..textureId = pigeonMap['textureId'] as int?
84+
..volume = pigeonMap['volume'] as double?;
8585
}
8686
}
8787

@@ -99,8 +99,8 @@ class PlaybackSpeedMessage {
9999
static PlaybackSpeedMessage decode(Object message) {
100100
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
101101
return PlaybackSpeedMessage()
102-
..textureId = pigeonMap['textureId'] as int
103-
..speed = pigeonMap['speed'] as double;
102+
..textureId = pigeonMap['textureId'] as int?
103+
..speed = pigeonMap['speed'] as double?;
104104
}
105105
}
106106

@@ -118,8 +118,8 @@ class PositionMessage {
118118
static PositionMessage decode(Object message) {
119119
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
120120
return PositionMessage()
121-
..textureId = pigeonMap['textureId'] as int
122-
..position = pigeonMap['position'] as int;
121+
..textureId = pigeonMap['textureId'] as int?
122+
..position = pigeonMap['position'] as int?;
123123
}
124124
}
125125

@@ -135,7 +135,7 @@ class MixWithOthersMessage {
135135
static MixWithOthersMessage decode(Object message) {
136136
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
137137
return MixWithOthersMessage()
138-
..mixWithOthers = pigeonMap['mixWithOthers'] as bool;
138+
..mixWithOthers = pigeonMap['mixWithOthers'] as bool?;
139139
}
140140
}
141141

packages/video_player/video_player_platform_interface/lib/test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Autogenerated from Pigeon (v0.1.19), do not edit directly.
1+
// Autogenerated from Pigeon (v0.1.21), do not edit directly.
22
// See also: https://pub.dev/packages/pigeon
33
// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import
44
// @dart = 2.12

packages/video_player/video_player_platform_interface/pubspec.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,18 @@ description: A common platform interface for the video_player plugin.
33
homepage: https://github.com/flutter/plugins/tree/master/packages/video_player/video_player_platform_interface
44
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
55
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
6-
version: 4.0.0-nullsafety.1
6+
version: 4.0.0
77

88
dependencies:
99
flutter:
1010
sdk: flutter
11-
meta: ^1.3.0-nullsafety.3
11+
meta: ^1.3.0
1212
flutter_test:
1313
sdk: flutter
1414

1515
dev_dependencies:
16-
mockito: ^4.1.1
17-
pedantic: ^1.10.0-nullsafety.1
16+
pedantic: ^1.10.0
1817

1918
environment:
20-
sdk: ">=2.12.0-0 <3.0.0"
21-
flutter: ">=1.10.0"
19+
sdk: ">=2.12.0-259.9.beta <3.0.0"
20+
flutter: ">=1.20.0"

0 commit comments

Comments
 (0)