expo-targets 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/expo/modules/targets/ExpoTargetsConfig.kt +36 -0
- package/android/src/main/java/expo/modules/targets/ExpoTargetsRemoteViewsProvider.kt +10 -1
- package/android/src/main/java/expo/modules/targets/notification/ExpoTargetsNotificationModule.kt +2 -2
- package/android/src/main/java/expo/modules/targets/storage/ExpoTargetsStorageModule.kt +5 -13
- package/bin/export-safari-bundle.js +20 -1
- package/build/plugin/src/config.d.ts +86 -3
- package/build/plugin/src/config.d.ts.map +1 -1
- package/build/plugin/src/config.js +1 -52
- package/build/plugin/src/config.js.map +1 -1
- package/build/plugin/src/domain/typeSets.d.ts +31 -0
- package/build/plugin/src/domain/typeSets.d.ts.map +1 -0
- package/build/plugin/src/domain/typeSets.js +70 -0
- package/build/plugin/src/domain/typeSets.js.map +1 -0
- package/build/plugin/src/domain/types.d.ts +9 -0
- package/build/plugin/src/domain/types.d.ts.map +1 -0
- package/build/plugin/src/domain/types.js +10 -0
- package/build/plugin/src/domain/types.js.map +1 -0
- package/build/src/Target.d.ts.map +1 -1
- package/build/src/Target.js +5 -13
- package/build/src/Target.js.map +1 -1
- package/build/src/index.d.ts +3 -1
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js +56 -52
- package/build/src/index.js.map +1 -1
- package/build/src/modules/appIntents/index.d.ts +53 -0
- package/build/src/modules/appIntents/index.d.ts.map +1 -0
- package/build/src/modules/appIntents/index.js +145 -0
- package/build/src/modules/appIntents/index.js.map +1 -0
- package/build/src/modules/contentBlocker/index.js +2 -2
- package/build/src/modules/contentBlocker/index.js.map +1 -1
- package/build/src/modules/extension/index.js +2 -2
- package/build/src/modules/extension/index.js.map +1 -1
- package/build/src/modules/extensionBundle/ExtensionUpdatesApi.js +1 -1
- package/build/src/modules/extensionBundle/ExtensionUpdatesApi.js.map +1 -1
- package/build/src/modules/extensionBundle/enableExtensionUpdates.d.ts.map +1 -1
- package/build/src/modules/extensionBundle/enableExtensionUpdates.js +2 -8
- package/build/src/modules/extensionBundle/enableExtensionUpdates.js.map +1 -1
- package/build/src/modules/extensionBundle/nativeInstall.js +2 -2
- package/build/src/modules/extensionBundle/nativeInstall.js.map +1 -1
- package/build/src/modules/fileProvider/index.js +2 -2
- package/build/src/modules/fileProvider/index.js.map +1 -1
- package/build/src/modules/liveActivity/index.d.ts +1 -1
- package/build/src/modules/liveActivity/index.d.ts.map +1 -1
- package/build/src/modules/liveActivity/index.js +2 -2
- package/build/src/modules/liveActivity/index.js.map +1 -1
- package/build/src/modules/messages/index.js +2 -2
- package/build/src/modules/messages/index.js.map +1 -1
- package/build/src/modules/notification/index.js +2 -2
- package/build/src/modules/notification/index.js.map +1 -1
- package/build/src/modules/storage/appGroup.d.ts +7 -0
- package/build/src/modules/storage/appGroup.d.ts.map +1 -0
- package/build/src/modules/storage/appGroup.js +25 -0
- package/build/src/modules/storage/appGroup.js.map +1 -0
- package/build/src/modules/storage/index.d.ts +19 -3
- package/build/src/modules/storage/index.d.ts.map +1 -1
- package/build/src/modules/storage/index.js +37 -4
- package/build/src/modules/storage/index.js.map +1 -1
- package/build/src/modules/targetsConfig.d.ts.map +1 -1
- package/build/src/modules/targetsConfig.js +1 -13
- package/build/src/modules/targetsConfig.js.map +1 -1
- package/build/src/resolveHostProduct.d.ts.map +1 -1
- package/build/src/resolveHostProduct.js +2 -1
- package/build/src/resolveHostProduct.js.map +1 -1
- package/build/src/widgets.d.ts +1 -1
- package/build/src/widgets.d.ts.map +1 -1
- package/build/src/widgets.js +4 -4
- package/build/src/widgets.js.map +1 -1
- package/cli/build/checks/bundleIds.d.ts +4 -0
- package/cli/build/checks/bundleIds.d.ts.map +1 -0
- package/cli/build/checks/bundleIds.js +38 -0
- package/cli/build/checks/bundleIds.js.map +1 -0
- package/cli/build/checks/configFilename.js +1 -1
- package/cli/build/checks/configFilename.js.map +1 -1
- package/cli/build/checks/heavyExclusions.d.ts.map +1 -1
- package/cli/build/checks/heavyExclusions.js +2 -8
- package/cli/build/checks/heavyExclusions.js.map +1 -1
- package/cli/build/checks/updateScript.d.ts.map +1 -1
- package/cli/build/checks/updateScript.js +2 -8
- package/cli/build/checks/updateScript.js.map +1 -1
- package/cli/build/doctor.d.ts.map +1 -1
- package/cli/build/doctor.js +2 -0
- package/cli/build/doctor.js.map +1 -1
- package/cli/build/exportExtensionBundles.d.ts.map +1 -1
- package/cli/build/exportExtensionBundles.js +2 -8
- package/cli/build/exportExtensionBundles.js.map +1 -1
- package/cli/build/exportSafari.d.ts +13 -1
- package/cli/build/exportSafari.d.ts.map +1 -1
- package/cli/build/exportSafari.js +77 -22
- package/cli/build/exportSafari.js.map +1 -1
- package/cli/build/extensionBundle/constants.d.ts +1 -3
- package/cli/build/extensionBundle/constants.d.ts.map +1 -1
- package/cli/build/extensionBundle/constants.js +4 -17
- package/cli/build/extensionBundle/constants.js.map +1 -1
- package/cli/build/index.js +4 -3
- package/cli/build/index.js.map +1 -1
- package/cli/build/project.d.ts +3 -1
- package/cli/build/project.d.ts.map +1 -1
- package/cli/build/project.js +11 -111
- package/cli/build/project.js.map +1 -1
- package/cli/build/scaffold/copyTemplate.d.ts.map +1 -1
- package/cli/build/scaffold/copyTemplate.js +11 -3
- package/cli/build/scaffold/copyTemplate.js.map +1 -1
- package/cli/build/scaffold/prompts.d.ts.map +1 -1
- package/cli/build/scaffold/prompts.js +14 -9
- package/cli/build/scaffold/prompts.js.map +1 -1
- package/cli/build/scaffold/reactNativeTemplate.d.ts.map +1 -1
- package/cli/build/scaffold/reactNativeTemplate.js +3 -10
- package/cli/build/scaffold/reactNativeTemplate.js.map +1 -1
- package/cli/build/scaffold/resolveAppGroup.d.ts +3 -2
- package/cli/build/scaffold/resolveAppGroup.d.ts.map +1 -1
- package/cli/build/scaffold/resolveAppGroup.js +11 -51
- package/cli/build/scaffold/resolveAppGroup.js.map +1 -1
- package/cli/build/scaffold/scaffoldTarget.d.ts.map +1 -1
- package/cli/build/scaffold/scaffoldTarget.js +5 -3
- package/cli/build/scaffold/scaffoldTarget.js.map +1 -1
- package/cli/build/scaffold/templates/iosHandlers.d.ts +11 -0
- package/cli/build/scaffold/templates/iosHandlers.d.ts.map +1 -0
- package/cli/build/scaffold/templates/iosHandlers.js +1073 -0
- package/cli/build/scaffold/templates/iosHandlers.js.map +1 -0
- package/cli/build/sync.d.ts.map +1 -1
- package/cli/build/sync.js +29 -16
- package/cli/build/sync.js.map +1 -1
- package/cli/build/testing/fixtureProject.d.ts +8 -0
- package/cli/build/testing/fixtureProject.d.ts.map +1 -0
- package/cli/build/{targetConfigFile.js → testing/fixtureProject.js} +25 -25
- package/cli/build/testing/fixtureProject.js.map +1 -0
- package/cli/build/types.d.ts +3 -0
- package/cli/build/types.d.ts.map +1 -1
- package/expo-module.config.json +2 -1
- package/ios/ExpoTargetsAppIntentDispatcher.swift +190 -0
- package/ios/ExpoTargetsAppIntentsModule.swift +53 -0
- package/ios/ExpoTargetsStorage.podspec +2 -0
- package/metro/build/withTargets.d.ts +2 -1
- package/metro/build/withTargets.d.ts.map +1 -1
- package/metro/build/withTargets.js +6 -4
- package/metro/build/withTargets.js.map +1 -1
- package/package.json +17 -3
- package/plugin/README.md +107 -0
- package/plugin/build/android/withAndroidTargetsConfig.d.ts.map +1 -1
- package/plugin/build/android/withAndroidTargetsConfig.js +3 -1
- package/plugin/build/android/withAndroidTargetsConfig.js.map +1 -1
- package/plugin/build/codegen/collectRuntimeConfigs.d.ts.map +1 -1
- package/plugin/build/codegen/collectRuntimeConfigs.js +2 -10
- package/plugin/build/codegen/collectRuntimeConfigs.js.map +1 -1
- package/plugin/build/config.d.ts +86 -3
- package/plugin/build/config.d.ts.map +1 -1
- package/plugin/build/config.js +1 -52
- package/plugin/build/config.js.map +1 -1
- package/plugin/build/domain/appGroups.d.ts +18 -0
- package/plugin/build/domain/appGroups.d.ts.map +1 -1
- package/plugin/build/domain/appGroups.js +44 -0
- package/plugin/build/domain/appGroups.js.map +1 -1
- package/plugin/build/domain/bundleIds.d.ts +49 -5
- package/plugin/build/domain/bundleIds.d.ts.map +1 -1
- package/plugin/build/domain/bundleIds.js +109 -6
- package/plugin/build/domain/bundleIds.js.map +1 -1
- package/plugin/build/domain/characteristics.d.ts +2 -0
- package/plugin/build/domain/characteristics.d.ts.map +1 -1
- package/plugin/build/domain/characteristics.js +64 -8
- package/plugin/build/domain/characteristics.js.map +1 -1
- package/plugin/build/domain/entitlements.d.ts +28 -0
- package/plugin/build/domain/entitlements.d.ts.map +1 -0
- package/plugin/build/domain/entitlements.js +108 -0
- package/plugin/build/domain/entitlements.js.map +1 -0
- package/plugin/build/domain/index.d.ts +7 -3
- package/plugin/build/domain/index.d.ts.map +1 -1
- package/plugin/build/domain/index.js +26 -3
- package/plugin/build/domain/index.js.map +1 -1
- package/plugin/build/domain/rnCompat.d.ts +2 -3
- package/plugin/build/domain/rnCompat.d.ts.map +1 -1
- package/plugin/build/domain/rnCompat.js +6 -13
- package/plugin/build/domain/rnCompat.js.map +1 -1
- package/plugin/build/domain/typeSets.d.ts +31 -0
- package/plugin/build/domain/typeSets.d.ts.map +1 -0
- package/plugin/build/domain/typeSets.js +70 -0
- package/plugin/build/domain/typeSets.js.map +1 -0
- package/plugin/build/ensureHostAppGroups.d.ts.map +1 -1
- package/plugin/build/ensureHostAppGroups.js +10 -4
- package/plugin/build/ensureHostAppGroups.js.map +1 -1
- package/plugin/build/index.d.ts.map +1 -1
- package/plugin/build/index.js +4 -2
- package/plugin/build/index.js.map +1 -1
- package/plugin/build/ios/apply/fs/assets.d.ts +5 -0
- package/plugin/build/ios/apply/fs/assets.d.ts.map +1 -1
- package/plugin/build/ios/apply/fs/assets.js +32 -3
- package/plugin/build/ios/apply/fs/assets.js.map +1 -1
- package/plugin/build/ios/apply/pbx/safariWebBundle.d.ts.map +1 -1
- package/plugin/build/ios/apply/pbx/safariWebBundle.js +5 -7
- package/plugin/build/ios/apply/pbx/safariWebBundle.js.map +1 -1
- package/plugin/build/ios/cng/appShortcutsCodegen.js +1 -1
- package/plugin/build/ios/cng/appShortcutsCodegen.js.map +1 -1
- package/plugin/build/ios/cng/controlCodegen.d.ts +2 -0
- package/plugin/build/ios/cng/controlCodegen.d.ts.map +1 -1
- package/plugin/build/ios/cng/controlCodegen.js +13 -1
- package/plugin/build/ios/cng/controlCodegen.js.map +1 -1
- package/plugin/build/ios/cng/intentsCodegen.d.ts +38 -0
- package/plugin/build/ios/cng/intentsCodegen.d.ts.map +1 -0
- package/plugin/build/ios/cng/intentsCodegen.js +556 -0
- package/plugin/build/ios/cng/intentsCodegen.js.map +1 -0
- package/plugin/build/ios/cng/withExpoTargetsGenerated.d.ts +4 -1
- package/plugin/build/ios/cng/withExpoTargetsGenerated.d.ts.map +1 -1
- package/plugin/build/ios/cng/withExpoTargetsGenerated.js +90 -7
- package/plugin/build/ios/cng/withExpoTargetsGenerated.js.map +1 -1
- package/plugin/build/ios/config-plugins/withEntitlements.d.ts +2 -0
- package/plugin/build/ios/config-plugins/withEntitlements.d.ts.map +1 -1
- package/plugin/build/ios/config-plugins/withEntitlements.js +3 -0
- package/plugin/build/ios/config-plugins/withEntitlements.js.map +1 -1
- package/plugin/build/ios/config-plugins/withIOSTarget.d.ts.map +1 -1
- package/plugin/build/ios/config-plugins/withIOSTarget.js +18 -90
- package/plugin/build/ios/config-plugins/withIOSTarget.js.map +1 -1
- package/plugin/build/ios/plan/buildInfoPlist.d.ts.map +1 -1
- package/plugin/build/ios/plan/buildInfoPlist.js +11 -0
- package/plugin/build/ios/plan/buildInfoPlist.js.map +1 -1
- package/plugin/build/ios/plan/buildSettings.d.ts.map +1 -1
- package/plugin/build/ios/plan/buildSettings.js +2 -3
- package/plugin/build/ios/plan/buildSettings.js.map +1 -1
- package/plugin/build/ios/plan/entitlements.d.ts +6 -2
- package/plugin/build/ios/plan/entitlements.d.ts.map +1 -1
- package/plugin/build/ios/plan/entitlements.js +20 -23
- package/plugin/build/ios/plan/entitlements.js.map +1 -1
- package/plugin/build/ios/plan/identity.d.ts.map +1 -1
- package/plugin/build/ios/plan/identity.js +6 -5
- package/plugin/build/ios/plan/identity.js.map +1 -1
- package/plugin/build/ios/plan/safariWebBundle.d.ts.map +1 -1
- package/plugin/build/ios/plan/safariWebBundle.js +1 -0
- package/plugin/build/ios/plan/safariWebBundle.js.map +1 -1
- package/plugin/build/ios/plan/swiftSources.d.ts.map +1 -1
- package/plugin/build/ios/plan/swiftSources.js +5 -10
- package/plugin/build/ios/plan/swiftSources.js.map +1 -1
- package/plugin/build/ios/plan/types.d.ts +2 -0
- package/plugin/build/ios/plan/types.d.ts.map +1 -1
- package/plugin/build/ios/utils/asset.d.ts +7 -0
- package/plugin/build/ios/utils/asset.d.ts.map +1 -1
- package/plugin/build/ios/utils/asset.js +11 -0
- package/plugin/build/ios/utils/asset.js.map +1 -1
- package/plugin/build/ios/utils/plist.d.ts +0 -11
- package/plugin/build/ios/utils/plist.d.ts.map +1 -1
- package/plugin/build/ios/utils/plist.js +0 -32
- package/plugin/build/ios/utils/plist.js.map +1 -1
- package/plugin/build/targetsRoot.d.ts +32 -0
- package/plugin/build/targetsRoot.d.ts.map +1 -0
- package/plugin/build/targetsRoot.js +160 -0
- package/plugin/build/targetsRoot.js.map +1 -0
- package/plugin/build/withTargetsDir.d.ts.map +1 -1
- package/plugin/build/withTargetsDir.js +42 -23
- package/plugin/build/withTargetsDir.js.map +1 -1
- package/cli/build/targetConfigFile.d.ts +0 -12
- package/cli/build/targetConfigFile.d.ts.map +0 -1
- package/cli/build/targetConfigFile.js.map +0 -1
- package/plugin/build/ios/safari/exportSafariWebBundleCli.d.ts +0 -2
- package/plugin/build/ios/safari/exportSafariWebBundleCli.d.ts.map +0 -1
- package/plugin/build/ios/safari/exportSafariWebBundleCli.js +0 -75
- package/plugin/build/ios/safari/exportSafariWebBundleCli.js.map +0 -1
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RUN_INTENT_HANDLER = exports.RUN_INTENT_TYPE = exports.DEFAULT_INTENT_TIMEOUT_MS = exports.MAX_APP_SHORTCUTS = void 0;
|
|
4
|
+
exports.resolvePerform = resolvePerform;
|
|
5
|
+
exports.validateIntents = validateIntents;
|
|
6
|
+
exports.generateIntentSwift = generateIntentSwift;
|
|
7
|
+
exports.templatePhrase = templatePhrase;
|
|
8
|
+
exports.shortcutEntriesForIntents = shortcutEntriesForIntents;
|
|
9
|
+
exports.generateIntentSwiftHookStub = generateIntentSwiftHookStub;
|
|
10
|
+
exports.generateRunIntentSwift = generateRunIntentSwift;
|
|
11
|
+
exports.generateRunIntentHandlerSwift = generateRunIntentHandlerSwift;
|
|
12
|
+
exports.generateRunIntentHandlerStubSwift = generateRunIntentHandlerStubSwift;
|
|
13
|
+
exports.swiftParamsLiteral = swiftParamsLiteral;
|
|
14
|
+
/**
|
|
15
|
+
* Swift codegen for config-declared App Intents (top-level `intents` on
|
|
16
|
+
* `type: "app-intent"` targets). Each intent becomes an `AppIntent` struct in
|
|
17
|
+
* the main app whose `perform()` hands its parameters to
|
|
18
|
+
* `ExpoTargetsAppIntentDispatcher` (ExpoTargetsStorage pod), which awaits the
|
|
19
|
+
* JS handler registered with `useAppIntent` / `AppIntents.setHandler`.
|
|
20
|
+
*/
|
|
21
|
+
const SWIFT_IDENT = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
22
|
+
const SWIFT_KEYWORDS = new Set([
|
|
23
|
+
'associatedtype',
|
|
24
|
+
'class',
|
|
25
|
+
'deinit',
|
|
26
|
+
'enum',
|
|
27
|
+
'extension',
|
|
28
|
+
'func',
|
|
29
|
+
'import',
|
|
30
|
+
'init',
|
|
31
|
+
'inout',
|
|
32
|
+
'internal',
|
|
33
|
+
'let',
|
|
34
|
+
'operator',
|
|
35
|
+
'private',
|
|
36
|
+
'protocol',
|
|
37
|
+
'public',
|
|
38
|
+
'static',
|
|
39
|
+
'struct',
|
|
40
|
+
'subscript',
|
|
41
|
+
'typealias',
|
|
42
|
+
'var',
|
|
43
|
+
'break',
|
|
44
|
+
'case',
|
|
45
|
+
'continue',
|
|
46
|
+
'default',
|
|
47
|
+
'defer',
|
|
48
|
+
'do',
|
|
49
|
+
'else',
|
|
50
|
+
'fallthrough',
|
|
51
|
+
'for',
|
|
52
|
+
'guard',
|
|
53
|
+
'if',
|
|
54
|
+
'in',
|
|
55
|
+
'repeat',
|
|
56
|
+
'return',
|
|
57
|
+
'switch',
|
|
58
|
+
'where',
|
|
59
|
+
'while',
|
|
60
|
+
'as',
|
|
61
|
+
'catch',
|
|
62
|
+
'false',
|
|
63
|
+
'is',
|
|
64
|
+
'nil',
|
|
65
|
+
'rethrows',
|
|
66
|
+
'super',
|
|
67
|
+
'self',
|
|
68
|
+
'Self',
|
|
69
|
+
'throw',
|
|
70
|
+
'throws',
|
|
71
|
+
'true',
|
|
72
|
+
'try',
|
|
73
|
+
'title',
|
|
74
|
+
'description',
|
|
75
|
+
'perform',
|
|
76
|
+
]);
|
|
77
|
+
exports.MAX_APP_SHORTCUTS = 10;
|
|
78
|
+
exports.DEFAULT_INTENT_TIMEOUT_MS = 10000;
|
|
79
|
+
function swiftString(s) {
|
|
80
|
+
return s.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\n/g, '\\n');
|
|
81
|
+
}
|
|
82
|
+
function enumTypeName(intent, param) {
|
|
83
|
+
return `${intent.name}${param.name[0].toUpperCase()}${param.name.slice(1)}Option`;
|
|
84
|
+
}
|
|
85
|
+
function resolvePerform(intent) {
|
|
86
|
+
const p = intent.perform ?? 'js';
|
|
87
|
+
if (typeof p === 'object')
|
|
88
|
+
return { kind: 'swift', hook: p.swift };
|
|
89
|
+
return { kind: p };
|
|
90
|
+
}
|
|
91
|
+
const PARAM_TYPES = new Set([
|
|
92
|
+
'string',
|
|
93
|
+
'int',
|
|
94
|
+
'double',
|
|
95
|
+
'bool',
|
|
96
|
+
'date',
|
|
97
|
+
'url',
|
|
98
|
+
'enum',
|
|
99
|
+
]);
|
|
100
|
+
// biome-ignore lint/suspicious/noTemplateCurlyInString: the phrase token users write
|
|
101
|
+
const APP_NAME_TOKEN = '${applicationName}';
|
|
102
|
+
function validatePerform(intent, where) {
|
|
103
|
+
const perform = intent.perform ?? 'js';
|
|
104
|
+
const ok = typeof perform === 'object'
|
|
105
|
+
? Boolean(perform.swift) && SWIFT_IDENT.test(perform.swift)
|
|
106
|
+
: perform === 'js' || perform === 'open';
|
|
107
|
+
return ok
|
|
108
|
+
? []
|
|
109
|
+
: [`${where}: perform must be "js", "open" or { swift: "<Identifier>" }.`];
|
|
110
|
+
}
|
|
111
|
+
function validateEnum(p, pw) {
|
|
112
|
+
const errors = [];
|
|
113
|
+
const options = p.options ?? [];
|
|
114
|
+
if (options.length === 0)
|
|
115
|
+
errors.push(`${pw}: enum needs options.`);
|
|
116
|
+
const values = new Set();
|
|
117
|
+
for (const o of options) {
|
|
118
|
+
if (values.has(o.value))
|
|
119
|
+
errors.push(`${pw}: duplicate option "${o.value}".`);
|
|
120
|
+
values.add(o.value);
|
|
121
|
+
}
|
|
122
|
+
if (p.default !== undefined && !values.has(String(p.default))) {
|
|
123
|
+
errors.push(`${pw}: default must be one of the option values.`);
|
|
124
|
+
}
|
|
125
|
+
return errors;
|
|
126
|
+
}
|
|
127
|
+
function defaultMatchesType(p) {
|
|
128
|
+
const t = typeof p.default;
|
|
129
|
+
switch (p.type) {
|
|
130
|
+
case 'string':
|
|
131
|
+
return t === 'string';
|
|
132
|
+
case 'bool':
|
|
133
|
+
return t === 'boolean';
|
|
134
|
+
case 'int':
|
|
135
|
+
return Number.isInteger(p.default);
|
|
136
|
+
case 'double':
|
|
137
|
+
return t === 'number';
|
|
138
|
+
default:
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
function validateParameter(p, where) {
|
|
143
|
+
const pw = `${where} parameter "${p.name}"`;
|
|
144
|
+
const errors = [];
|
|
145
|
+
if (!SWIFT_IDENT.test(p.name) || SWIFT_KEYWORDS.has(p.name)) {
|
|
146
|
+
errors.push(`${pw}: name must be a Swift identifier and not a keyword.`);
|
|
147
|
+
}
|
|
148
|
+
if (!PARAM_TYPES.has(p.type)) {
|
|
149
|
+
errors.push(`${pw}: unknown type "${p.type}".`);
|
|
150
|
+
}
|
|
151
|
+
else if (p.type === 'enum') {
|
|
152
|
+
errors.push(...validateEnum(p, pw));
|
|
153
|
+
}
|
|
154
|
+
else if (p.default !== undefined && !defaultMatchesType(p)) {
|
|
155
|
+
errors.push(`${pw}: default does not fit type ${p.type}.`);
|
|
156
|
+
}
|
|
157
|
+
return errors;
|
|
158
|
+
}
|
|
159
|
+
function validatePhrase(intent, phrase, where) {
|
|
160
|
+
const errors = [];
|
|
161
|
+
const pw = `${where}: phrase "${phrase}"`;
|
|
162
|
+
if (!phrase.includes(APP_NAME_TOKEN)) {
|
|
163
|
+
errors.push(`${pw} must include ${APP_NAME_TOKEN}.`);
|
|
164
|
+
}
|
|
165
|
+
const used = [...phrase.matchAll(/\$\{(\w+)\}/g)]
|
|
166
|
+
.map((m) => m[1])
|
|
167
|
+
.filter((n) => n !== 'applicationName');
|
|
168
|
+
if (used.length > 1)
|
|
169
|
+
errors.push(`${pw} may use at most one parameter.`);
|
|
170
|
+
for (const n of used) {
|
|
171
|
+
const p = (intent.parameters ?? []).find((x) => x.name === n);
|
|
172
|
+
if (!p)
|
|
173
|
+
errors.push(`${pw} names unknown parameter "${n}".`);
|
|
174
|
+
else if (p.type !== 'enum') {
|
|
175
|
+
errors.push(`${pw} can only use enum parameters.`);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return errors;
|
|
179
|
+
}
|
|
180
|
+
function validateParameters(intent, where) {
|
|
181
|
+
const errors = [];
|
|
182
|
+
const seen = new Set();
|
|
183
|
+
for (const p of intent.parameters ?? []) {
|
|
184
|
+
if (seen.has(p.name)) {
|
|
185
|
+
errors.push(`${where}: duplicate parameter "${p.name}".`);
|
|
186
|
+
}
|
|
187
|
+
seen.add(p.name);
|
|
188
|
+
errors.push(...validateParameter(p, where));
|
|
189
|
+
}
|
|
190
|
+
return errors;
|
|
191
|
+
}
|
|
192
|
+
function validateShortcuts(intent, where) {
|
|
193
|
+
const errors = [];
|
|
194
|
+
for (const s of intent.shortcuts ?? []) {
|
|
195
|
+
if (!s.phrases?.length)
|
|
196
|
+
errors.push(`${where}: a shortcut has no phrases.`);
|
|
197
|
+
for (const phrase of s.phrases ?? []) {
|
|
198
|
+
errors.push(...validatePhrase(intent, phrase, where));
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return errors;
|
|
202
|
+
}
|
|
203
|
+
function validateIntent(intent, context) {
|
|
204
|
+
const where = `${context} intent "${intent.name}"`;
|
|
205
|
+
const errors = [];
|
|
206
|
+
if (!(intent.name && SWIFT_IDENT.test(intent.name))) {
|
|
207
|
+
errors.push(`${where}: name must be a Swift identifier.`);
|
|
208
|
+
}
|
|
209
|
+
if (!intent.title)
|
|
210
|
+
errors.push(`${where}: title is required.`);
|
|
211
|
+
errors.push(...validatePerform(intent, where));
|
|
212
|
+
errors.push(...validateParameters(intent, where));
|
|
213
|
+
errors.push(...validateShortcuts(intent, where));
|
|
214
|
+
return errors;
|
|
215
|
+
}
|
|
216
|
+
/** Throws with every problem found, so one prebuild shows them all. */
|
|
217
|
+
function validateIntents(intents, context, legacyShortcutCount = 0) {
|
|
218
|
+
const errors = [];
|
|
219
|
+
const names = new Set();
|
|
220
|
+
for (const intent of intents) {
|
|
221
|
+
if (names.has(intent.name)) {
|
|
222
|
+
errors.push(`${context}: duplicate intent "${intent.name}".`);
|
|
223
|
+
}
|
|
224
|
+
names.add(intent.name);
|
|
225
|
+
errors.push(...validateIntent(intent, context));
|
|
226
|
+
}
|
|
227
|
+
const shortcutCount = legacyShortcutCount +
|
|
228
|
+
intents.reduce((n, i) => n + (i.shortcuts?.length ?? 0), 0);
|
|
229
|
+
if (shortcutCount > exports.MAX_APP_SHORTCUTS) {
|
|
230
|
+
errors.push(`${context}: ${shortcutCount} App Shortcuts declared; Apple allows at most ${exports.MAX_APP_SHORTCUTS}.`);
|
|
231
|
+
}
|
|
232
|
+
if (errors.length > 0) {
|
|
233
|
+
throw new Error(`[expo-targets] Invalid intents:\n - ${errors.join('\n - ')}`);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
function swiftValueType(intent, p) {
|
|
237
|
+
switch (p.type) {
|
|
238
|
+
case 'string':
|
|
239
|
+
return 'String';
|
|
240
|
+
case 'int':
|
|
241
|
+
return 'Int';
|
|
242
|
+
case 'double':
|
|
243
|
+
return 'Double';
|
|
244
|
+
case 'bool':
|
|
245
|
+
return 'Bool';
|
|
246
|
+
case 'date':
|
|
247
|
+
return 'Date';
|
|
248
|
+
case 'url':
|
|
249
|
+
return 'URL';
|
|
250
|
+
case 'enum':
|
|
251
|
+
return enumTypeName(intent, p);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
function swiftDefault(p) {
|
|
255
|
+
if (p.default === undefined)
|
|
256
|
+
return null;
|
|
257
|
+
if (p.type === 'enum') {
|
|
258
|
+
const idx = (p.options ?? []).findIndex((o) => o.value === p.default);
|
|
259
|
+
return `.option${idx}`;
|
|
260
|
+
}
|
|
261
|
+
if (p.type === 'string')
|
|
262
|
+
return `"${swiftString(String(p.default))}"`;
|
|
263
|
+
if (p.type === 'double') {
|
|
264
|
+
const s = String(p.default);
|
|
265
|
+
return /[.eE]/.test(s) ? s : `${s}.0`;
|
|
266
|
+
}
|
|
267
|
+
return String(p.default);
|
|
268
|
+
}
|
|
269
|
+
function generateEnumSwift(intent, p) {
|
|
270
|
+
const name = enumTypeName(intent, p);
|
|
271
|
+
const options = p.options ?? [];
|
|
272
|
+
const cases = options
|
|
273
|
+
.map((o, i) => ` case option${i} = "${swiftString(o.value)}"`)
|
|
274
|
+
.join('\n');
|
|
275
|
+
const reps = options
|
|
276
|
+
.map((o, i) => ` .option${i}: "${swiftString(o.title)}"`)
|
|
277
|
+
.join(',\n');
|
|
278
|
+
return `enum ${name}: String, AppEnum {
|
|
279
|
+
${cases}
|
|
280
|
+
|
|
281
|
+
static let typeDisplayRepresentation: TypeDisplayRepresentation = "${swiftString(p.title ?? p.name)}"
|
|
282
|
+
static let caseDisplayRepresentations: [${name}: DisplayRepresentation] = [
|
|
283
|
+
${reps}
|
|
284
|
+
]
|
|
285
|
+
}
|
|
286
|
+
`;
|
|
287
|
+
}
|
|
288
|
+
function generateParameterSwift(intent, p) {
|
|
289
|
+
const type = swiftValueType(intent, p);
|
|
290
|
+
const args = [`title: "${swiftString(p.title ?? p.name)}"`];
|
|
291
|
+
if (p.description) {
|
|
292
|
+
args.push(`description: "${swiftString(p.description)}"`);
|
|
293
|
+
}
|
|
294
|
+
const def = swiftDefault(p);
|
|
295
|
+
if (def !== null)
|
|
296
|
+
args.push(`default: ${def}`);
|
|
297
|
+
const optional = p.optional && def === null ? '?' : '';
|
|
298
|
+
return ` @Parameter(${args.join(', ')})
|
|
299
|
+
var ${p.name}: ${type}${optional}`;
|
|
300
|
+
}
|
|
301
|
+
function paramToJsonSwift(p, value) {
|
|
302
|
+
switch (p.type) {
|
|
303
|
+
case 'date':
|
|
304
|
+
return `ExpoTargetsAppIntentDispatcher.isoString(${value})`;
|
|
305
|
+
case 'url':
|
|
306
|
+
return `${value}.absoluteString`;
|
|
307
|
+
case 'enum':
|
|
308
|
+
return `${value}.rawValue`;
|
|
309
|
+
default:
|
|
310
|
+
return value;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
function generateParamsDictSwift(intent) {
|
|
314
|
+
const lines = [' var params: [String: Any] = [:]'];
|
|
315
|
+
for (const p of intent.parameters ?? []) {
|
|
316
|
+
const optional = p.optional && p.default === undefined;
|
|
317
|
+
if (optional) {
|
|
318
|
+
lines.push(` if let value = ${p.name} { params["${p.name}"] = ${paramToJsonSwift(p, 'value')} }`);
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
lines.push(` params["${p.name}"] = ${paramToJsonSwift(p, p.name)}`);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
return lines.join('\n');
|
|
325
|
+
}
|
|
326
|
+
function intentModes(intent) {
|
|
327
|
+
const kind = resolvePerform(intent).kind;
|
|
328
|
+
const background = kind === 'js' && intent.background !== false;
|
|
329
|
+
return {
|
|
330
|
+
background,
|
|
331
|
+
openApp: kind === 'open' || (kind === 'js' && !background),
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
function resultLines(intent, dialogExpr, value) {
|
|
335
|
+
const fallback = swiftString(intent.dialog ?? 'Done');
|
|
336
|
+
return ` let text = ${dialogExpr} ?? ExpoTargetsAppIntentDispatcher.render("${fallback}", params)
|
|
337
|
+
let spoken: IntentDialog = "\\(text)"
|
|
338
|
+
return .result(value: ${value}, dialog: spoken)`;
|
|
339
|
+
}
|
|
340
|
+
function swiftHookBody(intent, hook) {
|
|
341
|
+
return `${generateParamsDictSwift(intent)}
|
|
342
|
+
let dialog = try await ${hook}.perform(params)
|
|
343
|
+
${resultLines(intent, 'dialog', '""')}`;
|
|
344
|
+
}
|
|
345
|
+
// iOS 26: start in the background; when JS is not running, continue in the
|
|
346
|
+
// foreground so the app (and its JS handler) starts.
|
|
347
|
+
const FOREGROUND_HOOK = `
|
|
348
|
+
var foreground: (() async throws -> Void)? = nil
|
|
349
|
+
#if compiler(>=6.2)
|
|
350
|
+
if #available(iOS 26.0, *) {
|
|
351
|
+
foreground = { try await self.continueInForeground(nil, alwaysConfirm: false) }
|
|
352
|
+
}
|
|
353
|
+
#endif`;
|
|
354
|
+
const NO_FOREGROUND_HOOK = `
|
|
355
|
+
let foreground: (() async throws -> Void)? = nil`;
|
|
356
|
+
function jsBody(intent, modes) {
|
|
357
|
+
const timeout = intent.timeoutMs ?? exports.DEFAULT_INTENT_TIMEOUT_MS;
|
|
358
|
+
const hook = modes.background ? FOREGROUND_HOOK : NO_FOREGROUND_HOOK;
|
|
359
|
+
return `${generateParamsDictSwift(intent)}${hook}
|
|
360
|
+
let reply = try await ExpoTargetsAppIntentDispatcher.shared.perform(
|
|
361
|
+
name: "${intent.name}",
|
|
362
|
+
params: params,
|
|
363
|
+
timeoutMs: ${timeout},
|
|
364
|
+
waitForLaunch: ${modes.openApp},
|
|
365
|
+
continueInForeground: foreground
|
|
366
|
+
)
|
|
367
|
+
${resultLines(intent, 'reply.dialog', 'reply.value ?? ""')}`;
|
|
368
|
+
}
|
|
369
|
+
const SUPPORTED_MODES = `
|
|
370
|
+
#if compiler(>=6.2)
|
|
371
|
+
@available(iOS 26.0, *)
|
|
372
|
+
static var supportedModes: IntentModes { [.background, .foreground(.dynamic)] }
|
|
373
|
+
#endif
|
|
374
|
+
`;
|
|
375
|
+
function generateIntentSwift(intent) {
|
|
376
|
+
const perform = resolvePerform(intent);
|
|
377
|
+
const modes = intentModes(intent);
|
|
378
|
+
const parameters = intent.parameters ?? [];
|
|
379
|
+
const enums = parameters
|
|
380
|
+
.filter((p) => p.type === 'enum')
|
|
381
|
+
.map((p) => generateEnumSwift(intent, p))
|
|
382
|
+
.join('\n');
|
|
383
|
+
const params = parameters
|
|
384
|
+
.map((p) => generateParameterSwift(intent, p))
|
|
385
|
+
.join('\n\n');
|
|
386
|
+
const body = perform.hook
|
|
387
|
+
? swiftHookBody(intent, perform.hook)
|
|
388
|
+
: jsBody(intent, modes);
|
|
389
|
+
const description = swiftString(intent.description ?? intent.title);
|
|
390
|
+
return `import AppIntents
|
|
391
|
+
import Foundation
|
|
392
|
+
internal import ExpoTargetsStorage
|
|
393
|
+
|
|
394
|
+
// @generated by expo-targets — DO NOT EDIT (ExpoTargetsGenerated)
|
|
395
|
+
${enums ? `\n${enums}` : ''}
|
|
396
|
+
struct ${intent.name}: AppIntent {
|
|
397
|
+
static let title: LocalizedStringResource = "${swiftString(intent.title)}"
|
|
398
|
+
static let description = IntentDescription("${description}")
|
|
399
|
+
static let openAppWhenRun: Bool = ${modes.openApp}
|
|
400
|
+
${modes.background ? SUPPORTED_MODES : ''}
|
|
401
|
+
${params ? `${params}\n\n` : ''} init() {}
|
|
402
|
+
|
|
403
|
+
@MainActor
|
|
404
|
+
func perform() async throws -> some IntentResult & ReturnsValue<String> & ProvidesDialog {
|
|
405
|
+
${body}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
`;
|
|
409
|
+
}
|
|
410
|
+
/** `${applicationName}` and `${param}` → App Shortcuts phrase interpolation. */
|
|
411
|
+
function templatePhrase(phrase) {
|
|
412
|
+
return phrase
|
|
413
|
+
.replace(/\$\{applicationName\}/g, '\\(.applicationName)')
|
|
414
|
+
.replace(/\$\{(\w+)\}/g, (_m, name) => `\\(\\.$${name})`);
|
|
415
|
+
}
|
|
416
|
+
function shortcutEntriesForIntents(intents) {
|
|
417
|
+
const out = [];
|
|
418
|
+
for (const intent of intents) {
|
|
419
|
+
for (const s of intent.shortcuts ?? []) {
|
|
420
|
+
out.push({
|
|
421
|
+
intent: intent.name,
|
|
422
|
+
phrases: s.phrases.map(templatePhrase),
|
|
423
|
+
shortTitle: s.shortTitle ?? intent.title,
|
|
424
|
+
systemImageName: s.symbol,
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
return out;
|
|
429
|
+
}
|
|
430
|
+
/** Stub for a `perform: { swift }` hook (user-owned; scaffolded once). */
|
|
431
|
+
function generateIntentSwiftHookStub(hookName, intent) {
|
|
432
|
+
return `import Foundation
|
|
433
|
+
|
|
434
|
+
/// User-owned perform hook for the "${swiftString(intent.title)}" intent.
|
|
435
|
+
/// Prebuild never overwrites this file. Return a dialog, or nil for the
|
|
436
|
+
/// config's \`dialog\`.
|
|
437
|
+
enum ${hookName} {
|
|
438
|
+
static func perform(_ params: [String: Any]) async throws -> String? {
|
|
439
|
+
return nil
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
`;
|
|
443
|
+
}
|
|
444
|
+
/** Shared intent name widgets, controls and Live Activities use to run a config intent. */
|
|
445
|
+
exports.RUN_INTENT_TYPE = 'ExpoTargetsRunIntent';
|
|
446
|
+
exports.RUN_INTENT_HANDLER = 'ExpoTargetsRunIntentHandler';
|
|
447
|
+
/**
|
|
448
|
+
* `ExpoTargetsRunIntent` (MAIN + every widget extension). A `LiveActivityIntent`
|
|
449
|
+
* so the system performs it in the app process, where the dispatcher and the
|
|
450
|
+
* JS handler live, even when a widget, control or Live Activity button fires it.
|
|
451
|
+
*/
|
|
452
|
+
function generateRunIntentSwift() {
|
|
453
|
+
return `import AppIntents
|
|
454
|
+
import Foundation
|
|
455
|
+
|
|
456
|
+
// @generated by expo-targets — DO NOT EDIT (ExpoTargetsGenerated)
|
|
457
|
+
/// Runs a config-declared intent from a widget, control or Live Activity:
|
|
458
|
+
/// \`Button(intent: ${exports.RUN_INTENT_TYPE}("LogMood", params: ["mood": "great"]))\`.
|
|
459
|
+
@available(iOS 17.0, *)
|
|
460
|
+
struct ${exports.RUN_INTENT_TYPE}: LiveActivityIntent {
|
|
461
|
+
static let title: LocalizedStringResource = "Run App Intent"
|
|
462
|
+
static let isDiscoverable: Bool = false
|
|
463
|
+
|
|
464
|
+
@Parameter(title: "Intent")
|
|
465
|
+
var name: String
|
|
466
|
+
|
|
467
|
+
@Parameter(title: "Parameters")
|
|
468
|
+
var paramsJson: String
|
|
469
|
+
|
|
470
|
+
init() {}
|
|
471
|
+
|
|
472
|
+
init(_ name: String, params: [String: Any] = [:]) {
|
|
473
|
+
self.name = name
|
|
474
|
+
self.paramsJson = Self.encode(params)
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
static func encode(_ params: [String: Any]) -> String {
|
|
478
|
+
guard JSONSerialization.isValidJSONObject(params),
|
|
479
|
+
let data = try? JSONSerialization.data(withJSONObject: params, options: [.sortedKeys]),
|
|
480
|
+
let text = String(data: data, encoding: .utf8)
|
|
481
|
+
else { return "{}" }
|
|
482
|
+
return text
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
func perform() async throws -> some IntentResult {
|
|
486
|
+
try await ${exports.RUN_INTENT_HANDLER}.run(name: name, paramsJson: paramsJson)
|
|
487
|
+
return .result()
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
`;
|
|
491
|
+
}
|
|
492
|
+
function runCase(intent) {
|
|
493
|
+
const perform = resolvePerform(intent);
|
|
494
|
+
if (perform.hook) {
|
|
495
|
+
return ` case "${intent.name}":
|
|
496
|
+
_ = try await ${perform.hook}.perform(params)`;
|
|
497
|
+
}
|
|
498
|
+
const timeout = intent.timeoutMs ?? exports.DEFAULT_INTENT_TIMEOUT_MS;
|
|
499
|
+
return ` case "${intent.name}":
|
|
500
|
+
_ = try await dispatcher.perform(
|
|
501
|
+
name: name, params: params, timeoutMs: ${timeout},
|
|
502
|
+
waitForLaunch: false, continueInForeground: nil
|
|
503
|
+
)`;
|
|
504
|
+
}
|
|
505
|
+
/** App-side handler (MAIN only): dispatch, then reload widgets and controls. */
|
|
506
|
+
function generateRunIntentHandlerSwift(intents) {
|
|
507
|
+
const cases = intents.map(runCase).join('\n');
|
|
508
|
+
return `import Foundation
|
|
509
|
+
import WidgetKit
|
|
510
|
+
internal import ExpoTargetsStorage
|
|
511
|
+
|
|
512
|
+
// @generated by expo-targets — DO NOT EDIT (ExpoTargetsGenerated)
|
|
513
|
+
enum ${exports.RUN_INTENT_HANDLER} {
|
|
514
|
+
@MainActor
|
|
515
|
+
static func run(name: String, paramsJson: String) async throws {
|
|
516
|
+
let decoded = try? JSONSerialization.jsonObject(with: Data(paramsJson.utf8))
|
|
517
|
+
let params = decoded as? [String: Any] ?? [:]
|
|
518
|
+
let dispatcher = ExpoTargetsAppIntentDispatcher.shared
|
|
519
|
+
switch name {
|
|
520
|
+
${cases}
|
|
521
|
+
default:
|
|
522
|
+
throw ExpoTargetsAppIntentFailure(message: "Unknown intent \\(name)")
|
|
523
|
+
}
|
|
524
|
+
WidgetCenter.shared.reloadAllTimelines()
|
|
525
|
+
if #available(iOS 18.0, *) {
|
|
526
|
+
ControlCenter.shared.reloadAllControls()
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
`;
|
|
531
|
+
}
|
|
532
|
+
/** Widget-extension twin of the handler: the system runs the intent in the app. */
|
|
533
|
+
function generateRunIntentHandlerStubSwift() {
|
|
534
|
+
return `import Foundation
|
|
535
|
+
|
|
536
|
+
// @generated by expo-targets — DO NOT EDIT (ExpoTargetsGenerated)
|
|
537
|
+
// The extension copy never runs: LiveActivityIntent is performed in the app.
|
|
538
|
+
enum ${exports.RUN_INTENT_HANDLER} {
|
|
539
|
+
static func run(name: String, paramsJson: String) async throws {}
|
|
540
|
+
}
|
|
541
|
+
`;
|
|
542
|
+
}
|
|
543
|
+
/** Swift `[String: Any]` literal for constant params from config. */
|
|
544
|
+
function swiftParamsLiteral(params) {
|
|
545
|
+
const entries = Object.entries(params ?? {});
|
|
546
|
+
if (entries.length === 0)
|
|
547
|
+
return '[:]';
|
|
548
|
+
const body = entries
|
|
549
|
+
.map(([k, v]) => {
|
|
550
|
+
const value = typeof v === 'string' ? `"${swiftString(v)}"` : String(v);
|
|
551
|
+
return `"${swiftString(k)}": ${value}`;
|
|
552
|
+
})
|
|
553
|
+
.join(', ');
|
|
554
|
+
return `[${body}]`;
|
|
555
|
+
}
|
|
556
|
+
//# sourceMappingURL=intentsCodegen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intentsCodegen.js","sourceRoot":"","sources":["../../../src/ios/cng/intentsCodegen.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAMA;;;;;;GAMG;AAEH,MAAM,WAAW,GAAG,0BAA0B,CAAC;AAC/C,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC;IAC7B,gBAAgB;IAChB,OAAO;IACP,QAAQ;IACR,MAAM;IACN,WAAW;IACX,MAAM;IACN,QAAQ;IACR,MAAM;IACN,OAAO;IACP,UAAU;IACV,KAAK;IACL,UAAU;IACV,SAAS;IACT,UAAU;IACV,QAAQ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AC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;IAC7C,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IACvC,MAAM,IAAI,GAAG,OAAO;SACjB,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE;QACd,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACxE,OAAO,IAAI,WAAW,CAAC,CAAC,CAAC,MAAM,KAAK,EAAE,CAAC;IACzC,CAAC,CAAC;SACD,IAAI,CAAC,IAAI,CAAC,CAAC;IACd,OAAO,IAAI,IAAI,GAAG,CAAC;AACrB,CAAC"}
|
|
@@ -12,6 +12,7 @@ export type GeneratedFilePlan = {
|
|
|
12
12
|
* app + extension to open the app); the ControlWidget itself is widget-only.
|
|
13
13
|
*/
|
|
14
14
|
export declare function pushControlPlans(plans: GeneratedFilePlan[], target: TargetConfig): void;
|
|
15
|
+
export declare function collectPlans(targets: TargetConfig[]): GeneratedFilePlan[];
|
|
15
16
|
/**
|
|
16
17
|
* Host CNG invariant: only delete root-level `*.swift` under ExpoTargetsGenerated.
|
|
17
18
|
* Never recursively wipe product subdirs (sealed target build output).
|
|
@@ -25,5 +26,7 @@ export declare function clearRootGeneratedSwiftFiles(outDir: string, keep?: Read
|
|
|
25
26
|
* innermost and runs *after* extension targets exist (Expo mods are LIFO).
|
|
26
27
|
* Plans are collected at mod time from config.extra.targets.
|
|
27
28
|
*/
|
|
28
|
-
export declare const withExpoTargetsGenerated: ConfigPlugin
|
|
29
|
+
export declare const withExpoTargetsGenerated: ConfigPlugin<{
|
|
30
|
+
targetsRoot?: string;
|
|
31
|
+
} | undefined>;
|
|
29
32
|
//# sourceMappingURL=withExpoTargetsGenerated.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withExpoTargetsGenerated.d.ts","sourceRoot":"","sources":["../../../src/ios/cng/withExpoTargetsGenerated.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAGV,YAAY,EACb,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"withExpoTargetsGenerated.d.ts","sourceRoot":"","sources":["../../../src/ios/cng/withExpoTargetsGenerated.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAGV,YAAY,EACb,MAAM,cAAc,CAAC;AA0CtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,sFAAsF;IACtF,WAAW,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CAClC,CAAC;AA4CF;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,iBAAiB,EAAE,EAC1B,MAAM,EAAE,YAAY,GACnB,IAAI,CAwBN;AAqGD,wBAAgB,YAAY,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,iBAAiB,EAAE,CAUzE;AAiCD;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,WAAW,CAAC,MAAM,CAAa,GACpC,IAAI,CASN;AAyQD;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,EAAE,YAAY,CACjD;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAUrC,CAAC"}
|