expo-targets 0.1.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.
Files changed (231) hide show
  1. package/.eslintrc.js +2 -0
  2. package/README.md +244 -0
  3. package/android/build.gradle +22 -0
  4. package/android/src/main/java/expo/modules/targets/ExpoTargetsLogger.kt +98 -0
  5. package/android/src/main/java/expo/modules/targets/ExpoTargetsReceiver.kt +136 -0
  6. package/android/src/main/java/expo/modules/targets/ExpoTargetsRemoteViewsProvider.kt +72 -0
  7. package/android/src/main/java/expo/modules/targets/ExpoTargetsWidgetProvider.kt +47 -0
  8. package/android/src/main/java/expo/modules/targets/ExpoTargetsWidgetSync.kt +78 -0
  9. package/android/src/main/java/expo/modules/targets/ExpoTargetsWidgetUpdateReceiver.kt +30 -0
  10. package/android/src/main/java/expo/modules/targets/extension/ExpoTargetsExtensionModule.kt +27 -0
  11. package/android/src/main/java/expo/modules/targets/messages/ExpoTargetsMessagesModule.kt +40 -0
  12. package/android/src/main/java/expo/modules/targets/storage/ExpoTargetsStorageModule.kt +119 -0
  13. package/app.plugin.js +1 -0
  14. package/build/metro/src/index.d.ts +2 -0
  15. package/build/metro/src/index.d.ts.map +1 -0
  16. package/build/metro/src/index.js +6 -0
  17. package/build/metro/src/index.js.map +1 -0
  18. package/build/metro/src/withTargetsMetro.d.ts +6 -0
  19. package/build/metro/src/withTargetsMetro.d.ts.map +1 -0
  20. package/build/metro/src/withTargetsMetro.js +171 -0
  21. package/build/metro/src/withTargetsMetro.js.map +1 -0
  22. package/build/plugin/src/android/config-plugins/withAndroidColors.d.ts +7 -0
  23. package/build/plugin/src/android/config-plugins/withAndroidColors.d.ts.map +1 -0
  24. package/build/plugin/src/android/config-plugins/withAndroidColors.js +56 -0
  25. package/build/plugin/src/android/config-plugins/withAndroidColors.js.map +1 -0
  26. package/build/plugin/src/android/config-plugins/withAndroidManifest.d.ts +7 -0
  27. package/build/plugin/src/android/config-plugins/withAndroidManifest.d.ts.map +1 -0
  28. package/build/plugin/src/android/config-plugins/withAndroidManifest.js +70 -0
  29. package/build/plugin/src/android/config-plugins/withAndroidManifest.js.map +1 -0
  30. package/build/plugin/src/android/config-plugins/withAndroidModule.d.ts +7 -0
  31. package/build/plugin/src/android/config-plugins/withAndroidModule.d.ts.map +1 -0
  32. package/build/plugin/src/android/config-plugins/withAndroidModule.js +41 -0
  33. package/build/plugin/src/android/config-plugins/withAndroidModule.js.map +1 -0
  34. package/build/plugin/src/android/config-plugins/withAndroidResources.d.ts +7 -0
  35. package/build/plugin/src/android/config-plugins/withAndroidResources.d.ts.map +1 -0
  36. package/build/plugin/src/android/config-plugins/withAndroidResources.js +75 -0
  37. package/build/plugin/src/android/config-plugins/withAndroidResources.js.map +1 -0
  38. package/build/plugin/src/android/config-plugins/withAndroidTarget.d.ts +28 -0
  39. package/build/plugin/src/android/config-plugins/withAndroidTarget.d.ts.map +1 -0
  40. package/build/plugin/src/android/config-plugins/withAndroidTarget.js +28 -0
  41. package/build/plugin/src/android/config-plugins/withAndroidTarget.js.map +1 -0
  42. package/build/plugin/src/android/config-plugins/withGradleModule.d.ts +7 -0
  43. package/build/plugin/src/android/config-plugins/withGradleModule.d.ts.map +1 -0
  44. package/build/plugin/src/android/config-plugins/withGradleModule.js +86 -0
  45. package/build/plugin/src/android/config-plugins/withGradleModule.js.map +1 -0
  46. package/build/plugin/src/android/config-plugins/withGradleSettings.d.ts +7 -0
  47. package/build/plugin/src/android/config-plugins/withGradleSettings.d.ts.map +1 -0
  48. package/build/plugin/src/android/config-plugins/withGradleSettings.js +23 -0
  49. package/build/plugin/src/android/config-plugins/withGradleSettings.js.map +1 -0
  50. package/build/plugin/src/android/withAndroidAppBuildGradle.d.ts +7 -0
  51. package/build/plugin/src/android/withAndroidAppBuildGradle.d.ts.map +1 -0
  52. package/build/plugin/src/android/withAndroidAppBuildGradle.js +31 -0
  53. package/build/plugin/src/android/withAndroidAppBuildGradle.js.map +1 -0
  54. package/build/plugin/src/android/withAndroidKotlinGradleProperty.d.ts +3 -0
  55. package/build/plugin/src/android/withAndroidKotlinGradleProperty.d.ts.map +1 -0
  56. package/build/plugin/src/android/withAndroidKotlinGradleProperty.js +24 -0
  57. package/build/plugin/src/android/withAndroidKotlinGradleProperty.js.map +1 -0
  58. package/build/plugin/src/android/withAndroidProjectKotlinVersion.d.ts +3 -0
  59. package/build/plugin/src/android/withAndroidProjectKotlinVersion.d.ts.map +1 -0
  60. package/build/plugin/src/android/withAndroidProjectKotlinVersion.js +27 -0
  61. package/build/plugin/src/android/withAndroidProjectKotlinVersion.js.map +1 -0
  62. package/build/plugin/src/android/withAndroidTarget.d.ts +10 -0
  63. package/build/plugin/src/android/withAndroidTarget.d.ts.map +1 -0
  64. package/build/plugin/src/android/withAndroidTarget.js +22 -0
  65. package/build/plugin/src/android/withAndroidTarget.js.map +1 -0
  66. package/build/plugin/src/android/withAndroidWidget.d.ts +13 -0
  67. package/build/plugin/src/android/withAndroidWidget.d.ts.map +1 -0
  68. package/build/plugin/src/android/withAndroidWidget.js +564 -0
  69. package/build/plugin/src/android/withAndroidWidget.js.map +1 -0
  70. package/build/plugin/src/config.d.ts +141 -0
  71. package/build/plugin/src/config.d.ts.map +1 -0
  72. package/build/plugin/src/config.js +54 -0
  73. package/build/plugin/src/config.js.map +1 -0
  74. package/build/plugin/src/index.d.ts +9 -0
  75. package/build/plugin/src/index.d.ts.map +1 -0
  76. package/build/plugin/src/index.js +11 -0
  77. package/build/plugin/src/index.js.map +1 -0
  78. package/build/plugin/src/ios/config-plugins/withEntitlements.d.ts +11 -0
  79. package/build/plugin/src/ios/config-plugins/withEntitlements.d.ts.map +1 -0
  80. package/build/plugin/src/ios/config-plugins/withEntitlements.js +49 -0
  81. package/build/plugin/src/ios/config-plugins/withEntitlements.js.map +1 -0
  82. package/build/plugin/src/ios/config-plugins/withIOSTarget.d.ts +17 -0
  83. package/build/plugin/src/ios/config-plugins/withIOSTarget.d.ts.map +1 -0
  84. package/build/plugin/src/ios/config-plugins/withIOSTarget.js +152 -0
  85. package/build/plugin/src/ios/config-plugins/withIOSTarget.js.map +1 -0
  86. package/build/plugin/src/ios/config-plugins/withIosColorset.d.ts +8 -0
  87. package/build/plugin/src/ios/config-plugins/withIosColorset.d.ts.map +1 -0
  88. package/build/plugin/src/ios/config-plugins/withIosColorset.js +25 -0
  89. package/build/plugin/src/ios/config-plugins/withIosColorset.js.map +1 -0
  90. package/build/plugin/src/ios/config-plugins/withIosStickerPack.d.ts +8 -0
  91. package/build/plugin/src/ios/config-plugins/withIosStickerPack.d.ts.map +1 -0
  92. package/build/plugin/src/ios/config-plugins/withIosStickerPack.js +52 -0
  93. package/build/plugin/src/ios/config-plugins/withIosStickerPack.js.map +1 -0
  94. package/build/plugin/src/ios/config-plugins/withPodfile.d.ts +12 -0
  95. package/build/plugin/src/ios/config-plugins/withPodfile.d.ts.map +1 -0
  96. package/build/plugin/src/ios/config-plugins/withPodfile.js +162 -0
  97. package/build/plugin/src/ios/config-plugins/withPodfile.js.map +1 -0
  98. package/build/plugin/src/ios/config-plugins/withXcodeChanges.d.ts +15 -0
  99. package/build/plugin/src/ios/config-plugins/withXcodeChanges.d.ts.map +1 -0
  100. package/build/plugin/src/ios/config-plugins/withXcodeChanges.js +646 -0
  101. package/build/plugin/src/ios/config-plugins/withXcodeChanges.js.map +1 -0
  102. package/build/plugin/src/ios/target.d.ts +41 -0
  103. package/build/plugin/src/ios/target.d.ts.map +1 -0
  104. package/build/plugin/src/ios/target.js +574 -0
  105. package/build/plugin/src/ios/target.js.map +1 -0
  106. package/build/plugin/src/ios/utils/asset.d.ts +60 -0
  107. package/build/plugin/src/ios/utils/asset.d.ts.map +1 -0
  108. package/build/plugin/src/ios/utils/asset.js +375 -0
  109. package/build/plugin/src/ios/utils/asset.js.map +1 -0
  110. package/build/plugin/src/ios/utils/file.d.ts +33 -0
  111. package/build/plugin/src/ios/utils/file.d.ts.map +1 -0
  112. package/build/plugin/src/ios/utils/file.js +88 -0
  113. package/build/plugin/src/ios/utils/file.js.map +1 -0
  114. package/build/plugin/src/ios/utils/index.d.ts +12 -0
  115. package/build/plugin/src/ios/utils/index.d.ts.map +1 -0
  116. package/build/plugin/src/ios/utils/index.js +38 -0
  117. package/build/plugin/src/ios/utils/index.js.map +1 -0
  118. package/build/plugin/src/ios/utils/paths.d.ts +128 -0
  119. package/build/plugin/src/ios/utils/paths.d.ts.map +1 -0
  120. package/build/plugin/src/ios/utils/paths.js +141 -0
  121. package/build/plugin/src/ios/utils/paths.js.map +1 -0
  122. package/build/plugin/src/ios/utils/plist.d.ts +29 -0
  123. package/build/plugin/src/ios/utils/plist.d.ts.map +1 -0
  124. package/build/plugin/src/ios/utils/plist.js +114 -0
  125. package/build/plugin/src/ios/utils/plist.js.map +1 -0
  126. package/build/plugin/src/ios/utils/podfile.d.ts +82 -0
  127. package/build/plugin/src/ios/utils/podfile.d.ts.map +1 -0
  128. package/build/plugin/src/ios/utils/podfile.js +408 -0
  129. package/build/plugin/src/ios/utils/podfile.js.map +1 -0
  130. package/build/plugin/src/ios/utils/reactNativeSwift.d.ts +11 -0
  131. package/build/plugin/src/ios/utils/reactNativeSwift.d.ts.map +1 -0
  132. package/build/plugin/src/ios/utils/reactNativeSwift.js +263 -0
  133. package/build/plugin/src/ios/utils/reactNativeSwift.js.map +1 -0
  134. package/build/plugin/src/ios/utils/xcode.d.ts +185 -0
  135. package/build/plugin/src/ios/utils/xcode.d.ts.map +1 -0
  136. package/build/plugin/src/ios/utils/xcode.js +706 -0
  137. package/build/plugin/src/ios/utils/xcode.js.map +1 -0
  138. package/build/plugin/src/logger.d.ts +10 -0
  139. package/build/plugin/src/logger.d.ts.map +1 -0
  140. package/build/plugin/src/logger.js +62 -0
  141. package/build/plugin/src/logger.js.map +1 -0
  142. package/build/plugin/src/parseTargetConfig.d.ts +3 -0
  143. package/build/plugin/src/parseTargetConfig.d.ts.map +1 -0
  144. package/build/plugin/src/parseTargetConfig.js +113 -0
  145. package/build/plugin/src/parseTargetConfig.js.map +1 -0
  146. package/build/plugin/src/withTargetsDir.d.ts +6 -0
  147. package/build/plugin/src/withTargetsDir.d.ts.map +1 -0
  148. package/build/plugin/src/withTargetsDir.js +90 -0
  149. package/build/plugin/src/withTargetsDir.js.map +1 -0
  150. package/build/src/Target.d.ts +43 -0
  151. package/build/src/Target.d.ts.map +1 -0
  152. package/build/src/Target.js +128 -0
  153. package/build/src/Target.js.map +1 -0
  154. package/build/src/index.d.ts +9 -0
  155. package/build/src/index.d.ts.map +1 -0
  156. package/build/src/index.js +27 -0
  157. package/build/src/index.js.map +1 -0
  158. package/build/src/modules/extension/index.d.ts +18 -0
  159. package/build/src/modules/extension/index.d.ts.map +1 -0
  160. package/build/src/modules/extension/index.js +44 -0
  161. package/build/src/modules/extension/index.js.map +1 -0
  162. package/build/src/modules/messages/index.d.ts +40 -0
  163. package/build/src/modules/messages/index.d.ts.map +1 -0
  164. package/build/src/modules/messages/index.js +94 -0
  165. package/build/src/modules/messages/index.js.map +1 -0
  166. package/build/src/modules/storage/index.d.ts +16 -0
  167. package/build/src/modules/storage/index.d.ts.map +1 -0
  168. package/build/src/modules/storage/index.js +122 -0
  169. package/build/src/modules/storage/index.js.map +1 -0
  170. package/expo-module.config.json +17 -0
  171. package/ios/ExpoTargetsExtension.podspec +23 -0
  172. package/ios/ExpoTargetsExtensionModule.swift +181 -0
  173. package/ios/ExpoTargetsMessages.podspec +23 -0
  174. package/ios/ExpoTargetsMessagesModule.swift +267 -0
  175. package/ios/ExpoTargetsStorage.podspec +23 -0
  176. package/ios/ExpoTargetsStorageModule.swift +91 -0
  177. package/ios/Tests/.swiftlint.yml +52 -0
  178. package/ios/Tests/Helpers/MockExtensionContext.swift +58 -0
  179. package/ios/Tests/Helpers/MockUserDefaults.swift +70 -0
  180. package/ios/Tests/Helpers/MockWidgetCenter.swift +71 -0
  181. package/ios/Tests/Helpers/TestHelpers.swift +90 -0
  182. package/ios/Tests/Integration/TargetIntegrationTests.swift +478 -0
  183. package/ios/Tests/Main/AllTests.swift +80 -0
  184. package/ios/Tests/Package.swift +66 -0
  185. package/ios/Tests/Performance/StoragePerformanceTests.swift +461 -0
  186. package/ios/Tests/Unit/Extension/ExpoTargetsExtensionModuleTests.swift +501 -0
  187. package/ios/Tests/Unit/Storage/ExpoTargetsStorageModuleTests.swift +578 -0
  188. package/ios/Tests/Unit/Template/ShareExtensionTemplateTests.swift +421 -0
  189. package/ios/Tests/XCTestPlan.xctestplan +87 -0
  190. package/metro/src/index.ts +1 -0
  191. package/metro/src/withTargetsMetro.ts +247 -0
  192. package/metro/tsconfig.build.json +9 -0
  193. package/package.json +74 -0
  194. package/plugin/src/android/withAndroidAppBuildGradle.ts +34 -0
  195. package/plugin/src/android/withAndroidTarget.ts +26 -0
  196. package/plugin/src/android/withAndroidWidget.ts +778 -0
  197. package/plugin/src/config.ts +255 -0
  198. package/plugin/src/index.ts +19 -0
  199. package/plugin/src/ios/config-plugins/withEntitlements.ts +69 -0
  200. package/plugin/src/ios/config-plugins/withIOSTarget.ts +179 -0
  201. package/plugin/src/ios/config-plugins/withIosColorset.ts +29 -0
  202. package/plugin/src/ios/config-plugins/withIosStickerPack.ts +65 -0
  203. package/plugin/src/ios/config-plugins/withPodfile.ts +238 -0
  204. package/plugin/src/ios/config-plugins/withXcodeChanges.ts +891 -0
  205. package/plugin/src/ios/target.ts +668 -0
  206. package/plugin/src/ios/templates/MessagesViewController.swift +120 -0
  207. package/plugin/src/ios/templates/ReactNativeViewController.swift +240 -0
  208. package/plugin/src/ios/templates/action-extension-data.swift +106 -0
  209. package/plugin/src/ios/templates/clip-extension-data.swift +28 -0
  210. package/plugin/src/ios/templates/messages-extension-data.swift +28 -0
  211. package/plugin/src/ios/templates/share-extension-data.swift +113 -0
  212. package/plugin/src/ios/utils/asset.ts +490 -0
  213. package/plugin/src/ios/utils/file.ts +80 -0
  214. package/plugin/src/ios/utils/index.ts +12 -0
  215. package/plugin/src/ios/utils/paths.ts +253 -0
  216. package/plugin/src/ios/utils/plist.ts +101 -0
  217. package/plugin/src/ios/utils/podfile.ts +534 -0
  218. package/plugin/src/ios/utils/reactNativeSwift.ts +283 -0
  219. package/plugin/src/ios/utils/xcode.ts +989 -0
  220. package/plugin/src/logger.ts +63 -0
  221. package/plugin/src/parseTargetConfig.ts +115 -0
  222. package/plugin/src/types/normalize-colors.d.ts +3 -0
  223. package/plugin/src/withTargetsDir.ts +120 -0
  224. package/plugin/tsconfig.build.json +9 -0
  225. package/plugin/tsconfig.json +9 -0
  226. package/src/Target.ts +239 -0
  227. package/src/index.ts +52 -0
  228. package/src/modules/extension/index.ts +54 -0
  229. package/src/modules/messages/index.ts +124 -0
  230. package/src/modules/storage/index.ts +126 -0
  231. package/tsconfig.json +8 -0
