Repository navigation
Conversation
ネイティブコードを SPM 標準レイアウトへ移し、Package.swift を追加。podspec も新レイアウトに追従。pigeon を 29.0.4 に更新して生成物を再生成し、テストを現行 API に合わせた。最低 Flutter を 3.41.0、最低 iOS を 13.0 に引き上げ。
ネイティブ側の XCTest が旧型(NSNumber)と存在しないメソッドを参照してコンパイルできなかったため、現行の生成型に追従させた。Dart 側は開始オフセットの加減算、バッファ未指定、解像度 0 の境界を検証するテストを追加した。
Author
|
依頼範囲(SPM 対応と example のビルド確認)を超える変更(pigeon 更新・生成物の再生成・テスト書き換え)を含んでいたため、範囲を絞った #437 に作り直しました。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
video_player_avfoundation(iOS 実装)を Swift Package Manager (SPM) に対応させます。CocoaPods も引き続き使えます。ios/video_player_avfoundation/Sources/video_player_avfoundation/、ヘッダはinclude/video_player_avfoundation/)ios/video_player_avfoundation/Package.swiftを追加(FlutterFramework依存、privacy manifest を resources に指定)29.0.4(完全固定)に更新し、生成物を再生成NSInteger/BOOL/double)に変わったため、FLTVideoPlayerPlugin.mを型の追従のみ修正(再生ロジックは変更なし)example/iosは Flutter の自動移行差分)破壊的変更
3.41.0(FlutterFrameworkパッケージが入った版)、最低 Dart を3.11.0に引き上げ13.0に引き上げmessages.g.h)の破壊的変更FLTAVFoundationVideoPlayerApiSetup→SetUpFLTAVFoundationVideoPlayerApiNSNumber *→NSInteger/BOOL/double補足
feat-set-max-bitrateの上に積んでいます。base も同ブランチです。dartTestOut(test/test_api.dartの生成)は pigeon 29.0.4 で deprecated です。将来の pigeon で削除された場合、生成 API を直接 fake/mock する形式への移行が必要です。video_player_platform_interfaceをローカル参照するdependency_overridesを持ちます。pub.dev 版(5.1.4)にはこの fork のBuffer型がなく、そのままではコンパイルできないためです。plugin 本体にも同様の override を追加しています。検証
実施済み:
flutter test(plugin): 24 件成功RunnerTests、iPhone シミュレータ): 6 件成功(新しい生成型でcreate/dispose/setPlaybackSpeed/setVolume/seekToなどが動作)flutter analyze: error / warning なし未実施(このため draft):
RunnerUITests)は未実行dart formatの確認(Dart 3.12 のフォーマッタが既存コードと異なる整形を出すため、全体整形は見送り)version(2.3.5)は意図的に据え置き(WinTicket チーム内でのみ利用するため、変更範囲を広げない)。CHANGELOG は## NEXTに追記Pre-launch Checklist
[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).