@use-voltra/ios-client 1.4.0 → 2.0.0-rc.1
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/README.md +113 -0
- package/Voltra.podspec +28 -0
- package/build/commonjs/VoltraModule.js +13 -0
- package/build/commonjs/VoltraModule.js.map +1 -0
- package/build/commonjs/components/VoltraLiveActivityPreview.js +30 -0
- package/build/commonjs/components/VoltraLiveActivityPreview.js.map +1 -0
- package/build/commonjs/components/VoltraView.js +50 -0
- package/build/commonjs/components/VoltraView.js.map +1 -0
- package/build/commonjs/components/VoltraWidgetPreview.js +58 -0
- package/build/commonjs/components/VoltraWidgetPreview.js.map +1 -0
- package/build/commonjs/events.js +32 -0
- package/build/commonjs/events.js.map +1 -0
- package/build/commonjs/helpers.js +26 -0
- package/build/commonjs/helpers.js.map +1 -0
- package/build/commonjs/index.js +226 -0
- package/build/commonjs/index.js.map +1 -0
- package/build/commonjs/live-activity/api.js +168 -0
- package/build/commonjs/live-activity/api.js.map +1 -0
- package/build/commonjs/logger.js +39 -0
- package/build/commonjs/logger.js.map +1 -0
- package/build/commonjs/native/NativeVoltra.js +15 -0
- package/build/commonjs/native/NativeVoltra.js.map +1 -0
- package/build/commonjs/native/VoltraRNNativeComponent.ts +9 -0
- package/build/commonjs/package.json +1 -0
- package/build/commonjs/preload.js +54 -0
- package/build/commonjs/preload.js.map +1 -0
- package/build/commonjs/types.js +2 -0
- package/build/commonjs/types.js.map +1 -0
- package/build/commonjs/utils/assertRunningOnApple.js +16 -0
- package/build/commonjs/utils/assertRunningOnApple.js.map +1 -0
- package/build/commonjs/utils/helpers.js +19 -0
- package/build/commonjs/utils/helpers.js.map +1 -0
- package/build/commonjs/utils/index.js +28 -0
- package/build/commonjs/utils/index.js.map +1 -0
- package/build/commonjs/utils/useUpdateOnHMR.js +25 -0
- package/build/commonjs/utils/useUpdateOnHMR.js.map +1 -0
- package/build/commonjs/widgets/server-credentials.js +18 -0
- package/build/commonjs/widgets/server-credentials.js.map +1 -0
- package/build/commonjs/widgets/widget-api.js +55 -0
- package/build/commonjs/widgets/widget-api.js.map +1 -0
- package/build/module/VoltraModule.js +4 -0
- package/build/module/VoltraModule.js.map +1 -0
- package/build/module/components/VoltraLiveActivityPreview.js +25 -0
- package/build/module/components/VoltraLiveActivityPreview.js.map +1 -0
- package/build/module/components/VoltraView.js +44 -0
- package/build/module/components/VoltraView.js.map +1 -0
- package/build/module/components/VoltraWidgetPreview.js +53 -0
- package/build/module/components/VoltraWidgetPreview.js.map +1 -0
- package/build/module/events.js +28 -0
- package/build/module/events.js.map +1 -0
- package/build/module/helpers.js +21 -0
- package/build/module/helpers.js.map +1 -0
- package/build/module/index.js +17 -0
- package/build/module/index.js.map +1 -0
- package/build/module/live-activity/api.js +158 -0
- package/build/module/live-activity/api.js.map +1 -0
- package/build/module/logger.js +35 -0
- package/build/module/logger.js.map +1 -0
- package/build/module/native/NativeVoltra.js +11 -0
- package/build/module/native/NativeVoltra.js.map +1 -0
- package/build/module/native/VoltraRNNativeComponent.ts +9 -0
- package/build/module/package.json +1 -0
- package/build/module/preload.js +48 -0
- package/build/module/preload.js.map +1 -0
- package/build/module/types.js +2 -0
- package/build/module/types.js.map +1 -0
- package/build/module/utils/assertRunningOnApple.js +11 -0
- package/build/module/utils/assertRunningOnApple.js.map +1 -0
- package/build/module/utils/helpers.js +4 -0
- package/build/module/utils/helpers.js.map +1 -0
- package/build/module/utils/index.js +5 -0
- package/build/module/utils/index.js.map +1 -0
- package/build/module/utils/useUpdateOnHMR.js +20 -0
- package/build/module/utils/useUpdateOnHMR.js.map +1 -0
- package/build/module/widgets/server-credentials.js +13 -0
- package/build/module/widgets/server-credentials.js.map +1 -0
- package/build/module/widgets/widget-api.js +45 -0
- package/build/module/widgets/widget-api.js.map +1 -0
- package/build/typescript/commonjs/VoltraModule.d.ts +3 -0
- package/build/typescript/commonjs/VoltraModule.d.ts.map +1 -0
- package/build/typescript/commonjs/components/VoltraLiveActivityPreview.d.ts.map +1 -0
- package/build/typescript/commonjs/components/VoltraView.d.ts.map +1 -0
- package/build/typescript/commonjs/components/VoltraWidgetPreview.d.ts.map +1 -0
- package/build/typescript/commonjs/events.d.ts.map +1 -0
- package/build/typescript/commonjs/helpers.d.ts.map +1 -0
- package/build/{types → typescript/commonjs}/index.d.ts +5 -0
- package/build/typescript/commonjs/index.d.ts.map +1 -0
- package/build/typescript/commonjs/live-activity/api.d.ts.map +1 -0
- package/build/typescript/commonjs/logger.d.ts.map +1 -0
- package/build/typescript/commonjs/native/NativeVoltra.d.ts +100 -0
- package/build/typescript/commonjs/native/NativeVoltra.d.ts.map +1 -0
- package/build/typescript/commonjs/native/VoltraRNNativeComponent.d.ts +8 -0
- package/build/typescript/commonjs/native/VoltraRNNativeComponent.d.ts.map +1 -0
- package/build/typescript/commonjs/package.json +1 -0
- package/build/typescript/commonjs/preload.d.ts.map +1 -0
- package/build/typescript/commonjs/types.d.ts.map +1 -0
- package/build/typescript/commonjs/utils/assertRunningOnApple.d.ts.map +1 -0
- package/build/typescript/commonjs/utils/helpers.d.ts.map +1 -0
- package/build/typescript/commonjs/utils/index.d.ts.map +1 -0
- package/build/typescript/commonjs/utils/useUpdateOnHMR.d.ts.map +1 -0
- package/build/typescript/commonjs/widgets/server-credentials.d.ts.map +1 -0
- package/build/typescript/commonjs/widgets/widget-api.d.ts.map +1 -0
- package/build/typescript/module/VoltraModule.d.ts +3 -0
- package/build/typescript/module/VoltraModule.d.ts.map +1 -0
- package/build/typescript/module/components/VoltraLiveActivityPreview.d.ts +7 -0
- package/build/typescript/module/components/VoltraLiveActivityPreview.d.ts.map +1 -0
- package/build/typescript/module/components/VoltraView.d.ts +12 -0
- package/build/typescript/module/components/VoltraView.d.ts.map +1 -0
- package/build/typescript/module/components/VoltraWidgetPreview.d.ts +9 -0
- package/build/typescript/module/components/VoltraWidgetPreview.d.ts.map +1 -0
- package/build/typescript/module/events.d.ts +33 -0
- package/build/typescript/module/events.d.ts.map +1 -0
- package/build/typescript/module/helpers.d.ts +3 -0
- package/build/typescript/module/helpers.d.ts.map +1 -0
- package/build/typescript/module/index.d.ts +18 -0
- package/build/typescript/module/index.d.ts.map +1 -0
- package/build/typescript/module/live-activity/api.d.ts +35 -0
- package/build/typescript/module/live-activity/api.d.ts.map +1 -0
- package/build/typescript/module/logger.d.ts +16 -0
- package/build/typescript/module/logger.d.ts.map +1 -0
- package/build/typescript/module/native/NativeVoltra.d.ts +100 -0
- package/build/typescript/module/native/NativeVoltra.d.ts.map +1 -0
- package/build/typescript/module/native/VoltraRNNativeComponent.d.ts +8 -0
- package/build/typescript/module/native/VoltraRNNativeComponent.d.ts.map +1 -0
- package/build/typescript/module/package.json +1 -0
- package/build/typescript/module/preload.d.ts +6 -0
- package/build/typescript/module/preload.d.ts.map +1 -0
- package/build/typescript/module/types.d.ts +2 -0
- package/build/typescript/module/types.d.ts.map +1 -0
- package/build/typescript/module/utils/assertRunningOnApple.d.ts +2 -0
- package/build/typescript/module/utils/assertRunningOnApple.d.ts.map +1 -0
- package/build/{esm/utils/helpers.js → typescript/module/utils/helpers.d.ts} +1 -1
- package/build/typescript/module/utils/helpers.d.ts.map +1 -0
- package/build/{esm/utils/index.js → typescript/module/utils/index.d.ts} +1 -1
- package/build/typescript/module/utils/index.d.ts.map +1 -0
- package/build/typescript/module/utils/useUpdateOnHMR.d.ts +5 -0
- package/build/typescript/module/utils/useUpdateOnHMR.d.ts.map +1 -0
- package/build/typescript/module/widgets/server-credentials.d.ts +5 -0
- package/build/typescript/module/widgets/server-credentials.d.ts.map +1 -0
- package/build/typescript/module/widgets/widget-api.d.ts +11 -0
- package/build/typescript/module/widgets/widget-api.d.ts.map +1 -0
- package/expo-plugin/app.plugin.js +3 -0
- package/expo-plugin/build/cjs/constants.js +23 -0
- package/expo-plugin/build/cjs/constants.js.map +1 -0
- package/expo-plugin/build/cjs/index.js +51 -0
- package/expo-plugin/build/cjs/index.js.map +1 -0
- package/expo-plugin/build/cjs/ios/eas.js +28 -0
- package/expo-plugin/build/cjs/ios/eas.js.map +1 -0
- package/expo-plugin/build/cjs/ios/entitlements.js +46 -0
- package/expo-plugin/build/cjs/ios/entitlements.js.map +1 -0
- package/expo-plugin/build/cjs/ios/index.js +39 -0
- package/expo-plugin/build/cjs/ios/index.js.map +1 -0
- package/expo-plugin/build/cjs/ios/infoPlist.js +51 -0
- package/expo-plugin/build/cjs/ios/infoPlist.js.map +1 -0
- package/expo-plugin/build/cjs/ios/pushNotifications.js +22 -0
- package/expo-plugin/build/cjs/ios/pushNotifications.js.map +1 -0
- package/expo-plugin/build/cjs/ios-widget/eas.js +66 -0
- package/expo-plugin/build/cjs/ios-widget/eas.js.map +1 -0
- package/expo-plugin/build/cjs/ios-widget/files/assets.js +199 -0
- package/expo-plugin/build/cjs/ios-widget/files/assets.js.map +1 -0
- package/expo-plugin/build/cjs/ios-widget/files/entitlements.js +77 -0
- package/expo-plugin/build/cjs/ios-widget/files/entitlements.js.map +1 -0
- package/expo-plugin/build/cjs/ios-widget/files/index.js +92 -0
- package/expo-plugin/build/cjs/ios-widget/files/index.js.map +1 -0
- package/expo-plugin/build/cjs/ios-widget/files/infoPlist.js +91 -0
- package/expo-plugin/build/cjs/ios-widget/files/infoPlist.js.map +1 -0
- package/expo-plugin/build/cjs/ios-widget/files/swift.js +443 -0
- package/expo-plugin/build/cjs/ios-widget/files/swift.js.map +1 -0
- package/expo-plugin/build/cjs/ios-widget/fonts.js +151 -0
- package/expo-plugin/build/cjs/ios-widget/fonts.js.map +1 -0
- package/expo-plugin/build/cjs/ios-widget/index.js +46 -0
- package/expo-plugin/build/cjs/ios-widget/index.js.map +1 -0
- package/expo-plugin/build/cjs/ios-widget/podfile.js +41 -0
- package/expo-plugin/build/cjs/ios-widget/podfile.js.map +1 -0
- package/expo-plugin/build/cjs/ios-widget/widgetPlist.js +99 -0
- package/expo-plugin/build/cjs/ios-widget/widgetPlist.js.map +1 -0
- package/expo-plugin/build/cjs/ios-widget/xcode/buildPhases.js +247 -0
- package/expo-plugin/build/cjs/ios-widget/xcode/buildPhases.js.map +1 -0
- package/expo-plugin/build/cjs/ios-widget/xcode/configurationList.js +91 -0
- package/expo-plugin/build/cjs/ios-widget/xcode/configurationList.js.map +1 -0
- package/expo-plugin/build/cjs/ios-widget/xcode/groups.js +79 -0
- package/expo-plugin/build/cjs/ios-widget/xcode/groups.js.map +1 -0
- package/expo-plugin/build/cjs/ios-widget/xcode/index.js +155 -0
- package/expo-plugin/build/cjs/ios-widget/xcode/index.js.map +1 -0
- package/expo-plugin/build/cjs/ios-widget/xcode/mainAppSettings.js +71 -0
- package/expo-plugin/build/cjs/ios-widget/xcode/mainAppSettings.js.map +1 -0
- package/expo-plugin/build/cjs/ios-widget/xcode/productFile.js +74 -0
- package/expo-plugin/build/cjs/ios-widget/xcode/productFile.js.map +1 -0
- package/expo-plugin/build/cjs/ios-widget/xcode/target.js +113 -0
- package/expo-plugin/build/cjs/ios-widget/xcode/target.js.map +1 -0
- package/expo-plugin/build/cjs/utils/fileDiscovery.js +120 -0
- package/expo-plugin/build/cjs/utils/fileDiscovery.js.map +1 -0
- package/expo-plugin/build/cjs/utils/urlScheme.js +40 -0
- package/expo-plugin/build/cjs/utils/urlScheme.js.map +1 -0
- package/expo-plugin/build/cjs/validation.js +55 -0
- package/expo-plugin/build/cjs/validation.js.map +1 -0
- package/expo-plugin/build/esm/constants.js +20 -0
- package/expo-plugin/build/esm/constants.js.map +1 -0
- package/expo-plugin/build/esm/index.js +49 -0
- package/expo-plugin/build/esm/index.js.map +1 -0
- package/expo-plugin/build/esm/ios/eas.js +24 -0
- package/expo-plugin/build/esm/ios/eas.js.map +1 -0
- package/expo-plugin/build/esm/ios/entitlements.js +42 -0
- package/expo-plugin/build/esm/ios/entitlements.js.map +1 -0
- package/expo-plugin/build/esm/ios/index.js +34 -0
- package/expo-plugin/build/esm/ios/index.js.map +1 -0
- package/expo-plugin/build/esm/ios/infoPlist.js +47 -0
- package/expo-plugin/build/esm/ios/infoPlist.js.map +1 -0
- package/expo-plugin/build/esm/ios/pushNotifications.js +18 -0
- package/expo-plugin/build/esm/ios/pushNotifications.js.map +1 -0
- package/expo-plugin/build/esm/ios-widget/eas.js +62 -0
- package/expo-plugin/build/esm/ios-widget/eas.js.map +1 -0
- package/expo-plugin/build/esm/ios-widget/files/assets.js +163 -0
- package/expo-plugin/build/esm/ios-widget/files/assets.js.map +1 -0
- package/expo-plugin/build/esm/ios-widget/files/entitlements.js +37 -0
- package/expo-plugin/build/esm/ios-widget/files/entitlements.js.map +1 -0
- package/expo-plugin/build/esm/ios-widget/files/index.js +55 -0
- package/expo-plugin/build/esm/ios-widget/files/index.js.map +1 -0
- package/expo-plugin/build/esm/ios-widget/files/infoPlist.js +55 -0
- package/expo-plugin/build/esm/ios-widget/files/infoPlist.js.map +1 -0
- package/expo-plugin/build/esm/ios-widget/files/swift.js +403 -0
- package/expo-plugin/build/esm/ios-widget/files/swift.js.map +1 -0
- package/expo-plugin/build/esm/ios-widget/fonts.js +111 -0
- package/expo-plugin/build/esm/ios-widget/fonts.js.map +1 -0
- package/expo-plugin/build/esm/ios-widget/index.js +42 -0
- package/expo-plugin/build/esm/ios-widget/index.js.map +1 -0
- package/expo-plugin/build/esm/ios-widget/podfile.js +37 -0
- package/expo-plugin/build/esm/ios-widget/podfile.js.map +1 -0
- package/expo-plugin/build/esm/ios-widget/widgetPlist.js +92 -0
- package/expo-plugin/build/esm/ios-widget/widgetPlist.js.map +1 -0
- package/expo-plugin/build/esm/ios-widget/xcode/buildPhases.js +210 -0
- package/expo-plugin/build/esm/ios-widget/xcode/buildPhases.js.map +1 -0
- package/expo-plugin/build/esm/ios-widget/xcode/configurationList.js +87 -0
- package/expo-plugin/build/esm/ios-widget/xcode/configurationList.js.map +1 -0
- package/expo-plugin/build/esm/ios-widget/xcode/groups.js +75 -0
- package/expo-plugin/build/esm/ios-widget/xcode/groups.js.map +1 -0
- package/expo-plugin/build/esm/ios-widget/xcode/index.js +118 -0
- package/expo-plugin/build/esm/ios-widget/xcode/index.js.map +1 -0
- package/expo-plugin/build/esm/ios-widget/xcode/mainAppSettings.js +68 -0
- package/expo-plugin/build/esm/ios-widget/xcode/mainAppSettings.js.map +1 -0
- package/expo-plugin/build/esm/ios-widget/xcode/productFile.js +70 -0
- package/expo-plugin/build/esm/ios-widget/xcode/productFile.js.map +1 -0
- package/expo-plugin/build/esm/ios-widget/xcode/target.js +108 -0
- package/expo-plugin/build/esm/ios-widget/xcode/target.js.map +1 -0
- package/expo-plugin/build/esm/utils/fileDiscovery.js +83 -0
- package/expo-plugin/build/esm/utils/fileDiscovery.js.map +1 -0
- package/expo-plugin/build/esm/utils/urlScheme.js +37 -0
- package/expo-plugin/build/esm/utils/urlScheme.js.map +1 -0
- package/expo-plugin/build/esm/validation.js +51 -0
- package/expo-plugin/build/esm/validation.js.map +1 -0
- package/expo-plugin/build/types/constants.d.ts +13 -0
- package/expo-plugin/build/types/constants.d.ts.map +1 -0
- package/expo-plugin/build/types/index.d.ts +10 -0
- package/expo-plugin/build/types/index.d.ts.map +1 -0
- package/expo-plugin/build/types/ios/eas.d.ts +12 -0
- package/expo-plugin/build/types/ios/eas.d.ts.map +1 -0
- package/expo-plugin/build/types/ios/entitlements.d.ts +14 -0
- package/expo-plugin/build/types/ios/entitlements.d.ts.map +1 -0
- package/expo-plugin/build/types/ios/index.d.ts +19 -0
- package/expo-plugin/build/types/ios/index.d.ts.map +1 -0
- package/expo-plugin/build/types/ios/infoPlist.d.ts +21 -0
- package/expo-plugin/build/types/ios/infoPlist.d.ts.map +1 -0
- package/expo-plugin/build/types/ios/pushNotifications.d.ts +10 -0
- package/expo-plugin/build/types/ios/pushNotifications.d.ts.map +1 -0
- package/expo-plugin/build/types/ios-widget/eas.d.ts +15 -0
- package/expo-plugin/build/types/ios-widget/eas.d.ts.map +1 -0
- package/expo-plugin/build/types/ios-widget/files/assets.d.ts +13 -0
- package/expo-plugin/build/types/ios-widget/files/assets.d.ts.map +1 -0
- package/expo-plugin/build/types/ios-widget/files/entitlements.d.ts +17 -0
- package/expo-plugin/build/types/ios-widget/files/entitlements.d.ts.map +1 -0
- package/expo-plugin/build/types/ios-widget/files/index.d.ts +24 -0
- package/expo-plugin/build/types/ios-widget/files/index.d.ts.map +1 -0
- package/expo-plugin/build/types/ios-widget/files/infoPlist.d.ts +10 -0
- package/expo-plugin/build/types/ios-widget/files/infoPlist.d.ts.map +1 -0
- package/expo-plugin/build/types/ios-widget/files/swift.d.ts +24 -0
- package/expo-plugin/build/types/ios-widget/files/swift.d.ts.map +1 -0
- package/expo-plugin/build/types/ios-widget/fonts.d.ts +22 -0
- package/expo-plugin/build/types/ios-widget/fonts.d.ts.map +1 -0
- package/expo-plugin/build/types/ios-widget/index.d.ts +31 -0
- package/expo-plugin/build/types/ios-widget/index.d.ts.map +1 -0
- package/expo-plugin/build/types/ios-widget/podfile.d.ts +9 -0
- package/expo-plugin/build/types/ios-widget/podfile.d.ts.map +1 -0
- package/expo-plugin/build/types/ios-widget/widgetPlist.d.ts +20 -0
- package/expo-plugin/build/types/ios-widget/widgetPlist.d.ts.map +1 -0
- package/expo-plugin/build/types/ios-widget/xcode/buildPhases.d.ts +25 -0
- package/expo-plugin/build/types/ios-widget/xcode/buildPhases.d.ts.map +1 -0
- package/expo-plugin/build/types/ios-widget/xcode/configurationList.d.ts +20 -0
- package/expo-plugin/build/types/ios-widget/xcode/configurationList.d.ts.map +1 -0
- package/expo-plugin/build/types/ios-widget/xcode/groups.d.ts +15 -0
- package/expo-plugin/build/types/ios-widget/xcode/groups.d.ts.map +1 -0
- package/expo-plugin/build/types/ios-widget/xcode/index.d.ts +20 -0
- package/expo-plugin/build/types/ios-widget/xcode/index.d.ts.map +1 -0
- package/expo-plugin/build/types/ios-widget/xcode/mainAppSettings.d.ts +15 -0
- package/expo-plugin/build/types/ios-widget/xcode/mainAppSettings.d.ts.map +1 -0
- package/expo-plugin/build/types/ios-widget/xcode/productFile.d.ts +14 -0
- package/expo-plugin/build/types/ios-widget/xcode/productFile.d.ts.map +1 -0
- package/expo-plugin/build/types/ios-widget/xcode/target.d.ts +42 -0
- package/expo-plugin/build/types/ios-widget/xcode/target.d.ts.map +1 -0
- package/expo-plugin/build/types/types.d.ts +74 -0
- package/expo-plugin/build/types/types.d.ts.map +1 -0
- package/expo-plugin/build/types/utils/fileDiscovery.d.ts +15 -0
- package/expo-plugin/build/types/utils/fileDiscovery.d.ts.map +1 -0
- package/expo-plugin/build/types/utils/urlScheme.d.ts +10 -0
- package/expo-plugin/build/types/utils/urlScheme.d.ts.map +1 -0
- package/expo-plugin/build/types/validation.d.ts +4 -0
- package/expo-plugin/build/types/validation.d.ts.map +1 -0
- package/expo-plugin/jest.config.js +18 -0
- package/expo-plugin/src/constants.ts +25 -0
- package/expo-plugin/src/index.ts +72 -0
- package/expo-plugin/src/ios/eas.ts +33 -0
- package/expo-plugin/src/ios/entitlements.ts +59 -0
- package/expo-plugin/src/ios/index.ts +47 -0
- package/expo-plugin/src/ios/infoPlist.ts +63 -0
- package/expo-plugin/src/ios/pushNotifications.ts +22 -0
- package/expo-plugin/src/ios-widget/eas.ts +79 -0
- package/expo-plugin/src/ios-widget/files/assets.ts +201 -0
- package/expo-plugin/src/ios-widget/files/entitlements.ts +48 -0
- package/expo-plugin/src/ios-widget/files/index.ts +74 -0
- package/expo-plugin/src/ios-widget/files/infoPlist.ts +57 -0
- package/expo-plugin/src/ios-widget/files/swift.node.test.ts +22 -0
- package/expo-plugin/src/ios-widget/files/swift.ts +476 -0
- package/expo-plugin/src/ios-widget/fonts.ts +132 -0
- package/expo-plugin/src/ios-widget/index.ts +73 -0
- package/expo-plugin/src/ios-widget/podfile.ts +44 -0
- package/expo-plugin/src/ios-widget/widgetPlist.ts +115 -0
- package/expo-plugin/src/ios-widget/xcode/buildPhases.ts +301 -0
- package/expo-plugin/src/ios-widget/xcode/configurationList.ts +127 -0
- package/expo-plugin/src/ios-widget/xcode/groups.ts +101 -0
- package/expo-plugin/src/ios-widget/xcode/index.ts +149 -0
- package/expo-plugin/src/ios-widget/xcode/mainAppSettings.ts +95 -0
- package/expo-plugin/src/ios-widget/xcode/productFile.ts +91 -0
- package/expo-plugin/src/ios-widget/xcode/target.ts +148 -0
- package/expo-plugin/src/types.ts +89 -0
- package/expo-plugin/src/utils/fileDiscovery.ts +96 -0
- package/expo-plugin/src/utils/urlScheme.ts +45 -0
- package/expo-plugin/src/validation.node.test.ts +19 -0
- package/expo-plugin/src/validation.ts +63 -0
- package/expo-plugin/tsconfig.base.json +17 -0
- package/expo-plugin/tsconfig.cjs.json +9 -0
- package/expo-plugin/tsconfig.esm.json +9 -0
- package/expo-plugin/tsconfig.jest.json +8 -0
- package/expo-plugin/tsconfig.typecheck.json +12 -0
- package/expo-plugin/tsconfig.types.json +10 -0
- package/ios/Package.swift +68 -0
- package/ios/Tests/JSGradientParserTests.swift +201 -0
- package/ios/Tests/VoltraSharedTests/SmokeTests.swift +8 -0
- package/ios/VoltraWidget.podspec +30 -0
- package/ios/app/NativeVoltra.h +5 -0
- package/ios/app/NativeVoltra.mm +211 -0
- package/ios/app/VoltraActivity.swift +5 -0
- package/ios/app/VoltraImagePreload.swift +154 -0
- package/ios/app/VoltraLiveActivityManager.swift +228 -0
- package/ios/app/VoltraLiveActivityService.swift +306 -0
- package/ios/app/VoltraModule.swift +215 -0
- package/ios/app/VoltraModuleImpl.swift +331 -0
- package/ios/app/VoltraOptions.swift +27 -0
- package/ios/app/VoltraViewComponentView.h +10 -0
- package/ios/app/VoltraViewComponentView.mm +67 -0
- package/ios/app/VoltraViewRoot.swift +63 -0
- package/ios/app/VoltraWidgetService.swift +154 -0
- package/ios/shared/BrotliCompression.swift +81 -0
- package/ios/shared/ComponentTypeID.swift +117 -0
- package/ios/shared/Data+hexString.swift +8 -0
- package/ios/shared/Date+toTimerInterval.swift +25 -0
- package/ios/shared/JSONValue.swift +128 -0
- package/ios/shared/ShortNames.swift +180 -0
- package/ios/shared/VoltraAttributes.swift +58 -0
- package/ios/shared/VoltraConfig.swift +18 -0
- package/ios/shared/VoltraConstants.swift +45 -0
- package/ios/shared/VoltraElement.swift +153 -0
- package/ios/shared/VoltraEvent.swift +72 -0
- package/ios/shared/VoltraEventBus.swift +80 -0
- package/ios/shared/VoltraImageStore.swift +119 -0
- package/ios/shared/VoltraInitialStateLocale.swift +54 -0
- package/ios/shared/VoltraInteractionIntent.swift +39 -0
- package/ios/shared/VoltraKeychainHelper.swift +178 -0
- package/ios/shared/VoltraLiveActivityPayload.swift +113 -0
- package/ios/shared/VoltraLogger.swift +30 -0
- package/ios/shared/VoltraNode.swift +194 -0
- package/ios/shared/VoltraPayloadMigrator.swift +63 -0
- package/ios/shared/VoltraPersistentEventQueue.swift +67 -0
- package/ios/shared/VoltraRefreshIntent.swift +29 -0
- package/ios/shared/VoltraRegion.swift +37 -0
- package/ios/shared/VoltraWidgetDefaults.swift +114 -0
- package/ios/shared/VoltraWidgetServerFetcher.swift +166 -0
- package/ios/target/VoltraHomeWidget.swift +508 -0
- package/ios/target/VoltraWidget.swift +158 -0
- package/ios/ui/Extensions/View.modifiers.swift +28 -0
- package/ios/ui/Extensions/VoltraNode+Parameters.swift +18 -0
- package/ios/ui/Generated/Parameters/.generated +8 -0
- package/ios/ui/Generated/Parameters/ButtonParameters.swift +15 -0
- package/ios/ui/Generated/Parameters/ChartParameters.swift +33 -0
- package/ios/ui/Generated/Parameters/CircularProgressViewParameters.swift +59 -0
- package/ios/ui/Generated/Parameters/ComponentParameters.swift +12 -0
- package/ios/ui/Generated/Parameters/DividerParameters.swift +12 -0
- package/ios/ui/Generated/Parameters/GaugeParameters.swift +54 -0
- package/ios/ui/Generated/Parameters/GlassContainerParameters.swift +15 -0
- package/ios/ui/Generated/Parameters/GroupBoxParameters.swift +12 -0
- package/ios/ui/Generated/Parameters/HStackParameters.swift +34 -0
- package/ios/ui/Generated/Parameters/ImageParameters.swift +29 -0
- package/ios/ui/Generated/Parameters/LabelParameters.swift +18 -0
- package/ios/ui/Generated/Parameters/LinearGradientParameters.swift +27 -0
- package/ios/ui/Generated/Parameters/LinearProgressViewParameters.swift +64 -0
- package/ios/ui/Generated/Parameters/LinkParameters.swift +15 -0
- package/ios/ui/Generated/Parameters/MaskParameters.swift +12 -0
- package/ios/ui/Generated/Parameters/SpacerParameters.swift +15 -0
- package/ios/ui/Generated/Parameters/SymbolParameters.swift +59 -0
- package/ios/ui/Generated/Parameters/TextParameters.swift +18 -0
- package/ios/ui/Generated/Parameters/TimerParameters.swift +54 -0
- package/ios/ui/Generated/Parameters/ToggleParameters.swift +24 -0
- package/ios/ui/Generated/Parameters/VStackParameters.swift +34 -0
- package/ios/ui/Generated/Parameters/ViewParameters.swift +12 -0
- package/ios/ui/Generated/Parameters/ZStackParameters.swift +15 -0
- package/ios/ui/Helpers/VoltraDeepLinkResolver.swift +43 -0
- package/ios/ui/Helpers/VoltraProgressDriver.swift +52 -0
- package/ios/ui/Layout/FlexContainerHelper.swift +114 -0
- package/ios/ui/Layout/VoltraFlexStackLayout.swift +417 -0
- package/ios/ui/Protocols/VoltraView.swift +29 -0
- package/ios/ui/Style/BackgroundValue.swift +27 -0
- package/ios/ui/Style/CompositeStyle.swift +81 -0
- package/ios/ui/Style/DecorationStyle.swift +207 -0
- package/ios/ui/Style/FlexEnvironment.swift +35 -0
- package/ios/ui/Style/FontVariant.swift +4 -0
- package/ios/ui/Style/GlassEffect.swift +6 -0
- package/ios/ui/Style/JSColorParser.swift +517 -0
- package/ios/ui/Style/JSGradientParser.swift +674 -0
- package/ios/ui/Style/JSStyleParser.swift +223 -0
- package/ios/ui/Style/LayoutStyle.swift +184 -0
- package/ios/ui/Style/Overflow.swift +4 -0
- package/ios/ui/Style/RenderingStyle.swift +33 -0
- package/ios/ui/Style/StyleConverter.swift +202 -0
- package/ios/ui/Style/TextDecoration.swift +6 -0
- package/ios/ui/Style/TextStyle.swift +50 -0
- package/ios/ui/Style/View+applyStyle.swift +38 -0
- package/ios/ui/Views/VoltraButton.swift +57 -0
- package/ios/ui/Views/VoltraChart.swift +840 -0
- package/ios/ui/Views/VoltraCircularProgressView.swift +103 -0
- package/ios/ui/Views/VoltraDivider.swift +16 -0
- package/ios/ui/Views/VoltraFlexView.swift +33 -0
- package/ios/ui/Views/VoltraGauge.swift +65 -0
- package/ios/ui/Views/VoltraGlassContainer.swift +29 -0
- package/ios/ui/Views/VoltraGroupBox.swift +26 -0
- package/ios/ui/Views/VoltraHStack.swift +70 -0
- package/ios/ui/Views/VoltraImage.swift +109 -0
- package/ios/ui/Views/VoltraLabel.swift +24 -0
- package/ios/ui/Views/VoltraLinearGradient.swift +115 -0
- package/ios/ui/Views/VoltraLinearProgressView.swift +118 -0
- package/ios/ui/Views/VoltraLink.swift +25 -0
- package/ios/ui/Views/VoltraMask.swift +23 -0
- package/ios/ui/Views/VoltraSpacer.swift +16 -0
- package/ios/ui/Views/VoltraSymbol.swift +160 -0
- package/ios/ui/Views/VoltraText.swift +87 -0
- package/ios/ui/Views/VoltraTimer.swift +131 -0
- package/ios/ui/Views/VoltraToggle.swift +39 -0
- package/ios/ui/Views/VoltraVStack.swift +68 -0
- package/ios/ui/Views/VoltraZStack.swift +33 -0
- package/ios/ui/Voltra.swift +86 -0
- package/package.json +91 -18
- package/build/cjs/VoltraModule.js +0 -6
- package/build/cjs/VoltraModule.js.map +0 -1
- package/build/cjs/components/VoltraLiveActivityPreview.js +0 -20
- package/build/cjs/components/VoltraLiveActivityPreview.js.map +0 -1
- package/build/cjs/components/VoltraView.js +0 -37
- package/build/cjs/components/VoltraView.js.map +0 -1
- package/build/cjs/components/VoltraWidgetPreview.js +0 -26
- package/build/cjs/components/VoltraWidgetPreview.js.map +0 -1
- package/build/cjs/events.js +0 -19
- package/build/cjs/events.js.map +0 -1
- package/build/cjs/helpers.js +0 -30
- package/build/cjs/helpers.js.map +0 -1
- package/build/cjs/index.js +0 -49
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/live-activity/api.js +0 -158
- package/build/cjs/live-activity/api.js.map +0 -1
- package/build/cjs/logger.js +0 -36
- package/build/cjs/logger.js.map +0 -1
- package/build/cjs/preload.js +0 -54
- package/build/cjs/preload.js.map +0 -1
- package/build/cjs/utils/assertRunningOnApple.js +0 -13
- package/build/cjs/utils/assertRunningOnApple.js.map +0 -1
- package/build/cjs/utils/helpers.js +0 -7
- package/build/cjs/utils/helpers.js.map +0 -1
- package/build/cjs/utils/index.js +0 -19
- package/build/cjs/utils/index.js.map +0 -1
- package/build/cjs/utils/useUpdateOnHMR.js +0 -22
- package/build/cjs/utils/useUpdateOnHMR.js.map +0 -1
- package/build/cjs/widgets/server-credentials.js +0 -18
- package/build/cjs/widgets/server-credentials.js.map +0 -1
- package/build/cjs/widgets/widget-api.js +0 -59
- package/build/cjs/widgets/widget-api.js.map +0 -1
- package/build/esm/VoltraModule.js +0 -4
- package/build/esm/VoltraModule.js.map +0 -1
- package/build/esm/components/VoltraLiveActivityPreview.js +0 -17
- package/build/esm/components/VoltraLiveActivityPreview.js.map +0 -1
- package/build/esm/components/VoltraView.js +0 -34
- package/build/esm/components/VoltraView.js.map +0 -1
- package/build/esm/components/VoltraWidgetPreview.js +0 -23
- package/build/esm/components/VoltraWidgetPreview.js.map +0 -1
- package/build/esm/events.js +0 -13
- package/build/esm/events.js.map +0 -1
- package/build/esm/helpers.js +0 -23
- package/build/esm/helpers.js.map +0 -1
- package/build/esm/index.js +0 -10
- package/build/esm/index.js.map +0 -1
- package/build/esm/live-activity/api.js +0 -146
- package/build/esm/live-activity/api.js.map +0 -1
- package/build/esm/logger.js +0 -33
- package/build/esm/logger.js.map +0 -1
- package/build/esm/preload.js +0 -46
- package/build/esm/preload.js.map +0 -1
- package/build/esm/utils/assertRunningOnApple.js +0 -9
- package/build/esm/utils/assertRunningOnApple.js.map +0 -1
- package/build/esm/utils/helpers.js.map +0 -1
- package/build/esm/utils/index.js.map +0 -1
- package/build/esm/utils/useUpdateOnHMR.js +0 -18
- package/build/esm/utils/useUpdateOnHMR.js.map +0 -1
- package/build/esm/widgets/server-credentials.js +0 -11
- package/build/esm/widgets/server-credentials.js.map +0 -1
- package/build/esm/widgets/widget-api.js +0 -47
- package/build/esm/widgets/widget-api.js.map +0 -1
- package/build/types/VoltraModule.d.ts +0 -44
- package/build/types/VoltraModule.d.ts.map +0 -1
- package/build/types/components/VoltraLiveActivityPreview.d.ts.map +0 -1
- package/build/types/components/VoltraView.d.ts.map +0 -1
- package/build/types/components/VoltraWidgetPreview.d.ts.map +0 -1
- package/build/types/events.d.ts.map +0 -1
- package/build/types/helpers.d.ts.map +0 -1
- package/build/types/index.d.ts.map +0 -1
- package/build/types/live-activity/api.d.ts.map +0 -1
- package/build/types/logger.d.ts.map +0 -1
- package/build/types/preload.d.ts.map +0 -1
- package/build/types/types.d.ts.map +0 -1
- package/build/types/utils/assertRunningOnApple.d.ts.map +0 -1
- package/build/types/utils/helpers.d.ts.map +0 -1
- package/build/types/utils/index.d.ts.map +0 -1
- package/build/types/utils/useUpdateOnHMR.d.ts.map +0 -1
- package/build/types/widgets/server-credentials.d.ts.map +0 -1
- package/build/types/widgets/widget-api.d.ts.map +0 -1
- /package/build/{types → typescript/commonjs}/components/VoltraLiveActivityPreview.d.ts +0 -0
- /package/build/{types → typescript/commonjs}/components/VoltraView.d.ts +0 -0
- /package/build/{types → typescript/commonjs}/components/VoltraWidgetPreview.d.ts +0 -0
- /package/build/{types → typescript/commonjs}/events.d.ts +0 -0
- /package/build/{types → typescript/commonjs}/helpers.d.ts +0 -0
- /package/build/{types → typescript/commonjs}/live-activity/api.d.ts +0 -0
- /package/build/{types → typescript/commonjs}/logger.d.ts +0 -0
- /package/build/{types → typescript/commonjs}/preload.d.ts +0 -0
- /package/build/{types → typescript/commonjs}/types.d.ts +0 -0
- /package/build/{types → typescript/commonjs}/utils/assertRunningOnApple.d.ts +0 -0
- /package/build/{types → typescript/commonjs}/utils/helpers.d.ts +0 -0
- /package/build/{types → typescript/commonjs}/utils/index.d.ts +0 -0
- /package/build/{types → typescript/commonjs}/utils/useUpdateOnHMR.d.ts +0 -0
- /package/build/{types → typescript/commonjs}/widgets/server-credentials.d.ts +0 -0
- /package/build/{types → typescript/commonjs}/widgets/widget-api.d.ts +0 -0
- /package/{build → expo-plugin/build}/cjs/package.json +0 -0
- /package/{build → expo-plugin/build}/cjs/types.js +0 -0
- /package/{build → expo-plugin/build}/cjs/types.js.map +0 -0
- /package/{build → expo-plugin/build}/esm/package.json +0 -0
- /package/{build → expo-plugin/build}/esm/types.js +0 -0
- /package/{build → expo-plugin/build}/esm/types.js.map +0 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { withDangerousMod } from '@expo/config-plugins';
|
|
2
|
+
import plist from '@expo/plist';
|
|
3
|
+
import { existsSync, readFileSync, writeFileSync } from 'fs';
|
|
4
|
+
import { join as joinPath } from 'path';
|
|
5
|
+
import { logger } from '@use-voltra/expo-plugin';
|
|
6
|
+
/**
|
|
7
|
+
* Plugin step that configures the Info.plist files.
|
|
8
|
+
*
|
|
9
|
+
* This:
|
|
10
|
+
* - Updates the widget extension's Info.plist with URL schemes
|
|
11
|
+
* - Removes incompatible NSExtension keys for WidgetKit
|
|
12
|
+
* - Adds group identifier if configured
|
|
13
|
+
* - Adds server update URLs and intervals for server-driven widgets
|
|
14
|
+
* - Adds Keychain group for shared credential access
|
|
15
|
+
*/
|
|
16
|
+
export const configureWidgetExtensionPlist = (expoConfig, { targetName, groupIdentifier, widgets, keychainGroup }) => withDangerousMod(expoConfig, [
|
|
17
|
+
'ios',
|
|
18
|
+
async (config) => {
|
|
19
|
+
if (config.modRequest.introspect) {
|
|
20
|
+
return config;
|
|
21
|
+
}
|
|
22
|
+
const scheme = typeof expoConfig.scheme === 'string' ? expoConfig.scheme : expoConfig.ios?.bundleIdentifier;
|
|
23
|
+
if (scheme) {
|
|
24
|
+
const targetPath = joinPath(config.modRequest.platformProjectRoot, targetName);
|
|
25
|
+
const filePath = joinPath(targetPath, 'Info.plist');
|
|
26
|
+
if (!existsSync(filePath)) {
|
|
27
|
+
logger.warn(`Widget Info.plist not found at ${filePath}, skipping widget plist updates`);
|
|
28
|
+
return config;
|
|
29
|
+
}
|
|
30
|
+
const content = plist.parse(readFileSync(filePath, 'utf8'));
|
|
31
|
+
// WidgetKit extensions must NOT declare NSExtensionPrincipalClass/MainStoryboard.
|
|
32
|
+
// The @main WidgetBundle in Swift is the entry point.
|
|
33
|
+
const ext = content.NSExtension;
|
|
34
|
+
if (ext) {
|
|
35
|
+
delete ext.NSExtensionPrincipalClass;
|
|
36
|
+
delete ext.NSExtensionMainStoryboard;
|
|
37
|
+
}
|
|
38
|
+
// Keep URL schemes in the widget extension so Live Activity links can be resolved
|
|
39
|
+
// from relative to absolute URLs (see VoltraDeepLinkResolver.swift).
|
|
40
|
+
const existingTypes = content.CFBundleURLTypes || [];
|
|
41
|
+
const hasScheme = existingTypes.some((t) => Array.isArray(t?.CFBundleURLSchemes) && t.CFBundleURLSchemes.includes(scheme));
|
|
42
|
+
if (!hasScheme) {
|
|
43
|
+
content.CFBundleURLTypes = [
|
|
44
|
+
...existingTypes,
|
|
45
|
+
{
|
|
46
|
+
CFBundleURLSchemes: [scheme],
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
content.CFBundleURLTypes = existingTypes;
|
|
52
|
+
}
|
|
53
|
+
// Only set group identifier if provided
|
|
54
|
+
if (groupIdentifier) {
|
|
55
|
+
;
|
|
56
|
+
content['Voltra_AppGroupIdentifier'] = groupIdentifier;
|
|
57
|
+
}
|
|
58
|
+
// Configure server update URLs and intervals for widgets with serverUpdate
|
|
59
|
+
if (widgets && widgets.length > 0) {
|
|
60
|
+
const serverUrls = {};
|
|
61
|
+
const serverIntervals = {};
|
|
62
|
+
const serverRefresh = {};
|
|
63
|
+
for (const widget of widgets) {
|
|
64
|
+
if (widget.serverUpdate) {
|
|
65
|
+
serverUrls[widget.id] = widget.serverUpdate.url;
|
|
66
|
+
serverIntervals[widget.id] = widget.serverUpdate.intervalMinutes ?? 15;
|
|
67
|
+
if (widget.serverUpdate.refresh) {
|
|
68
|
+
serverRefresh[widget.id] = true;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if (Object.keys(serverUrls).length > 0) {
|
|
73
|
+
;
|
|
74
|
+
content['Voltra_WidgetServerUrls'] = serverUrls;
|
|
75
|
+
content['Voltra_WidgetServerIntervals'] = serverIntervals;
|
|
76
|
+
}
|
|
77
|
+
if (Object.keys(serverRefresh).length > 0) {
|
|
78
|
+
;
|
|
79
|
+
content['Voltra_WidgetServerRefresh'] = serverRefresh;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
// Add Keychain group for shared credential access
|
|
83
|
+
if (keychainGroup) {
|
|
84
|
+
;
|
|
85
|
+
content['Voltra_KeychainGroup'] = keychainGroup;
|
|
86
|
+
}
|
|
87
|
+
writeFileSync(filePath, plist.build(content));
|
|
88
|
+
}
|
|
89
|
+
return config;
|
|
90
|
+
},
|
|
91
|
+
]);
|
|
92
|
+
//# sourceMappingURL=widgetPlist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widgetPlist.js","sourceRoot":"","sources":["../../../src/ios-widget/widgetPlist.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAChF,OAAO,KAAK,MAAM,aAAa,CAAA;AAC/B,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,IAAI,CAAA;AAC5D,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,MAAM,CAAA;AAGvC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAShD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAA6C,CACrF,UAAU,EACV,EAAE,UAAU,EAAE,eAAe,EAAE,OAAO,EAAE,aAAa,EAAE,EACvD,EAAE,CACF,gBAAgB,CAAC,UAAU,EAAE;IAC3B,KAAK;IAC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C,MAAM,GAAG,CAAC,EAAE,CAAC;oBAC1C,CAAC;oBAAC,OAAe,CAAC,4BAA4B,CAAC,GAAG,aAAa,CAAA;gBACjE,CAAC;YACH,CAAC;YAED,kDAAkD;YAClD,IAAI,aAAa,EAAE,CAAC;gBAClB,CAAC;gBAAC,OAAe,CAAC,sBAAsB,CAAC,GAAG,aAAa,CAAA;YAC3D,CAAC;YAED,aAAa,CAAC,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAA;QAC/C,CAAC;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CACF,CAAC,CAAA"}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import * as util from 'util';
|
|
2
|
+
const pbxFile = require('xcode/lib/pbxFile');
|
|
3
|
+
/**
|
|
4
|
+
* Adds all required build phases for the widget extension target.
|
|
5
|
+
*/
|
|
6
|
+
export function addBuildPhases(xcodeProject, options) {
|
|
7
|
+
const { targetUuid, groupName, productFile, widgetFiles } = options;
|
|
8
|
+
const buildPath = `""`;
|
|
9
|
+
const folderType = 'app_extension';
|
|
10
|
+
const { swiftFiles, intentFiles, assetDirectories, localizedStringResources } = widgetFiles;
|
|
11
|
+
const resourcePaths = [...assetDirectories, ...localizedStringResources];
|
|
12
|
+
// Sources build phase
|
|
13
|
+
xcodeProject.addBuildPhase([...swiftFiles, ...intentFiles], 'PBXSourcesBuildPhase', 'Sources', targetUuid, folderType, buildPath);
|
|
14
|
+
// Copy files build phase
|
|
15
|
+
xcodeProject.addBuildPhase([], 'PBXCopyFilesBuildPhase', groupName, xcodeProject.getFirstTarget().uuid, folderType, buildPath);
|
|
16
|
+
xcodeProject.buildPhaseObject('PBXCopyFilesBuildPhase', groupName, productFile.target).files.push({
|
|
17
|
+
value: productFile.uuid,
|
|
18
|
+
comment: util.format('%s in %s', productFile.basename, productFile.group),
|
|
19
|
+
});
|
|
20
|
+
xcodeProject.addToPbxBuildFileSection(productFile);
|
|
21
|
+
// Frameworks build phase
|
|
22
|
+
xcodeProject.addBuildPhase([], 'PBXFrameworksBuildPhase', 'Frameworks', targetUuid, folderType, buildPath);
|
|
23
|
+
// Resources build phase
|
|
24
|
+
xcodeProject.addBuildPhase([...resourcePaths], 'PBXResourcesBuildPhase', 'Resources', targetUuid);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Ensures all required build phases and files exist for the widget extension target.
|
|
28
|
+
*/
|
|
29
|
+
export function ensureBuildPhases(xcodeProject, options) {
|
|
30
|
+
const { targetUuid, groupName, productFile, widgetFiles } = options;
|
|
31
|
+
const buildPath = `""`;
|
|
32
|
+
const folderType = 'app_extension';
|
|
33
|
+
const mainTargetUuid = options.mainTargetUuid ?? xcodeProject.getFirstTarget().uuid;
|
|
34
|
+
const { swiftFiles, intentFiles, assetDirectories, localizedStringResources } = widgetFiles;
|
|
35
|
+
const resourcePaths = [...assetDirectories, ...localizedStringResources];
|
|
36
|
+
dedupeBuildPhasesForTarget(xcodeProject, targetUuid, 'PBXSourcesBuildPhase', 'Sources');
|
|
37
|
+
dedupeBuildPhasesForTarget(xcodeProject, targetUuid, 'PBXFrameworksBuildPhase', 'Frameworks');
|
|
38
|
+
dedupeBuildPhasesByComment(xcodeProject, mainTargetUuid, 'PBXCopyFilesBuildPhase', groupName);
|
|
39
|
+
// Sources build phase
|
|
40
|
+
let sourcesPhase = xcodeProject.buildPhaseObject('PBXSourcesBuildPhase', 'Sources', targetUuid);
|
|
41
|
+
if (!sourcesPhase) {
|
|
42
|
+
xcodeProject.addBuildPhase([...swiftFiles, ...intentFiles], 'PBXSourcesBuildPhase', 'Sources', targetUuid, folderType, buildPath);
|
|
43
|
+
sourcesPhase = xcodeProject.buildPhaseObject('PBXSourcesBuildPhase', 'Sources', targetUuid);
|
|
44
|
+
}
|
|
45
|
+
if (sourcesPhase) {
|
|
46
|
+
ensureBuildPhaseFiles(xcodeProject, sourcesPhase, [...swiftFiles, ...intentFiles]);
|
|
47
|
+
}
|
|
48
|
+
// Copy files build phase (embed extension into main app)
|
|
49
|
+
let copyFilesPhase = xcodeProject.buildPhaseObject('PBXCopyFilesBuildPhase', groupName, mainTargetUuid);
|
|
50
|
+
if (!copyFilesPhase) {
|
|
51
|
+
xcodeProject.addBuildPhase([], 'PBXCopyFilesBuildPhase', groupName, mainTargetUuid, folderType, buildPath);
|
|
52
|
+
copyFilesPhase = xcodeProject.buildPhaseObject('PBXCopyFilesBuildPhase', groupName, mainTargetUuid);
|
|
53
|
+
}
|
|
54
|
+
if (copyFilesPhase) {
|
|
55
|
+
ensureCopyFilesPhaseProduct(xcodeProject, copyFilesPhase, productFile);
|
|
56
|
+
}
|
|
57
|
+
// Frameworks build phase
|
|
58
|
+
const frameworksPhase = xcodeProject.buildPhaseObject('PBXFrameworksBuildPhase', 'Frameworks', targetUuid);
|
|
59
|
+
if (!frameworksPhase) {
|
|
60
|
+
xcodeProject.addBuildPhase([], 'PBXFrameworksBuildPhase', 'Frameworks', targetUuid, folderType, buildPath);
|
|
61
|
+
}
|
|
62
|
+
// Resources build phase
|
|
63
|
+
let resourcesPhase = xcodeProject.buildPhaseObject('PBXResourcesBuildPhase', 'Resources', targetUuid);
|
|
64
|
+
if (!resourcesPhase) {
|
|
65
|
+
xcodeProject.addBuildPhase([...resourcePaths], 'PBXResourcesBuildPhase', 'Resources', targetUuid);
|
|
66
|
+
resourcesPhase = xcodeProject.buildPhaseObject('PBXResourcesBuildPhase', 'Resources', targetUuid);
|
|
67
|
+
}
|
|
68
|
+
if (resourcesPhase) {
|
|
69
|
+
ensureBuildPhaseFiles(xcodeProject, resourcesPhase, [...resourcePaths]);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function dedupeBuildPhasesForTarget(xcodeProject, targetUuid, phaseType, preferredComment) {
|
|
73
|
+
const nativeTargets = xcodeProject.pbxNativeTargetSection();
|
|
74
|
+
const target = nativeTargets[targetUuid];
|
|
75
|
+
if (!target?.buildPhases) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
const phaseSection = xcodeProject.hash.project.objects[phaseType] || {};
|
|
79
|
+
const matching = target.buildPhases.filter((entry) => phaseSection[entry.value]);
|
|
80
|
+
if (matching.length <= 1) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const keep = matching.find((entry) => entry.comment === preferredComment) ?? matching[0];
|
|
84
|
+
keep.comment = preferredComment;
|
|
85
|
+
target.buildPhases = target.buildPhases.filter((entry) => {
|
|
86
|
+
if (!phaseSection[entry.value]) {
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
return entry.value === keep.value;
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function dedupeBuildPhasesByComment(xcodeProject, targetUuid, phaseType, comment) {
|
|
93
|
+
const nativeTargets = xcodeProject.pbxNativeTargetSection();
|
|
94
|
+
const target = nativeTargets[targetUuid];
|
|
95
|
+
if (!target?.buildPhases) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const phaseSection = xcodeProject.hash.project.objects[phaseType] || {};
|
|
99
|
+
const matching = target.buildPhases.filter((entry) => phaseSection[entry.value] && entry.comment === comment);
|
|
100
|
+
if (matching.length <= 1) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const keep = matching[0];
|
|
104
|
+
target.buildPhases = target.buildPhases.filter((entry) => {
|
|
105
|
+
if (!phaseSection[entry.value] || entry.comment !== comment) {
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
return entry.value === keep.value;
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
function normalizePath(value) {
|
|
112
|
+
if (!value) {
|
|
113
|
+
return '';
|
|
114
|
+
}
|
|
115
|
+
return value.replace(/^"|"$/g, '');
|
|
116
|
+
}
|
|
117
|
+
function findFileReferenceKey(xcodeProject, filePath) {
|
|
118
|
+
const fileReferenceSection = xcodeProject.pbxFileReferenceSection();
|
|
119
|
+
const normalizedPath = normalizePath(filePath);
|
|
120
|
+
for (const key of Object.keys(fileReferenceSection)) {
|
|
121
|
+
if (/_comment$/.test(key)) {
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
const entry = fileReferenceSection[key];
|
|
125
|
+
const entryPath = normalizePath(entry?.path);
|
|
126
|
+
if (entryPath === normalizedPath) {
|
|
127
|
+
return key;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
function findBuildFileKeyByFileRef(xcodeProject, fileRef) {
|
|
133
|
+
const buildFileSection = xcodeProject.pbxBuildFileSection();
|
|
134
|
+
for (const key of Object.keys(buildFileSection)) {
|
|
135
|
+
if (/_comment$/.test(key)) {
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
const entry = buildFileSection[key];
|
|
139
|
+
if (entry?.fileRef === fileRef) {
|
|
140
|
+
return key;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return null;
|
|
144
|
+
}
|
|
145
|
+
function ensureFileReference(xcodeProject, filePath) {
|
|
146
|
+
const existingFileRef = findFileReferenceKey(xcodeProject, filePath);
|
|
147
|
+
const file = new pbxFile(filePath);
|
|
148
|
+
if (existingFileRef) {
|
|
149
|
+
return { fileRef: existingFileRef, basename: file.basename, group: file.group };
|
|
150
|
+
}
|
|
151
|
+
file.fileRef = xcodeProject.generateUuid();
|
|
152
|
+
xcodeProject.addToPbxFileReferenceSection(file);
|
|
153
|
+
return { fileRef: file.fileRef, basename: file.basename, group: file.group };
|
|
154
|
+
}
|
|
155
|
+
function ensureBuildFile(xcodeProject, filePath) {
|
|
156
|
+
const fileReference = ensureFileReference(xcodeProject, filePath);
|
|
157
|
+
const existingBuildFile = findBuildFileKeyByFileRef(xcodeProject, fileReference.fileRef);
|
|
158
|
+
if (existingBuildFile) {
|
|
159
|
+
return { uuid: existingBuildFile, ...fileReference };
|
|
160
|
+
}
|
|
161
|
+
const file = new pbxFile(filePath);
|
|
162
|
+
file.uuid = xcodeProject.generateUuid();
|
|
163
|
+
file.fileRef = fileReference.fileRef;
|
|
164
|
+
xcodeProject.addToPbxBuildFileSection(file);
|
|
165
|
+
return { uuid: file.uuid, ...fileReference, group: file.group };
|
|
166
|
+
}
|
|
167
|
+
function buildPhaseHasFile(xcodeProject, buildPhase, fileRef) {
|
|
168
|
+
if (!buildPhase?.files) {
|
|
169
|
+
return false;
|
|
170
|
+
}
|
|
171
|
+
const buildFileSection = xcodeProject.pbxBuildFileSection();
|
|
172
|
+
return buildPhase.files.some((entry) => {
|
|
173
|
+
const buildFile = buildFileSection[entry.value];
|
|
174
|
+
return buildFile?.fileRef === fileRef;
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
function ensureBuildPhaseFiles(xcodeProject, buildPhase, filePaths) {
|
|
178
|
+
if (!buildPhase.files) {
|
|
179
|
+
buildPhase.files = [];
|
|
180
|
+
}
|
|
181
|
+
for (const filePath of filePaths) {
|
|
182
|
+
const fileReference = ensureFileReference(xcodeProject, filePath);
|
|
183
|
+
if (buildPhaseHasFile(xcodeProject, buildPhase, fileReference.fileRef)) {
|
|
184
|
+
continue;
|
|
185
|
+
}
|
|
186
|
+
const buildFile = ensureBuildFile(xcodeProject, filePath);
|
|
187
|
+
buildPhase.files.push({
|
|
188
|
+
value: buildFile.uuid,
|
|
189
|
+
comment: util.format('%s in %s', buildFile.basename, buildFile.group),
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
function ensureCopyFilesPhaseProduct(xcodeProject, buildPhase, productFile) {
|
|
194
|
+
if (!buildPhase.files) {
|
|
195
|
+
buildPhase.files = [];
|
|
196
|
+
}
|
|
197
|
+
const alreadyExists = buildPhase.files.some((entry) => entry.value === productFile.uuid);
|
|
198
|
+
if (alreadyExists) {
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
const buildFileSection = xcodeProject.pbxBuildFileSection();
|
|
202
|
+
if (!buildFileSection[productFile.uuid]) {
|
|
203
|
+
xcodeProject.addToPbxBuildFileSection(productFile);
|
|
204
|
+
}
|
|
205
|
+
buildPhase.files.push({
|
|
206
|
+
value: productFile.uuid,
|
|
207
|
+
comment: util.format('%s in %s', productFile.basename, productFile.group),
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
//# sourceMappingURL=buildPhases.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildPhases.js","sourceRoot":"","sources":["../../../../src/ios-widget/xcode/buildPhases.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAI5B,MAAM,OAAO,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAA;AAkB5C;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,YAA0B,EAAE,OAA8B;IACvF,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,GAAG,OAAO,CAAA;IACnE,MAAM,SAAS,GAAG,IAAI,CAAA;IACtB,MAAM,UAAU,GAAG,eAAe,CAAA;IAElC,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,GAAG,WAAW,CAAA;IAC3F,MAAM,aAAa,GAAG,CAAC,GAAG,gBAAgB,EAAE,GAAG,wBAAwB,CAAC,CAAA;IAExE,sBAAsB;IACtB,YAAY,CAAC,aAAa,CACxB,CAAC,GAAG,UAAU,EAAE,GAAG,WAAW,CAAC,EAC/B,sBAAsB,EACtB,SAAS,EACT,UAAU,EACV,UAAU,EACV,SAAS,CACV,CAAA;IAED,yBAAyB;IACzB,YAAY,CAAC,aAAa,CACxB,EAAE,EACF,wBAAwB,EACxB,SAAS,EACT,YAAY,CAAC,cAAc,EAAE,CAAC,IAAI,EAClC,UAAU,EACV,SAAS,CACV,CAAA;IAED,YAAY,CAAC,gBAAgB,CAAC,wBAAwB,EAAE,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;QAChG,KAAK,EAAE,WAAW,CAAC,IAA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E,CAAC;QACtB,UAAU,CAAC,KAAK,GAAG,EAAE,CAAA;IACvB,CAAC;IAED,MAAM,aAAa,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,KAAK,WAAW,CAAC,IAAI,CAAC,CAAA;IAC7F,IAAI,aAAa,EAAE,CAAC;QAClB,OAAM;IACR,CAAC;IAED,MAAM,gBAAgB,GAAG,YAAY,CAAC,mBAAmB,EAAE,CAAA;IAC3D,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;QACxC,YAAY,CAAC,wBAAwB,CAAC,WAAW,CAAC,CAAA;IACpD,CAAC;IAED,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;QACpB,KAAK,EAAE,WAAW,CAAC,IAAI;QACvB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,QAAQ,EAAE,WAAW,CAAC,KAAK,CAAC;KAC1E,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { IOS } from '../../constants';
|
|
2
|
+
function createCommonBuildSettings(options) {
|
|
3
|
+
const { targetName, bundleIdentifier, deploymentTarget, codeSignStyle, developmentTeam, provisioningProfileSpecifier, } = options;
|
|
4
|
+
const commonBuildSettings = {
|
|
5
|
+
PRODUCT_NAME: `"$(TARGET_NAME)"`,
|
|
6
|
+
SWIFT_VERSION: IOS.SWIFT_VERSION,
|
|
7
|
+
TARGETED_DEVICE_FAMILY: `"${IOS.DEVICE_FAMILY}"`,
|
|
8
|
+
INFOPLIST_FILE: `${targetName}/Info.plist`,
|
|
9
|
+
INFOPLIST_OUTPUT_FORMAT: `"xml"`,
|
|
10
|
+
CURRENT_PROJECT_VERSION: `"1"`,
|
|
11
|
+
MARKETING_VERSION: `"1.0"`,
|
|
12
|
+
IPHONEOS_DEPLOYMENT_TARGET: `"${deploymentTarget}"`,
|
|
13
|
+
PRODUCT_BUNDLE_IDENTIFIER: `"${bundleIdentifier}"`,
|
|
14
|
+
SWIFT_OPTIMIZATION_LEVEL: `"-Onone"`,
|
|
15
|
+
CODE_SIGN_ENTITLEMENTS: `"${targetName}/${targetName}.entitlements"`,
|
|
16
|
+
APPLICATION_EXTENSION_API_ONLY: '"YES"',
|
|
17
|
+
ASSETCATALOG_COMPILER_APPICON_NAME: '""',
|
|
18
|
+
};
|
|
19
|
+
// Synchronize code signing settings from main app target
|
|
20
|
+
if (codeSignStyle) {
|
|
21
|
+
commonBuildSettings.CODE_SIGN_STYLE = `"${codeSignStyle}"`;
|
|
22
|
+
}
|
|
23
|
+
if (developmentTeam) {
|
|
24
|
+
commonBuildSettings.DEVELOPMENT_TEAM = `"${developmentTeam}"`;
|
|
25
|
+
}
|
|
26
|
+
if (provisioningProfileSpecifier) {
|
|
27
|
+
commonBuildSettings.PROVISIONING_PROFILE_SPECIFIER = `"${provisioningProfileSpecifier}"`;
|
|
28
|
+
}
|
|
29
|
+
return commonBuildSettings;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Adds the XCConfigurationList for the widget extension target.
|
|
33
|
+
*/
|
|
34
|
+
export function addXCConfigurationList(xcodeProject, options) {
|
|
35
|
+
const { targetName } = options;
|
|
36
|
+
const commonBuildSettings = createCommonBuildSettings(options);
|
|
37
|
+
const buildConfigurationsList = [
|
|
38
|
+
{
|
|
39
|
+
name: 'Debug',
|
|
40
|
+
isa: 'XCBuildConfiguration',
|
|
41
|
+
buildSettings: {
|
|
42
|
+
...commonBuildSettings,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'Release',
|
|
47
|
+
isa: 'XCBuildConfiguration',
|
|
48
|
+
buildSettings: {
|
|
49
|
+
...commonBuildSettings,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
const xCConfigurationList = xcodeProject.addXCConfigurationList(buildConfigurationsList, 'Release', `Build configuration list for PBXNativeTarget "${targetName}"`);
|
|
54
|
+
return xCConfigurationList;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Ensures an existing XCConfigurationList is updated, or adds a new one if missing.
|
|
58
|
+
*/
|
|
59
|
+
export function ensureXCConfigurationList(xcodeProject, options, existingConfigurationListId) {
|
|
60
|
+
const configurationListId = typeof existingConfigurationListId === 'string'
|
|
61
|
+
? existingConfigurationListId.split(' ')[0]
|
|
62
|
+
: existingConfigurationListId?.value?.split(' ')[0];
|
|
63
|
+
const configurationLists = xcodeProject.pbxXCConfigurationList();
|
|
64
|
+
const configurationList = configurationListId ? configurationLists?.[configurationListId] : null;
|
|
65
|
+
if (!configurationList || !configurationList.buildConfigurations) {
|
|
66
|
+
return addXCConfigurationList(xcodeProject, options);
|
|
67
|
+
}
|
|
68
|
+
const commonBuildSettings = createCommonBuildSettings(options);
|
|
69
|
+
const buildConfigurations = configurationList.buildConfigurations;
|
|
70
|
+
const buildConfigurationSection = xcodeProject.pbxXCBuildConfigurationSection();
|
|
71
|
+
for (const configRef of buildConfigurations) {
|
|
72
|
+
const configId = typeof configRef === 'string' ? configRef.split(' ')[0] : configRef.value?.split(' ')[0];
|
|
73
|
+
if (!configId) {
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
const buildConfiguration = buildConfigurationSection[configId];
|
|
77
|
+
if (!buildConfiguration) {
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
buildConfiguration.buildSettings = {
|
|
81
|
+
...(buildConfiguration.buildSettings ?? {}),
|
|
82
|
+
...commonBuildSettings,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
return { uuid: configurationListId };
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=configurationList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurationList.js","sourceRoot":"","sources":["../../../../src/ios-widget/xcode/configurationList.ts"],"names":[],"mappings":"AAEA,OAA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M,QAAQ,GAAG,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;QACzG,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,SAAQ;QACV,CAAC;QACD,MAAM,kBAAkB,GAAG,yBAAyB,CAAC,QAAQ,CAAC,CAAA;QAC9D,IAAI,CAAC,kBAAkB,EAAE,CAAC;YACxB,SAAQ;QACV,CAAC;QAED,kBAAkB,CAAC,aAAa,GAAG;YACjC,GAAG,CAAC,kBAAkB,CAAC,aAAa,IAAI,EAAE,CAAC;YAC3C,GAAG,mBAAmB;SACvB,CAAA;IACH,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAA;AACtC,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
const pbxFile = require('xcode/lib/pbxFile');
|
|
2
|
+
/**
|
|
3
|
+
* Adds a PBXGroup for the widget extension files.
|
|
4
|
+
*/
|
|
5
|
+
export function addPbxGroup(xcodeProject, options) {
|
|
6
|
+
const { targetName, widgetFiles } = options;
|
|
7
|
+
const { swiftFiles, intentFiles, assetDirectories, entitlementFiles, plistFiles, localizedStringResources } = widgetFiles;
|
|
8
|
+
// Add PBX group with all widget files
|
|
9
|
+
const { uuid: pbxGroupUuid } = xcodeProject.addPbxGroup([
|
|
10
|
+
...swiftFiles,
|
|
11
|
+
...intentFiles,
|
|
12
|
+
...entitlementFiles,
|
|
13
|
+
...plistFiles,
|
|
14
|
+
...assetDirectories,
|
|
15
|
+
...localizedStringResources,
|
|
16
|
+
], targetName, targetName);
|
|
17
|
+
// Add PBXGroup to top level group
|
|
18
|
+
const groups = xcodeProject.hash.project.objects['PBXGroup'];
|
|
19
|
+
if (pbxGroupUuid) {
|
|
20
|
+
Object.keys(groups).forEach(function (key) {
|
|
21
|
+
if (groups[key].name === undefined && groups[key].path === undefined) {
|
|
22
|
+
xcodeProject.addToPbxGroup(pbxGroupUuid, key);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Ensures a PBXGroup exists for the widget extension files.
|
|
29
|
+
*/
|
|
30
|
+
export function ensurePbxGroup(xcodeProject, options) {
|
|
31
|
+
const { targetName, widgetFiles } = options;
|
|
32
|
+
const { swiftFiles, intentFiles, assetDirectories, entitlementFiles, plistFiles, localizedStringResources } = widgetFiles;
|
|
33
|
+
const allFiles = [
|
|
34
|
+
...swiftFiles,
|
|
35
|
+
...intentFiles,
|
|
36
|
+
...entitlementFiles,
|
|
37
|
+
...plistFiles,
|
|
38
|
+
...assetDirectories,
|
|
39
|
+
...localizedStringResources,
|
|
40
|
+
];
|
|
41
|
+
const existingGroup = xcodeProject.pbxGroupByName(targetName);
|
|
42
|
+
if (!existingGroup) {
|
|
43
|
+
addPbxGroup(xcodeProject, options);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (!existingGroup.children) {
|
|
47
|
+
existingGroup.children = [];
|
|
48
|
+
}
|
|
49
|
+
for (const filePath of allFiles) {
|
|
50
|
+
const file = new pbxFile(filePath);
|
|
51
|
+
const fileRef = ensureFileReference(xcodeProject, filePath);
|
|
52
|
+
const alreadyInGroup = existingGroup.children.some((child) => child.value === fileRef || child.comment === file.basename);
|
|
53
|
+
if (!alreadyInGroup) {
|
|
54
|
+
existingGroup.children.push({ value: fileRef, comment: file.basename });
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function ensureFileReference(xcodeProject, filePath) {
|
|
59
|
+
const fileReferenceSection = xcodeProject.pbxFileReferenceSection();
|
|
60
|
+
const file = new pbxFile(filePath);
|
|
61
|
+
for (const key of Object.keys(fileReferenceSection)) {
|
|
62
|
+
if (/_comment$/.test(key)) {
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
const entry = fileReferenceSection[key];
|
|
66
|
+
const entryPath = typeof entry?.path === 'string' ? entry.path.replace(/^"|"$/g, '') : '';
|
|
67
|
+
if (entryPath === file.path || entryPath === filePath) {
|
|
68
|
+
return key;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
file.fileRef = xcodeProject.generateUuid();
|
|
72
|
+
xcodeProject.addToPbxFileReferenceSection(file);
|
|
73
|
+
return file.fileRef;
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=groups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groups.js","sourceRoot":"","sources":["../../../../src/ios-widget/xcode/groups.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAA;AAO5C;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,YAA0B,EAAE,OAA2B;IACjF,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,OAAO,CAAA;IAC3C,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,wBAAwB,EAAE,GACzG,WAAW,CAAA;IAEb,sCAAsC;IACtC,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,YAAY,CAAC,WAAW,CACrD;QACE,GAAG,UAAU;QACb,GAAG,WAAW;QACd,GAAG,gBAAgB;QACnB,GAAG,UAAU;QACb,GAAG,gBAAgB;QACnB,GAAG,wBAAwB;KAC5B,EACD,UAAU,EACV,UAAU,CACX,CAAA;IAED,kCAAkC;IAClC,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IAC5D,IAAI,YAAY,EAAE,CAAC;QACjB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,UAAU,GAAG;YACvC,IAAI,MAAM,CAAC,GAAG,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,CAC3E,CAAA;QACD,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAA;QACzE,CAAC;IACH,CAAC;AACH,CAAC;AAED,SAAS,mBAAmB,CAAC,YAA0B,EAAE,QAAgB;IACvE,MAAM,oBAAoB,GAAG,YAAY,CAAC,uBAAuB,EAAE,CAAA;IACnE,MAAM,IAAI,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAA;IAElC,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC;QACpD,IAAI,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;YAC1B,SAAQ;QACV,CAAC;QACD,MAAM,KAAK,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAA;QACvC,MAAM,SAAS,GAAG,OAAO,KAAK,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;QACzF,IAAI,SAAS,KAAK,IAAI,CAAC,IAAI,IAAI,SAAS,KAAK,QAAQ,EAAE,CAAC;YACtD,OAAO,GAAG,CAAA;QACZ,CAAC;IACH,CAAC;IAED,IAAI,CAAC,OAAO,GAAG,YAAY,CAAC,YAAY,EAAE,CAAA;IAC1C,YAAY,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAA;IAC/C,OAAO,IAAI,CAAC,OAAO,CAAA;AACrB,CAAC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { withXcodeProject } from '@expo/config-plugins';
|
|
2
|
+
import * as path from 'path';
|
|
3
|
+
import { getIOSWidgetExtensionFiles } from '../../utils/fileDiscovery';
|
|
4
|
+
import { addBuildPhases, ensureBuildPhases } from './buildPhases';
|
|
5
|
+
import { addXCConfigurationList, ensureXCConfigurationList } from './configurationList';
|
|
6
|
+
import { addPbxGroup, ensurePbxGroup } from './groups';
|
|
7
|
+
import { getMainAppTargetSettings } from './mainAppSettings';
|
|
8
|
+
import { addProductFile, ensureProductFile } from './productFile';
|
|
9
|
+
import { configureTarget, ensureTargetAttributes, ensureTargetDependency } from './target';
|
|
10
|
+
/**
|
|
11
|
+
* Plugin step that configures the Xcode project for the widget extension.
|
|
12
|
+
*
|
|
13
|
+
* This:
|
|
14
|
+
* - Adds XCConfigurationList with Debug/Release configurations
|
|
15
|
+
* - Adds the product file (.appex)
|
|
16
|
+
* - Configures the native target
|
|
17
|
+
* - Adds build phases (Sources, CopyFiles, Frameworks, Resources)
|
|
18
|
+
* - Adds PBXGroup for widget files
|
|
19
|
+
*
|
|
20
|
+
* This should run after generateWidgetExtensionFiles so the files exist.
|
|
21
|
+
*/
|
|
22
|
+
export const configureXcodeProject = (config, props) => {
|
|
23
|
+
const { targetName, bundleIdentifier, deploymentTarget } = props;
|
|
24
|
+
return withXcodeProject(config, (config) => {
|
|
25
|
+
if (config.modRequest.introspect) {
|
|
26
|
+
return config;
|
|
27
|
+
}
|
|
28
|
+
const xcodeProject = config.modResults;
|
|
29
|
+
const groupName = 'Embed Foundation Extensions';
|
|
30
|
+
// Check if target already exists
|
|
31
|
+
const nativeTargets = xcodeProject.pbxNativeTargetSection();
|
|
32
|
+
const existingTargetKey = xcodeProject.findTargetKey(targetName);
|
|
33
|
+
const existingTarget = existingTargetKey ? nativeTargets[existingTargetKey] : null;
|
|
34
|
+
const { platformProjectRoot } = config.modRequest;
|
|
35
|
+
const targetPath = path.join(platformProjectRoot, targetName);
|
|
36
|
+
const widgetFiles = getIOSWidgetExtensionFiles(targetPath, targetName);
|
|
37
|
+
// Read main app target settings to synchronize code signing
|
|
38
|
+
const mainAppSettings = getMainAppTargetSettings(xcodeProject);
|
|
39
|
+
// Use the deploymentTarget from plugin config (or default), ignore main app's deployment target
|
|
40
|
+
// This allows the widget extension to have its own deployment target independent of the main app
|
|
41
|
+
if (existingTarget && existingTargetKey) {
|
|
42
|
+
// Ensure configuration list is up to date
|
|
43
|
+
const xCConfigurationList = ensureXCConfigurationList(xcodeProject, {
|
|
44
|
+
targetName,
|
|
45
|
+
bundleIdentifier,
|
|
46
|
+
deploymentTarget,
|
|
47
|
+
codeSignStyle: mainAppSettings?.codeSignStyle,
|
|
48
|
+
developmentTeam: mainAppSettings?.developmentTeam,
|
|
49
|
+
provisioningProfileSpecifier: mainAppSettings?.provisioningProfileSpecifier,
|
|
50
|
+
}, existingTarget.buildConfigurationList);
|
|
51
|
+
// Ensure product file exists
|
|
52
|
+
const productFile = ensureProductFile(xcodeProject, {
|
|
53
|
+
targetName,
|
|
54
|
+
groupName,
|
|
55
|
+
});
|
|
56
|
+
// Update target references
|
|
57
|
+
existingTarget.productReference = productFile.fileRef;
|
|
58
|
+
existingTarget.buildConfigurationList = xCConfigurationList.uuid;
|
|
59
|
+
existingTarget.productType = `"com.apple.product-type.app-extension"`;
|
|
60
|
+
existingTarget.name = targetName;
|
|
61
|
+
existingTarget.productName = targetName;
|
|
62
|
+
if (!existingTarget.buildPhases) {
|
|
63
|
+
existingTarget.buildPhases = [];
|
|
64
|
+
}
|
|
65
|
+
// Ensure build phases and groups
|
|
66
|
+
ensureBuildPhases(xcodeProject, {
|
|
67
|
+
targetUuid: existingTargetKey,
|
|
68
|
+
groupName,
|
|
69
|
+
productFile,
|
|
70
|
+
widgetFiles,
|
|
71
|
+
mainTargetUuid: xcodeProject.getFirstTarget().uuid,
|
|
72
|
+
});
|
|
73
|
+
ensurePbxGroup(xcodeProject, {
|
|
74
|
+
targetName,
|
|
75
|
+
widgetFiles,
|
|
76
|
+
});
|
|
77
|
+
ensureTargetAttributes(xcodeProject, existingTargetKey);
|
|
78
|
+
ensureTargetDependency(xcodeProject, existingTargetKey);
|
|
79
|
+
return config;
|
|
80
|
+
}
|
|
81
|
+
// Add configuration list
|
|
82
|
+
const targetUuid = xcodeProject.generateUuid();
|
|
83
|
+
const xCConfigurationList = addXCConfigurationList(xcodeProject, {
|
|
84
|
+
targetName,
|
|
85
|
+
bundleIdentifier,
|
|
86
|
+
deploymentTarget,
|
|
87
|
+
codeSignStyle: mainAppSettings?.codeSignStyle,
|
|
88
|
+
developmentTeam: mainAppSettings?.developmentTeam,
|
|
89
|
+
provisioningProfileSpecifier: mainAppSettings?.provisioningProfileSpecifier,
|
|
90
|
+
});
|
|
91
|
+
// Add product file
|
|
92
|
+
const productFile = addProductFile(xcodeProject, {
|
|
93
|
+
targetName,
|
|
94
|
+
groupName,
|
|
95
|
+
});
|
|
96
|
+
// Configure target (native target, project section, dependency)
|
|
97
|
+
configureTarget(xcodeProject, {
|
|
98
|
+
targetName,
|
|
99
|
+
targetUuid,
|
|
100
|
+
productFile,
|
|
101
|
+
xCConfigurationList,
|
|
102
|
+
});
|
|
103
|
+
// Add build phases
|
|
104
|
+
addBuildPhases(xcodeProject, {
|
|
105
|
+
targetUuid,
|
|
106
|
+
groupName,
|
|
107
|
+
productFile,
|
|
108
|
+
widgetFiles,
|
|
109
|
+
});
|
|
110
|
+
// Add PBX group
|
|
111
|
+
addPbxGroup(xcodeProject, {
|
|
112
|
+
targetName,
|
|
113
|
+
widgetFiles,
|
|
114
|
+
});
|
|
115
|
+
return config;
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ios-widget/xcode/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAE5B,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAA;AACtE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO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