27 lines
541 B
Dart
27 lines
541 B
Dart
import '../app/app_store_policy.dart';
|
|
import 'go_core.dart';
|
|
|
|
bool shouldBlockEmbeddedAgentLaunch({
|
|
required bool isAppleHost,
|
|
bool? enabled,
|
|
}) {
|
|
return shouldApplyAppleAppStorePolicy(
|
|
isAppleHost: isAppleHost,
|
|
enabled: enabled,
|
|
);
|
|
}
|
|
|
|
bool shouldBlockGoCoreLaunch(
|
|
GoCoreLaunch launch, {
|
|
required bool isAppleHost,
|
|
bool? enabled,
|
|
}) {
|
|
if (!shouldApplyAppleAppStorePolicy(
|
|
isAppleHost: isAppleHost,
|
|
enabled: enabled,
|
|
)) {
|
|
return false;
|
|
}
|
|
return launch.source != GoCoreLaunchSource.bundledHelper;
|
|
}
|