@@ -0,0 +1,141 @@
1
+ import type { ExpoConfig } from '@expo/config-types';
2
+ export type ExtensionType = 'widget' | 'clip' | 'stickers' | 'messages' | 'share' | 'action' | 'safari' | 'notification-content' | 'notification-service' | 'intent' | 'intent-ui' | 'spotlight' | 'bg-download' | 'quicklook-thumbnail' | 'location-push' | 'credentials-provider' | 'account-auth' | 'app-intent' | 'device-activity-monitor' | 'matter' | 'watch';
3
+ export interface Color {
4
+ light?: string;
5
+ dark?: string;
6
+ color?: string;
7
+ darkColor?: string;
8
+ }
9
+ export type ShareExtensionContentType = 'text' | 'url' | 'image' | 'video' | 'file' | 'webpage';
10
+ export interface ShareExtensionActivationRule {
11
+ /**
12
+ * Type of content to accept
13
+ * - text: Plain text content
14
+ * - url: URLs (including web URLs)
15
+ * - image: Image files
16
+ * - video: Video files
17
+ * - file: Generic files
18
+ * - webpage: Web pages (requires preprocessingFile for full support)
19
+ */
20
+ type: ShareExtensionContentType;
21
+ /**
22
+ * Maximum number of items to accept (default: 1)
23
+ * Only applicable for url, image, video, and file types
24
+ */
25
+ maxCount?: number;
26
+ }
27
+ export interface StickerPack {
28
+ name: string;
29
+ assets: string[];
30
+ }
31
+ export declare const TYPE_MINIMUM_DEPLOYMENT_TARGETS: Record<ExtensionType, string>;
32
+ export declare const TYPE_BUNDLE_IDENTIFIER_SUFFIXES: Record<ExtensionType, string>;
33
+ interface BaseIOSTargetConfig {
34
+ icon?: string;
35
+ deploymentTarget?: string;
36
+ bundleIdentifier?: string;
37
+ displayName?: string;
38
+ colors?: Record<string, string | Color>;
39
+ images?: Record<string, string>;
40
+ stickerPacks?: StickerPack[];
41
+ /**
42
+ * Icon for extension target
43
+ * - For stickers: Path to source image file (e.g., "./assets/imessage-icon.png")
44
+ * - For action extensions: SF Symbol name (e.g., "photo.fill") or image asset name
45
+ * @example
46
+ * targetIcon: "./assets/icon.png" // Sticker pack icon file path
47
+ * targetIcon: "photo.fill" // Action extension SF Symbol
48
+ * targetIcon: "MyActionIcon" // Action extension image asset name
49
+ */
50
+ targetIcon?: string;
51
+ frameworks?: string[];
52
+ entitlements?: Record<string, any>;
53
+ infoPlist?: Record<string, any>;
54
+ swiftVersion?: string;
55
+ targetedDeviceFamily?: string;
56
+ clangEnableModules?: boolean | string;
57
+ swiftEmitLocStrings?: boolean | string;
58
+ /**
59
+ * Content types this share extension accepts
60
+ * Only applies to share extension targets
61
+ * @example
62
+ * activationRules: [
63
+ * { type: 'text' },
64
+ * { type: 'url' },
65
+ * { type: 'image', maxCount: 5 }
66
+ * ]
67
+ */
68
+ activationRules?: ShareExtensionActivationRule[];
69
+ /**
70
+ * JavaScript file for preprocessing web content
71
+ * Only applies to share extension targets
72
+ * Enables NSExtensionActivationSupportsWebPageWithMaxCount
73
+ * @see https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/Share.html
74
+ */
75
+ preprocessingFile?: string;
76
+ }
77
+ export type ReactNativeCompatibleType = 'share' | 'action' | 'clip' | 'messages';
78
+ export type NativeOnlyType = Exclude<ExtensionType, ReactNativeCompatibleType>;
79
+ export interface IOSTargetConfigWithReactNative extends BaseIOSTargetConfig {
80
+ }
81
+ export interface IOSTargetConfigNativeOnly extends BaseIOSTargetConfig {
82
+ }
83
+ export type IOSTargetConfig = IOSTargetConfigWithReactNative | IOSTargetConfigNativeOnly;
84
+ export interface AndroidTargetConfig {
85
+ resourceName?: string;
86
+ /**
87
+ * Widget rendering approach (default: 'glance')
88
+ * - 'glance': Modern Jetpack Compose-based widgets using Glance API
89
+ * - 'remoteviews': Traditional XML layout-based widgets using RemoteViews
90
+ */
91
+ widgetType?: 'glance' | 'remoteviews';
92
+ minWidth?: string;
93
+ minHeight?: string;
94
+ resizeMode?: string;
95
+ updatePeriodMillis?: number;
96
+ widgetCategory?: string;
97
+ previewImage?: string;
98
+ description?: string;
99
+ maxResizeWidth?: string;
100
+ maxResizeHeight?: string;
101
+ targetCellWidth?: number;
102
+ targetCellHeight?: number;
103
+ initialLayout?: string;
104
+ colors?: Record<string, string | Color>;
105
+ }
106
+ type BaseTargetConfig = {
107
+ name: string;
108
+ displayName?: string;
109
+ appGroup?: string;
110
+ platforms: string[];
111
+ android?: AndroidTargetConfig;
112
+ };
113
+ type TargetConfigReactNativeCompatible = BaseTargetConfig & {
114
+ type: ReactNativeCompatibleType;
115
+ /**
116
+ * Entry point for React Native rendering (share, action, clip only)
117
+ * Path to JavaScript/TypeScript file that exports the extension component
118
+ * When specified, enables React Native rendering in the extension
119
+ * @example "./ShareExtension.tsx"
120
+ * @example "./targets/my-share/ShareExtension.js"
121
+ */
122
+ entry?: string;
123
+ /**
124
+ * Exclude specific Expo packages from the extension bundle
125
+ * Reduces bundle size by removing unused modules
126
+ * Only applies when `entry` is specified
127
+ * @example ['expo-dev-client', 'expo-updates']
128
+ */
129
+ excludedPackages?: string[];
130
+ ios?: IOSTargetConfigWithReactNative;
131
+ };
132
+ type TargetConfigNativeOnly = BaseTargetConfig & {
133
+ type: NativeOnlyType;
134
+ ios?: IOSTargetConfigNativeOnly;
135
+ };
136
+ export type TargetConfig = TargetConfigReactNativeCompatible | TargetConfigNativeOnly;
137
+ export type TargetConfigFunction = (config: ExpoConfig) => TargetConfig;
138
+ export declare const getAppGroup: (identifier: string) => string;
139
+ export declare const getTargetBundleIdentifier: (appBundleId: string, targetName: string) => string;
140
+ export {};
141
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../plugin/src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,MAAM,aAAa,GACrB,QAAQ,GACR,MAAM,GACN,UAAU,GACV,UAAU,GACV,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,sBAAsB,GACtB,sBAAsB,GACtB,QAAQ,GACR,WAAW,GACX,WAAW,GACX,aAAa,GACb,qBAAqB,GACrB,eAAe,GACf,sBAAsB,GACtB,cAAc,GACd,YAAY,GACZ,yBAAyB,GACzB,QAAQ,GACR,OAAO,CAAC;AAEZ,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAGD,MAAM,MAAM,yBAAyB,GACjC,MAAM,GACN,KAAK,GACL,OAAO,GACP,OAAO,GACP,MAAM,GACN,SAAS,CAAC;AAEd,MAAM,WAAW,4BAA4B;IAC3C;;;;;;;;OAQG;IACH,IAAI,EAAE,yBAAyB,CAAC;IAChC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAsBzE,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAsBzE,CAAC;AAGF,UAAU,mBAAmB;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC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AM,EAAE,UAAU,KAAK,YAAY,CAAC;AAExE,eAAO,MAAM,WAAW,eAAgB,MAAM,WAA0B,CAAC;AACzE,eAAO,MAAM,yBAAyB,gBACvB,MAAM,cACP,MAAM,WACe,CAAC"}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTargetBundleIdentifier = exports.getAppGroup = exports.TYPE_BUNDLE_IDENTIFIER_SUFFIXES = exports.TYPE_MINIMUM_DEPLOYMENT_TARGETS = void 0;
4
+ exports.TYPE_MINIMUM_DEPLOYMENT_TARGETS = {
5
+ widget: '14.0',
6
+ clip: '14.0',
7
+ stickers: '10.0',
8
+ messages: '10.0',
9
+ share: '8.0',
10
+ action: '8.0',
11
+ 'notification-content': '10.0',
12
+ 'notification-service': '10.0',
13
+ intent: '12.0',
14
+ 'intent-ui': '12.0',
15
+ safari: '15.0',
16
+ spotlight: '9.0',
17
+ 'bg-download': '7.0',
18
+ 'quicklook-thumbnail': '11.0',
19
+ 'location-push': '15.0',
20
+ 'credentials-provider': '12.0',
21
+ 'account-auth': '12.2',
22
+ 'app-intent': '16.0',
23
+ 'device-activity-monitor': '15.0',
24
+ matter: '16.1',
25
+ watch: '2.0',
26
+ };
27
+ exports.TYPE_BUNDLE_IDENTIFIER_SUFFIXES = {
28
+ widget: 'widget',
29
+ clip: 'clip',
30
+ stickers: 'stickers',
31
+ messages: 'messages',
32
+ share: 'share',
33
+ action: 'action',
34
+ safari: 'safari',
35
+ 'notification-content': 'notification-content',
36
+ 'notification-service': 'notification-service',
37
+ intent: 'intent',
38
+ 'intent-ui': 'intent-ui',
39
+ spotlight: 'spotlight',
40
+ 'bg-download': 'bg-download',
41
+ 'quicklook-thumbnail': 'quicklook-thumbnail',
42
+ 'location-push': 'location-push',
43
+ 'credentials-provider': 'credentials-provider',
44
+ 'account-auth': 'account-auth',
45
+ 'app-intent': 'app-intent',
46
+ 'device-activity-monitor': 'device-activity-monitor',
47
+ matter: 'matter',
48
+ watch: 'watch',
49
+ };
50
+ const getAppGroup = (identifier) => `group.${identifier}`;
51
+ exports.getAppGroup = getAppGroup;
52
+ const getTargetBundleIdentifier = (appBundleId, targetName) => `${appBundleId}.${targetName}`;
53
+ exports.getTargetBundleIdentifier = getTargetBundleIdentifier;
54
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../plugin/src/config.ts"],"names":[],"mappings":";;;AAgEa,QAAA,+BAA+B,GAAkC;IAC5E,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,KAAK;IACb,sBAAsB,EAAE,MAAM;IAC9B,sBAAsB,EAAE,MAAM;IAC9B,MAAM,EAAE,MAAM;IACd,WAAW,EAAE,MAAM;IACnB,MAAM,EAAE,MAAM;IACd,SAAS,EAAE,KAAK;IAChB,aAAa,EAAE,KAAK;IACpB,qBAAqB,EAAE,MAAM;IAC7B,eAAe,EAAE,MAAM;IACvB,sBAAsB,EAAE,MAAM;IAC9B,cAAc,EAAE,MAAM;IACtB,YAAY,EAAE,MAAM;IACpB,yBAAyB,EAAE,MAAM;IACjC,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,KAAK;CACb,CAAC;AAEW,QAAA,+BAA+B,GAAkC;IAC5E,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,sBAAsB;IAC9C,sBAAsB,EAAE,sBAAsB;IAC9C,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,WAAW;IACxB,SAAS,EAAE,WAAW;IACtB,aAAa,EAAE,aAAa;IAC5B,qBAAqB,EAAE,qBAAqB;IAC5C,eAAe,EAAE,eAAe;IAChC,sBAAsB,EAAE,sBAAsB;IAC9C,cAAc,EAAE,cAAc;IAC9B,YAAY,EAAE,YAAY;IAC1B,yBAAyB,EAAE,yBAAyB;IACpD,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACf,CAAC;AA4IK,MAAM,WAAW,GAAG,CAAC,UAAkB,EAAE,EAAE,CAAC,SAAS,UAAU,EAAE,CAAC;AAA5D,QAAA,WAAW,eAAiD;AAClE,MAAM,yBAAyB,GAAG,CACvC,WAAmB,EACnB,UAAkB,EAClB,EAAE,CAAC,GAAG,WAAW,IAAI,UAAU,EAAE,CAAC;AAHvB,QAAA,yBAAyB,6BAGF"}
@@ -0,0 +1,9 @@
1
+ import { ConfigPlugin } from '@expo/config-plugins';
2
+ export type { TargetConfig, TargetConfigFunction } from './config';
3
+ export type { ExpoConfig } from '@expo/config-types';
4
+ declare const withExpoTargets: ConfigPlugin<{
5
+ debug?: boolean;
6
+ targetsRoot?: string;
7
+ }>;
8
+ export default withExpoTargets;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../plugin/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAMpD,YAAY,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACnE,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,QAAA,MAAM,eAAe,EAAE,YAAY,CAAC;IAClC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAIA,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const withAndroidAppBuildGradle_1 = require("./android/withAndroidAppBuildGradle");
4
+ const withTargetsDir_1 = require("./withTargetsDir");
5
+ const withExpoTargets = (config, options) => {
6
+ config = (0, withTargetsDir_1.withTargetsDir)(config, options || {});
7
+ config = (0, withAndroidAppBuildGradle_1.withAndroidAppBuildGradle)(config);
8
+ return config;
9
+ };
10
+ exports.default = withExpoTargets;
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../plugin/src/index.ts"],"names":[],"mappings":";;AAEA,mFAAgF;AAChF,qDAAkD;AAMlD,MAAM,eAAe,GAGhB,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;IACvB,MAAM,GAAG,IAAA,+BAAc,EAAC,MAAM,EAAE,OAAO,IAAI,EAAE,CAAC,CAAC;IAC/C,MAAM,GAAG,IAAA,qDAAyB,EAAC,MAAM,CAAC,CAAC;IAC3C,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { ConfigPlugin } from '@expo/config-plugins';
2
+ import type { ExtensionType } from '../../config';
3
+ import { Logger } from '../../logger';
4
+ export declare const withTargetEntitlements: ConfigPlugin<{
5
+ targetName: string;
6
+ targetDirectory: string;
7
+ type: ExtensionType;
8
+ entitlements?: Record<string, any>;
9
+ logger: Logger;
10
+ }>;
11
+ //# sourceMappingURL=withEntitlements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withEntitlements.d.ts","sourceRoot":"","sources":["../../../../../plugin/src/ios/config-plugins/withEntitlements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAoB,MAAM,sBAAsB,CAAC;AAGtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItC,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;CAChB,CAsDA,CAAC"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.withTargetEntitlements = void 0;
7
+ const config_plugins_1 = require("@expo/config-plugins");
8
+ const path_1 = __importDefault(require("path"));
9
+ const target_1 = require("../target");
10
+ const utils_1 = require("../utils");
11
+ const withTargetEntitlements = (config, props) => {
12
+ return (0, config_plugins_1.withDangerousMod)(config, [
13
+ 'ios',
14
+ async (config) => {
15
+ const typeConfig = target_1.TYPE_CHARACTERISTICS[props.type];
16
+ // Asset-only targets don't need entitlements
17
+ if (!typeConfig.requiresEntitlements) {
18
+ props.logger.log(`Skipping entitlements for asset-only target ${props.targetName}`);
19
+ return config;
20
+ }
21
+ let entitlements = props.entitlements || {};
22
+ // Add App Clip specific entitlements
23
+ if (props.type === 'clip') {
24
+ entitlements = utils_1.Plist.mergeAppClipEntitlements(entitlements, config.ios.bundleIdentifier);
25
+ }
26
+ // Sync App Groups if needed
27
+ if (utils_1.Plist.shouldUseAppGroups(props.type)) {
28
+ const mainAppGroups = config.ios?.entitlements?.['com.apple.security.application-groups'];
29
+ entitlements = utils_1.Plist.syncAppGroups({
30
+ targetEntitlements: entitlements,
31
+ mainAppGroups,
32
+ });
33
+ if (mainAppGroups && mainAppGroups.length > 0) {
34
+ props.logger.log(`Syncing app groups to ${props.targetName}`);
35
+ }
36
+ }
37
+ // NEW: Generate entitlements in targets/TARGETNAME/ios/build/
38
+ const entitlementsPath = utils_1.Paths.getTargetEntitlementsPath({
39
+ projectRoot: config.modRequest.projectRoot,
40
+ targetDirectory: props.targetDirectory,
41
+ });
42
+ utils_1.Plist.writePlist(entitlementsPath, entitlements);
43
+ props.logger.log(`Generated entitlements: ${path_1.default.relative(config.modRequest.projectRoot, entitlementsPath)}`);
44
+ return config;
45
+ },
46
+ ]);
47
+ };
48
+ exports.withTargetEntitlements = withTargetEntitlements;
49
+ //# sourceMappingURL=withEntitlements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withEntitlements.js","sourceRoot":"","sources":["../../../../../plugin/src/ios/config-plugins/withEntitlements.ts"],"names":[],"mappings":";;;;;;AAAA,yDAAsE;AACtE,gDAAwB;AAIxB,sCAAiD;AACjD,oCAAwC;AAEjC,MAAM,sBAAsB,GAM9B,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;IACrB,OAAO,IAAA,iCAAgB,EAAC,MAAM,EAAE;QAC9B,KAAK;QACL,KAAK,EAAE,MAAM,EAAE,EAAE;YACf,MAAM,UAAU,GAAG,6BAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAEpD,6CAA6C;YAC7C,IAAI,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC;gBACrC,KAAK,CAAC,MAAM,CAAC,GAAG,CACd,+CAA+C,KAAK,CAAC,UAAU,EAAE,CAClE,CAAC;gBACF,OAAO,MAAM,CAAC;YAChB,CAAC;YAED,IAAI,YAAY,GAAG,KAAK,CAAC,YAAY,IAAI,EAAE,CAAC;YAE5C,qCAAqC;YACrC,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;gBAC1B,YAAY,GAAG,aAAK,CAAC,wBAAwB,CAC3C,YAAY,EACZ,MAAM,CAAC,GAAI,CAAC,gBAAiB,CAC9B,CAAC;YACJ,CAAC;YAED,4BAA4B;YAC5B,IAAI,aAAK,CAAC,kBAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;gBACzC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,EAAE,YAAY,EAAE,CAC9C,uCAAuC,CAChB,CAAC;gBAE1B,YAAY,GAAG,aAAK,CAAC,aAAa,CAAC;oBACjC,kBAAkB,EAAE,YAAY;oBAChC,aAAa;iBACd,CAAC,CAAC;gBAEH,IAAI,aAAa,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBAC9C,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,yBAAyB,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;gBAChE,CAAC;YACH,CAAC;YAED,8DAA8D;YAC9D,MAAM,gBAAgB,GAAG,aAAK,CAAC,yBAAyB,CAAC;gBACvD,WAAW,EAAE,MAAM,CAAC,UAAU,CAAC,WAAW;gBAC1C,eAAe,EAAE,KAAK,CAAC,eAAe;aACvC,CAAC,CAAC;YAEH,aAAK,CAAC,UAAU,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;YACjD,KAAK,CAAC,MAAM,CAAC,GAAG,CACd,2BAA2B,cAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,gBAAgB,CAAC,EAAE,CAC5F,CAAC;YAEF,OAAO,MAAM,CAAC;QAChB,CAAC;KACF,CAAC,CAAC;AACL,CAAC,CAAC;AA5DW,QAAA,sBAAsB,0BA4DjC"}
@@ -0,0 +1,17 @@
1
+ import { ConfigPlugin } from '@expo/config-plugins';
2
+ import { type ExtensionType, type IOSTargetConfigWithReactNative } from '../../config';
3
+ import { Logger } from '../../logger';
4
+ interface IOSTargetProps extends IOSTargetConfigWithReactNative {
5
+ type: ExtensionType;
6
+ name: string;
7
+ displayName?: string;
8
+ appGroup?: string;
9
+ entry?: string;
10
+ excludedPackages?: string[];
11
+ directory: string;
12
+ configPath: string;
13
+ logger: Logger;
14
+ }
15
+ export declare const withIOSTarget: ConfigPlugin<IOSTargetProps>;
16
+ export {};
17
+ //# sourceMappingURL=withIOSTarget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withIOSTarget.d.ts","sourceRoot":"","sources":["../../../../../plugin/src/ios/config-plugins/withIOSTarget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAOpD,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,8BAA8B,EACpC,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,UAAU,cAAe,SAAQ,8BAA8B;IAC7D,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,cAAc,CAuJtD,CAAC"}
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.withIOSTarget = void 0;
27
+ const fs = __importStar(require("fs"));
28
+ const path = __importStar(require("path"));
29
+ const withEntitlements_1 = require("./withEntitlements");
30
+ const withPodfile_1 = require("./withPodfile");
31
+ const withXcodeChanges_1 = require("./withXcodeChanges");
32
+ const config_1 = require("../../config");
33
+ const utils_1 = require("../utils");
34
+ const withIOSTarget = (config, props) => {
35
+ const targetName = props.displayName || props.name;
36
+ props.logger.log(`Configuring iOS target: ${targetName} (${props.type})`);
37
+ // Validate React Native compatibility
38
+ const REACT_NATIVE_COMPATIBLE_TYPES = [
39
+ 'share',
40
+ 'action',
41
+ 'clip',
42
+ 'messages',
43
+ ];
44
+ // Validate entry field
45
+ if (props.entry) {
46
+ if (!REACT_NATIVE_COMPATIBLE_TYPES.includes(props.type)) {
47
+ throw new Error(`Target '${props.name}' (type: ${props.type}) does not support React Native. ` +
48
+ `'entry' can only be used with: ${REACT_NATIVE_COMPATIBLE_TYPES.join(', ')}`);
49
+ }
50
+ // Validate that the entry file exists
51
+ const projectRoot = config._internal?.projectRoot || process.cwd();
52
+ const entryPath = path.resolve(projectRoot, props.entry);
53
+ if (!fs.existsSync(entryPath)) {
54
+ throw new Error(`Target '${props.name}': Entry file not found at ${props.entry}. ` +
55
+ `Resolved path: ${entryPath}`);
56
+ }
57
+ }
58
+ // Validate excludedPackages
59
+ if (props.excludedPackages && !props.entry) {
60
+ props.logger.warn(`excludedPackages specified for ${props.name} but no 'entry' field provided. ` +
61
+ `excludedPackages will be ignored.`);
62
+ }
63
+ // Resolve appGroup (inherit from main app if not specified)
64
+ let appGroup = props.appGroup;
65
+ if (!appGroup) {
66
+ const mainAppGroups = config.ios?.entitlements?.['com.apple.security.application-groups'];
67
+ if (Array.isArray(mainAppGroups) && mainAppGroups.length > 0) {
68
+ appGroup = mainAppGroups[0];
69
+ props.logger.log(`Inherited App Group: ${appGroup}`);
70
+ }
71
+ }
72
+ // Validate App Group for types that require it
73
+ const REQUIRES_APP_GROUP = [
74
+ 'widget',
75
+ 'clip',
76
+ 'share',
77
+ 'bg-download',
78
+ ];
79
+ if (REQUIRES_APP_GROUP.includes(props.type) && !appGroup) {
80
+ throw new Error(`Target '${props.name}' (type: ${props.type}) requires an App Group. ` +
81
+ `Specify 'appGroup' in defineTarget() or add App Groups to main app entitlements in app.json`);
82
+ }
83
+ // Resolve deploymentTarget (type-aware default)
84
+ const typeMinimum = config_1.TYPE_MINIMUM_DEPLOYMENT_TARGETS[props.type];
85
+ const mainAppTarget = config.ios?.deploymentTarget;
86
+ let deploymentTarget = props.deploymentTarget;
87
+ if (!deploymentTarget) {
88
+ if (mainAppTarget && parseFloat(mainAppTarget) > parseFloat(typeMinimum)) {
89
+ deploymentTarget = mainAppTarget;
90
+ props.logger.log(`Inherited deployment target: ${deploymentTarget}`);
91
+ }
92
+ else {
93
+ deploymentTarget = typeMinimum;
94
+ props.logger.log(`Using type minimum deployment target: ${deploymentTarget}`);
95
+ }
96
+ }
97
+ // React Native extensions require ExpoModulesCore, which has minimum iOS 15.1
98
+ // Ensure deployment target meets this requirement when using React Native (entry specified)
99
+ const EXPO_MODULES_MINIMUM = '15.1';
100
+ if (props.entry &&
101
+ parseFloat(deploymentTarget) < parseFloat(EXPO_MODULES_MINIMUM)) {
102
+ props.logger.log(`React Native extension requires ExpoModulesCore (iOS ${EXPO_MODULES_MINIMUM}), ` +
103
+ `raising deployment target from ${deploymentTarget} to ${EXPO_MODULES_MINIMUM}`);
104
+ deploymentTarget = EXPO_MODULES_MINIMUM;
105
+ }
106
+ // Inherit accent color
107
+ const colors = props.colors || {};
108
+ const mainAppAccentColor = config.ios?.accentColor;
109
+ if (!colors.$accent && mainAppAccentColor) {
110
+ colors.$accent = mainAppAccentColor;
111
+ props.logger.log(`Inherited accent color: ${mainAppAccentColor}`);
112
+ }
113
+ const targetProductName = utils_1.Paths.sanitizeTargetName(targetName);
114
+ // Pass resolved values to withXcodeChanges
115
+ config = (0, withXcodeChanges_1.withXcodeChanges)(config, {
116
+ ...props,
117
+ deploymentTarget,
118
+ colors: Object.keys(colors).length > 0 ? colors : undefined,
119
+ logger: props.logger,
120
+ });
121
+ // Add Podfile target only for code-based targets (skip asset-only like stickers)
122
+ // Extensions with React Native need full RN setup, others need standalone config
123
+ const { TYPE_CHARACTERISTICS } = require('../target');
124
+ const typeConfig = TYPE_CHARACTERISTICS[props.type];
125
+ if (typeConfig.requiresCode) {
126
+ config = (0, withPodfile_1.withTargetPodfile)(config, {
127
+ targetName: targetProductName, // Use sanitized name to match Xcode target
128
+ deploymentTarget: deploymentTarget, // Guaranteed to be set by resolution logic above
129
+ extensionType: props.type,
130
+ excludedPackages: props.excludedPackages,
131
+ standalone: !props.entry, // Standalone (no dependency inheritance) if not using React Native
132
+ logger: props.logger,
133
+ });
134
+ }
135
+ else {
136
+ props.logger.log(`Skipping Podfile for asset-only target: ${targetProductName}`);
137
+ }
138
+ config = (0, withEntitlements_1.withTargetEntitlements)(config, {
139
+ targetName,
140
+ targetDirectory: props.directory,
141
+ type: props.type,
142
+ entitlements: props.entitlements,
143
+ logger: props.logger,
144
+ });
145
+ // Note: Color generation is handled in withXcodeChanges where colors are created
146
+ // in targets/[name]/ios/build/Assets.xcassets/ (not in ios/[TargetName]/)
147
+ // Note: Assets.xcassets is added in withXcodeChanges where we have direct access to target.uuid
148
+ // Note: Sticker packs are also created in withXcodeChanges for proper execution order
149
+ return config;
150
+ };
151
+ exports.withIOSTarget = withIOSTarget;
152
+ //# sourceMappingURL=withIOSTarget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withIOSTarget.js","sourceRoot":"","sources":["../../../../../plugin/src/ios/config-plugins/withIOSTarget.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uCAAyB;AACzB,2CAA6B;AAE7B,yDAA4D;AAC5D,+CAAkD;AAClD,yDAAsD;AACtD,yCAIsB;AAEtB,oCAAiC;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AAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACtD,MAAM,UAAU,GAAG,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAEpD,IAAI,UAAU,CAAC,YAAY,EAAE,CAAC;QAC5B,MAAM,GAAG,IAAA,+BAAiB,EAAC,MAAM,EAAE;YACjC,UAAU,EAAE,iBAAiB,EAAE,2CAA2C;YAC1E,gBAAgB,EAAE,gBAAiB,EAAE,iDAAiD;YACtF,aAAa,EAAE,KAAK,CAAC,IAAI;YACzB,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;YACxC,UAAU,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,mEAAmE;YAC7F,MAAM,EAAE,KAAK,CAAC,MAAM;SACrB,CAAC,CAAC;IACL,CAAC;SAAM,CAAC;QACN,KAAK,CAAC,MAAM,CAAC,GAAG,CACd,2CAA2C,iBAAiB,EAAE,CAC/D,CAAC;IACJ,CAAC;IAED,MAAM,GAAG,IAAA,yCAAsB,EAAC,MAAM,EAAE;QACtC,UAAU;QACV,eAAe,EAAE,KAAK,CAAC,SAAS;QAChC,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,MAAM,EAAE,KAAK,CAAC,MAAM;KACrB,CAAC,CAAC;IAEH,iFAAiF;IACjF,0EAA0E;IAC1E,gGAAgG;IAChG,sFAAsF;IAEtF,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAvJW,QAAA,aAAa,iBAuJxB"}
@@ -0,0 +1,8 @@
1
+ import { ConfigPlugin } from '@expo/config-plugins';
2
+ export declare const withIosColorset: ConfigPlugin<{
3
+ name: string;
4
+ color: string;
5
+ darkColor?: string;
6
+ targetName: string;
7
+ }>;
8
+ //# sourceMappingURL=withIosColorset.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withIosColorset.d.ts","sourceRoot":"","sources":["../../../../../plugin/src/ios/config-plugins/withIosColorset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAoB,MAAM,sBAAsB,CAAC;AAItE,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAmBA,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.withIosColorset = void 0;
4
+ const config_plugins_1 = require("@expo/config-plugins");
5
+ const utils_1 = require("../utils");
6
+ const withIosColorset = (config, props) => {
7
+ return (0, config_plugins_1.withDangerousMod)(config, [
8
+ 'ios',
9
+ async (config) => {
10
+ const colorsetPath = utils_1.Paths.getColorsetPath({
11
+ platformProjectRoot: config.modRequest.platformProjectRoot,
12
+ targetName: props.targetName,
13
+ colorName: props.name,
14
+ });
15
+ utils_1.Asset.createColorset({
16
+ colorsetPath,
17
+ color: props.color,
18
+ darkColor: props.darkColor,
19
+ });
20
+ return config;
21
+ },
22
+ ]);
23
+ };
24
+ exports.withIosColorset = withIosColorset;
25
+ //# sourceMappingURL=withIosColorset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withIosColorset.js","sourceRoot":"","sources":["../../../../../plugin/src/ios/config-plugins/withIosColorset.ts"],"names":[],"mappings":";;;AAAA,yDAAsE;AAEtE,oCAAwC;AAEjC,MAAM,eAAe,GAKvB,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;IACrB,OAAO,IAAA,iCAAgB,EAAC,MAAM,EAAE;QAC9B,KAAK;QACL,KAAK,EAAE,MAAM,EAAE,EAAE;YACf,MAAM,YAAY,GAAG,aAAK,CAAC,eAAe,CAAC;gBACzC,mBAAmB,EAAE,MAAM,CAAC,UAAU,CAAC,mBAAmB;gBAC1D,UAAU,EAAE,KAAK,CAAC,UAAU;gBAC5B,SAAS,EAAE,KAAK,CAAC,IAAI;aACtB,CAAC,CAAC;YAEH,aAAK,CAAC,cAAc,CAAC;gBACnB,YAAY;gBACZ,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,SAAS,EAAE,KAAK,CAAC,SAAS;aAC3B,CAAC,CAAC;YAEH,OAAO,MAAM,CAAC;QAChB,CAAC;KACF,CAAC,CAAC;AACL,CAAC,CAAC;AAxBW,QAAA,eAAe,mBAwB1B"}
@@ -0,0 +1,8 @@
1
+ import { ConfigPlugin } from '@expo/config-plugins';
2
+ export declare const withIosStickerPack: ConfigPlugin<{
3
+ name: string;
4
+ assets: string[];
5
+ targetName: string;
6
+ targetDirectory: string;
7
+ }>;
8
+ //# sourceMappingURL=withIosStickerPack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withIosStickerPack.d.ts","sourceRoot":"","sources":["../../../../../plugin/src/ios/config-plugins/withIosStickerPack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAoB,MAAM,sBAAsB,CAAC;AAMtE,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CACzB,CAqDA,CAAC"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.withIosStickerPack = void 0;
7
+ const config_plugins_1 = require("@expo/config-plugins");
8
+ const fs_1 = __importDefault(require("fs"));
9
+ const path_1 = __importDefault(require("path"));
10
+ const utils_1 = require("../utils");
11
+ const withIosStickerPack = (config, props) => {
12
+ return (0, config_plugins_1.withDangerousMod)(config, [
13
+ 'ios',
14
+ async (config) => {
15
+ const stickerPackPath = utils_1.Paths.getStickerPackPath({
16
+ platformProjectRoot: config.modRequest.platformProjectRoot,
17
+ targetName: props.targetName,
18
+ stickerPackName: props.name,
19
+ });
20
+ utils_1.Asset.createStickerPack({
21
+ stickerPackPath,
22
+ name: props.name,
23
+ assets: props.assets,
24
+ });
25
+ // Copy sticker assets to the pack
26
+ props.assets.forEach((assetPath) => {
27
+ const absoluteAssetPath = path_1.default.isAbsolute(assetPath)
28
+ ? assetPath
29
+ : path_1.default.join(config.modRequest.projectRoot, props.targetDirectory, assetPath);
30
+ if (fs_1.default.existsSync(absoluteAssetPath)) {
31
+ const filename = path_1.default.basename(assetPath);
32
+ const baseName = path_1.default.basename(assetPath, path_1.default.extname(assetPath));
33
+ const stickerDirPath = path_1.default.join(stickerPackPath, `${baseName}.sticker`);
34
+ // Create .sticker directory with Contents.json
35
+ utils_1.Asset.createSticker({
36
+ stickerPath: stickerDirPath,
37
+ filename,
38
+ });
39
+ // Copy image into .sticker directory
40
+ const destPath = path_1.default.join(stickerDirPath, filename);
41
+ fs_1.default.copyFileSync(absoluteAssetPath, destPath);
42
+ }
43
+ else {
44
+ console.warn(`[expo-targets] Sticker asset not found: ${absoluteAssetPath}`);
45
+ }
46
+ });
47
+ return config;
48
+ },
49
+ ]);
50
+ };
51
+ exports.withIosStickerPack = withIosStickerPack;
52
+ //# sourceMappingURL=withIosStickerPack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withIosStickerPack.js","sourceRoot":"","sources":["../../../../../plugin/src/ios/config-plugins/withIosStickerPack.ts"],"names":[],"mappings":";;;;;;AAAA,yDAAsE;AACtE,4CAAoB;AACpB,gDAAwB;AAExB,oCAAwC;AAEjC,MAAM,kBAAkB,GAK1B,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;IACrB,OAAO,IAAA,iCAAgB,EAAC,MAAM,EAAE;QAC9B,KAAK;QACL,KAAK,EAAE,MAAM,EAAE,EAAE;YACf,MAAM,eAAe,GAAG,aAAK,CAAC,kBAAkB,CAAC;gBAC/C,mBAAmB,EAAE,MAAM,CAAC,UAAU,C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AAC;gBACJ,CAAC;YACH,CAAC,CAAC,CAAC;YAEH,OAAO,MAAM,CAAC;QAChB,CAAC;KACF,CAAC,CAAC;AACL,CAAC,CAAC;AA1DW,QAAA,kBAAkB,sBA0D7B"}
@@ -0,0 +1,12 @@
1
+ import { ConfigPlugin } from '@expo/config-plugins';
2
+ import { type ExtensionType } from '../../config';
3
+ import { Logger } from '../../logger';
4
+ export declare const withTargetPodfile: ConfigPlugin<{
5
+ targetName: string;
6
+ deploymentTarget: string;
7
+ extensionType: ExtensionType;
8
+ excludedPackages?: string[];
9
+ standalone?: boolean;
10
+ logger: Logger;
11
+ }>;
12
+ //# sourceMappingURL=withPodfile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withPodfile.d.ts","sourceRoot":"","sources":["../../../../../plugin/src/ios/config-plugins/withPodfile.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAKtC,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,aAAa,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAyNA,CAAC"}