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

Commit

Permalink
[video_player_platform_interface] Bump version for NNBD stable (#3578)
Browse files Browse the repository at this point in the history
  • Loading branch information
ditman authored Feb 23, 2021
1 parent af50af7 commit e21952a
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 109 deletions.
26 changes: 7 additions & 19 deletions packages/video_player/video_player_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,15 @@
## 4.0.0-nullsafety.1
## 4.0.0

* **Breaking Changes**:
* Migrate to null-safety
* Update to latest Pigeon. This includes a breaking change to how the test logic is exposed.
* Add note about the `mixWithOthers` option being ignored on the web.

## 4.0.0-nullsafety.0

* Update to latest Pigeon.
This includes a breaking change to how the test logic is exposed.

## 3.0.0-nullsafety.3

* `messages.dart` sets Dart `2.12`.

## 3.0.0-nullsafety.2

* Bump Dart SDK to support null safety.

## 3.0.0-nullsafety.1

* Make DataSource's `uri` parameter nullable.
* `messages.dart` sets Dart `2.12`.

## 3.0.0-nullsafety
## 3.0.0

* Migrate to null safety.
* Version 3 only was published as nullsafety "previews".

## 2.2.1

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Autogenerated from Pigeon (v0.1.19), do not edit directly.
// Autogenerated from Pigeon (v0.1.21), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import
// @dart = 2.12
Expand All @@ -18,7 +18,7 @@ class TextureMessage {

static TextureMessage decode(Object message) {
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
return TextureMessage()..textureId = pigeonMap['textureId'] as int;
return TextureMessage()..textureId = pigeonMap['textureId'] as int?;
}
}

Expand All @@ -40,10 +40,10 @@ class CreateMessage {
static CreateMessage decode(Object message) {
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
return CreateMessage()
..asset = pigeonMap['asset'] as String
..uri = pigeonMap['uri'] as String
..packageName = pigeonMap['packageName'] as String
..formatHint = pigeonMap['formatHint'] as String;
..asset = pigeonMap['asset'] as String?
..uri = pigeonMap['uri'] as String?
..packageName = pigeonMap['packageName'] as String?
..formatHint = pigeonMap['formatHint'] as String?;
}
}

Expand All @@ -61,8 +61,8 @@ class LoopingMessage {
static LoopingMessage decode(Object message) {
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
return LoopingMessage()
..textureId = pigeonMap['textureId'] as int
..isLooping = pigeonMap['isLooping'] as bool;
..textureId = pigeonMap['textureId'] as int?
..isLooping = pigeonMap['isLooping'] as bool?;
}
}

Expand All @@ -80,8 +80,8 @@ class VolumeMessage {
static VolumeMessage decode(Object message) {
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
return VolumeMessage()
..textureId = pigeonMap['textureId'] as int
..volume = pigeonMap['volume'] as double;
..textureId = pigeonMap['textureId'] as int?
..volume = pigeonMap['volume'] as double?;
}
}

Expand All @@ -99,8 +99,8 @@ class PlaybackSpeedMessage {
static PlaybackSpeedMessage decode(Object message) {
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
return PlaybackSpeedMessage()
..textureId = pigeonMap['textureId'] as int
..speed = pigeonMap['speed'] as double;
..textureId = pigeonMap['textureId'] as int?
..speed = pigeonMap['speed'] as double?;
}
}

Expand All @@ -118,8 +118,8 @@ class PositionMessage {
static PositionMessage decode(Object message) {
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
return PositionMessage()
..textureId = pigeonMap['textureId'] as int
..position = pigeonMap['position'] as int;
..textureId = pigeonMap['textureId'] as int?
..position = pigeonMap['position'] as int?;
}
}

Expand All @@ -135,7 +135,7 @@ class MixWithOthersMessage {
static MixWithOthersMessage decode(Object message) {
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
return MixWithOthersMessage()
..mixWithOthers = pigeonMap['mixWithOthers'] as bool;
..mixWithOthers = pigeonMap['mixWithOthers'] as bool?;
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Autogenerated from Pigeon (v0.1.19), do not edit directly.
// Autogenerated from Pigeon (v0.1.21), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import
// @dart = 2.12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@ description: A common platform interface for the video_player plugin.
homepage: https://github.com/flutter/plugins/tree/master/packages/video_player/video_player_platform_interface
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version: 4.0.0-nullsafety.1
version: 4.0.0

dependencies:
flutter:
sdk: flutter
meta: ^1.3.0-nullsafety.3
meta: ^1.3.0
flutter_test:
sdk: flutter

dev_dependencies:
mockito: ^4.1.1
pedantic: ^1.10.0-nullsafety.1
pedantic: ^1.10.0

environment:
sdk: ">=2.12.0-0 <3.0.0"
flutter: ">=1.10.0"
sdk: ">=2.12.0-259.9.beta <3.0.0"
flutter: ">=1.20.0"
Loading

0 comments on commit e21952a

Please sign in to comment.