v1.3.1 — iOS Swift Package Manager build fix
iOS Swift Package Manager build fix
Fixes a build failure on iOS when the host app uses Flutter's Swift Package Manager integration (issues #36, #42):
Swift Compiler Error: Cannot find 'npLog' in scope
.../ios/better_native_video_player/Sources/better_native_video_player/View/VideoPlayerView.swift
Root cause
The plugin ships two parallel iOS source trees. CocoaPods compiles everything under ios/Classes/ (s.source_files = 'Classes/**/*.swift'), while the SwiftPM target (ios/better_native_video_player) symlinks each subdirectory of Classes/ into its Sources/ folder. Logging.swift — which defines npLog and is the only file at the top level of Classes/ — had no symlink, so it was excluded from the SwiftPM target. Any call site then failed to compile under a SwiftPM build. CocoaPods builds were never affected.
Fix
Added the missing Logging.swift symlink to the SwiftPM target. Verified by building the example app on an iOS simulator with flutter config --enable-swift-package-manager: it fails with the reported error before the change and builds cleanly after.
Upgrading
Bump to better_native_video_player: ^1.3.1. If you hit this on 1.3.0, also clear caches after upgrading — SwiftPM caches in DerivedData, or cd ios && pod deintegrate && pod install for CocoaPods.
Full changelog: https://github.com/plug-and-pay/flutter-native-video-player/blob/master/CHANGELOG.md