Fix NativeVideoStore isBlockingAds for release builds.
All checks were successful
Actions probe / probe (push) Successful in 0s
Release APK / Build & publish release (push) Successful in 8m20s

build_runner had stripped a hand-patched override from the generated store; implement the VideoPlayerInterface getter on the hand-written base class so assembleRelease succeeds.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
copilot 2026-09-30 23:25:33 +02:00
parent d8247843c4
commit cff29232c7
2 changed files with 7 additions and 1 deletions

View file

@ -131,6 +131,12 @@ abstract class NativeVideoStoreBase
@readonly @readonly
var _blockingAds = false; var _blockingAds = false;
/// Exposes [_blockingAds] via [VideoPlayerInterface.isBlockingAds]
/// (must live in the hand-written store — build_runner will strip a
/// hand-patched override from the `.g.dart`).
@override
bool get isBlockingAds => _blockingAds;
@readonly @readonly
var _paused = true; var _paused = true;

View file

@ -17,7 +17,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 5.2.2+72 version: 5.2.3+73
environment: environment:
sdk: ^3.9.0 sdk: ^3.9.0