Skip to content

Commit

Permalink
Change pigeon version 21.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JSUYA committed Sep 9, 2024
1 parent 5244289 commit a9a13df
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 25 deletions.
2 changes: 1 addition & 1 deletion packages/video_player/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 2.5.1

* Update pigeon to 22.3.0.
* Update pigeon to 21.2.0.

## 2.5.0

Expand Down
19 changes: 8 additions & 11 deletions packages/video_player/lib/src/messages.g.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Autogenerated from Pigeon (v22.3.0), do not edit directly.
// Autogenerated from Pigeon (v21.2.0), 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, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import, no_leading_underscores_for_local_identifiers

Expand Down Expand Up @@ -207,28 +207,25 @@ class _PigeonCodec extends StandardMessageCodec {
const _PigeonCodec();
@override
void writeValue(WriteBuffer buffer, Object? value) {
if (value is int) {
buffer.putUint8(4);
buffer.putInt64(value);
} else if (value is TextureMessage) {
if (value is TextureMessage) {
buffer.putUint8(129);
writeValue(buffer, value.encode());
} else if (value is LoopingMessage) {
} else if (value is LoopingMessage) {
buffer.putUint8(130);
writeValue(buffer, value.encode());
} else if (value is VolumeMessage) {
} else if (value is VolumeMessage) {
buffer.putUint8(131);
writeValue(buffer, value.encode());
} else if (value is PlaybackSpeedMessage) {
} else if (value is PlaybackSpeedMessage) {
buffer.putUint8(132);
writeValue(buffer, value.encode());
} else if (value is PositionMessage) {
} else if (value is PositionMessage) {
buffer.putUint8(133);
writeValue(buffer, value.encode());
} else if (value is CreateMessage) {
} else if (value is CreateMessage) {
buffer.putUint8(134);
writeValue(buffer, value.encode());
} else if (value is MixWithOthersMessage) {
} else if (value is MixWithOthersMessage) {
buffer.putUint8(135);
writeValue(buffer, value.encode());
} else {
Expand Down
2 changes: 1 addition & 1 deletion packages/video_player/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ dependencies:
video_player_platform_interface: ^6.2.0

dev_dependencies:
pigeon: ^22.3.0
pigeon: ^21.2.0
22 changes: 11 additions & 11 deletions packages/video_player/tizen/src/messages.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Autogenerated from Pigeon (v22.3.0), do not edit directly.
// Autogenerated from Pigeon (v21.2.0), do not edit directly.
// See also: https://pub.dev/packages/pigeon

#undef _HAS_EXCEPTIONS
Expand All @@ -21,10 +21,10 @@ using flutter::EncodableMap;
using flutter::EncodableValue;

FlutterError CreateConnectionError(const std::string channel_name) {
return FlutterError(
"channel-error",
"Unable to establish connection on channel: '" + channel_name + "'.",
EncodableValue(""));
return FlutterError(
"channel-error",
"Unable to establish connection on channel: '" + channel_name + "'.",
EncodableValue(""));
}

// TextureMessage
Expand All @@ -50,7 +50,7 @@ EncodableList TextureMessage::ToEncodableList() const {

TextureMessage TextureMessage::FromEncodableList(const EncodableList& list) {
TextureMessage decoded(
std::get<int64_t>(list[0]));
list[0].LongValue());
return decoded;
}

Expand Down Expand Up @@ -90,7 +90,7 @@ EncodableList LoopingMessage::ToEncodableList() const {

LoopingMessage LoopingMessage::FromEncodableList(const EncodableList& list) {
LoopingMessage decoded(
std::get<int64_t>(list[0]),
list[0].LongValue(),
std::get<bool>(list[1]));
return decoded;
}
Expand Down Expand Up @@ -131,7 +131,7 @@ EncodableList VolumeMessage::ToEncodableList() const {

VolumeMessage VolumeMessage::FromEncodableList(const EncodableList& list) {
VolumeMessage decoded(
std::get<int64_t>(list[0]),
list[0].LongValue(),
std::get<double>(list[1]));
return decoded;
}
Expand Down Expand Up @@ -172,7 +172,7 @@ EncodableList PlaybackSpeedMessage::ToEncodableList() const {

PlaybackSpeedMessage PlaybackSpeedMessage::FromEncodableList(const EncodableList& list) {
PlaybackSpeedMessage decoded(
std::get<int64_t>(list[0]),
list[0].LongValue(),
std::get<double>(list[1]));
return decoded;
}
Expand Down Expand Up @@ -213,8 +213,8 @@ EncodableList PositionMessage::ToEncodableList() const {

PositionMessage PositionMessage::FromEncodableList(const EncodableList& list) {
PositionMessage decoded(
std::get<int64_t>(list[0]),
std::get<int64_t>(list[1]));
list[0].LongValue(),
list[1].LongValue());
return decoded;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/video_player/tizen/src/messages.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Autogenerated from Pigeon (v22.3.0), do not edit directly.
// Autogenerated from Pigeon (v21.2.0), do not edit directly.
// See also: https://pub.dev/packages/pigeon

#ifndef PIGEON_MESSAGES_H_
Expand Down

0 comments on commit a9a13df

Please sign in to comment.