expo-targets 0.2.1 → 0.2.3

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 (201) hide show
  1. package/build/plugin/src/config.d.ts +64 -1
  2. package/build/plugin/src/config.d.ts.map +1 -1
  3. package/build/plugin/src/config.js +5 -1
  4. package/build/plugin/src/config.js.map +1 -1
  5. package/build/plugin/src/ios/config-plugins/withEntitlements.d.ts +1 -0
  6. package/build/plugin/src/ios/config-plugins/withEntitlements.d.ts.map +1 -1
  7. package/build/plugin/src/ios/config-plugins/withEntitlements.js +5 -0
  8. package/build/plugin/src/ios/config-plugins/withEntitlements.js.map +1 -1
  9. package/build/plugin/src/ios/config-plugins/withIOSTarget.d.ts +5 -0
  10. package/build/plugin/src/ios/config-plugins/withIOSTarget.d.ts.map +1 -1
  11. package/build/plugin/src/ios/config-plugins/withIOSTarget.js +18 -5
  12. package/build/plugin/src/ios/config-plugins/withIOSTarget.js.map +1 -1
  13. package/build/plugin/src/ios/config-plugins/withPodfile.d.ts.map +1 -1
  14. package/build/plugin/src/ios/config-plugins/withPodfile.js +3 -5
  15. package/build/plugin/src/ios/config-plugins/withPodfile.js.map +1 -1
  16. package/build/plugin/src/ios/config-plugins/withXcodeChanges.d.ts +5 -0
  17. package/build/plugin/src/ios/config-plugins/withXcodeChanges.d.ts.map +1 -1
  18. package/build/plugin/src/ios/config-plugins/withXcodeChanges.js +72 -3
  19. package/build/plugin/src/ios/config-plugins/withXcodeChanges.js.map +1 -1
  20. package/build/plugin/src/ios/target.d.ts +4 -1
  21. package/build/plugin/src/ios/target.d.ts.map +1 -1
  22. package/build/plugin/src/ios/target.js +108 -12
  23. package/build/plugin/src/ios/target.js.map +1 -1
  24. package/build/plugin/src/ios/utils/index.d.ts +1 -0
  25. package/build/plugin/src/ios/utils/index.d.ts.map +1 -1
  26. package/build/plugin/src/ios/utils/index.js +2 -1
  27. package/build/plugin/src/ios/utils/index.js.map +1 -1
  28. package/build/plugin/src/ios/utils/paths.d.ts +11 -5
  29. package/build/plugin/src/ios/utils/paths.d.ts.map +1 -1
  30. package/build/plugin/src/ios/utils/paths.js +12 -10
  31. package/build/plugin/src/ios/utils/paths.js.map +1 -1
  32. package/build/plugin/src/ios/utils/plist.d.ts.map +1 -1
  33. package/build/plugin/src/ios/utils/plist.js +2 -0
  34. package/build/plugin/src/ios/utils/plist.js.map +1 -1
  35. package/build/plugin/src/ios/utils/podfile.d.ts.map +1 -1
  36. package/build/plugin/src/ios/utils/podfile.js +55 -22
  37. package/build/plugin/src/ios/utils/podfile.js.map +1 -1
  38. package/build/plugin/src/ios/utils/safari.d.ts +69 -0
  39. package/build/plugin/src/ios/utils/safari.d.ts.map +1 -0
  40. package/build/plugin/src/ios/utils/safari.js +359 -0
  41. package/build/plugin/src/ios/utils/safari.js.map +1 -0
  42. package/build/plugin/src/withTargetsDir.d.ts.map +1 -1
  43. package/build/plugin/src/withTargetsDir.js +102 -2
  44. package/build/plugin/src/withTargetsDir.js.map +1 -1
  45. package/build/src/Target.d.ts +8 -1
  46. package/build/src/Target.d.ts.map +1 -1
  47. package/build/src/Target.js +136 -26
  48. package/build/src/Target.js.map +1 -1
  49. package/build/src/index.d.ts +3 -1
  50. package/build/src/index.d.ts.map +1 -1
  51. package/build/src/index.js +14 -1
  52. package/build/src/index.js.map +1 -1
  53. package/build/src/modules/safari/index.d.ts +109 -0
  54. package/build/src/modules/safari/index.d.ts.map +1 -0
  55. package/build/src/modules/safari/index.js +288 -0
  56. package/build/src/modules/safari/index.js.map +1 -0
  57. package/metro/{src/index.ts → build/index.d.ts} +1 -0
  58. package/metro/build/index.d.ts.map +1 -0
  59. package/metro/build/index.js +6 -0
  60. package/metro/build/index.js.map +1 -0
  61. package/metro/build/withTargetsMetro.d.ts +5 -0
  62. package/metro/build/withTargetsMetro.d.ts.map +1 -0
  63. package/metro/build/withTargetsMetro.js +78 -0
  64. package/metro/build/withTargetsMetro.js.map +1 -0
  65. package/package.json +11 -1
  66. package/plugin/build/android/withAndroidAppBuildGradle.d.ts +7 -0
  67. package/plugin/build/android/withAndroidAppBuildGradle.d.ts.map +1 -0
  68. package/plugin/build/android/withAndroidAppBuildGradle.js +31 -0
  69. package/plugin/build/android/withAndroidAppBuildGradle.js.map +1 -0
  70. package/plugin/build/android/withAndroidTarget.d.ts +10 -0
  71. package/plugin/build/android/withAndroidTarget.d.ts.map +1 -0
  72. package/plugin/build/android/withAndroidTarget.js +22 -0
  73. package/plugin/build/android/withAndroidTarget.js.map +1 -0
  74. package/plugin/build/android/withAndroidWidget.d.ts +13 -0
  75. package/plugin/build/android/withAndroidWidget.d.ts.map +1 -0
  76. package/plugin/build/android/withAndroidWidget.js +564 -0
  77. package/plugin/build/android/withAndroidWidget.js.map +1 -0
  78. package/plugin/build/config.d.ts +204 -0
  79. package/plugin/build/config.d.ts.map +1 -0
  80. package/plugin/build/config.js +58 -0
  81. package/plugin/build/config.js.map +1 -0
  82. package/plugin/build/index.d.ts +9 -0
  83. package/plugin/build/index.d.ts.map +1 -0
  84. package/plugin/build/index.js +11 -0
  85. package/plugin/build/index.js.map +1 -0
  86. package/plugin/build/ios/config-plugins/withEntitlements.d.ts +12 -0
  87. package/plugin/build/ios/config-plugins/withEntitlements.d.ts.map +1 -0
  88. package/plugin/build/ios/config-plugins/withEntitlements.js +54 -0
  89. package/plugin/build/ios/config-plugins/withEntitlements.js.map +1 -0
  90. package/plugin/build/ios/config-plugins/withIOSTarget.d.ts +22 -0
  91. package/plugin/build/ios/config-plugins/withIOSTarget.d.ts.map +1 -0
  92. package/plugin/build/ios/config-plugins/withIOSTarget.js +165 -0
  93. package/plugin/build/ios/config-plugins/withIOSTarget.js.map +1 -0
  94. package/plugin/build/ios/config-plugins/withIosColorset.d.ts +8 -0
  95. package/plugin/build/ios/config-plugins/withIosColorset.d.ts.map +1 -0
  96. package/plugin/build/ios/config-plugins/withIosColorset.js +25 -0
  97. package/plugin/build/ios/config-plugins/withIosColorset.js.map +1 -0
  98. package/plugin/build/ios/config-plugins/withIosStickerPack.d.ts +8 -0
  99. package/plugin/build/ios/config-plugins/withIosStickerPack.d.ts.map +1 -0
  100. package/plugin/build/ios/config-plugins/withIosStickerPack.js +52 -0
  101. package/plugin/build/ios/config-plugins/withIosStickerPack.js.map +1 -0
  102. package/plugin/build/ios/config-plugins/withPodfile.d.ts +12 -0
  103. package/plugin/build/ios/config-plugins/withPodfile.d.ts.map +1 -0
  104. package/plugin/build/ios/config-plugins/withPodfile.js +160 -0
  105. package/plugin/build/ios/config-plugins/withPodfile.js.map +1 -0
  106. package/plugin/build/ios/config-plugins/withXcodeChanges.d.ts +20 -0
  107. package/plugin/build/ios/config-plugins/withXcodeChanges.d.ts.map +1 -0
  108. package/plugin/build/ios/config-plugins/withXcodeChanges.js +715 -0
  109. package/plugin/build/ios/config-plugins/withXcodeChanges.js.map +1 -0
  110. package/plugin/build/ios/target.d.ts +44 -0
  111. package/plugin/build/ios/target.d.ts.map +1 -0
  112. package/plugin/build/ios/target.js +670 -0
  113. package/plugin/build/ios/target.js.map +1 -0
  114. package/plugin/build/ios/utils/asset.d.ts +60 -0
  115. package/plugin/build/ios/utils/asset.d.ts.map +1 -0
  116. package/plugin/build/ios/utils/asset.js +375 -0
  117. package/plugin/build/ios/utils/asset.js.map +1 -0
  118. package/plugin/build/ios/utils/file.d.ts +33 -0
  119. package/plugin/build/ios/utils/file.d.ts.map +1 -0
  120. package/plugin/build/ios/utils/file.js +88 -0
  121. package/plugin/build/ios/utils/file.js.map +1 -0
  122. package/plugin/{src/ios/utils/index.ts → build/ios/utils/index.d.ts} +2 -1
  123. package/plugin/build/ios/utils/index.d.ts.map +1 -0
  124. package/plugin/build/ios/utils/index.js +39 -0
  125. package/plugin/build/ios/utils/index.js.map +1 -0
  126. package/plugin/build/ios/utils/paths.d.ts +134 -0
  127. package/plugin/build/ios/utils/paths.d.ts.map +1 -0
  128. package/plugin/build/ios/utils/paths.js +143 -0
  129. package/plugin/build/ios/utils/paths.js.map +1 -0
  130. package/plugin/build/ios/utils/plist.d.ts +29 -0
  131. package/plugin/build/ios/utils/plist.d.ts.map +1 -0
  132. package/plugin/build/ios/utils/plist.js +116 -0
  133. package/plugin/build/ios/utils/plist.js.map +1 -0
  134. package/plugin/build/ios/utils/podfile.d.ts +82 -0
  135. package/plugin/build/ios/utils/podfile.d.ts.map +1 -0
  136. package/plugin/build/ios/utils/podfile.js +441 -0
  137. package/plugin/build/ios/utils/podfile.js.map +1 -0
  138. package/plugin/build/ios/utils/reactNativeSwift.d.ts +11 -0
  139. package/plugin/build/ios/utils/reactNativeSwift.d.ts.map +1 -0
  140. package/plugin/build/ios/utils/reactNativeSwift.js +263 -0
  141. package/plugin/build/ios/utils/reactNativeSwift.js.map +1 -0
  142. package/plugin/build/ios/utils/safari.d.ts +69 -0
  143. package/plugin/build/ios/utils/safari.d.ts.map +1 -0
  144. package/plugin/build/ios/utils/safari.js +359 -0
  145. package/plugin/build/ios/utils/safari.js.map +1 -0
  146. package/plugin/build/ios/utils/xcode.d.ts +185 -0
  147. package/plugin/build/ios/utils/xcode.d.ts.map +1 -0
  148. package/plugin/build/ios/utils/xcode.js +706 -0
  149. package/plugin/build/ios/utils/xcode.js.map +1 -0
  150. package/plugin/build/logger.d.ts +10 -0
  151. package/plugin/build/logger.d.ts.map +1 -0
  152. package/plugin/build/logger.js +62 -0
  153. package/plugin/build/logger.js.map +1 -0
  154. package/plugin/build/parseTargetConfig.d.ts +3 -0
  155. package/plugin/build/parseTargetConfig.d.ts.map +1 -0
  156. package/plugin/build/parseTargetConfig.js +113 -0
  157. package/plugin/build/parseTargetConfig.js.map +1 -0
  158. package/plugin/build/withTargetsDir.d.ts +6 -0
  159. package/plugin/build/withTargetsDir.d.ts.map +1 -0
  160. package/plugin/build/withTargetsDir.js +190 -0
  161. package/plugin/build/withTargetsDir.js.map +1 -0
  162. package/.eslintrc.js +0 -2
  163. package/metro/src/withTargetsMetro.ts +0 -72
  164. package/metro/tsconfig.build.json +0 -9
  165. package/plugin/src/android/withAndroidAppBuildGradle.ts +0 -34
  166. package/plugin/src/android/withAndroidTarget.ts +0 -26
  167. package/plugin/src/android/withAndroidWidget.ts +0 -778
  168. package/plugin/src/config.ts +0 -255
  169. package/plugin/src/index.ts +0 -19
  170. package/plugin/src/ios/config-plugins/withEntitlements.ts +0 -69
  171. package/plugin/src/ios/config-plugins/withIOSTarget.ts +0 -179
  172. package/plugin/src/ios/config-plugins/withIosColorset.ts +0 -29
  173. package/plugin/src/ios/config-plugins/withIosStickerPack.ts +0 -65
  174. package/plugin/src/ios/config-plugins/withPodfile.ts +0 -238
  175. package/plugin/src/ios/config-plugins/withXcodeChanges.ts +0 -891
  176. package/plugin/src/ios/target.ts +0 -668
  177. package/plugin/src/ios/utils/asset.ts +0 -490
  178. package/plugin/src/ios/utils/file.ts +0 -80
  179. package/plugin/src/ios/utils/paths.ts +0 -253
  180. package/plugin/src/ios/utils/plist.ts +0 -101
  181. package/plugin/src/ios/utils/podfile.ts +0 -534
  182. package/plugin/src/ios/utils/reactNativeSwift.ts +0 -283
  183. package/plugin/src/ios/utils/xcode.ts +0 -989
  184. package/plugin/src/logger.ts +0 -63
  185. package/plugin/src/parseTargetConfig.ts +0 -115
  186. package/plugin/src/types/normalize-colors.d.ts +0 -3
  187. package/plugin/src/withTargetsDir.ts +0 -120
  188. package/plugin/tsconfig.build.json +0 -9
  189. package/plugin/tsconfig.json +0 -9
  190. package/src/Target.ts +0 -239
  191. package/src/index.ts +0 -52
  192. package/src/modules/extension/index.ts +0 -54
  193. package/src/modules/messages/index.ts +0 -124
  194. package/src/modules/storage/index.ts +0 -126
  195. package/tsconfig.json +0 -8
  196. /package/plugin/{src → build}/ios/templates/MessagesViewController.swift +0 -0
  197. /package/plugin/{src → build}/ios/templates/ReactNativeViewController.swift +0 -0
  198. /package/plugin/{src → build}/ios/templates/action-extension-data.swift +0 -0
  199. /package/plugin/{src → build}/ios/templates/clip-extension-data.swift +0 -0
  200. /package/plugin/{src → build}/ios/templates/messages-extension-data.swift +0 -0
  201. /package/plugin/{src → build}/ios/templates/share-extension-data.swift +0 -0
