Bug
@gaaclarke Using pigeon v1.5.0 on the video_player plugin generates code that has analysis issues.
I needed to remove the following block of code manually:
flutter-team-archive/plugins@a068b6d
final Map<dynamic, dynamic> mapMessage =
message as Map<dynamic, dynamic>;
This is from the setup method of the generated test host.
Generation
The pigeons/messages.dart that generates this looks as follows:
@HostApi(dartHostTestHandler: 'TestHostVideoPlayerApi')
abstract class VideoPlayerApi {
void initialize();
TextureMessage create(CreateMessage msg);
void dispose(TextureMessage msg);
void setLooping(LoopingMessage msg);
void setVolume(VolumeMessage msg);
void setPlaybackSpeed(PlaybackSpeedMessage msg);
void play(TextureMessage msg);
PositionMessage position(TextureMessage msg);
void seekTo(PositionMessage msg);
void pause(TextureMessage msg);
void setMixWithOthers(MixWithOthersMessage msg);
}
The setup method of the TestHostVideoPlayerApi contains the unused member.
Steps to reproduce
Luckily this ran on CI, which means that you can get the exact steps to reproduce from the CI steps:
https://cirrus-ci.com/task/5805102936096768
This contains all steps, completely reproducible (because it is CI and in flutter/plugins).
(https://github.com/flutter/plugins/runs/1118942372)
Bug
@gaaclarke Using
pigeonv1.5.0on thevideo_playerplugin generates code that has analysis issues.I needed to remove the following block of code manually:
flutter-team-archive/plugins@a068b6d
This is from the
setupmethod of the generated test host.Generation
The
pigeons/messages.dartthat generates this looks as follows:The
setupmethod of theTestHostVideoPlayerApicontains the unused member.Steps to reproduce
Luckily this ran on CI, which means that you can get the exact steps to reproduce from the CI steps:
https://cirrus-ci.com/task/5805102936096768
This contains all steps, completely reproducible (because it is CI and in
flutter/plugins).(https://github.com/flutter/plugins/runs/1118942372)