fix(supply-chain): verify CI and production inputs
Pin external actions, images, toolchains, native archives, and tvOS engine artifacts; enforce fail-closed CI checks and keep website privacy disclosures aligned with shipped behavior.
This commit is contained in:
@@ -74,15 +74,20 @@ class SystemShelfService {
|
||||
}
|
||||
|
||||
Future<dynamic> _handleMethodCall(MethodCall call) async {
|
||||
if (call.method == 'onWatchNextTap' || call.method == 'onShelfItemTap') {
|
||||
final args = call.arguments;
|
||||
final contentId = args is Map ? args['contentId'] as String? : null;
|
||||
if (contentId != null) {
|
||||
onShelfItemTap?.call(contentId);
|
||||
}
|
||||
if (call.method != 'onWatchNextTap' && call.method != 'onShelfItemTap') {
|
||||
return null;
|
||||
}
|
||||
final args = call.arguments;
|
||||
final contentId = args is Map ? args['contentId'] as String? : null;
|
||||
final callback = onShelfItemTap;
|
||||
if (contentId == null || callback == null) return false;
|
||||
callback(contentId);
|
||||
return true;
|
||||
}
|
||||
|
||||
@visibleForTesting
|
||||
Future<dynamic> handleMethodCallForTesting(MethodCall call) => _handleMethodCall(call);
|
||||
|
||||
/// Establishes the only owner allowed to publish launcher shelf state.
|
||||
///
|
||||
/// Ownership changes are synchronous. Native mutations remain serialized
|
||||
|
||||
Reference in New Issue
Block a user