expo-targets 0.2.7 → 0.2.9
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 +36 -217
- 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
|
@@ -4,7 +4,79 @@
|
|
|
4
4
|
* Provides helpers for injecting target blocks into Podfile.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.ensureReactNativeExtensionFrameworkPaths = exports.ensureExtensionDeploymentTargets = exports.updatePodfilePlatform = exports.ensureMainTargetUsesFrameworks = exports.removeTargetBlock = exports.hasTargetBlock = exports.insertTargetBlock = exports.generateStandaloneTargetBlock = exports.mainTargetUsesFrameworks = exports.generateReactNativeTargetBlock = exports.ensureResourceBundleCodeSigning = void 0;
|
|
7
|
+
exports.ensureExcludedPackagesPostIntegrate = exports.ensureReactNativeExtensionFrameworkPaths = exports.ensureExtensionDeploymentTargets = exports.updatePodfilePlatform = exports.ensureMainTargetUsesFrameworks = exports.removeTargetBlock = exports.hasTargetBlock = exports.insertTargetBlock = exports.generateStandaloneTargetBlock = exports.mainTargetUsesFrameworks = exports.generateReactNativeTargetBlock = exports.EXCLUDED_PACKAGES_MARKER = exports.ensureResourceBundleCodeSigning = void 0;
|
|
8
|
+
/**
|
|
9
|
+
* Locate the line that closes `react_native_post_install(...)`, which is where
|
|
10
|
+
* generated post_install code has to be injected. Returns -1 when the call is
|
|
11
|
+
* not present.
|
|
12
|
+
*/
|
|
13
|
+
function findReactNativePostInstallEndLine(lines) {
|
|
14
|
+
let startLine = -1;
|
|
15
|
+
let parenDepth = 0;
|
|
16
|
+
for (let i = 0; i < lines.length; i++) {
|
|
17
|
+
const line = lines[i];
|
|
18
|
+
const openParens = (line.match(/\(/g) || []).length;
|
|
19
|
+
const closeParens = (line.match(/\)/g) || []).length;
|
|
20
|
+
if (line.includes('react_native_post_install(')) {
|
|
21
|
+
startLine = i;
|
|
22
|
+
parenDepth = openParens - closeParens;
|
|
23
|
+
continue;
|
|
24
|
+
}
|
|
25
|
+
if (startLine === -1) {
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
parenDepth += openParens - closeParens;
|
|
29
|
+
if (parenDepth === 0 && closeParens > 0) {
|
|
30
|
+
return i;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return -1;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Locate the line holding the `end` that closes `post_install do`.
|
|
37
|
+
* Ruby closes many keywords with `end`, so all openers have to be counted.
|
|
38
|
+
*/
|
|
39
|
+
function findPostInstallEndLine(lines) {
|
|
40
|
+
const blockOpenRegex = /\b(do|if|unless|def|class|module|begin|case|while|until)\b/g;
|
|
41
|
+
let startLine = -1;
|
|
42
|
+
let depth = 0;
|
|
43
|
+
for (let i = 0; i < lines.length; i++) {
|
|
44
|
+
const line = lines[i];
|
|
45
|
+
if (line.includes('post_install do')) {
|
|
46
|
+
startLine = i;
|
|
47
|
+
depth = 1;
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
if (startLine === -1) {
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
const openMatches = (line.match(blockOpenRegex) || []).length;
|
|
54
|
+
const endMatches = (line.match(/\bend\b/g) || []).length;
|
|
55
|
+
depth += openMatches - endMatches;
|
|
56
|
+
if (depth === 0 && endMatches > 0) {
|
|
57
|
+
return i;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return -1;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Drop a previously injected block so injection stays idempotent.
|
|
64
|
+
*/
|
|
65
|
+
function removeMarkedBlock(podfileContent, startMarker, endMarker) {
|
|
66
|
+
const startIndex = podfileContent.indexOf(startMarker);
|
|
67
|
+
if (startIndex === -1) {
|
|
68
|
+
return podfileContent;
|
|
69
|
+
}
|
|
70
|
+
const endIndex = podfileContent.indexOf(endMarker, startIndex);
|
|
71
|
+
if (endIndex === -1) {
|
|
72
|
+
return podfileContent;
|
|
73
|
+
}
|
|
74
|
+
const beforeBlock = podfileContent.substring(0, startIndex);
|
|
75
|
+
const afterBlock = podfileContent.substring(endIndex + endMarker.length);
|
|
76
|
+
return `${beforeBlock.trimEnd()}\n${afterBlock.trimStart()}`;
|
|
77
|
+
}
|
|
78
|
+
const RESOURCE_BUNDLE_SIGNING_START = ' # [expo-targets-resource-bundle-signing-start]';
|
|
79
|
+
const RESOURCE_BUNDLE_SIGNING_END = ' # [expo-targets-resource-bundle-signing-end]';
|
|
8
80
|
/**
|
|
9
81
|
* Ensure resource bundle targets have code signing disabled for Xcode 14+.
|
|
10
82
|
* Starting from Xcode 14, resource bundles are signed by default, which requires
|
|
@@ -14,13 +86,10 @@ exports.ensureReactNativeExtensionFrameworkPaths = exports.ensureExtensionDeploy
|
|
|
14
86
|
* Uses START/END markers for reliable, idempotent injection.
|
|
15
87
|
*/
|
|
16
88
|
function ensureResourceBundleCodeSigning(podfileContent) {
|
|
17
|
-
|
|
18
|
-
const END_MARKER = ' # [expo-targets-resource-bundle-signing-end]';
|
|
19
|
-
// Check if fix already exists
|
|
20
|
-
if (podfileContent.includes(START_MARKER)) {
|
|
89
|
+
if (podfileContent.includes(RESOURCE_BUNDLE_SIGNING_START)) {
|
|
21
90
|
return podfileContent;
|
|
22
91
|
}
|
|
23
|
-
const fixCode = `${
|
|
92
|
+
const fixCode = `${RESOURCE_BUNDLE_SIGNING_START}
|
|
24
93
|
# Fix Xcode 14+ code signing for resource bundles
|
|
25
94
|
installer.pods_project.targets.each do |target|
|
|
26
95
|
if target.respond_to?(:product_type) && target.product_type == "com.apple.product-type.bundle"
|
|
@@ -29,66 +98,60 @@ function ensureResourceBundleCodeSigning(podfileContent) {
|
|
|
29
98
|
end
|
|
30
99
|
end
|
|
31
100
|
end
|
|
32
|
-
${
|
|
33
|
-
// Find where to inject (after react_native_post_install closing paren)
|
|
101
|
+
${RESOURCE_BUNDLE_SIGNING_END}`;
|
|
34
102
|
const lines = podfileContent.split('\n');
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
let parenDepth = 0;
|
|
38
|
-
for (let i = 0; i < lines.length; i++) {
|
|
39
|
-
const line = lines[i];
|
|
40
|
-
if (line.includes('react_native_post_install(')) {
|
|
41
|
-
reactNativeStartLine = i;
|
|
42
|
-
parenDepth =
|
|
43
|
-
(line.match(/\(/g) || []).length - (line.match(/\)/g) || []).length;
|
|
44
|
-
continue;
|
|
45
|
-
}
|
|
46
|
-
if (reactNativeStartLine !== -1) {
|
|
47
|
-
const openParens = (line.match(/\(/g) || []).length;
|
|
48
|
-
const closeParens = (line.match(/\)/g) || []).length;
|
|
49
|
-
parenDepth += openParens - closeParens;
|
|
50
|
-
if (parenDepth === 0 && closeParens > 0) {
|
|
51
|
-
reactNativeEndLine = i;
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
if (reactNativeStartLine === -1 || reactNativeEndLine === -1) {
|
|
57
|
-
console.warn('[expo-targets] Could not find react_native_post_install to inject resource bundle signing fix');
|
|
103
|
+
const endLine = findReactNativePostInstallEndLine(lines);
|
|
104
|
+
if (endLine === -1) {
|
|
58
105
|
return podfileContent;
|
|
59
106
|
}
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
return beforeLines + '\n\n' + fixCode + '\n' + afterLines;
|
|
107
|
+
const beforeLines = lines.slice(0, endLine + 1).join('\n');
|
|
108
|
+
const afterLines = lines.slice(endLine + 1).join('\n');
|
|
109
|
+
return `${beforeLines}\n\n${fixCode}\n${afterLines}`;
|
|
64
110
|
}
|
|
65
111
|
exports.ensureResourceBundleCodeSigning = ensureResourceBundleCodeSigning;
|
|
112
|
+
/**
|
|
113
|
+
* Indent pods.rb content to match target block indentation.
|
|
114
|
+
*/
|
|
115
|
+
function indentCustomPods(podsRbContent) {
|
|
116
|
+
if (!podsRbContent) {
|
|
117
|
+
return '';
|
|
118
|
+
}
|
|
119
|
+
const indented = podsRbContent
|
|
120
|
+
.split('\n')
|
|
121
|
+
.map((line) => (line.trim() ? ` ${line}` : ''))
|
|
122
|
+
.join('\n');
|
|
123
|
+
return `\n${indented}\n`;
|
|
124
|
+
}
|
|
125
|
+
/** Parseable marker: packages to strip from this nested target's ExpoModulesProvider. */
|
|
126
|
+
exports.EXCLUDED_PACKAGES_MARKER = '# [expo-targets-excluded-packages]';
|
|
66
127
|
/**
|
|
67
128
|
* Generate a Podfile target block for a React Native extension.
|
|
68
129
|
* Extension targets only inherit search paths, with no explicit pod dependencies.
|
|
69
130
|
* This avoids linking incompatible modules like Expo that contain UIApplication APIs.
|
|
70
131
|
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
132
|
+
* `excludedPackages` is recorded as a comment marker so a `post_integrate` hook can
|
|
133
|
+
* strip those names from `expo-configure-project.sh` and regenerate the provider.
|
|
134
|
+
* Nested `use_expo_modules!(exclude:)` is a no-op (parent AutolinkingManager).
|
|
73
135
|
*
|
|
74
136
|
* @param podsRbContent - Optional content from a pods.rb file in the target directory.
|
|
75
137
|
* Allows custom CocoaPods configuration (e.g., Firebase, third-party SDKs).
|
|
76
138
|
* See: https://github.com/nicklockwood/apple-targets#cocoapods
|
|
77
139
|
*/
|
|
78
|
-
function generateReactNativeTargetBlock({ targetName, deploymentTarget, extensionType, podsRbContent, }) {
|
|
79
|
-
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
.join('\n') +
|
|
86
|
-
'\n'
|
|
140
|
+
function generateReactNativeTargetBlock({ targetName, deploymentTarget, extensionType: _extensionType, podsRbContent, excludedPackages, }) {
|
|
141
|
+
const customPods = indentCustomPods(podsRbContent);
|
|
142
|
+
const packages = (excludedPackages ?? [])
|
|
143
|
+
.map((p) => p.trim())
|
|
144
|
+
.filter(Boolean);
|
|
145
|
+
const excludeLine = packages.length > 0
|
|
146
|
+
? `\n ${exports.EXCLUDED_PACKAGES_MARKER} ${packages.join(',')}`
|
|
87
147
|
: '';
|
|
148
|
+
// App Clips still use search_paths here; framework embedding for the clip
|
|
149
|
+
// product is handled by a dedicated PBX shell phase (inherit! :complete
|
|
150
|
+
// breaks ExpoModulesCore resolution under nested targets).
|
|
88
151
|
return `
|
|
89
152
|
target '${targetName}' do
|
|
90
153
|
platform :ios, '${deploymentTarget}'
|
|
91
|
-
inherit! :search_paths${customPods}
|
|
154
|
+
inherit! :search_paths${excludeLine}${customPods}
|
|
92
155
|
end
|
|
93
156
|
`;
|
|
94
157
|
}
|
|
@@ -118,17 +181,9 @@ exports.mainTargetUsesFrameworks = mainTargetUsesFrameworks;
|
|
|
118
181
|
*/
|
|
119
182
|
function generateStandaloneTargetBlock({ targetName, deploymentTarget, useFrameworks, podsRbContent, }) {
|
|
120
183
|
const frameworksLine = useFrameworks
|
|
121
|
-
?
|
|
122
|
-
: '';
|
|
123
|
-
// Indent pods.rb content to match target block indentation
|
|
124
|
-
const customPods = podsRbContent
|
|
125
|
-
? '\n' +
|
|
126
|
-
podsRbContent
|
|
127
|
-
.split('\n')
|
|
128
|
-
.map((line) => (line.trim() ? ` ${line}` : ''))
|
|
129
|
-
.join('\n') +
|
|
130
|
-
'\n'
|
|
184
|
+
? ' use_frameworks! :linkage => :static\n'
|
|
131
185
|
: '';
|
|
186
|
+
const customPods = indentCustomPods(podsRbContent);
|
|
132
187
|
return `
|
|
133
188
|
target '${targetName}' do
|
|
134
189
|
${frameworksLine} platform :ios, '${deploymentTarget}'${customPods}
|
|
@@ -136,40 +191,35 @@ ${frameworksLine} platform :ios, '${deploymentTarget}'${customPods}
|
|
|
136
191
|
`;
|
|
137
192
|
}
|
|
138
193
|
exports.generateStandaloneTargetBlock = generateStandaloneTargetBlock;
|
|
194
|
+
/**
|
|
195
|
+
* Standalone targets are inserted as siblings AFTER the main target's closing
|
|
196
|
+
* `end`, which prevents CocoaPods from auto-generating Expo module providers.
|
|
197
|
+
*/
|
|
198
|
+
function insertStandaloneTargetBlock(podfileContent, targetBlock, logger) {
|
|
199
|
+
// The main target is the outermost block in a standard Expo Podfile, so its
|
|
200
|
+
// closing 'end' is the last one in the file.
|
|
201
|
+
const lastEndMatch = podfileContent.match(/\bend\b(?!.*\bend\b)/s);
|
|
202
|
+
if (!lastEndMatch) {
|
|
203
|
+
throw new Error('Could not find any end keyword in Podfile');
|
|
204
|
+
}
|
|
205
|
+
const mainTargetEndIndex = lastEndMatch.index + lastEndMatch[0].length;
|
|
206
|
+
logger?.log(`Inserting standalone target after main target's closing 'end' at position ${mainTargetEndIndex}`);
|
|
207
|
+
return (podfileContent.slice(0, mainTargetEndIndex) +
|
|
208
|
+
'\n\n' +
|
|
209
|
+
targetBlock.trim() +
|
|
210
|
+
podfileContent.slice(mainTargetEndIndex));
|
|
211
|
+
}
|
|
139
212
|
/**
|
|
140
213
|
* Insert a target block into a Podfile.
|
|
141
214
|
* React Native targets are nested inside main app to inherit dependencies.
|
|
142
215
|
* Standalone targets are inserted as siblings to avoid Expo module autolinking.
|
|
143
216
|
*/
|
|
144
|
-
function insertTargetBlock(podfileContent, targetBlock,
|
|
217
|
+
function insertTargetBlock(podfileContent, targetBlock, options = {}) {
|
|
218
|
+
const { standalone = false, logger } = options;
|
|
145
219
|
if (standalone) {
|
|
146
|
-
|
|
147
|
-
// This prevents CocoaPods from auto-generating Expo module providers
|
|
148
|
-
// Find the last 'end' in the Podfile - this should be the main target's closing 'end'
|
|
149
|
-
// since the main target is the outermost block in a standard Expo Podfile
|
|
150
|
-
const lastEndMatch = podfileContent.match(/\bend\b(?!.*\bend\b)/s);
|
|
151
|
-
if (!lastEndMatch) {
|
|
152
|
-
throw new Error('Could not find any end keyword in Podfile');
|
|
153
|
-
}
|
|
154
|
-
const mainTargetEndIndex = lastEndMatch.index + lastEndMatch[0].length;
|
|
155
|
-
if (logger) {
|
|
156
|
-
logger.log(`Inserting standalone target after main target's closing 'end' at position ${mainTargetEndIndex}`);
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
console.log(`[expo-targets] Inserting standalone target after main target's closing 'end' at position ${mainTargetEndIndex}`);
|
|
160
|
-
}
|
|
161
|
-
// Insert after main target's closing 'end'
|
|
162
|
-
return (podfileContent.slice(0, mainTargetEndIndex) +
|
|
163
|
-
'\n\n' +
|
|
164
|
-
targetBlock.trim() +
|
|
165
|
-
podfileContent.slice(mainTargetEndIndex));
|
|
166
|
-
}
|
|
167
|
-
if (logger) {
|
|
168
|
-
logger.log('Inserting React Native target nested inside main target');
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
console.log('[expo-targets] Inserting React Native target nested inside main target');
|
|
220
|
+
return insertStandaloneTargetBlock(podfileContent, targetBlock, logger);
|
|
172
221
|
}
|
|
222
|
+
logger?.log('Inserting React Native target nested inside main target');
|
|
173
223
|
// React Native targets: nest inside main target before post_install
|
|
174
224
|
const postInstallIndex = podfileContent.indexOf('post_install do');
|
|
175
225
|
if (postInstallIndex !== -1) {
|
|
@@ -194,56 +244,53 @@ function hasTargetBlock(podfileContent, targetName) {
|
|
|
194
244
|
}
|
|
195
245
|
exports.hasTargetBlock = hasTargetBlock;
|
|
196
246
|
/**
|
|
197
|
-
*
|
|
198
|
-
*
|
|
247
|
+
* Find the index just past the `end` that closes the block opened at
|
|
248
|
+
* `afterDoIndex`, counting every Ruby keyword that requires an `end`.
|
|
199
249
|
*/
|
|
200
|
-
function
|
|
201
|
-
// Find the target block
|
|
202
|
-
const targetRegex = new RegExp(`target\\s+['"]${targetName}['"]\\s+do`, 'g');
|
|
203
|
-
const targetMatch = targetRegex.exec(podfileContent);
|
|
204
|
-
if (!targetMatch) {
|
|
205
|
-
return podfileContent; // Target doesn't exist, nothing to remove
|
|
206
|
-
}
|
|
207
|
-
// Find the corresponding closing 'end' by counting nested block pairs
|
|
208
|
-
const startIndex = targetMatch.index;
|
|
209
|
-
const afterDoIndex = targetMatch.index + targetMatch[0].length;
|
|
210
|
-
// Start at depth 1 because we're already inside the target block (after 'do')
|
|
211
|
-
let depth = 1;
|
|
212
|
-
// Match all Ruby block keywords that require 'end'
|
|
250
|
+
function findBlockEndIndex(podfileContent, afterDoIndex) {
|
|
213
251
|
const blockRegex = /\b(do|if|unless|case|begin|class|module|def|end)\b/g;
|
|
214
252
|
blockRegex.lastIndex = afterDoIndex;
|
|
215
|
-
|
|
216
|
-
let
|
|
217
|
-
|
|
253
|
+
// Start at depth 1 because we're already inside the block (after 'do').
|
|
254
|
+
let depth = 1;
|
|
255
|
+
let match = blockRegex.exec(podfileContent);
|
|
256
|
+
while (match !== null) {
|
|
218
257
|
if (match[1] === 'end') {
|
|
219
258
|
depth--;
|
|
220
259
|
if (depth === 0) {
|
|
221
|
-
|
|
222
|
-
targetEndIndex = match.index + match[0].length;
|
|
223
|
-
break;
|
|
260
|
+
return match.index + match[0].length;
|
|
224
261
|
}
|
|
225
262
|
}
|
|
226
263
|
else {
|
|
227
|
-
// All other keywords open a block
|
|
228
264
|
depth++;
|
|
229
265
|
}
|
|
266
|
+
match = blockRegex.exec(podfileContent);
|
|
230
267
|
}
|
|
268
|
+
return -1;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Remove an existing target block from a Podfile.
|
|
272
|
+
* Finds the target declaration and removes it along with its entire do/end block.
|
|
273
|
+
*/
|
|
274
|
+
function removeTargetBlock(podfileContent, targetName) {
|
|
275
|
+
const targetRegex = new RegExp(`target\\s+['"]${targetName}['"]\\s+do`, 'g');
|
|
276
|
+
const targetMatch = targetRegex.exec(podfileContent);
|
|
277
|
+
if (!targetMatch) {
|
|
278
|
+
return podfileContent; // Target doesn't exist, nothing to remove
|
|
279
|
+
}
|
|
280
|
+
const startIndex = targetMatch.index;
|
|
281
|
+
const targetEndIndex = findBlockEndIndex(podfileContent, targetMatch.index + targetMatch[0].length);
|
|
231
282
|
if (targetEndIndex === -1) {
|
|
232
283
|
throw new Error(`Could not find closing end for target '${targetName}'`);
|
|
233
284
|
}
|
|
234
|
-
// Remove the target block including
|
|
235
|
-
// Look back to remove leading whitespace/newlines
|
|
285
|
+
// Remove the target block including leading whitespace/newlines
|
|
236
286
|
let removeStart = startIndex;
|
|
237
287
|
while (removeStart > 0 && /[\s\n]/.test(podfileContent[removeStart - 1])) {
|
|
238
288
|
removeStart--;
|
|
239
289
|
}
|
|
240
|
-
//
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
removeEnd++;
|
|
245
|
-
break; // Keep only one trailing newline
|
|
246
|
-
}
|
|
290
|
+
// Drop at most one trailing newline
|
|
291
|
+
const removeEnd = podfileContent[targetEndIndex] === '\n'
|
|
292
|
+
? targetEndIndex + 1
|
|
293
|
+
: targetEndIndex;
|
|
247
294
|
return podfileContent.slice(0, removeStart) + podfileContent.slice(removeEnd);
|
|
248
295
|
}
|
|
249
296
|
exports.removeTargetBlock = removeTargetBlock;
|
|
@@ -267,7 +314,7 @@ function ensureMainTargetUsesFrameworks(podfileContent, mainTargetName) {
|
|
|
267
314
|
}
|
|
268
315
|
// Find insertion point: after "target 'Name' do" line
|
|
269
316
|
const targetLineRegex = new RegExp(`(target\\s+'${mainTargetName}'\\s+do\\s*\\n)`, 'm');
|
|
270
|
-
return podfileContent.replace(targetLineRegex,
|
|
317
|
+
return podfileContent.replace(targetLineRegex, '$1 use_frameworks! :linkage => :static\n\n');
|
|
271
318
|
}
|
|
272
319
|
exports.ensureMainTargetUsesFrameworks = ensureMainTargetUsesFrameworks;
|
|
273
320
|
/**
|
|
@@ -285,16 +332,14 @@ function updatePodfilePlatform(podfileContent, deploymentTarget) {
|
|
|
285
332
|
const platformLineRegex = /(platform\s+:ios\s*,\s*)(?:podfile_properties\[['"]ios\.deploymentTarget['"]\]\s*\|\|\s*)?(['"])([^'"]+)(['"])/;
|
|
286
333
|
const match = podfileContent.match(platformLineRegex);
|
|
287
334
|
if (!match) {
|
|
288
|
-
console.warn('[expo-targets] Could not find platform :ios line in Podfile to update');
|
|
289
335
|
return podfileContent;
|
|
290
336
|
}
|
|
291
337
|
const currentVersion = match[3];
|
|
292
338
|
const quoteChar = match[2]; // Preserve original quote style (' or ")
|
|
293
|
-
const currentVersionNum = parseFloat(currentVersion);
|
|
294
|
-
const newVersionNum = parseFloat(deploymentTarget);
|
|
339
|
+
const currentVersionNum = Number.parseFloat(currentVersion);
|
|
340
|
+
const newVersionNum = Number.parseFloat(deploymentTarget);
|
|
295
341
|
// Only update if the new version is higher
|
|
296
342
|
if (newVersionNum > currentVersionNum) {
|
|
297
|
-
console.log(`[expo-targets] Updating Podfile platform from iOS ${currentVersion} to ${deploymentTarget}`);
|
|
298
343
|
// Replace the entire platform line with a simple version
|
|
299
344
|
// Use the same quote style as the original
|
|
300
345
|
return podfileContent.replace(platformLineRegex, `$1${quoteChar}${deploymentTarget}${quoteChar}`);
|
|
@@ -302,37 +347,15 @@ function updatePodfilePlatform(podfileContent, deploymentTarget) {
|
|
|
302
347
|
return podfileContent;
|
|
303
348
|
}
|
|
304
349
|
exports.updatePodfilePlatform = updatePodfilePlatform;
|
|
350
|
+
const STANDALONE_DEPLOYMENT_START = ' # [expo-targets-standalone-start]';
|
|
351
|
+
const STANDALONE_DEPLOYMENT_END = ' # [expo-targets-standalone-end]';
|
|
305
352
|
/**
|
|
306
|
-
*
|
|
307
|
-
*
|
|
308
|
-
* react_native_post_install runs, which might override them.
|
|
309
|
-
*
|
|
310
|
-
* Fixes both the Pods Xcode project targets AND the xcconfig files that extensions reference.
|
|
353
|
+
* Ruby that pins one extension target's deployment target, both in the Pods
|
|
354
|
+
* project and in the xcconfig the extension references.
|
|
311
355
|
*/
|
|
312
|
-
|
|
313
|
-
if (extensions.length === 0) {
|
|
314
|
-
return podfileContent;
|
|
315
|
-
}
|
|
316
|
-
const START_MARKER = ' # [expo-targets-standalone-start]';
|
|
317
|
-
const END_MARKER = ' # [expo-targets-standalone-end]';
|
|
318
|
-
// Remove any existing block between markers (idempotent)
|
|
319
|
-
const startIndex = podfileContent.indexOf(START_MARKER);
|
|
320
|
-
if (startIndex !== -1) {
|
|
321
|
-
const endIndex = podfileContent.indexOf(END_MARKER, startIndex);
|
|
322
|
-
if (endIndex !== -1) {
|
|
323
|
-
const beforeBlock = podfileContent.substring(0, startIndex);
|
|
324
|
-
const afterBlock = podfileContent.substring(endIndex + END_MARKER.length);
|
|
325
|
-
podfileContent = beforeBlock.trimEnd() + '\n' + afterBlock.trimStart();
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
// Generate the deployment target fix code to inject
|
|
329
|
-
const fixCode = `${START_MARKER}
|
|
330
|
-
# Fix standalone extension deployment targets
|
|
331
|
-
installer.pods_project.targets.each do |target|
|
|
332
|
-
${extensions
|
|
333
|
-
.map((ext) => ` if target.name.include?('${ext.targetName}')
|
|
356
|
+
const DEPLOYMENT_TARGET_RULE = ` if target.name.include?('{{TARGET_NAME}}')
|
|
334
357
|
target.build_configurations.each do |config|
|
|
335
|
-
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '
|
|
358
|
+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '{{DEPLOYMENT_TARGET}}'
|
|
336
359
|
# Also update the xcconfig file
|
|
337
360
|
xcconfig_path = config.base_configuration_reference.real_path
|
|
338
361
|
if xcconfig_path && File.exist?(xcconfig_path)
|
|
@@ -340,80 +363,56 @@ ${extensions
|
|
|
340
363
|
# Remove existing IPHONEOS_DEPLOYMENT_TARGET if present
|
|
341
364
|
xcconfig_content.gsub!(/^IPHONEOS_DEPLOYMENT_TARGET = .*$/, '')
|
|
342
365
|
# Add deployment target
|
|
343
|
-
xcconfig_content += "\\nIPHONEOS_DEPLOYMENT_TARGET =
|
|
366
|
+
xcconfig_content += "\\nIPHONEOS_DEPLOYMENT_TARGET = {{DEPLOYMENT_TARGET}}\\n"
|
|
344
367
|
File.write(xcconfig_path, xcconfig_content)
|
|
345
368
|
end
|
|
346
369
|
end
|
|
347
|
-
end
|
|
348
|
-
|
|
370
|
+
end`;
|
|
371
|
+
function buildDeploymentTargetFix(extensions) {
|
|
372
|
+
const rules = extensions
|
|
373
|
+
.map((ext) => DEPLOYMENT_TARGET_RULE.replace(/{{TARGET_NAME}}/g, ext.targetName).replace(/{{DEPLOYMENT_TARGET}}/g, ext.deploymentTarget))
|
|
374
|
+
.join('\n');
|
|
375
|
+
return `${STANDALONE_DEPLOYMENT_START}
|
|
376
|
+
# Fix standalone extension deployment targets
|
|
377
|
+
installer.pods_project.targets.each do |target|
|
|
378
|
+
${rules}
|
|
349
379
|
end
|
|
350
|
-
${
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
if (line.includes('post_install do')) {
|
|
362
|
-
postInstallStartLine = i;
|
|
363
|
-
depth = 1;
|
|
364
|
-
continue;
|
|
365
|
-
}
|
|
366
|
-
if (postInstallStartLine !== -1) {
|
|
367
|
-
// Count all Ruby block openers and 'end' to find the matching end
|
|
368
|
-
const openMatches = (line.match(blockOpenRegex) || []).length;
|
|
369
|
-
const endMatches = (line.match(/\bend\b/g) || []).length;
|
|
370
|
-
depth += openMatches - endMatches;
|
|
371
|
-
if (depth === 0 && endMatches > 0) {
|
|
372
|
-
postInstallEndLine = i;
|
|
373
|
-
break;
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
if (postInstallStartLine === -1 || postInstallEndLine === -1) {
|
|
380
|
+
${STANDALONE_DEPLOYMENT_END}`;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Inject deployment target fixes into the main app's existing post_install hook.
|
|
384
|
+
* This ensures extension targets maintain their correct deployment targets even after
|
|
385
|
+
* react_native_post_install runs, which might override them.
|
|
386
|
+
*
|
|
387
|
+
* Fixes both the Pods Xcode project targets AND the xcconfig files that extensions reference.
|
|
388
|
+
*/
|
|
389
|
+
function ensureExtensionDeploymentTargets(podfileContent, extensions) {
|
|
390
|
+
if (extensions.length === 0) {
|
|
378
391
|
return podfileContent;
|
|
379
392
|
}
|
|
393
|
+
const content = removeMarkedBlock(podfileContent, STANDALONE_DEPLOYMENT_START, STANDALONE_DEPLOYMENT_END);
|
|
394
|
+
const lines = content.split('\n');
|
|
395
|
+
const postInstallEndLine = findPostInstallEndLine(lines);
|
|
396
|
+
if (postInstallEndLine === -1) {
|
|
397
|
+
return content;
|
|
398
|
+
}
|
|
380
399
|
// Insert before the closing 'end' of post_install
|
|
381
400
|
const beforeLines = lines.slice(0, postInstallEndLine).join('\n');
|
|
382
401
|
const afterLines = lines.slice(postInstallEndLine).join('\n');
|
|
383
|
-
return beforeLines
|
|
402
|
+
return `${beforeLines}\n${buildDeploymentTargetFix(extensions)}\n${afterLines}`;
|
|
384
403
|
}
|
|
385
404
|
exports.ensureExtensionDeploymentTargets = ensureExtensionDeploymentTargets;
|
|
405
|
+
const REACT_NATIVE_PATHS_START = ' # [expo-targets-start]';
|
|
406
|
+
const REACT_NATIVE_PATHS_END = ' # [expo-targets-end]';
|
|
386
407
|
/**
|
|
387
|
-
*
|
|
388
|
-
*
|
|
408
|
+
* Ruby that copies the Swift-relevant search paths from the main app's Pods
|
|
409
|
+
* target (and its xcconfig) onto one React Native extension target.
|
|
389
410
|
*/
|
|
390
|
-
|
|
391
|
-
if (extensions.length === 0) {
|
|
392
|
-
return podfileContent;
|
|
393
|
-
}
|
|
394
|
-
const START_MARKER = ' # [expo-targets-start]';
|
|
395
|
-
const END_MARKER = ' # [expo-targets-end]';
|
|
396
|
-
// Remove any existing block between markers (idempotent)
|
|
397
|
-
const startIndex = podfileContent.indexOf(START_MARKER);
|
|
398
|
-
if (startIndex !== -1) {
|
|
399
|
-
const endIndex = podfileContent.indexOf(END_MARKER, startIndex);
|
|
400
|
-
if (endIndex !== -1) {
|
|
401
|
-
const beforeBlock = podfileContent.substring(0, startIndex);
|
|
402
|
-
const afterBlock = podfileContent.substring(endIndex + END_MARKER.length);
|
|
403
|
-
podfileContent = beforeBlock.trimEnd() + '\n' + afterBlock.trimStart();
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
// Generate fresh code with markers
|
|
407
|
-
const mainPodsTarget = `Pods-${mainTargetName}`;
|
|
408
|
-
const fixCode = `${START_MARKER}
|
|
409
|
-
# Fix React Native extension framework search paths
|
|
410
|
-
installer.pods_project.targets.each do |target|
|
|
411
|
-
${extensions
|
|
412
|
-
.map((ext) => ` if target.name.include?('${ext.targetName}')
|
|
411
|
+
const FRAMEWORK_PATHS_RULE = ` if target.name.include?('{{TARGET_NAME}}')
|
|
413
412
|
target.build_configurations.each do |config|
|
|
414
|
-
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '
|
|
413
|
+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '{{DEPLOYMENT_TARGET}}'
|
|
415
414
|
# Copy framework search paths from main app target
|
|
416
|
-
main_target = installer.pods_project.targets.find { |t| t.name == '
|
|
415
|
+
main_target = installer.pods_project.targets.find { |t| t.name == '{{MAIN_PODS_TARGET}}' }
|
|
417
416
|
if main_target
|
|
418
417
|
main_config = main_target.build_configurations.find { |c| c.name == config.name }
|
|
419
418
|
if main_config && main_config.build_settings['FRAMEWORK_SEARCH_PATHS']
|
|
@@ -431,7 +430,7 @@ ${extensions
|
|
|
431
430
|
# Remove existing IPHONEOS_DEPLOYMENT_TARGET if present
|
|
432
431
|
xcconfig_content.gsub!(/^IPHONEOS_DEPLOYMENT_TARGET = .*$/, '')
|
|
433
432
|
# Add deployment target
|
|
434
|
-
xcconfig_content += "\\nIPHONEOS_DEPLOYMENT_TARGET =
|
|
433
|
+
xcconfig_content += "\\nIPHONEOS_DEPLOYMENT_TARGET = {{DEPLOYMENT_TARGET}}\\n"
|
|
435
434
|
# Copy framework search paths and other Swift-related settings from main app's xcconfig
|
|
436
435
|
if main_target
|
|
437
436
|
main_config = main_target.build_configurations.find { |c| c.name == config.name }
|
|
@@ -469,57 +468,117 @@ ${extensions
|
|
|
469
468
|
File.write(xcconfig_path, xcconfig_content)
|
|
470
469
|
end
|
|
471
470
|
end
|
|
472
|
-
end
|
|
473
|
-
|
|
471
|
+
end`;
|
|
472
|
+
function buildFrameworkPathsFix(extensions, mainTargetName) {
|
|
473
|
+
const mainPodsTarget = `Pods-${mainTargetName}`;
|
|
474
|
+
const rules = extensions
|
|
475
|
+
.map((ext) => FRAMEWORK_PATHS_RULE.replace(/{{TARGET_NAME}}/g, ext.targetName)
|
|
476
|
+
.replace(/{{DEPLOYMENT_TARGET}}/g, ext.deploymentTarget)
|
|
477
|
+
.replace(/{{MAIN_PODS_TARGET}}/g, mainPodsTarget))
|
|
478
|
+
.join('\n');
|
|
479
|
+
return `${REACT_NATIVE_PATHS_START}
|
|
480
|
+
# Fix React Native extension framework search paths
|
|
481
|
+
installer.pods_project.targets.each do |target|
|
|
482
|
+
${rules}
|
|
474
483
|
end
|
|
475
|
-
${
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
const line = lines[i];
|
|
484
|
-
if (line.includes('react_native_post_install(')) {
|
|
485
|
-
reactNativeStartLine = i;
|
|
486
|
-
parenDepth =
|
|
487
|
-
(line.match(/\(/g) || []).length - (line.match(/\)/g) || []).length;
|
|
488
|
-
continue;
|
|
489
|
-
}
|
|
490
|
-
if (reactNativeStartLine !== -1) {
|
|
491
|
-
const openParens = (line.match(/\(/g) || []).length;
|
|
492
|
-
const closeParens = (line.match(/\)/g) || []).length;
|
|
493
|
-
parenDepth += openParens - closeParens;
|
|
494
|
-
if (parenDepth === 0 && closeParens > 0) {
|
|
495
|
-
reactNativeEndLine = i;
|
|
496
|
-
break;
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
if (reactNativeStartLine === -1 || reactNativeEndLine === -1) {
|
|
501
|
-
console.warn('[expo-targets] Could not find react_native_post_install');
|
|
484
|
+
${REACT_NATIVE_PATHS_END}`;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Ensure React Native extension targets have proper framework search paths.
|
|
488
|
+
* Uses START/END markers for reliable, idempotent injection.
|
|
489
|
+
*/
|
|
490
|
+
function ensureReactNativeExtensionFrameworkPaths(podfileContent, extensions, mainTargetName) {
|
|
491
|
+
if (extensions.length === 0) {
|
|
502
492
|
return podfileContent;
|
|
503
493
|
}
|
|
504
|
-
|
|
505
|
-
const
|
|
506
|
-
const
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
//
|
|
494
|
+
const content = removeMarkedBlock(podfileContent, REACT_NATIVE_PATHS_START, REACT_NATIVE_PATHS_END);
|
|
495
|
+
const lines = content.split('\n');
|
|
496
|
+
const endLine = findReactNativePostInstallEndLine(lines);
|
|
497
|
+
if (endLine === -1) {
|
|
498
|
+
return content;
|
|
499
|
+
}
|
|
500
|
+
// Insert right after the closing paren of react_native_post_install
|
|
501
|
+
const insertPosition = lines.slice(0, endLine + 1).join('\n').length;
|
|
502
|
+
const beforeInsert = content.substring(0, insertPosition);
|
|
503
|
+
const afterInsert = content.substring(insertPosition);
|
|
511
504
|
const needsNewlineBefore = !beforeInsert.endsWith('\n');
|
|
512
|
-
//
|
|
513
|
-
|
|
514
|
-
const hasPostInstallEnd = afterTrimmed.startsWith('end');
|
|
515
|
-
// Insert: newline + our code + newline (preserve existing post_install end if present)
|
|
516
|
-
// Important: preserve indentation of afterInsert to maintain valid Podfile structure
|
|
517
|
-
// Using trimStart() would break the " end" indentation that ensureExtensionDeploymentTargets relies on
|
|
505
|
+
// Keep the indentation of what follows: trimming it would break the " end"
|
|
506
|
+
// of post_install that ensureExtensionDeploymentTargets relies on.
|
|
518
507
|
return (beforeInsert.trimEnd() +
|
|
519
508
|
(needsNewlineBefore ? '\n' : '') +
|
|
520
|
-
|
|
509
|
+
buildFrameworkPathsFix(extensions, mainTargetName) +
|
|
521
510
|
'\n' +
|
|
522
511
|
afterInsert);
|
|
523
512
|
}
|
|
524
513
|
exports.ensureReactNativeExtensionFrameworkPaths = ensureReactNativeExtensionFrameworkPaths;
|
|
514
|
+
const EXCLUDED_PACKAGES_POST_INTEGRATE_START = '# [expo-targets-excluded-packages-start]';
|
|
515
|
+
const EXCLUDED_PACKAGES_POST_INTEGRATE_END = '# [expo-targets-excluded-packages-end]';
|
|
516
|
+
function rubySingleQuoted(value) {
|
|
517
|
+
return `'${value.replace(/\\/g, '\\\\').replace(/'/g, "\\'")}'`;
|
|
518
|
+
}
|
|
519
|
+
/** Ruby body lines for the excludedPackages post_integrate hook (minus hash). */
|
|
520
|
+
const EXCLUDED_PACKAGES_RUBY_PREFIX = [
|
|
521
|
+
EXCLUDED_PACKAGES_POST_INTEGRATE_START,
|
|
522
|
+
'# Strip host-only Expo packages from nested RN extension ExpoModulesProviders.',
|
|
523
|
+
'# Nested use_expo_modules!(exclude:) is a no-op (parent AutolinkingManager);',
|
|
524
|
+
'# Expo regenerates the provider during integrate_user_targets after post_install.',
|
|
525
|
+
'post_integrate do |installer|',
|
|
526
|
+
' exclusions = {',
|
|
527
|
+
];
|
|
528
|
+
const EXCLUDED_PACKAGES_RUBY_SUFFIX = [
|
|
529
|
+
' }',
|
|
530
|
+
' exclusions.each do |target_name, packages|',
|
|
531
|
+
' next if packages.nil? || packages.empty?',
|
|
532
|
+
' support_dir = File.join(installer.sandbox.root, \'Target Support Files\', "Pods-#{target_name}")',
|
|
533
|
+
" script_path = File.join(support_dir, 'expo-configure-project.sh')",
|
|
534
|
+
" provider_path = File.join(support_dir, 'ExpoModulesProvider.swift')",
|
|
535
|
+
' unless File.exist?(script_path)',
|
|
536
|
+
' Pod::UI.warn "[expo-targets] Missing #{script_path}; skip excludedPackages for #{target_name}"',
|
|
537
|
+
' next',
|
|
538
|
+
' end',
|
|
539
|
+
' content = File.read(script_path)',
|
|
540
|
+
' packages.each do |pkg|',
|
|
541
|
+
' content.gsub!(/\\s*"#{Regexp.escape(pkg)}"/, \'\')',
|
|
542
|
+
' end',
|
|
543
|
+
' File.write(script_path, content)',
|
|
544
|
+
" ok = system({ 'PODS_ROOT' => installer.sandbox.root.to_s }, 'bash', script_path)",
|
|
545
|
+
' unless ok',
|
|
546
|
+
' raise "[expo-targets] Failed to regenerate ExpoModulesProvider for #{target_name} after excludedPackages strip"',
|
|
547
|
+
' end',
|
|
548
|
+
' unless File.exist?(provider_path)',
|
|
549
|
+
' raise "[expo-targets] ExpoModulesProvider missing after regenerate for #{target_name}"',
|
|
550
|
+
' end',
|
|
551
|
+
' Pod::UI.puts "[expo-targets] Applied excludedPackages to #{target_name}: #{packages.join(\', \')}"',
|
|
552
|
+
' end',
|
|
553
|
+
'end',
|
|
554
|
+
EXCLUDED_PACKAGES_POST_INTEGRATE_END,
|
|
555
|
+
'',
|
|
556
|
+
];
|
|
557
|
+
function buildExcludedPackagesPostIntegrate(exclusions) {
|
|
558
|
+
const hashEntries = exclusions
|
|
559
|
+
.map(({ targetName, packages }) => {
|
|
560
|
+
const pkgs = packages.map(rubySingleQuoted).join(', ');
|
|
561
|
+
return ` ${rubySingleQuoted(targetName)} => [${pkgs}]`;
|
|
562
|
+
})
|
|
563
|
+
.join(',\n');
|
|
564
|
+
return [
|
|
565
|
+
...EXCLUDED_PACKAGES_RUBY_PREFIX,
|
|
566
|
+
hashEntries,
|
|
567
|
+
...EXCLUDED_PACKAGES_RUBY_SUFFIX,
|
|
568
|
+
].join('\n');
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* Ensure a top-level `post_integrate` hook strips `excludedPackages` from each
|
|
572
|
+
* nested RN target's `expo-configure-project.sh` and regenerates its provider.
|
|
573
|
+
* Idempotent via START/END markers. No exclusions → remove any prior hook.
|
|
574
|
+
*/
|
|
575
|
+
function ensureExcludedPackagesPostIntegrate(podfileContent, exclusions) {
|
|
576
|
+
const without = removeMarkedBlock(podfileContent, EXCLUDED_PACKAGES_POST_INTEGRATE_START, EXCLUDED_PACKAGES_POST_INTEGRATE_END);
|
|
577
|
+
if (exclusions.length === 0) {
|
|
578
|
+
return without.trimEnd() + '\n';
|
|
579
|
+
}
|
|
580
|
+
const block = buildExcludedPackagesPostIntegrate(exclusions);
|
|
581
|
+
return `${without.trimEnd()}\n\n${block}`;
|
|
582
|
+
}
|
|
583
|
+
exports.ensureExcludedPackagesPostIntegrate = ensureExcludedPackagesPostIntegrate;
|
|
525
584
|
//# sourceMappingURL=podfile.js.map
|