@@ -0,0 +1,204 @@
1
+ import type { ExpoConfig } from '@expo/config-types';
2
+ export type ExtensionType = 'widget' | 'clip' | 'stickers' | 'messages' | 'share' | 'action' | 'wallet' | 'wallet-ui' | '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 interface IntentUIConfig {
32
+ enabled: boolean;
33
+ name?: string;
34
+ bundleIdentifier?: string;
35
+ }
36
+ export interface IntentsConfig {
37
+ intentsSupported?: string[];
38
+ intentsRestrictedWhileLocked?: string[];
39
+ ui?: boolean | IntentUIConfig;
40
+ }
41
+ export interface WalletUIConfig {
42
+ enabled: boolean;
43
+ name?: string;
44
+ bundleIdentifier?: string;
45
+ }
46
+ export interface WalletConfig {
47
+ ui?: boolean | WalletUIConfig;
48
+ }
49
+ export declare const TYPE_MINIMUM_DEPLOYMENT_TARGETS: Record<ExtensionType, string>;
50
+ export declare const TYPE_BUNDLE_IDENTIFIER_SUFFIXES: Record<ExtensionType, string>;
51
+ interface BaseIOSTargetConfig {
52
+ icon?: string;
53
+ deploymentTarget?: string;
54
+ bundleIdentifier?: string;
55
+ displayName?: string;
56
+ colors?: Record<string, string | Color>;
57
+ images?: Record<string, string>;
58
+ stickerPacks?: StickerPack[];
59
+ /**
60
+ * Icon for extension target
61
+ * - For stickers: Path to source image file (e.g., "./assets/imessage-icon.png")
62
+ * - For action extensions: SF Symbol name (e.g., "photo.fill") or image asset name
63
+ * @example
64
+ * targetIcon: "./assets/icon.png" // Sticker pack icon file path
65
+ * targetIcon: "photo.fill" // Action extension SF Symbol
66
+ * targetIcon: "MyActionIcon" // Action extension image asset name
67
+ */
68
+ targetIcon?: string;
69
+ frameworks?: string[];
70
+ entitlements?: Record<string, any>;
71
+ infoPlist?: Record<string, any>;
72
+ swiftVersion?: string;
73
+ targetedDeviceFamily?: string;
74
+ clangEnableModules?: boolean | string;
75
+ swiftEmitLocStrings?: boolean | string;
76
+ /**
77
+ * Content types this share extension accepts
78
+ * Only applies to share extension targets
79
+ * @example
80
+ * activationRules: [
81
+ * { type: 'text' },
82
+ * { type: 'url' },
83
+ * { type: 'image', maxCount: 5 }
84
+ * ]
85
+ */
86
+ activationRules?: ShareExtensionActivationRule[];
87
+ /**
88
+ * JavaScript file for preprocessing web content
89
+ * Only applies to share extension targets
90
+ * Enables NSExtensionActivationSupportsWebPageWithMaxCount
91
+ * @see https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/Share.html
92
+ */
93
+ preprocessingFile?: string;
94
+ /**
95
+ * Custom manifest.json configuration for Safari web extensions
96
+ * Only applies to Safari extension targets with 'entry' field
97
+ * Merged with auto-generated manifest when using React Native Web mode
98
+ * @example
99
+ * manifest: {
100
+ * permissions: ['storage', 'tabs'],
101
+ * content_scripts: [{ matches: ['*://*.example.com/*'] }]
102
+ * }
103
+ */
104
+ manifest?: {
105
+ name?: string;
106
+ version?: string;
107
+ description?: string;
108
+ permissions?: string[];
109
+ content_scripts?: {
110
+ matches: string[];
111
+ js?: string[];
112
+ css?: string[];
113
+ }[];
114
+ icons?: Record<string, string>;
115
+ };
116
+ /**
117
+ * Siri Intents configuration for intent extensions
118
+ * When ui is enabled, generates both Intent and Intent UI extensions
119
+ * @example
120
+ * intents: {
121
+ * intentsSupported: ['INStartWorkoutIntent', 'INPauseWorkoutIntent'],
122
+ * ui: true
123
+ * }
124
+ */
125
+ intents?: IntentsConfig;
126
+ /**
127
+ * Wallet extension configuration for payment pass provisioning
128
+ * When ui is enabled, generates both Non-UI and UI (auth) extensions
129
+ * @example
130
+ * wallet: {
131
+ * ui: true // Creates both wallet and wallet-ui targets
132
+ * }
133
+ * // Or with custom config:
134
+ * wallet: {
135
+ * ui: { enabled: true, name: 'MyWalletAuth' }
136
+ * }
137
+ */
138
+ wallet?: WalletConfig;
139
+ }
140
+ export type ReactNativeCompatibleType = 'share' | 'action' | 'clip' | 'messages';
141
+ export type NativeOnlyType = Exclude<ExtensionType, ReactNativeCompatibleType>;
142
+ export interface IOSTargetConfigWithReactNative extends BaseIOSTargetConfig {
143
+ }
144
+ export interface IOSTargetConfigNativeOnly extends BaseIOSTargetConfig {
145
+ }
146
+ export type IOSTargetConfig = IOSTargetConfigWithReactNative | IOSTargetConfigNativeOnly;
147
+ export interface AndroidTargetConfig {
148
+ resourceName?: string;
149
+ /**
150
+ * Widget rendering approach (default: 'glance')
151
+ * - 'glance': Modern Jetpack Compose-based widgets using Glance API
152
+ * - 'remoteviews': Traditional XML layout-based widgets using RemoteViews
153
+ */
154
+ widgetType?: 'glance' | 'remoteviews';
155
+ minWidth?: string;
156
+ minHeight?: string;
157
+ resizeMode?: string;
158
+ updatePeriodMillis?: number;
159
+ widgetCategory?: string;
160
+ previewImage?: string;
161
+ description?: string;
162
+ maxResizeWidth?: string;
163
+ maxResizeHeight?: string;
164
+ targetCellWidth?: number;
165
+ targetCellHeight?: number;
166
+ initialLayout?: string;
167
+ colors?: Record<string, string | Color>;
168
+ }
169
+ type BaseTargetConfig = {
170
+ name: string;
171
+ displayName?: string;
172
+ appGroup?: string;
173
+ platforms: string[];
174
+ android?: AndroidTargetConfig;
175
+ };
176
+ type TargetConfigReactNativeCompatible = BaseTargetConfig & {
177
+ type: ReactNativeCompatibleType;
178
+ /**
179
+ * Entry point for React Native rendering (share, action, clip only)
180
+ * Path to JavaScript/TypeScript file that exports the extension component
181
+ * When specified, enables React Native rendering in the extension
182
+ * @example "./ShareExtension.tsx"
183
+ * @example "./targets/my-share/ShareExtension.js"
184
+ */
185
+ entry?: string;
186
+ /**
187
+ * Exclude specific Expo packages from the extension bundle
188
+ * Reduces bundle size by removing unused modules
189
+ * Only applies when `entry` is specified
190
+ * @example ['expo-dev-client', 'expo-updates']
191
+ */
192
+ excludedPackages?: string[];
193
+ ios?: IOSTargetConfigWithReactNative;
194
+ };
195
+ type TargetConfigNativeOnly = BaseTargetConfig & {
196
+ type: NativeOnlyType;
197
+ ios?: IOSTargetConfigNativeOnly;
198
+ };
199
+ export type TargetConfig = TargetConfigReactNativeCompatible | TargetConfigNativeOnly;
200
+ export type TargetConfigFunction = (config: ExpoConfig) => TargetConfig;
201
+ export declare const getAppGroup: (identifier: string) => string;
202
+ export declare const getTargetBundleIdentifier: (appBundleId: string, targetName: string) => string;
203
+ export {};
204
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../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,WAAW,GACX,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,G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rB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B,CAAC;AAGF,KAAK,iCAAiC,GAAG,gBAAgB,GAAG;IAC1D,IAAI,EAAE,yBAAyB,CAAC;IAChC;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,GAAG,CAAC,EAAE,8BAA8B,CAAC;CACtC,CAAC;AAGF,KAAK,sBAAsB,GAAG,gBAAgB,GAAG;IAC/C,IAAI,EAAE,cAAc,CAAC;IACrB,GAAG,CAAC,EAAE,yBAAyB,CAAC;CACjC,CAAC;AAGF,MAAM,MAAM,YAAY,GACpB,iCAAiC,GACjC,sBAAsB,CAAC;AAE3B,MAAM,MAAM,oBAAoB,GAAG,CAAC,MAAM,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,58 @@
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: '13.0',
9
+ share: '8.0',
10
+ action: '8.0',
11
+ wallet: '14.0',
12
+ 'wallet-ui': '14.0',
13
+ 'notification-content': '10.0',
14
+ 'notification-service': '10.0',
15
+ intent: '12.0',
16
+ 'intent-ui': '12.0',
17
+ safari: '15.0',
18
+ spotlight: '9.0',
19
+ 'bg-download': '7.0',
20
+ 'quicklook-thumbnail': '11.0',
21
+ 'location-push': '15.0',
22
+ 'credentials-provider': '12.0',
23
+ 'account-auth': '12.2',
24
+ 'app-intent': '16.0',
25
+ 'device-activity-monitor': '15.0',
26
+ matter: '16.1',
27
+ watch: '2.0',
28
+ };
29
+ exports.TYPE_BUNDLE_IDENTIFIER_SUFFIXES = {
30
+ widget: 'widget',
31
+ clip: 'clip',
32
+ stickers: 'stickers',
33
+ messages: 'messages',
34
+ share: 'share',
35
+ action: 'action',
36
+ wallet: 'wallet',
37
+ 'wallet-ui': 'wallet-ui',
38
+ safari: 'safari',
39
+ 'notification-content': 'notification-content',
40
+ 'notification-service': 'notification-service',
41
+ intent: 'intent',
42
+ 'intent-ui': 'intent-ui',
43
+ spotlight: 'spotlight',
44
+ 'bg-download': 'bg-download',
45
+ 'quicklook-thumbnail': 'quicklook-thumbnail',
46
+ 'location-push': 'location-push',
47
+ 'credentials-provider': 'credentials-provider',
48
+ 'account-auth': 'account-auth',
49
+ 'app-intent': 'app-intent',
50
+ 'device-activity-monitor': 'device-activity-monitor',
51
+ matter: 'matter',
52
+ watch: 'watch',
53
+ };
54
+ const getAppGroup = (identifier) => `group.${identifier}`;
55
+ exports.getAppGroup = getAppGroup;
56
+ const getTargetBundleIdentifier = (appBundleId, targetName) => `${appBundleId}.${targetName}`;
57
+ exports.getTargetBundleIdentifier = getTargetBundleIdentifier;
58
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;;AA4Fa,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,MAAM,EAAE,MAAM;IACd,WAAW,EAAE,MAAM;IACnB,sBAAsB,EAAE,MAAM;IAC9B,sBAAsB,EAAE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 @@
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":["../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":["../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,12 @@
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
+ buildSubdirectory?: string;
11
+ }>;
12
+ //# sourceMappingURL=withEntitlements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withEntitlements.d.ts","sourceRoot":"","sources":["../../../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;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CA4DA,CAAC"}
@@ -0,0 +1,54 @@
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
+ // Add Wallet extension specific entitlements
27
+ if (props.type === 'wallet' || props.type === 'wallet-ui') {
28
+ entitlements['com.apple.developer.payment-pass-provisioning'] = true;
29
+ }
30
+ // Sync App Groups if needed
31
+ if (utils_1.Plist.shouldUseAppGroups(props.type)) {
32
+ const mainAppGroups = config.ios?.entitlements?.['com.apple.security.application-groups'];
33
+ entitlements = utils_1.Plist.syncAppGroups({
34
+ targetEntitlements: entitlements,
35
+ mainAppGroups,
36
+ });
37
+ if (mainAppGroups && mainAppGroups.length > 0) {
38
+ props.logger.log(`Syncing app groups to ${props.targetName}`);
39
+ }
40
+ }
41
+ // NEW: Generate entitlements in targets/TARGETNAME/ios/build/
42
+ const entitlementsPath = utils_1.Paths.getTargetEntitlementsPath({
43
+ projectRoot: config.modRequest.projectRoot,
44
+ targetDirectory: props.targetDirectory,
45
+ buildSubdirectory: props.buildSubdirectory,
46
+ });
47
+ utils_1.Plist.writePlist(entitlementsPath, entitlements);
48
+ props.logger.log(`Generated entitlements: ${path_1.default.relative(config.modRequest.projectRoot, entitlementsPath)}`);
49
+ return config;
50
+ },
51
+ ]);
52
+ };
53
+ exports.withTargetEntitlements = withTargetEntitlements;
54
+ //# sourceMappingURL=withEntitlements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withEntitlements.js","sourceRoot":"","sources":["../../../src/ios/config-plugins/withEntitlements.ts"],"names":[],"mappings":";;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,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;gBACtC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;aAC3C,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;AAnEW,QAAA,sBAAsB,0BAmEjC"}
@@ -0,0 +1,22 @@
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
+ intents?: {
15
+ intentsSupported?: string[];
16
+ intentsRestrictedWhileLocked?: string[];
17
+ };
18
+ buildSubdirectory?: string;
19
+ }
20
+ export declare const withIOSTarget: ConfigPlugin<IOSTargetProps>;
21
+ export {};
22
+ //# sourceMappingURL=withIOSTarget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withIOSTarget.d.ts","sourceRoot":"","sources":["../../../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;IACf,OAAO,CAAC,EAAE;QACR,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;QAC5B,4BAA4B,CAAC,EAAE,MAAM,EAAE,CAAC;KACzC,CAAC;IACF,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,cAAc,CAwKtD,CAAC"}
@@ -0,0 +1,165 @@
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
+ // Native RN types run actual React Native with native modules
39
+ const REACT_NATIVE_NATIVE_TYPES = [
40
+ 'share',
41
+ 'action',
42
+ 'clip',
43
+ 'messages',
44
+ ];
45
+ // Web-based RN types run React Native Web in a web view
46
+ const REACT_NATIVE_WEB_TYPES = ['safari'];
47
+ // All types that support entry field
48
+ const REACT_NATIVE_COMPATIBLE_TYPES = [
49
+ ...REACT_NATIVE_NATIVE_TYPES,
50
+ ...REACT_NATIVE_WEB_TYPES,
51
+ ];
52
+ // Validate entry field
53
+ if (props.entry) {
54
+ if (!REACT_NATIVE_COMPATIBLE_TYPES.includes(props.type)) {
55
+ throw new Error(`Target '${props.name}' (type: ${props.type}) does not support React Native. ` +
56
+ `'entry' can only be used with: ${REACT_NATIVE_COMPATIBLE_TYPES.join(', ')}`);
57
+ }
58
+ // Validate that the entry file exists
59
+ const projectRoot = config._internal?.projectRoot || process.cwd();
60
+ const entryPath = path.resolve(projectRoot, props.entry);
61
+ if (!fs.existsSync(entryPath)) {
62
+ throw new Error(`Target '${props.name}': Entry file not found at ${props.entry}. ` +
63
+ `Resolved path: ${entryPath}`);
64
+ }
65
+ }
66
+ // Validate excludedPackages
67
+ if (props.excludedPackages && !props.entry) {
68
+ props.logger.warn(`excludedPackages specified for ${props.name} but no 'entry' field provided. ` +
69
+ `excludedPackages will be ignored.`);
70
+ }
71
+ // Resolve appGroup (inherit from main app if not specified)
72
+ let appGroup = props.appGroup;
73
+ if (!appGroup) {
74
+ const mainAppGroups = config.ios?.entitlements?.['com.apple.security.application-groups'];
75
+ if (Array.isArray(mainAppGroups) && mainAppGroups.length > 0) {
76
+ appGroup = mainAppGroups[0];
77
+ props.logger.log(`Inherited App Group: ${appGroup}`);
78
+ }
79
+ }
80
+ // Validate App Group for types that require it
81
+ const REQUIRES_APP_GROUP = [
82
+ 'widget',
83
+ 'clip',
84
+ 'share',
85
+ 'bg-download',
86
+ ];
87
+ if (REQUIRES_APP_GROUP.includes(props.type) && !appGroup) {
88
+ throw new Error(`Target '${props.name}' (type: ${props.type}) requires an App Group. ` +
89
+ `Specify 'appGroup' in defineTarget() or add App Groups to main app entitlements in app.json`);
90
+ }
91
+ // Resolve deploymentTarget (type-aware default)
92
+ const typeMinimum = config_1.TYPE_MINIMUM_DEPLOYMENT_TARGETS[props.type];
93
+ const mainAppTarget = config.ios?.deploymentTarget;
94
+ let deploymentTarget = props.deploymentTarget;
95
+ if (!deploymentTarget) {
96
+ if (mainAppTarget && parseFloat(mainAppTarget) > parseFloat(typeMinimum)) {
97
+ deploymentTarget = mainAppTarget;
98
+ props.logger.log(`Inherited deployment target: ${deploymentTarget}`);
99
+ }
100
+ else {
101
+ deploymentTarget = typeMinimum;
102
+ props.logger.log(`Using type minimum deployment target: ${deploymentTarget}`);
103
+ }
104
+ }
105
+ // Native React Native extensions require ExpoModulesCore, which has minimum iOS 15.1
106
+ // Web-based extensions (safari) don't require ExpoModulesCore
107
+ const EXPO_MODULES_MINIMUM = '15.1';
108
+ const isNativeRNExtension = props.entry && REACT_NATIVE_NATIVE_TYPES.includes(props.type);
109
+ if (isNativeRNExtension &&
110
+ parseFloat(deploymentTarget) < parseFloat(EXPO_MODULES_MINIMUM)) {
111
+ props.logger.log(`React Native extension requires ExpoModulesCore (iOS ${EXPO_MODULES_MINIMUM}), ` +
112
+ `raising deployment target from ${deploymentTarget} to ${EXPO_MODULES_MINIMUM}`);
113
+ deploymentTarget = EXPO_MODULES_MINIMUM;
114
+ }
115
+ // Inherit accent color
116
+ const colors = props.colors || {};
117
+ const mainAppAccentColor = config.ios?.accentColor;
118
+ if (!colors.$accent && mainAppAccentColor) {
119
+ colors.$accent = mainAppAccentColor;
120
+ props.logger.log(`Inherited accent color: ${mainAppAccentColor}`);
121
+ }
122
+ const targetProductName = utils_1.Paths.sanitizeTargetName(targetName);
123
+ // Pass resolved values to withXcodeChanges
124
+ config = (0, withXcodeChanges_1.withXcodeChanges)(config, {
125
+ ...props,
126
+ deploymentTarget,
127
+ colors: Object.keys(colors).length > 0 ? colors : undefined,
128
+ logger: props.logger,
129
+ });
130
+ // Add Podfile target only for code-based targets (skip asset-only like stickers)
131
+ // Extensions with React Native need full RN setup, others need standalone config
132
+ // Safari with entry uses web rendering, so it's standalone (no RN deps)
133
+ const { TYPE_CHARACTERISTICS } = require('../target');
134
+ const typeConfig = TYPE_CHARACTERISTICS[props.type];
135
+ const isWebBasedEntry = !!props.entry && REACT_NATIVE_WEB_TYPES.includes(props.type);
136
+ if (typeConfig.requiresCode) {
137
+ config = (0, withPodfile_1.withTargetPodfile)(config, {
138
+ targetName: targetProductName, // Use sanitized name to match Xcode target
139
+ deploymentTarget: deploymentTarget, // Guaranteed to be set by resolution logic above
140
+ extensionType: props.type,
141
+ excludedPackages: props.excludedPackages,
142
+ // Standalone if no entry, or if it's a web-based entry (safari with RN Web)
143
+ standalone: !props.entry || isWebBasedEntry,
144
+ logger: props.logger,
145
+ });
146
+ }
147
+ else {
148
+ props.logger.log(`Skipping Podfile for asset-only target: ${targetProductName}`);
149
+ }
150
+ config = (0, withEntitlements_1.withTargetEntitlements)(config, {
151
+ targetName,
152
+ targetDirectory: props.directory,
153
+ type: props.type,
154
+ entitlements: props.entitlements,
155
+ logger: props.logger,
156
+ buildSubdirectory: props.buildSubdirectory,
157
+ });
158
+ // Note: Color generation is handled in withXcodeChanges where colors are created
159
+ // in targets/[name]/ios/build/Assets.xcassets/ (not in ios/[TargetName]/)
160
+ // Note: Assets.xcassets is added in withXcodeChanges where we have direct access to target.uuid
161
+ // Note: Sticker packs are also created in withXcodeChanges for proper execution order
162
+ return config;
163
+ };
164
+ exports.withIOSTarget = withIOSTarget;
165
+ //# sourceMappingURL=withIOSTarget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withIOSTarget.js","sourceRoot":"","sources":["../../../src/ios/config-plugins/withIOSTarget.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uCAAyB;AACzB,2CAA6B;AAE7B,yDAA4D;AAC5D,+CAAkD;AAClD,yDAAsD;AACtD,yCAIsB;AAEtB,oCAAiC;AAmB1B,MAAM,aAAa,GAAiC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;IAC3E,MAAM,UAAU,GAAG,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,CAAC;IACnD,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,2BAA2B,UAAU,KAAK,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC;IAE1E,sCAAsC;IACtC,8DAA8D;IAC9D,MAAM,yBAAyB,GAAoB;QACjD,OAAO;QACP,QAAQ;QACR,MAAM;QACN,UAAU;KACX,CAAC;IAEF,wDAAwD;IACxD,MAAM,sBAAsB,GAAoB,CAAC,QAAQ,CAAC,CAAC;IAE3D,qCAAqC;IACrC,MAAM,6BAA6B,GAAoB;QACrD,GAAG,yBAAyB;QAC5B,GAAG,sBAAsB;KAC1B,CAAC;IAEF,uBAAuB;IACvB,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;QAChB,IAAI,CAAC,6BAA6B,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,C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C;YAC1E,gBAAgB,EAAE,gBAAiB,EAAE,iDAAiD;YACtF,aAAa,EAAE,KAAK,CAAC,IAAI;YACzB,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;YACxC,4EAA4E;YAC5E,UAAU,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,eAAe;YAC3C,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;QACpB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;KAC3C,CAAC,CAAC;IAEH,iFAAiF;IACjF,0EAA0E;IAC1E,gGAAgG;IAChG,sFAAsF;IAEtF,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAxKW,QAAA,aAAa,iBAwKxB"}
@@ -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":["../../../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":["../../../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":["../../../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"}