expo-targets 0.2.7 → 0.2.8
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 +41 -192
- package/build/metro/src/index.d.ts +1 -1
- package/build/metro/src/index.d.ts.map +1 -1
- package/build/metro/src/index.js +2 -1
- package/build/metro/src/index.js.map +1 -1
- package/build/metro/src/withTargetsMetro.d.ts +14 -0
- package/build/metro/src/withTargetsMetro.d.ts.map +1 -1
- package/build/metro/src/withTargetsMetro.js +75 -23
- package/build/metro/src/withTargetsMetro.js.map +1 -1
- package/build/plugin/src/android/widgetSourceSets.d.ts +10 -0
- package/build/plugin/src/android/widgetSourceSets.d.ts.map +1 -0
- package/build/plugin/src/android/widgetSourceSets.js +167 -0
- package/build/plugin/src/android/widgetSourceSets.js.map +1 -0
- package/build/plugin/src/android/withAndroidAppBuildGradle.d.ts +1 -1
- package/build/plugin/src/android/withAndroidAppBuildGradle.d.ts.map +1 -1
- package/build/plugin/src/android/withAndroidAppBuildGradle.js +0 -1
- package/build/plugin/src/android/withAndroidAppBuildGradle.js.map +1 -1
- package/build/plugin/src/android/withAndroidTarget.d.ts +1 -1
- package/build/plugin/src/android/withAndroidTarget.d.ts.map +1 -1
- package/build/plugin/src/android/withAndroidTarget.js +0 -1
- package/build/plugin/src/android/withAndroidTarget.js.map +1 -1
- package/build/plugin/src/android/withAndroidWidget.d.ts +1 -1
- package/build/plugin/src/android/withAndroidWidget.d.ts.map +1 -1
- package/build/plugin/src/android/withAndroidWidget.js +174 -249
- package/build/plugin/src/android/withAndroidWidget.js.map +1 -1
- package/build/plugin/src/config.d.ts +52 -10
- package/build/plugin/src/config.d.ts.map +1 -1
- package/build/plugin/src/config.js +49 -1
- package/build/plugin/src/config.js.map +1 -1
- package/build/plugin/src/domain/appGroups.d.ts +19 -0
- package/build/plugin/src/domain/appGroups.d.ts.map +1 -0
- package/build/plugin/src/domain/appGroups.js +44 -0
- package/build/plugin/src/domain/appGroups.js.map +1 -0
- package/build/plugin/src/domain/bundleIds.d.ts +9 -0
- package/build/plugin/src/domain/bundleIds.d.ts.map +1 -0
- package/build/plugin/src/domain/bundleIds.js +10 -0
- package/build/plugin/src/domain/bundleIds.js.map +1 -0
- package/build/plugin/src/domain/characteristics.d.ts +44 -0
- package/build/plugin/src/domain/characteristics.d.ts.map +1 -0
- package/build/plugin/src/domain/characteristics.js +781 -0
- package/build/plugin/src/domain/characteristics.js.map +1 -0
- package/build/plugin/src/domain/deployment.d.ts +14 -0
- package/build/plugin/src/domain/deployment.d.ts.map +1 -0
- package/build/plugin/src/domain/deployment.js +14 -0
- package/build/plugin/src/domain/deployment.js.map +1 -0
- package/build/plugin/src/domain/index.d.ts +14 -0
- package/build/plugin/src/domain/index.d.ts.map +1 -0
- package/build/plugin/src/domain/index.js +37 -0
- package/build/plugin/src/domain/index.js.map +1 -0
- package/build/plugin/src/domain/rnCompat.d.ts +16 -0
- package/build/plugin/src/domain/rnCompat.d.ts.map +1 -0
- package/build/plugin/src/domain/rnCompat.js +37 -0
- package/build/plugin/src/domain/rnCompat.js.map +1 -0
- package/build/plugin/src/domain/types.d.ts +9 -0
- package/build/plugin/src/domain/types.d.ts.map +1 -0
- package/build/plugin/src/domain/types.js +10 -0
- package/build/plugin/src/domain/types.js.map +1 -0
- package/build/plugin/src/index.d.ts +2 -2
- package/build/plugin/src/index.d.ts.map +1 -1
- package/build/plugin/src/index.js +5 -0
- package/build/plugin/src/index.js.map +1 -1
- package/build/plugin/src/ios/apply/fs/applyTargetPlan.d.ts +11 -0
- package/build/plugin/src/ios/apply/fs/applyTargetPlan.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/fs/applyTargetPlan.js +77 -0
- package/build/plugin/src/ios/apply/fs/applyTargetPlan.js.map +1 -0
- package/build/plugin/src/ios/apply/fs/assets.d.ts +7 -0
- package/build/plugin/src/ios/apply/fs/assets.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/fs/assets.js +50 -0
- package/build/plugin/src/ios/apply/fs/assets.js.map +1 -0
- package/build/plugin/src/ios/apply/fs/entitlements.d.ts +7 -0
- package/build/plugin/src/ios/apply/fs/entitlements.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/fs/entitlements.js +40 -0
- package/build/plugin/src/ios/apply/fs/entitlements.js.map +1 -0
- package/build/plugin/src/ios/apply/fs/index.d.ts +14 -0
- package/build/plugin/src/ios/apply/fs/index.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/fs/index.js +24 -0
- package/build/plugin/src/ios/apply/fs/index.js.map +1 -0
- package/build/plugin/src/ios/apply/fs/infoPlist.d.ts +6 -0
- package/build/plugin/src/ios/apply/fs/infoPlist.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/fs/infoPlist.js +35 -0
- package/build/plugin/src/ios/apply/fs/infoPlist.js.map +1 -0
- package/build/plugin/src/ios/apply/fs/safari.d.ts +7 -0
- package/build/plugin/src/ios/apply/fs/safari.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/fs/safari.js +45 -0
- package/build/plugin/src/ios/apply/fs/safari.js.map +1 -0
- package/build/plugin/src/ios/apply/fs/stickers.d.ts +8 -0
- package/build/plugin/src/ios/apply/fs/stickers.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/fs/stickers.js +72 -0
- package/build/plugin/src/ios/apply/fs/stickers.js.map +1 -0
- package/build/plugin/src/ios/apply/fs/swift.d.ts +9 -0
- package/build/plugin/src/ios/apply/fs/swift.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/fs/swift.js +63 -0
- package/build/plugin/src/ios/apply/fs/swift.js.map +1 -0
- package/build/plugin/src/ios/apply/pbx/applyTargetPlan.d.ts +18 -0
- package/build/plugin/src/ios/apply/pbx/applyTargetPlan.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/pbx/applyTargetPlan.js +308 -0
- package/build/plugin/src/ios/apply/pbx/applyTargetPlan.js.map +1 -0
- package/build/plugin/src/ios/apply/pbx/buildPhases.d.ts +30 -0
- package/build/plugin/src/ios/apply/pbx/buildPhases.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/pbx/buildPhases.js +101 -0
- package/build/plugin/src/ios/apply/pbx/buildPhases.js.map +1 -0
- package/build/plugin/src/ios/apply/pbx/buildSettings.d.ts +37 -0
- package/build/plugin/src/ios/apply/pbx/buildSettings.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/pbx/buildSettings.js +80 -0
- package/build/plugin/src/ios/apply/pbx/buildSettings.js.map +1 -0
- package/build/plugin/src/ios/apply/pbx/bundleReactNative.d.ts +19 -0
- package/build/plugin/src/ios/apply/pbx/bundleReactNative.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/pbx/bundleReactNative.js +136 -0
- package/build/plugin/src/ios/apply/pbx/bundleReactNative.js.map +1 -0
- package/build/plugin/src/ios/apply/pbx/copyFrameworksIntoAppClip.d.ts +25 -0
- package/build/plugin/src/ios/apply/pbx/copyFrameworksIntoAppClip.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/pbx/copyFrameworksIntoAppClip.js +196 -0
- package/build/plugin/src/ios/apply/pbx/copyFrameworksIntoAppClip.js.map +1 -0
- package/build/plugin/src/ios/apply/pbx/embed.d.ts +63 -0
- package/build/plugin/src/ios/apply/pbx/embed.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/pbx/embed.js +572 -0
- package/build/plugin/src/ios/apply/pbx/embed.js.map +1 -0
- package/build/plugin/src/ios/apply/pbx/fileRefs.d.ts +26 -0
- package/build/plugin/src/ios/apply/pbx/fileRefs.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/pbx/fileRefs.js +122 -0
- package/build/plugin/src/ios/apply/pbx/fileRefs.js.map +1 -0
- package/build/plugin/src/ios/apply/pbx/groups.d.ts +25 -0
- package/build/plugin/src/ios/apply/pbx/groups.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/pbx/groups.js +84 -0
- package/build/plugin/src/ios/apply/pbx/groups.js.map +1 -0
- package/build/plugin/src/ios/apply/pbx/index.d.ts +17 -0
- package/build/plugin/src/ios/apply/pbx/index.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/pbx/index.js +50 -0
- package/build/plugin/src/ios/apply/pbx/index.js.map +1 -0
- package/build/plugin/src/ios/apply/pbx/targetLifecycle.d.ts +59 -0
- package/build/plugin/src/ios/apply/pbx/targetLifecycle.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/pbx/targetLifecycle.js +185 -0
- package/build/plugin/src/ios/apply/pbx/targetLifecycle.js.map +1 -0
- package/build/plugin/src/ios/apply/pbx/types.d.ts +12 -0
- package/build/plugin/src/ios/apply/pbx/types.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/pbx/types.js +6 -0
- package/build/plugin/src/ios/apply/pbx/types.js.map +1 -0
- package/build/plugin/src/ios/apply/podfile/applyPodfilePlan.d.ts +12 -0
- package/build/plugin/src/ios/apply/podfile/applyPodfilePlan.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/podfile/applyPodfilePlan.js +76 -0
- package/build/plugin/src/ios/apply/podfile/applyPodfilePlan.js.map +1 -0
- package/build/plugin/src/ios/apply/podfile/index.d.ts +11 -0
- package/build/plugin/src/ios/apply/podfile/index.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/podfile/index.js +32 -0
- package/build/plugin/src/ios/apply/podfile/index.js.map +1 -0
- package/build/plugin/src/ios/{utils → apply/podfile}/podfile.d.ts +21 -5
- package/build/plugin/src/ios/apply/podfile/podfile.d.ts.map +1 -0
- package/{plugin/build/ios/utils → build/plugin/src/ios/apply/podfile}/podfile.js +310 -251
- package/build/plugin/src/ios/apply/podfile/podfile.js.map +1 -0
- package/build/plugin/src/ios/apply/podfile/scan.d.ts +40 -0
- package/build/plugin/src/ios/apply/podfile/scan.d.ts.map +1 -0
- package/build/plugin/src/ios/apply/podfile/scan.js +129 -0
- package/build/plugin/src/ios/apply/podfile/scan.js.map +1 -0
- package/build/plugin/src/ios/cng/appShortcutsCodegen.d.ts +6 -0
- package/build/plugin/src/ios/cng/appShortcutsCodegen.d.ts.map +1 -0
- package/build/plugin/src/ios/cng/appShortcutsCodegen.js +79 -0
- package/build/plugin/src/ios/cng/appShortcutsCodegen.js.map +1 -0
- package/build/plugin/src/ios/cng/liveActivityCodegen.d.ts +6 -0
- package/build/plugin/src/ios/cng/liveActivityCodegen.d.ts.map +1 -0
- package/build/plugin/src/ios/cng/liveActivityCodegen.js +150 -0
- package/build/plugin/src/ios/cng/liveActivityCodegen.js.map +1 -0
- package/build/plugin/src/ios/cng/swiftTypes.d.ts +4 -0
- package/build/plugin/src/ios/cng/swiftTypes.d.ts.map +1 -0
- package/build/plugin/src/ios/cng/swiftTypes.js +34 -0
- package/build/plugin/src/ios/cng/swiftTypes.js.map +1 -0
- package/build/plugin/src/ios/cng/withExpoTargetsGenerated.d.ts +16 -0
- package/build/plugin/src/ios/cng/withExpoTargetsGenerated.d.ts.map +1 -0
- package/build/plugin/src/ios/cng/withExpoTargetsGenerated.js +311 -0
- package/build/plugin/src/ios/cng/withExpoTargetsGenerated.js.map +1 -0
- package/build/plugin/src/ios/config-plugins/withEASCredentials.d.ts +5 -5
- package/build/plugin/src/ios/config-plugins/withEASCredentials.d.ts.map +1 -1
- package/build/plugin/src/ios/config-plugins/withEASCredentials.js +9 -9
- package/build/plugin/src/ios/config-plugins/withEASCredentials.js.map +1 -1
- package/build/plugin/src/ios/config-plugins/withEntitlements.d.ts +5 -2
- package/build/plugin/src/ios/config-plugins/withEntitlements.d.ts.map +1 -1
- package/build/plugin/src/ios/config-plugins/withEntitlements.js +59 -44
- package/build/plugin/src/ios/config-plugins/withEntitlements.js.map +1 -1
- package/build/plugin/src/ios/config-plugins/withIOSTarget.d.ts +4 -4
- package/build/plugin/src/ios/config-plugins/withIOSTarget.d.ts.map +1 -1
- package/build/plugin/src/ios/config-plugins/withIOSTarget.js +210 -165
- package/build/plugin/src/ios/config-plugins/withIOSTarget.js.map +1 -1
- package/build/plugin/src/ios/config-plugins/withPodfile.d.ts +7 -3
- package/build/plugin/src/ios/config-plugins/withPodfile.d.ts.map +1 -1
- package/build/plugin/src/ios/config-plugins/withPodfile.js +39 -167
- package/build/plugin/src/ios/config-plugins/withPodfile.js.map +1 -1
- package/build/plugin/src/ios/config-plugins/withXcodeChanges.d.ts +9 -18
- package/build/plugin/src/ios/config-plugins/withXcodeChanges.d.ts.map +1 -1
- package/build/plugin/src/ios/config-plugins/withXcodeChanges.js +62 -730
- package/build/plugin/src/ios/config-plugins/withXcodeChanges.js.map +1 -1
- package/build/plugin/src/ios/observe/index.d.ts +7 -0
- package/build/plugin/src/ios/observe/index.d.ts.map +1 -0
- package/build/plugin/src/ios/observe/index.js +11 -0
- package/build/plugin/src/ios/observe/index.js.map +1 -0
- package/build/plugin/src/ios/observe/podsRb.d.ts +9 -0
- package/build/plugin/src/ios/observe/podsRb.d.ts.map +1 -0
- package/build/plugin/src/ios/observe/podsRb.js +43 -0
- package/build/plugin/src/ios/observe/podsRb.js.map +1 -0
- package/build/plugin/src/ios/observe/workspace.d.ts +48 -0
- package/build/plugin/src/ios/observe/workspace.d.ts.map +1 -0
- package/build/plugin/src/ios/observe/workspace.js +107 -0
- package/build/plugin/src/ios/observe/workspace.js.map +1 -0
- package/build/plugin/src/ios/plan/assets.d.ts +13 -0
- package/build/plugin/src/ios/plan/assets.d.ts.map +1 -0
- package/build/plugin/src/ios/plan/assets.js +112 -0
- package/build/plugin/src/ios/plan/assets.js.map +1 -0
- package/build/plugin/src/ios/plan/buildInfoPlist.d.ts +38 -0
- package/build/plugin/src/ios/plan/buildInfoPlist.d.ts.map +1 -0
- package/build/plugin/src/ios/plan/buildInfoPlist.js +331 -0
- package/build/plugin/src/ios/plan/buildInfoPlist.js.map +1 -0
- package/build/plugin/src/ios/plan/buildSettings.d.ts +9 -0
- package/build/plugin/src/ios/plan/buildSettings.d.ts.map +1 -0
- package/build/plugin/src/ios/plan/buildSettings.js +218 -0
- package/build/plugin/src/ios/plan/buildSettings.js.map +1 -0
- package/build/plugin/src/ios/plan/bundleReactNative.d.ts +7 -0
- package/build/plugin/src/ios/plan/bundleReactNative.d.ts.map +1 -0
- package/build/plugin/src/ios/plan/bundleReactNative.js +21 -0
- package/build/plugin/src/ios/plan/bundleReactNative.js.map +1 -0
- package/build/plugin/src/ios/plan/bundleResources.d.ts +11 -0
- package/build/plugin/src/ios/plan/bundleResources.d.ts.map +1 -0
- package/build/plugin/src/ios/plan/bundleResources.js +23 -0
- package/build/plugin/src/ios/plan/bundleResources.js.map +1 -0
- package/build/plugin/src/ios/plan/compose.d.ts +7 -0
- package/build/plugin/src/ios/plan/compose.d.ts.map +1 -0
- package/build/plugin/src/ios/plan/compose.js +53 -0
- package/build/plugin/src/ios/plan/compose.js.map +1 -0
- package/build/plugin/src/ios/plan/embed.d.ts +8 -0
- package/build/plugin/src/ios/plan/embed.d.ts.map +1 -0
- package/build/plugin/src/ios/plan/embed.js +13 -0
- package/build/plugin/src/ios/plan/embed.js.map +1 -0
- package/build/plugin/src/ios/plan/entitlements.d.ts +19 -0
- package/build/plugin/src/ios/plan/entitlements.d.ts.map +1 -0
- package/build/plugin/src/ios/plan/entitlements.js +72 -0
- package/build/plugin/src/ios/plan/entitlements.js.map +1 -0
- package/build/plugin/src/ios/plan/identity.d.ts +9 -0
- package/build/plugin/src/ios/plan/identity.d.ts.map +1 -0
- package/build/plugin/src/ios/plan/identity.js +61 -0
- package/build/plugin/src/ios/plan/identity.js.map +1 -0
- package/build/plugin/src/ios/plan/index.d.ts +21 -0
- package/build/plugin/src/ios/plan/index.d.ts.map +1 -0
- package/build/plugin/src/ios/plan/index.js +36 -0
- package/build/plugin/src/ios/plan/index.js.map +1 -0
- package/build/plugin/src/ios/plan/infoPlist.d.ts +8 -0
- package/build/plugin/src/ios/plan/infoPlist.d.ts.map +1 -0
- package/build/plugin/src/ios/plan/infoPlist.js +96 -0
- package/build/plugin/src/ios/plan/infoPlist.js.map +1 -0
- package/build/plugin/src/ios/plan/podfile.d.ts +18 -0
- package/build/plugin/src/ios/plan/podfile.d.ts.map +1 -0
- package/build/plugin/src/ios/plan/podfile.js +22 -0
- package/build/plugin/src/ios/plan/podfile.js.map +1 -0
- package/build/plugin/src/ios/plan/safari.d.ts +14 -0
- package/build/plugin/src/ios/plan/safari.d.ts.map +1 -0
- package/build/plugin/src/ios/plan/safari.js +32 -0
- package/build/plugin/src/ios/plan/safari.js.map +1 -0
- package/build/plugin/src/ios/plan/swiftSources.d.ts +13 -0
- package/build/plugin/src/ios/plan/swiftSources.d.ts.map +1 -0
- package/build/plugin/src/ios/plan/swiftSources.js +167 -0
- package/build/plugin/src/ios/plan/swiftSources.js.map +1 -0
- package/build/plugin/src/ios/plan/types.d.ts +191 -0
- package/build/plugin/src/ios/plan/types.d.ts.map +1 -0
- package/build/plugin/src/ios/plan/types.js +3 -0
- package/build/plugin/src/ios/plan/types.js.map +1 -0
- package/build/plugin/src/ios/utils/asset.d.ts +4 -0
- package/build/plugin/src/ios/utils/asset.d.ts.map +1 -1
- package/build/plugin/src/ios/utils/asset.js +150 -161
- package/build/plugin/src/ios/utils/asset.js.map +1 -1
- package/build/plugin/src/ios/utils/file.d.ts.map +1 -1
- package/build/plugin/src/ios/utils/file.js +16 -17
- package/build/plugin/src/ios/utils/file.js.map +1 -1
- package/build/plugin/src/ios/utils/index.d.ts +9 -6
- package/build/plugin/src/ios/utils/index.d.ts.map +1 -1
- package/build/plugin/src/ios/utils/index.js +10 -7
- package/build/plugin/src/ios/utils/index.js.map +1 -1
- package/build/plugin/src/ios/utils/paths.d.ts +23 -35
- package/build/plugin/src/ios/utils/paths.d.ts.map +1 -1
- package/build/plugin/src/ios/utils/paths.js +38 -37
- package/build/plugin/src/ios/utils/paths.js.map +1 -1
- package/build/plugin/src/ios/utils/plist.d.ts +1 -0
- package/build/plugin/src/ios/utils/plist.d.ts.map +1 -1
- package/build/plugin/src/ios/utils/plist.js +6 -29
- package/build/plugin/src/ios/utils/plist.js.map +1 -1
- package/build/plugin/src/ios/utils/reactNativeSwift.d.ts +1 -0
- package/build/plugin/src/ios/utils/reactNativeSwift.d.ts.map +1 -1
- package/build/plugin/src/ios/utils/reactNativeSwift.js +101 -166
- package/build/plugin/src/ios/utils/reactNativeSwift.js.map +1 -1
- package/build/plugin/src/ios/utils/safari.d.ts.map +1 -1
- package/build/plugin/src/ios/utils/safari.js +155 -97
- package/build/plugin/src/ios/utils/safari.js.map +1 -1
- package/build/plugin/src/logger.d.ts +4 -4
- package/build/plugin/src/logger.d.ts.map +1 -1
- package/build/plugin/src/logger.js +8 -15
- package/build/plugin/src/logger.js.map +1 -1
- package/build/plugin/src/withTargetsDir.d.ts +1 -1
- package/build/plugin/src/withTargetsDir.d.ts.map +1 -1
- package/build/plugin/src/withTargetsDir.js +216 -157
- package/build/plugin/src/withTargetsDir.js.map +1 -1
- package/build/src/Target.d.ts +15 -11
- package/build/src/Target.d.ts.map +1 -1
- package/build/src/Target.js +127 -132
- package/build/src/Target.js.map +1 -1
- package/build/src/index.d.ts +15 -9
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js +46 -34
- package/build/src/index.js.map +1 -1
- package/build/src/modules/contentBlocker/index.d.ts +9 -0
- package/build/src/modules/contentBlocker/index.d.ts.map +1 -0
- package/build/src/modules/contentBlocker/index.js +29 -0
- package/build/src/modules/contentBlocker/index.js.map +1 -0
- package/build/src/modules/extension/index.d.ts +22 -0
- package/build/src/modules/extension/index.d.ts.map +1 -1
- package/build/src/modules/extension/index.js +54 -21
- package/build/src/modules/extension/index.js.map +1 -1
- package/build/src/modules/fileProvider/index.d.ts +12 -0
- package/build/src/modules/fileProvider/index.d.ts.map +1 -0
- package/build/src/modules/fileProvider/index.js +38 -0
- package/build/src/modules/fileProvider/index.js.map +1 -0
- package/build/src/modules/liveActivity/index.d.ts +21 -0
- package/build/src/modules/liveActivity/index.d.ts.map +1 -0
- package/build/src/modules/liveActivity/index.js +60 -0
- package/build/src/modules/liveActivity/index.js.map +1 -0
- package/build/src/modules/messages/index.d.ts +8 -0
- package/build/src/modules/messages/index.d.ts.map +1 -1
- package/build/src/modules/messages/index.js +38 -13
- package/build/src/modules/messages/index.js.map +1 -1
- package/build/src/modules/safari/bootstrapWeb.d.ts +7 -0
- package/build/src/modules/safari/bootstrapWeb.d.ts.map +1 -0
- package/build/src/modules/safari/bootstrapWeb.js +12 -0
- package/build/src/modules/safari/bootstrapWeb.js.map +1 -0
- package/build/src/modules/safari/bootstrapWeb.web.d.ts +9 -0
- package/build/src/modules/safari/bootstrapWeb.web.d.ts.map +1 -0
- package/build/src/modules/safari/bootstrapWeb.web.js +24 -0
- package/build/src/modules/safari/bootstrapWeb.web.js.map +1 -0
- package/build/src/modules/safari/index.d.ts +5 -5
- package/build/src/modules/safari/index.d.ts.map +1 -1
- package/build/src/modules/safari/index.js +19 -66
- package/build/src/modules/safari/index.js.map +1 -1
- package/build/src/modules/storage/index.d.ts.map +1 -1
- package/build/src/modules/storage/index.js +8 -12
- package/build/src/modules/storage/index.js.map +1 -1
- package/build/src/modules/targetsConfig.d.ts +6 -0
- package/build/src/modules/targetsConfig.d.ts.map +1 -0
- package/build/src/modules/targetsConfig.js +56 -0
- package/build/src/modules/targetsConfig.js.map +1 -0
- package/expo-module.config.json +4 -1
- package/ios/ExpoTargetsContentBlockerModule.swift +20 -0
- package/ios/ExpoTargetsExtension.podspec +1 -3
- package/ios/ExpoTargetsFileProviderModule.swift +45 -0
- package/ios/ExpoTargetsLiveActivityBridge.swift +51 -0
- package/ios/ExpoTargetsLiveActivityModule.swift +101 -0
- package/ios/ExpoTargetsMessagesModule.swift +31 -0
- package/ios/ExpoTargetsStorage.podspec +10 -4
- package/metro/build/index.d.ts +1 -1
- package/metro/build/index.d.ts.map +1 -1
- package/metro/build/index.js +2 -1
- package/metro/build/index.js.map +1 -1
- package/metro/build/withTargetsMetro.d.ts +14 -0
- package/metro/build/withTargetsMetro.d.ts.map +1 -1
- package/metro/build/withTargetsMetro.js +75 -23
- package/metro/build/withTargetsMetro.js.map +1 -1
- package/package.json +10 -8
- package/plugin/build/android/widgetSourceSets.d.ts +10 -0
- package/plugin/build/android/widgetSourceSets.d.ts.map +1 -0
- package/plugin/build/android/widgetSourceSets.js +167 -0
- package/plugin/build/android/widgetSourceSets.js.map +1 -0
- package/plugin/build/android/withAndroidAppBuildGradle.d.ts +1 -1
- package/plugin/build/android/withAndroidAppBuildGradle.d.ts.map +1 -1
- package/plugin/build/android/withAndroidAppBuildGradle.js +0 -1
- package/plugin/build/android/withAndroidAppBuildGradle.js.map +1 -1
- package/plugin/build/android/withAndroidTarget.d.ts +1 -1
- package/plugin/build/android/withAndroidTarget.d.ts.map +1 -1
- package/plugin/build/android/withAndroidTarget.js +0 -1
- package/plugin/build/android/withAndroidTarget.js.map +1 -1
- package/plugin/build/android/withAndroidWidget.d.ts +1 -1
- package/plugin/build/android/withAndroidWidget.d.ts.map +1 -1
- package/plugin/build/android/withAndroidWidget.js +174 -249
- package/plugin/build/android/withAndroidWidget.js.map +1 -1
- package/plugin/build/config.d.ts +52 -10
- package/plugin/build/config.d.ts.map +1 -1
- package/plugin/build/config.js +49 -1
- package/plugin/build/config.js.map +1 -1
- package/plugin/build/domain/appGroups.d.ts +19 -0
- package/plugin/build/domain/appGroups.d.ts.map +1 -0
- package/plugin/build/domain/appGroups.js +44 -0
- package/plugin/build/domain/appGroups.js.map +1 -0
- package/plugin/build/domain/bundleIds.d.ts +9 -0
- package/plugin/build/domain/bundleIds.d.ts.map +1 -0
- package/plugin/build/domain/bundleIds.js +10 -0
- package/plugin/build/domain/bundleIds.js.map +1 -0
- package/plugin/build/domain/characteristics.d.ts +44 -0
- package/plugin/build/domain/characteristics.d.ts.map +1 -0
- package/plugin/build/domain/characteristics.js +781 -0
- package/plugin/build/domain/characteristics.js.map +1 -0
- package/plugin/build/domain/deployment.d.ts +14 -0
- package/plugin/build/domain/deployment.d.ts.map +1 -0
- package/plugin/build/domain/deployment.js +14 -0
- package/plugin/build/domain/deployment.js.map +1 -0
- package/plugin/build/domain/index.d.ts +14 -0
- package/plugin/build/domain/index.d.ts.map +1 -0
- package/plugin/build/domain/index.js +37 -0
- package/plugin/build/domain/index.js.map +1 -0
- package/plugin/build/domain/rnCompat.d.ts +16 -0
- package/plugin/build/domain/rnCompat.d.ts.map +1 -0
- package/plugin/build/domain/rnCompat.js +37 -0
- package/plugin/build/domain/rnCompat.js.map +1 -0
- package/plugin/build/domain/types.d.ts +9 -0
- package/plugin/build/domain/types.d.ts.map +1 -0
- package/plugin/build/domain/types.js +10 -0
- package/plugin/build/domain/types.js.map +1 -0
- package/plugin/build/index.d.ts +2 -2
- package/plugin/build/index.d.ts.map +1 -1
- package/plugin/build/index.js +5 -0
- package/plugin/build/index.js.map +1 -1
- package/plugin/build/ios/apply/fs/applyTargetPlan.d.ts +11 -0
- package/plugin/build/ios/apply/fs/applyTargetPlan.d.ts.map +1 -0
- package/plugin/build/ios/apply/fs/applyTargetPlan.js +77 -0
- package/plugin/build/ios/apply/fs/applyTargetPlan.js.map +1 -0
- package/plugin/build/ios/apply/fs/assets.d.ts +7 -0
- package/plugin/build/ios/apply/fs/assets.d.ts.map +1 -0
- package/plugin/build/ios/apply/fs/assets.js +50 -0
- package/plugin/build/ios/apply/fs/assets.js.map +1 -0
- package/plugin/build/ios/apply/fs/entitlements.d.ts +7 -0
- package/plugin/build/ios/apply/fs/entitlements.d.ts.map +1 -0
- package/plugin/build/ios/apply/fs/entitlements.js +40 -0
- package/plugin/build/ios/apply/fs/entitlements.js.map +1 -0
- package/plugin/build/ios/apply/fs/index.d.ts +14 -0
- package/plugin/build/ios/apply/fs/index.d.ts.map +1 -0
- package/plugin/build/ios/apply/fs/index.js +24 -0
- package/plugin/build/ios/apply/fs/index.js.map +1 -0
- package/plugin/build/ios/apply/fs/infoPlist.d.ts +6 -0
- package/plugin/build/ios/apply/fs/infoPlist.d.ts.map +1 -0
- package/plugin/build/ios/apply/fs/infoPlist.js +35 -0
- package/plugin/build/ios/apply/fs/infoPlist.js.map +1 -0
- package/plugin/build/ios/apply/fs/safari.d.ts +7 -0
- package/plugin/build/ios/apply/fs/safari.d.ts.map +1 -0
- package/plugin/build/ios/apply/fs/safari.js +45 -0
- package/plugin/build/ios/apply/fs/safari.js.map +1 -0
- package/plugin/build/ios/apply/fs/stickers.d.ts +8 -0
- package/plugin/build/ios/apply/fs/stickers.d.ts.map +1 -0
- package/plugin/build/ios/apply/fs/stickers.js +72 -0
- package/plugin/build/ios/apply/fs/stickers.js.map +1 -0
- package/plugin/build/ios/apply/fs/swift.d.ts +9 -0
- package/plugin/build/ios/apply/fs/swift.d.ts.map +1 -0
- package/plugin/build/ios/apply/fs/swift.js +63 -0
- package/plugin/build/ios/apply/fs/swift.js.map +1 -0
- package/plugin/build/ios/apply/pbx/applyTargetPlan.d.ts +18 -0
- package/plugin/build/ios/apply/pbx/applyTargetPlan.d.ts.map +1 -0
- package/plugin/build/ios/apply/pbx/applyTargetPlan.js +308 -0
- package/plugin/build/ios/apply/pbx/applyTargetPlan.js.map +1 -0
- package/plugin/build/ios/apply/pbx/buildPhases.d.ts +30 -0
- package/plugin/build/ios/apply/pbx/buildPhases.d.ts.map +1 -0
- package/plugin/build/ios/apply/pbx/buildPhases.js +101 -0
- package/plugin/build/ios/apply/pbx/buildPhases.js.map +1 -0
- package/plugin/build/ios/apply/pbx/buildSettings.d.ts +37 -0
- package/plugin/build/ios/apply/pbx/buildSettings.d.ts.map +1 -0
- package/plugin/build/ios/apply/pbx/buildSettings.js +80 -0
- package/plugin/build/ios/apply/pbx/buildSettings.js.map +1 -0
- package/plugin/build/ios/apply/pbx/bundleReactNative.d.ts +19 -0
- package/plugin/build/ios/apply/pbx/bundleReactNative.d.ts.map +1 -0
- package/plugin/build/ios/apply/pbx/bundleReactNative.js +136 -0
- package/plugin/build/ios/apply/pbx/bundleReactNative.js.map +1 -0
- package/plugin/build/ios/apply/pbx/copyFrameworksIntoAppClip.d.ts +25 -0
- package/plugin/build/ios/apply/pbx/copyFrameworksIntoAppClip.d.ts.map +1 -0
- package/plugin/build/ios/apply/pbx/copyFrameworksIntoAppClip.js +196 -0
- package/plugin/build/ios/apply/pbx/copyFrameworksIntoAppClip.js.map +1 -0
- package/plugin/build/ios/apply/pbx/embed.d.ts +63 -0
- package/plugin/build/ios/apply/pbx/embed.d.ts.map +1 -0
- package/plugin/build/ios/apply/pbx/embed.js +572 -0
- package/plugin/build/ios/apply/pbx/embed.js.map +1 -0
- package/plugin/build/ios/apply/pbx/fileRefs.d.ts +26 -0
- package/plugin/build/ios/apply/pbx/fileRefs.d.ts.map +1 -0
- package/plugin/build/ios/apply/pbx/fileRefs.js +122 -0
- package/plugin/build/ios/apply/pbx/fileRefs.js.map +1 -0
- package/plugin/build/ios/apply/pbx/groups.d.ts +25 -0
- package/plugin/build/ios/apply/pbx/groups.d.ts.map +1 -0
- package/plugin/build/ios/apply/pbx/groups.js +84 -0
- package/plugin/build/ios/apply/pbx/groups.js.map +1 -0
- package/plugin/build/ios/apply/pbx/index.d.ts +17 -0
- package/plugin/build/ios/apply/pbx/index.d.ts.map +1 -0
- package/plugin/build/ios/apply/pbx/index.js +50 -0
- package/plugin/build/ios/apply/pbx/index.js.map +1 -0
- package/plugin/build/ios/apply/pbx/targetLifecycle.d.ts +59 -0
- package/plugin/build/ios/apply/pbx/targetLifecycle.d.ts.map +1 -0
- package/plugin/build/ios/apply/pbx/targetLifecycle.js +185 -0
- package/plugin/build/ios/apply/pbx/targetLifecycle.js.map +1 -0
- package/plugin/build/ios/apply/pbx/types.d.ts +12 -0
- package/plugin/build/ios/apply/pbx/types.d.ts.map +1 -0
- package/plugin/build/ios/apply/pbx/types.js +6 -0
- package/plugin/build/ios/apply/pbx/types.js.map +1 -0
- package/plugin/build/ios/apply/podfile/applyPodfilePlan.d.ts +12 -0
- package/plugin/build/ios/apply/podfile/applyPodfilePlan.d.ts.map +1 -0
- package/plugin/build/ios/apply/podfile/applyPodfilePlan.js +76 -0
- package/plugin/build/ios/apply/podfile/applyPodfilePlan.js.map +1 -0
- package/plugin/build/ios/apply/podfile/index.d.ts +11 -0
- package/plugin/build/ios/apply/podfile/index.d.ts.map +1 -0
- package/plugin/build/ios/apply/podfile/index.js +32 -0
- package/plugin/build/ios/apply/podfile/index.js.map +1 -0
- package/plugin/build/ios/{utils → apply/podfile}/podfile.d.ts +21 -5
- package/plugin/build/ios/apply/podfile/podfile.d.ts.map +1 -0
- package/{build/plugin/src/ios/utils → plugin/build/ios/apply/podfile}/podfile.js +310 -251
- package/plugin/build/ios/apply/podfile/podfile.js.map +1 -0
- package/plugin/build/ios/apply/podfile/scan.d.ts +40 -0
- package/plugin/build/ios/apply/podfile/scan.d.ts.map +1 -0
- package/plugin/build/ios/apply/podfile/scan.js +129 -0
- package/plugin/build/ios/apply/podfile/scan.js.map +1 -0
- package/plugin/build/ios/cng/appShortcutsCodegen.d.ts +6 -0
- package/plugin/build/ios/cng/appShortcutsCodegen.d.ts.map +1 -0
- package/plugin/build/ios/cng/appShortcutsCodegen.js +79 -0
- package/plugin/build/ios/cng/appShortcutsCodegen.js.map +1 -0
- package/plugin/build/ios/cng/liveActivityCodegen.d.ts +6 -0
- package/plugin/build/ios/cng/liveActivityCodegen.d.ts.map +1 -0
- package/plugin/build/ios/cng/liveActivityCodegen.js +150 -0
- package/plugin/build/ios/cng/liveActivityCodegen.js.map +1 -0
- package/plugin/build/ios/cng/swiftTypes.d.ts +4 -0
- package/plugin/build/ios/cng/swiftTypes.d.ts.map +1 -0
- package/plugin/build/ios/cng/swiftTypes.js +34 -0
- package/plugin/build/ios/cng/swiftTypes.js.map +1 -0
- package/plugin/build/ios/cng/withExpoTargetsGenerated.d.ts +16 -0
- package/plugin/build/ios/cng/withExpoTargetsGenerated.d.ts.map +1 -0
- package/plugin/build/ios/cng/withExpoTargetsGenerated.js +311 -0
- package/plugin/build/ios/cng/withExpoTargetsGenerated.js.map +1 -0
- package/plugin/build/ios/config-plugins/withEASCredentials.d.ts +5 -5
- package/plugin/build/ios/config-plugins/withEASCredentials.d.ts.map +1 -1
- package/plugin/build/ios/config-plugins/withEASCredentials.js +9 -9
- package/plugin/build/ios/config-plugins/withEASCredentials.js.map +1 -1
- package/plugin/build/ios/config-plugins/withEntitlements.d.ts +5 -2
- package/plugin/build/ios/config-plugins/withEntitlements.d.ts.map +1 -1
- package/plugin/build/ios/config-plugins/withEntitlements.js +59 -44
- package/plugin/build/ios/config-plugins/withEntitlements.js.map +1 -1
- package/plugin/build/ios/config-plugins/withIOSTarget.d.ts +4 -4
- package/plugin/build/ios/config-plugins/withIOSTarget.d.ts.map +1 -1
- package/plugin/build/ios/config-plugins/withIOSTarget.js +210 -165
- package/plugin/build/ios/config-plugins/withIOSTarget.js.map +1 -1
- package/plugin/build/ios/config-plugins/withPodfile.d.ts +7 -3
- package/plugin/build/ios/config-plugins/withPodfile.d.ts.map +1 -1
- package/plugin/build/ios/config-plugins/withPodfile.js +39 -167
- package/plugin/build/ios/config-plugins/withPodfile.js.map +1 -1
- package/plugin/build/ios/config-plugins/withXcodeChanges.d.ts +9 -18
- package/plugin/build/ios/config-plugins/withXcodeChanges.d.ts.map +1 -1
- package/plugin/build/ios/config-plugins/withXcodeChanges.js +62 -730
- package/plugin/build/ios/config-plugins/withXcodeChanges.js.map +1 -1
- package/plugin/build/ios/observe/index.d.ts +7 -0
- package/plugin/build/ios/observe/index.d.ts.map +1 -0
- package/plugin/build/ios/observe/index.js +11 -0
- package/plugin/build/ios/observe/index.js.map +1 -0
- package/plugin/build/ios/observe/podsRb.d.ts +9 -0
- package/plugin/build/ios/observe/podsRb.d.ts.map +1 -0
- package/plugin/build/ios/observe/podsRb.js +43 -0
- package/plugin/build/ios/observe/podsRb.js.map +1 -0
- package/plugin/build/ios/observe/workspace.d.ts +48 -0
- package/plugin/build/ios/observe/workspace.d.ts.map +1 -0
- package/plugin/build/ios/observe/workspace.js +107 -0
- package/plugin/build/ios/observe/workspace.js.map +1 -0
- package/plugin/build/ios/plan/assets.d.ts +13 -0
- package/plugin/build/ios/plan/assets.d.ts.map +1 -0
- package/plugin/build/ios/plan/assets.js +112 -0
- package/plugin/build/ios/plan/assets.js.map +1 -0
- package/plugin/build/ios/plan/buildInfoPlist.d.ts +38 -0
- package/plugin/build/ios/plan/buildInfoPlist.d.ts.map +1 -0
- package/plugin/build/ios/plan/buildInfoPlist.js +331 -0
- package/plugin/build/ios/plan/buildInfoPlist.js.map +1 -0
- package/plugin/build/ios/plan/buildSettings.d.ts +9 -0
- package/plugin/build/ios/plan/buildSettings.d.ts.map +1 -0
- package/plugin/build/ios/plan/buildSettings.js +218 -0
- package/plugin/build/ios/plan/buildSettings.js.map +1 -0
- package/plugin/build/ios/plan/bundleReactNative.d.ts +7 -0
- package/plugin/build/ios/plan/bundleReactNative.d.ts.map +1 -0
- package/plugin/build/ios/plan/bundleReactNative.js +21 -0
- package/plugin/build/ios/plan/bundleReactNative.js.map +1 -0
- package/plugin/build/ios/plan/bundleResources.d.ts +11 -0
- package/plugin/build/ios/plan/bundleResources.d.ts.map +1 -0
- package/plugin/build/ios/plan/bundleResources.js +23 -0
- package/plugin/build/ios/plan/bundleResources.js.map +1 -0
- package/plugin/build/ios/plan/compose.d.ts +7 -0
- package/plugin/build/ios/plan/compose.d.ts.map +1 -0
- package/plugin/build/ios/plan/compose.js +53 -0
- package/plugin/build/ios/plan/compose.js.map +1 -0
- package/plugin/build/ios/plan/embed.d.ts +8 -0
- package/plugin/build/ios/plan/embed.d.ts.map +1 -0
- package/plugin/build/ios/plan/embed.js +13 -0
- package/plugin/build/ios/plan/embed.js.map +1 -0
- package/plugin/build/ios/plan/entitlements.d.ts +19 -0
- package/plugin/build/ios/plan/entitlements.d.ts.map +1 -0
- package/plugin/build/ios/plan/entitlements.js +72 -0
- package/plugin/build/ios/plan/entitlements.js.map +1 -0
- package/plugin/build/ios/plan/identity.d.ts +9 -0
- package/plugin/build/ios/plan/identity.d.ts.map +1 -0
- package/plugin/build/ios/plan/identity.js +61 -0
- package/plugin/build/ios/plan/identity.js.map +1 -0
- package/plugin/build/ios/plan/index.d.ts +21 -0
- package/plugin/build/ios/plan/index.d.ts.map +1 -0
- package/plugin/build/ios/plan/index.js +36 -0
- package/plugin/build/ios/plan/index.js.map +1 -0
- package/plugin/build/ios/plan/infoPlist.d.ts +8 -0
- package/plugin/build/ios/plan/infoPlist.d.ts.map +1 -0
- package/plugin/build/ios/plan/infoPlist.js +96 -0
- package/plugin/build/ios/plan/infoPlist.js.map +1 -0
- package/plugin/build/ios/plan/podfile.d.ts +18 -0
- package/plugin/build/ios/plan/podfile.d.ts.map +1 -0
- package/plugin/build/ios/plan/podfile.js +22 -0
- package/plugin/build/ios/plan/podfile.js.map +1 -0
- package/plugin/build/ios/plan/safari.d.ts +14 -0
- package/plugin/build/ios/plan/safari.d.ts.map +1 -0
- package/plugin/build/ios/plan/safari.js +32 -0
- package/plugin/build/ios/plan/safari.js.map +1 -0
- package/plugin/build/ios/plan/swiftSources.d.ts +13 -0
- package/plugin/build/ios/plan/swiftSources.d.ts.map +1 -0
- package/plugin/build/ios/plan/swiftSources.js +167 -0
- package/plugin/build/ios/plan/swiftSources.js.map +1 -0
- package/plugin/build/ios/plan/types.d.ts +191 -0
- package/plugin/build/ios/plan/types.d.ts.map +1 -0
- package/plugin/build/ios/plan/types.js +3 -0
- package/plugin/build/ios/plan/types.js.map +1 -0
- package/plugin/build/ios/templates/ReactNativeClipApp.swift +48 -0
- package/plugin/build/ios/templates/ReactNativeViewController.swift +9 -7
- package/plugin/build/ios/templates/clip-extension-data.swift +4 -6
- package/plugin/build/ios/utils/asset.d.ts +4 -0
- package/plugin/build/ios/utils/asset.d.ts.map +1 -1
- package/plugin/build/ios/utils/asset.js +150 -161
- package/plugin/build/ios/utils/asset.js.map +1 -1
- package/plugin/build/ios/utils/file.d.ts.map +1 -1
- package/plugin/build/ios/utils/file.js +16 -17
- package/plugin/build/ios/utils/file.js.map +1 -1
- package/plugin/build/ios/utils/index.d.ts +9 -6
- package/plugin/build/ios/utils/index.d.ts.map +1 -1
- package/plugin/build/ios/utils/index.js +10 -7
- package/plugin/build/ios/utils/index.js.map +1 -1
- package/plugin/build/ios/utils/paths.d.ts +23 -35
- package/plugin/build/ios/utils/paths.d.ts.map +1 -1
- package/plugin/build/ios/utils/paths.js +38 -37
- package/plugin/build/ios/utils/paths.js.map +1 -1
- package/plugin/build/ios/utils/plist.d.ts +1 -0
- package/plugin/build/ios/utils/plist.d.ts.map +1 -1
- package/plugin/build/ios/utils/plist.js +6 -29
- package/plugin/build/ios/utils/plist.js.map +1 -1
- package/plugin/build/ios/utils/reactNativeSwift.d.ts +1 -0
- package/plugin/build/ios/utils/reactNativeSwift.d.ts.map +1 -1
- package/plugin/build/ios/utils/reactNativeSwift.js +101 -166
- package/plugin/build/ios/utils/reactNativeSwift.js.map +1 -1
- package/plugin/build/ios/utils/safari.d.ts.map +1 -1
- package/plugin/build/ios/utils/safari.js +155 -97
- package/plugin/build/ios/utils/safari.js.map +1 -1
- package/plugin/build/logger.d.ts +4 -4
- package/plugin/build/logger.d.ts.map +1 -1
- package/plugin/build/logger.js +8 -15
- package/plugin/build/logger.js.map +1 -1
- package/plugin/build/withTargetsDir.d.ts +1 -1
- package/plugin/build/withTargetsDir.d.ts.map +1 -1
- package/plugin/build/withTargetsDir.js +216 -157
- package/plugin/build/withTargetsDir.js.map +1 -1
- package/build/plugin/src/ios/config-plugins/withIosColorset.d.ts +0 -8
- package/build/plugin/src/ios/config-plugins/withIosColorset.d.ts.map +0 -1
- package/build/plugin/src/ios/config-plugins/withIosColorset.js +0 -25
- package/build/plugin/src/ios/config-plugins/withIosColorset.js.map +0 -1
- package/build/plugin/src/ios/config-plugins/withIosStickerPack.d.ts +0 -8
- package/build/plugin/src/ios/config-plugins/withIosStickerPack.d.ts.map +0 -1
- package/build/plugin/src/ios/config-plugins/withIosStickerPack.js +0 -52
- package/build/plugin/src/ios/config-plugins/withIosStickerPack.js.map +0 -1
- package/build/plugin/src/ios/target.d.ts +0 -44
- package/build/plugin/src/ios/target.d.ts.map +0 -1
- package/build/plugin/src/ios/target.js +0 -670
- package/build/plugin/src/ios/target.js.map +0 -1
- package/build/plugin/src/ios/utils/podfile.d.ts.map +0 -1
- package/build/plugin/src/ios/utils/podfile.js.map +0 -1
- package/build/plugin/src/ios/utils/xcode.d.ts +0 -185
- package/build/plugin/src/ios/utils/xcode.d.ts.map +0 -1
- package/build/plugin/src/ios/utils/xcode.js +0 -706
- package/build/plugin/src/ios/utils/xcode.js.map +0 -1
- package/build/plugin/src/parseTargetConfig.d.ts +0 -3
- package/build/plugin/src/parseTargetConfig.d.ts.map +0 -1
- package/build/plugin/src/parseTargetConfig.js +0 -113
- package/build/plugin/src/parseTargetConfig.js.map +0 -1
- package/ios/Tests/.swiftlint.yml +0 -52
- package/ios/Tests/Helpers/MockExtensionContext.swift +0 -58
- package/ios/Tests/Helpers/MockUserDefaults.swift +0 -70
- package/ios/Tests/Helpers/MockWidgetCenter.swift +0 -71
- package/ios/Tests/Helpers/TestHelpers.swift +0 -90
- package/ios/Tests/Integration/TargetIntegrationTests.swift +0 -478
- package/ios/Tests/Main/AllTests.swift +0 -80
- package/ios/Tests/Package.swift +0 -66
- package/ios/Tests/Performance/StoragePerformanceTests.swift +0 -461
- package/ios/Tests/Unit/Extension/ExpoTargetsExtensionModuleTests.swift +0 -501
- package/ios/Tests/Unit/Storage/ExpoTargetsStorageModuleTests.swift +0 -578
- package/ios/Tests/Unit/Template/ShareExtensionTemplateTests.swift +0 -421
- package/ios/Tests/XCTestPlan.xctestplan +0 -87
- package/plugin/build/ios/config-plugins/withIosColorset.d.ts +0 -8
- package/plugin/build/ios/config-plugins/withIosColorset.d.ts.map +0 -1
- package/plugin/build/ios/config-plugins/withIosColorset.js +0 -25
- package/plugin/build/ios/config-plugins/withIosColorset.js.map +0 -1
- package/plugin/build/ios/config-plugins/withIosStickerPack.d.ts +0 -8
- package/plugin/build/ios/config-plugins/withIosStickerPack.d.ts.map +0 -1
- package/plugin/build/ios/config-plugins/withIosStickerPack.js +0 -52
- package/plugin/build/ios/config-plugins/withIosStickerPack.js.map +0 -1
- package/plugin/build/ios/target.d.ts +0 -44
- package/plugin/build/ios/target.d.ts.map +0 -1
- package/plugin/build/ios/target.js +0 -670
- package/plugin/build/ios/target.js.map +0 -1
- package/plugin/build/ios/utils/podfile.d.ts.map +0 -1
- package/plugin/build/ios/utils/podfile.js.map +0 -1
- package/plugin/build/ios/utils/xcode.d.ts +0 -185
- package/plugin/build/ios/utils/xcode.d.ts.map +0 -1
- package/plugin/build/ios/utils/xcode.js +0 -706
- package/plugin/build/ios/utils/xcode.js.map +0 -1
- package/plugin/build/parseTargetConfig.d.ts +0 -3
- package/plugin/build/parseTargetConfig.d.ts.map +0 -1
- package/plugin/build/parseTargetConfig.js +0 -113
- package/plugin/build/parseTargetConfig.js.map +0 -1
|
@@ -23,61 +23,26 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.generateReactNativeViewController = exports.generateMessagesViewController = void 0;
|
|
27
|
-
const fs = __importStar(require("fs"));
|
|
28
|
-
const path = __importStar(require("path"));
|
|
26
|
+
exports.generateReactNativeViewController = exports.generateReactNativeClipApp = exports.generateMessagesViewController = void 0;
|
|
27
|
+
const fs = __importStar(require("node:fs"));
|
|
28
|
+
const path = __importStar(require("node:path"));
|
|
29
29
|
const TEMPLATES_DIR = path.join(__dirname, '..', 'templates');
|
|
30
30
|
function readTemplate(filename) {
|
|
31
31
|
const templatePath = path.join(TEMPLATES_DIR, filename);
|
|
32
32
|
return fs.readFileSync(templatePath, 'utf-8');
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
switch (type) {
|
|
36
|
-
case 'share': {
|
|
37
|
-
const dataTemplate = readTemplate('share-extension-data.swift');
|
|
38
|
-
// Handle preprocessing file
|
|
39
|
-
let preprocessingLoad = '';
|
|
40
|
-
if (preprocessingFile) {
|
|
41
|
-
preprocessingLoad = `
|
|
34
|
+
const PREPROCESSING_DATA_LOAD = `
|
|
42
35
|
// Load preprocessed web data
|
|
43
36
|
if let jsDict = extensionItem.userInfo?[NSExtensionJavaScriptPreprocessingResultsKey] as? [String: Any] {
|
|
44
37
|
self.preprocessedWebData = jsDict
|
|
45
38
|
}`;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
let currentSection = null;
|
|
54
|
-
for (const line of lines) {
|
|
55
|
-
if (line.includes('private var ')) {
|
|
56
|
-
currentSection = 'properties';
|
|
57
|
-
properties.push(line);
|
|
58
|
-
}
|
|
59
|
-
else if (line.includes('private func loadSharedContent()')) {
|
|
60
|
-
currentSection = 'load';
|
|
61
|
-
loadMethodLines.push(line);
|
|
62
|
-
}
|
|
63
|
-
else if (line.includes('private func getSharedDataProps()')) {
|
|
64
|
-
currentSection = 'props';
|
|
65
|
-
propsMethodLines.push(line);
|
|
66
|
-
}
|
|
67
|
-
else if (currentSection === 'properties' &&
|
|
68
|
-
line.trim().startsWith('private')) {
|
|
69
|
-
properties.push(line);
|
|
70
|
-
}
|
|
71
|
-
else if (currentSection === 'load') {
|
|
72
|
-
loadMethodLines.push(line);
|
|
73
|
-
}
|
|
74
|
-
else if (currentSection === 'props') {
|
|
75
|
-
propsMethodLines.push(line);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return {
|
|
79
|
-
properties: properties.join('\n '),
|
|
80
|
-
loadMethod: `// Load shared content before creating React Native view
|
|
39
|
+
const EXTENSION_DATA_SPECS = {
|
|
40
|
+
share: {
|
|
41
|
+
templateFile: 'share-extension-data.swift',
|
|
42
|
+
loadFunction: 'loadSharedContent',
|
|
43
|
+
propsFunction: 'getSharedDataProps',
|
|
44
|
+
supportsPreprocessing: true,
|
|
45
|
+
loadMethod: `// Load shared content before creating React Native view
|
|
81
46
|
Task {
|
|
82
47
|
await loadSharedContent()
|
|
83
48
|
// Create React Native view with loaded content
|
|
@@ -86,43 +51,12 @@ function getExtensionDataForType(type, preprocessingFile) {
|
|
|
86
51
|
setupReactNativeView(with: sharedData)
|
|
87
52
|
}
|
|
88
53
|
}`,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
const properties = [];
|
|
96
|
-
const loadMethodLines = [];
|
|
97
|
-
const propsMethodLines = [];
|
|
98
|
-
let currentSection = null;
|
|
99
|
-
for (const line of lines) {
|
|
100
|
-
if (line.includes('private var ')) {
|
|
101
|
-
currentSection = 'properties';
|
|
102
|
-
properties.push(line);
|
|
103
|
-
}
|
|
104
|
-
else if (line.includes('private func loadActionContent()')) {
|
|
105
|
-
currentSection = 'load';
|
|
106
|
-
loadMethodLines.push(line);
|
|
107
|
-
}
|
|
108
|
-
else if (line.includes('private func getActionDataProps()')) {
|
|
109
|
-
currentSection = 'props';
|
|
110
|
-
propsMethodLines.push(line);
|
|
111
|
-
}
|
|
112
|
-
else if (currentSection === 'properties' &&
|
|
113
|
-
line.trim().startsWith('private')) {
|
|
114
|
-
properties.push(line);
|
|
115
|
-
}
|
|
116
|
-
else if (currentSection === 'load') {
|
|
117
|
-
loadMethodLines.push(line);
|
|
118
|
-
}
|
|
119
|
-
else if (currentSection === 'props') {
|
|
120
|
-
propsMethodLines.push(line);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
return {
|
|
124
|
-
properties: properties.join('\n '),
|
|
125
|
-
loadMethod: `// Load action content before creating React Native view
|
|
54
|
+
},
|
|
55
|
+
action: {
|
|
56
|
+
templateFile: 'action-extension-data.swift',
|
|
57
|
+
loadFunction: 'loadActionContent',
|
|
58
|
+
propsFunction: 'getActionDataProps',
|
|
59
|
+
loadMethod: `// Load action content before creating React Native view
|
|
126
60
|
Task {
|
|
127
61
|
await loadActionContent()
|
|
128
62
|
// Create React Native view with loaded content
|
|
@@ -131,100 +65,101 @@ function getExtensionDataForType(type, preprocessingFile) {
|
|
|
131
65
|
setupReactNativeView(with: actionData)
|
|
132
66
|
}
|
|
133
67
|
}`,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
const properties = [];
|
|
141
|
-
const loadMethodLines = [];
|
|
142
|
-
const propsMethodLines = [];
|
|
143
|
-
let currentSection = null;
|
|
144
|
-
for (const line of lines) {
|
|
145
|
-
if (line.includes('private var ')) {
|
|
146
|
-
currentSection = 'properties';
|
|
147
|
-
properties.push(line);
|
|
148
|
-
}
|
|
149
|
-
else if (line.includes('private func loadClipContent()')) {
|
|
150
|
-
currentSection = 'load';
|
|
151
|
-
loadMethodLines.push(line);
|
|
152
|
-
}
|
|
153
|
-
else if (line.includes('private func getClipDataProps()')) {
|
|
154
|
-
currentSection = 'props';
|
|
155
|
-
propsMethodLines.push(line);
|
|
156
|
-
}
|
|
157
|
-
else if (currentSection === 'properties' &&
|
|
158
|
-
line.trim().startsWith('private')) {
|
|
159
|
-
properties.push(line);
|
|
160
|
-
}
|
|
161
|
-
else if (currentSection === 'load') {
|
|
162
|
-
loadMethodLines.push(line);
|
|
163
|
-
}
|
|
164
|
-
else if (currentSection === 'props') {
|
|
165
|
-
propsMethodLines.push(line);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
return {
|
|
169
|
-
properties: properties.join('\n '),
|
|
170
|
-
loadMethod: `loadClipContent()
|
|
68
|
+
},
|
|
69
|
+
clip: {
|
|
70
|
+
templateFile: 'clip-extension-data.swift',
|
|
71
|
+
loadFunction: 'loadClipContent',
|
|
72
|
+
propsFunction: 'getClipDataProps',
|
|
73
|
+
loadMethod: `loadClipContent()
|
|
171
74
|
let clipData = getClipDataProps()
|
|
172
75
|
setupReactNativeView(with: clipData)`,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
const properties = [];
|
|
180
|
-
const loadMethodLines = [];
|
|
181
|
-
const propsMethodLines = [];
|
|
182
|
-
let currentSection = null;
|
|
183
|
-
for (const line of lines) {
|
|
184
|
-
if (line.includes('private var ')) {
|
|
185
|
-
currentSection = 'properties';
|
|
186
|
-
properties.push(line);
|
|
187
|
-
}
|
|
188
|
-
else if (line.includes('private func loadMessagesContent()')) {
|
|
189
|
-
currentSection = 'load';
|
|
190
|
-
loadMethodLines.push(line);
|
|
191
|
-
}
|
|
192
|
-
else if (line.includes('private func getMessagesDataProps()')) {
|
|
193
|
-
currentSection = 'props';
|
|
194
|
-
propsMethodLines.push(line);
|
|
195
|
-
}
|
|
196
|
-
else if (currentSection === 'properties' &&
|
|
197
|
-
line.trim().startsWith('private')) {
|
|
198
|
-
properties.push(line);
|
|
199
|
-
}
|
|
200
|
-
else if (currentSection === 'load') {
|
|
201
|
-
loadMethodLines.push(line);
|
|
202
|
-
}
|
|
203
|
-
else if (currentSection === 'props') {
|
|
204
|
-
propsMethodLines.push(line);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
return {
|
|
208
|
-
properties: properties.join('\n '),
|
|
209
|
-
loadMethod: `loadMessagesContent()
|
|
76
|
+
},
|
|
77
|
+
messages: {
|
|
78
|
+
templateFile: 'messages-extension-data.swift',
|
|
79
|
+
loadFunction: 'loadMessagesContent',
|
|
80
|
+
propsFunction: 'getMessagesDataProps',
|
|
81
|
+
loadMethod: `loadMessagesContent()
|
|
210
82
|
let messagesData = getMessagesDataProps()
|
|
211
83
|
setupReactNativeView(with: messagesData)`,
|
|
212
|
-
|
|
213
|
-
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* The section a line opens, if it is a marker line.
|
|
88
|
+
*/
|
|
89
|
+
function sectionForLine(line, spec) {
|
|
90
|
+
if (line.includes('private var ')) {
|
|
91
|
+
return 'properties';
|
|
92
|
+
}
|
|
93
|
+
if (line.includes(`private func ${spec.loadFunction}()`)) {
|
|
94
|
+
return 'load';
|
|
95
|
+
}
|
|
96
|
+
if (line.includes(`private func ${spec.propsFunction}()`)) {
|
|
97
|
+
return 'props';
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* The properties section only accumulates further declarations, while the
|
|
102
|
+
* loader and props sections take every line until the next marker.
|
|
103
|
+
*/
|
|
104
|
+
function continuesSection(current, line) {
|
|
105
|
+
if (current === 'properties') {
|
|
106
|
+
return line.trim().startsWith('private');
|
|
107
|
+
}
|
|
108
|
+
return current !== null;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Split a data template into its property declarations, its loader and its
|
|
112
|
+
* props getter.
|
|
113
|
+
*/
|
|
114
|
+
function splitTemplateSections(template, spec) {
|
|
115
|
+
const sections = {
|
|
116
|
+
properties: [],
|
|
117
|
+
load: [],
|
|
118
|
+
props: [],
|
|
119
|
+
};
|
|
120
|
+
let current = null;
|
|
121
|
+
for (const line of template.split('\n')) {
|
|
122
|
+
const marker = sectionForLine(line, spec);
|
|
123
|
+
if (marker) {
|
|
124
|
+
current = marker;
|
|
125
|
+
}
|
|
126
|
+
else if (!continuesSection(current, line)) {
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
if (current) {
|
|
130
|
+
sections[current].push(line);
|
|
214
131
|
}
|
|
215
|
-
default:
|
|
216
|
-
// For other types, no extension-specific data
|
|
217
|
-
return {
|
|
218
|
-
properties: '',
|
|
219
|
-
loadMethod: 'setupReactNativeView(with: nil)',
|
|
220
|
-
propsMethod: '',
|
|
221
|
-
};
|
|
222
132
|
}
|
|
133
|
+
return sections;
|
|
134
|
+
}
|
|
135
|
+
function getExtensionDataForType(type, preprocessingFile) {
|
|
136
|
+
const spec = EXTENSION_DATA_SPECS[type];
|
|
137
|
+
if (!spec) {
|
|
138
|
+
return {
|
|
139
|
+
properties: '',
|
|
140
|
+
loadMethod: 'setupReactNativeView(with: nil)',
|
|
141
|
+
propsMethod: '',
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
let template = readTemplate(spec.templateFile);
|
|
145
|
+
if (spec.supportsPreprocessing) {
|
|
146
|
+
template = template.replace('{{PREPROCESSING_DATA_LOAD}}', preprocessingFile ? PREPROCESSING_DATA_LOAD : '');
|
|
147
|
+
}
|
|
148
|
+
const sections = splitTemplateSections(template, spec);
|
|
149
|
+
return {
|
|
150
|
+
properties: sections.properties.join('\n '),
|
|
151
|
+
loadMethod: spec.loadMethod,
|
|
152
|
+
propsMethod: `${sections.load.join('\n')}\n\n${sections.props.join('\n')}`,
|
|
153
|
+
};
|
|
223
154
|
}
|
|
224
155
|
function generateMessagesViewController() {
|
|
225
156
|
return readTemplate('MessagesViewController.swift');
|
|
226
157
|
}
|
|
227
158
|
exports.generateMessagesViewController = generateMessagesViewController;
|
|
159
|
+
function generateReactNativeClipApp() {
|
|
160
|
+
return readTemplate('ReactNativeClipApp.swift');
|
|
161
|
+
}
|
|
162
|
+
exports.generateReactNativeClipApp = generateReactNativeClipApp;
|
|
228
163
|
function generateReactNativeViewController(options) {
|
|
229
164
|
let baseTemplate = readTemplate('ReactNativeViewController.swift');
|
|
230
165
|
const extensionData = getExtensionDataForType(options.type, options.preprocessingFile);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactNativeSwift.js","sourceRoot":"","sources":["../../../../../plugin/src/ios/utils/reactNativeSwift.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"reactNativeSwift.js","sourceRoot":"","sources":["../../../../../plugin/src/ios/utils/reactNativeSwift.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA8B;AAC9B,gDAAkC;AAIlC,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;AAU9D,SAAS,YAAY,CAAC,QAAgB;IACpC,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;IACxD,OAAO,EAAE,CAAC,YAAY,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AE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,eAAe,CAAC,EAAE;QAChB,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;KAChB,EAAE,CAAC;IACJ,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GACjB,IAAI,CAqCN;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,oBAAoB,GAC3B,IAAI,CA0CN;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAgBjE;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GACjB,IAAI,CAgBN;AA6ED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAWpE;AAgFD;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE;IACN,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAC1C,GACA,IAAI,CAyBN;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAKzE"}
|
|
@@ -32,8 +32,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
34
|
exports.hasCustomSafariResources = exports.generateSafariResources = exports.generatePlaceholderIcons = exports.generatePlaceholderPopupScript = exports.generateBackgroundScript = exports.generateManifest = exports.generatePopupHtml = exports.ensureSafariSwiftHandler = exports.hasUserSafariSwiftHandler = exports.generateSafariSwiftHandler = void 0;
|
|
35
|
-
const
|
|
36
|
-
const
|
|
35
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
36
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
37
37
|
const File = __importStar(require("./file"));
|
|
38
38
|
// ============================================================================
|
|
39
39
|
// Swift Handler Generation
|
|
@@ -93,8 +93,8 @@ exports.generateSafariSwiftHandler = generateSafariSwiftHandler;
|
|
|
93
93
|
* Check if user has provided a custom Safari Swift handler
|
|
94
94
|
*/
|
|
95
95
|
function hasUserSafariSwiftHandler(targetDirectory) {
|
|
96
|
-
const userSwiftPath =
|
|
97
|
-
return
|
|
96
|
+
const userSwiftPath = node_path_1.default.join(targetDirectory, 'ios', 'SafariWebExtensionHandler.swift');
|
|
97
|
+
return node_fs_1.default.existsSync(userSwiftPath);
|
|
98
98
|
}
|
|
99
99
|
exports.hasUserSafariSwiftHandler = hasUserSafariSwiftHandler;
|
|
100
100
|
/**
|
|
@@ -103,12 +103,12 @@ exports.hasUserSafariSwiftHandler = hasUserSafariSwiftHandler;
|
|
|
103
103
|
*/
|
|
104
104
|
function ensureSafariSwiftHandler(targetDirectory, targetBuildPath, targetName) {
|
|
105
105
|
// Check if user provided their own handler in ios/
|
|
106
|
-
const userSwiftPath =
|
|
107
|
-
if (
|
|
106
|
+
const userSwiftPath = node_path_1.default.join(targetDirectory, 'ios', 'SafariWebExtensionHandler.swift');
|
|
107
|
+
if (node_fs_1.default.existsSync(userSwiftPath)) {
|
|
108
108
|
return { path: userSwiftPath, isGenerated: false };
|
|
109
109
|
}
|
|
110
110
|
// Generate in build directory
|
|
111
|
-
const generatedSwiftPath =
|
|
111
|
+
const generatedSwiftPath = node_path_1.default.join(targetBuildPath, 'SafariWebExtensionHandler.swift');
|
|
112
112
|
const swiftContent = generateSafariSwiftHandler(targetName);
|
|
113
113
|
File.writeFileSafe(generatedSwiftPath, swiftContent);
|
|
114
114
|
return { path: generatedSwiftPath, isGenerated: true };
|
|
@@ -238,112 +238,170 @@ function generatePlaceholderPopupScript(outputPath, targetName) {
|
|
|
238
238
|
File.writeFileSafe(outputPath, script);
|
|
239
239
|
}
|
|
240
240
|
exports.generatePlaceholderPopupScript = generatePlaceholderPopupScript;
|
|
241
|
+
/**
|
|
242
|
+
* A minimal valid PNG: a 1x1 transparent pixel, used as an icon placeholder.
|
|
243
|
+
*/
|
|
244
|
+
const MINIMAL_PNG_BYTES = [
|
|
245
|
+
0x89,
|
|
246
|
+
0x50,
|
|
247
|
+
0x4e,
|
|
248
|
+
0x47,
|
|
249
|
+
0x0d,
|
|
250
|
+
0x0a,
|
|
251
|
+
0x1a,
|
|
252
|
+
0x0a, // PNG signature
|
|
253
|
+
0x00,
|
|
254
|
+
0x00,
|
|
255
|
+
0x00,
|
|
256
|
+
0x0d, // IHDR length
|
|
257
|
+
0x49,
|
|
258
|
+
0x48,
|
|
259
|
+
0x44,
|
|
260
|
+
0x52, // IHDR
|
|
261
|
+
0x00,
|
|
262
|
+
0x00,
|
|
263
|
+
0x00,
|
|
264
|
+
0x01, // width: 1
|
|
265
|
+
0x00,
|
|
266
|
+
0x00,
|
|
267
|
+
0x00,
|
|
268
|
+
0x01, // height: 1
|
|
269
|
+
0x08,
|
|
270
|
+
0x06, // bit depth: 8, color type: RGBA
|
|
271
|
+
0x00,
|
|
272
|
+
0x00,
|
|
273
|
+
0x00, // compression, filter, interlace
|
|
274
|
+
0x1f,
|
|
275
|
+
0x15,
|
|
276
|
+
0xc4,
|
|
277
|
+
0x89, // IHDR CRC
|
|
278
|
+
0x00,
|
|
279
|
+
0x00,
|
|
280
|
+
0x00,
|
|
281
|
+
0x0a, // IDAT length
|
|
282
|
+
0x49,
|
|
283
|
+
0x44,
|
|
284
|
+
0x41,
|
|
285
|
+
0x54, // IDAT
|
|
286
|
+
0x78,
|
|
287
|
+
0x9c,
|
|
288
|
+
0x63,
|
|
289
|
+
0x00,
|
|
290
|
+
0x01,
|
|
291
|
+
0x00,
|
|
292
|
+
0x00,
|
|
293
|
+
0x05,
|
|
294
|
+
0x00,
|
|
295
|
+
0x01, // compressed data
|
|
296
|
+
0x0d,
|
|
297
|
+
0x0a,
|
|
298
|
+
0x2d,
|
|
299
|
+
0xb4, // IDAT CRC
|
|
300
|
+
0x00,
|
|
301
|
+
0x00,
|
|
302
|
+
0x00,
|
|
303
|
+
0x00, // IEND length
|
|
304
|
+
0x49,
|
|
305
|
+
0x45,
|
|
306
|
+
0x4e,
|
|
307
|
+
0x44, // IEND
|
|
308
|
+
0xae,
|
|
309
|
+
0x42,
|
|
310
|
+
0x60,
|
|
311
|
+
0x82, // IEND CRC
|
|
312
|
+
];
|
|
313
|
+
const PLACEHOLDER_ICON_SIZES = [16, 32, 48, 128];
|
|
241
314
|
/**
|
|
242
315
|
* Generate placeholder icons for Safari extension
|
|
243
316
|
*/
|
|
244
317
|
function generatePlaceholderIcons(resourcesPath) {
|
|
245
|
-
const imagesPath =
|
|
318
|
+
const imagesPath = node_path_1.default.join(resourcesPath, 'images');
|
|
246
319
|
File.ensureDirectoryExists(imagesPath);
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
for (const size of sizes) {
|
|
250
|
-
const iconPath = path_1.default.join(imagesPath, `icon-${size}.png`);
|
|
320
|
+
for (const size of PLACEHOLDER_ICON_SIZES) {
|
|
321
|
+
const iconPath = node_path_1.default.join(imagesPath, `icon-${size}.png`);
|
|
251
322
|
// Only create if doesn't exist - don't overwrite user icons
|
|
252
|
-
if (!
|
|
253
|
-
|
|
254
|
-
// This is a minimal valid PNG file
|
|
255
|
-
const minimalPng = Buffer.from([
|
|
256
|
-
0x89,
|
|
257
|
-
0x50,
|
|
258
|
-
0x4e,
|
|
259
|
-
0x47,
|
|
260
|
-
0x0d,
|
|
261
|
-
0x0a,
|
|
262
|
-
0x1a,
|
|
263
|
-
0x0a, // PNG signature
|
|
264
|
-
0x00,
|
|
265
|
-
0x00,
|
|
266
|
-
0x00,
|
|
267
|
-
0x0d, // IHDR length
|
|
268
|
-
0x49,
|
|
269
|
-
0x48,
|
|
270
|
-
0x44,
|
|
271
|
-
0x52, // IHDR
|
|
272
|
-
0x00,
|
|
273
|
-
0x00,
|
|
274
|
-
0x00,
|
|
275
|
-
0x01, // width: 1
|
|
276
|
-
0x00,
|
|
277
|
-
0x00,
|
|
278
|
-
0x00,
|
|
279
|
-
0x01, // height: 1
|
|
280
|
-
0x08,
|
|
281
|
-
0x06, // bit depth: 8, color type: RGBA
|
|
282
|
-
0x00,
|
|
283
|
-
0x00,
|
|
284
|
-
0x00, // compression, filter, interlace
|
|
285
|
-
0x1f,
|
|
286
|
-
0x15,
|
|
287
|
-
0xc4,
|
|
288
|
-
0x89, // IHDR CRC
|
|
289
|
-
0x00,
|
|
290
|
-
0x00,
|
|
291
|
-
0x00,
|
|
292
|
-
0x0a, // IDAT length
|
|
293
|
-
0x49,
|
|
294
|
-
0x44,
|
|
295
|
-
0x41,
|
|
296
|
-
0x54, // IDAT
|
|
297
|
-
0x78,
|
|
298
|
-
0x9c,
|
|
299
|
-
0x63,
|
|
300
|
-
0x00,
|
|
301
|
-
0x01,
|
|
302
|
-
0x00,
|
|
303
|
-
0x00,
|
|
304
|
-
0x05,
|
|
305
|
-
0x00,
|
|
306
|
-
0x01, // compressed data
|
|
307
|
-
0x0d,
|
|
308
|
-
0x0a,
|
|
309
|
-
0x2d,
|
|
310
|
-
0xb4, // IDAT CRC
|
|
311
|
-
0x00,
|
|
312
|
-
0x00,
|
|
313
|
-
0x00,
|
|
314
|
-
0x00, // IEND length
|
|
315
|
-
0x49,
|
|
316
|
-
0x45,
|
|
317
|
-
0x4e,
|
|
318
|
-
0x44, // IEND
|
|
319
|
-
0xae,
|
|
320
|
-
0x42,
|
|
321
|
-
0x60,
|
|
322
|
-
0x82, // IEND CRC
|
|
323
|
-
]);
|
|
324
|
-
fs_1.default.writeFileSync(iconPath, minimalPng);
|
|
323
|
+
if (!node_fs_1.default.existsSync(iconPath)) {
|
|
324
|
+
node_fs_1.default.writeFileSync(iconPath, Buffer.from(MINIMAL_PNG_BYTES));
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
exports.generatePlaceholderIcons = generatePlaceholderIcons;
|
|
329
|
+
function defaultContentScripts() {
|
|
330
|
+
return [
|
|
331
|
+
{
|
|
332
|
+
matches: ['*://example.com/*', '*://*.example.com/*'],
|
|
333
|
+
js: ['content.js'],
|
|
334
|
+
},
|
|
335
|
+
];
|
|
336
|
+
}
|
|
337
|
+
function resolveContentScripts(manifest) {
|
|
338
|
+
if (manifest?.content_scripts && manifest.content_scripts.length > 0) {
|
|
339
|
+
return manifest.content_scripts;
|
|
340
|
+
}
|
|
341
|
+
return defaultContentScripts();
|
|
342
|
+
}
|
|
343
|
+
function rewriteManifestWithDefaultContentScripts({ resourcesPath, displayName, manifest, contentScripts, }) {
|
|
344
|
+
if (manifest?.content_scripts && manifest.content_scripts.length > 0) {
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
generateManifest(node_path_1.default.join(resourcesPath, 'manifest.json'), {
|
|
348
|
+
name: displayName,
|
|
349
|
+
...manifest,
|
|
350
|
+
content_scripts: contentScripts,
|
|
351
|
+
permissions: [
|
|
352
|
+
...(manifest?.permissions ?? ['storage']),
|
|
353
|
+
'nativeMessaging',
|
|
354
|
+
].filter((p, i, a) => a.indexOf(p) === i),
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
function writeContentScriptStubs(resourcesPath, contentScripts, displayName) {
|
|
358
|
+
const contentStub = `// ${displayName} content script — Devicewright runtime proof
|
|
359
|
+
(function () {
|
|
360
|
+
var MARKER = 'expo-targets uitest safari content';
|
|
361
|
+
try {
|
|
362
|
+
document.documentElement.setAttribute('data-et-safari', MARKER);
|
|
363
|
+
if (document.body) document.body.setAttribute('data-et-safari', MARKER);
|
|
364
|
+
} catch (_) {}
|
|
365
|
+
try {
|
|
366
|
+
if (typeof browser !== 'undefined' && browser.runtime && browser.runtime.sendMessage) {
|
|
367
|
+
browser.runtime.sendMessage({
|
|
368
|
+
type: 'native',
|
|
369
|
+
payload: { type: 'content-ping', url: String(location.href || ''), marker: MARKER }
|
|
370
|
+
}).catch(function () {});
|
|
371
|
+
}
|
|
372
|
+
} catch (_) {}
|
|
373
|
+
})();
|
|
374
|
+
`;
|
|
375
|
+
for (const script of contentScripts) {
|
|
376
|
+
for (const js of script.js ?? ['content.js']) {
|
|
377
|
+
const contentPath = node_path_1.default.join(resourcesPath, js);
|
|
378
|
+
if (!node_fs_1.default.existsSync(contentPath)) {
|
|
379
|
+
File.writeFileSafe(contentPath, contentStub);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
329
384
|
/**
|
|
330
385
|
* Generate all Safari web extension resources
|
|
331
386
|
*/
|
|
332
387
|
function generateSafariResources(resourcesPath, config) {
|
|
333
388
|
File.ensureDirectoryExists(resourcesPath);
|
|
334
389
|
const targetDisplayName = config.displayName || config.name;
|
|
335
|
-
|
|
336
|
-
generatePopupHtml(
|
|
337
|
-
|
|
338
|
-
generateManifest(path_1.default.join(resourcesPath, 'manifest.json'), {
|
|
390
|
+
const contentScripts = resolveContentScripts(config.manifest);
|
|
391
|
+
generatePopupHtml(node_path_1.default.join(resourcesPath, 'popup.html'), targetDisplayName);
|
|
392
|
+
generateManifest(node_path_1.default.join(resourcesPath, 'manifest.json'), {
|
|
339
393
|
name: targetDisplayName,
|
|
340
394
|
...config.manifest,
|
|
341
395
|
});
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
396
|
+
generateBackgroundScript(node_path_1.default.join(resourcesPath, 'background.js'));
|
|
397
|
+
generatePlaceholderPopupScript(node_path_1.default.join(resourcesPath, 'popup.js'), targetDisplayName);
|
|
398
|
+
rewriteManifestWithDefaultContentScripts({
|
|
399
|
+
resourcesPath,
|
|
400
|
+
displayName: targetDisplayName,
|
|
401
|
+
manifest: config.manifest,
|
|
402
|
+
contentScripts,
|
|
403
|
+
});
|
|
404
|
+
writeContentScriptStubs(resourcesPath, contentScripts, targetDisplayName);
|
|
347
405
|
generatePlaceholderIcons(resourcesPath);
|
|
348
406
|
}
|
|
349
407
|
exports.generateSafariResources = generateSafariResources;
|
|
@@ -351,9 +409,9 @@ exports.generateSafariResources = generateSafariResources;
|
|
|
351
409
|
* Check if user has provided custom Safari Resources
|
|
352
410
|
*/
|
|
353
411
|
function hasCustomSafariResources(targetDirectory) {
|
|
354
|
-
const resourcesPath =
|
|
355
|
-
const manifestPath =
|
|
356
|
-
return
|
|
412
|
+
const resourcesPath = node_path_1.default.join(targetDirectory, 'ios', 'Resources');
|
|
413
|
+
const manifestPath = node_path_1.default.join(resourcesPath, 'manifest.json');
|
|
414
|
+
return node_fs_1.default.existsSync(manifestPath);
|
|
357
415
|
}
|
|
358
416
|
exports.hasCustomSafariResources = hasCustomSafariResources;
|
|
359
417
|
//# sourceMappingURL=safari.js.map
|