expo-targets 2.2.1 → 2.2.2
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/android/src/main/java/expo/modules/targets/ExpoTargetsWidgetUpdateReceiver.kt +7 -1
- package/android/src/main/java/expo/modules/targets/liveActivity/ExpoTargetsLiveActivityModule.kt +22 -0
- package/android/src/main/java/expo/modules/targets/storage/ExpoTargetsStorageModule.kt +46 -42
- package/build/plugin/src/domain/uiMode.d.ts +6 -0
- package/build/plugin/src/domain/uiMode.d.ts.map +1 -1
- package/build/plugin/src/domain/uiMode.js +6 -0
- package/build/plugin/src/domain/uiMode.js.map +1 -1
- package/build/src/Target.d.ts.map +1 -1
- package/build/src/Target.js +19 -28
- package/build/src/Target.js.map +1 -1
- package/build/src/modules/extensionBundle/enableExtensionUpdates.d.ts.map +1 -1
- package/build/src/modules/extensionBundle/enableExtensionUpdates.js +16 -1
- package/build/src/modules/extensionBundle/enableExtensionUpdates.js.map +1 -1
- package/build/src/modules/messages/index.d.ts.map +1 -1
- package/build/src/modules/messages/index.js +22 -60
- package/build/src/modules/messages/index.js.map +1 -1
- package/build/src/modules/storage/codec.d.ts +15 -0
- package/build/src/modules/storage/codec.d.ts.map +1 -0
- package/build/src/modules/storage/codec.js +58 -0
- package/build/src/modules/storage/codec.js.map +1 -0
- package/build/src/modules/storage/index.d.ts +1 -0
- package/build/src/modules/storage/index.d.ts.map +1 -1
- package/build/src/modules/storage/index.js +52 -55
- package/build/src/modules/storage/index.js.map +1 -1
- package/cli/build/checks/heavyExclusions.d.ts +1 -3
- package/cli/build/checks/heavyExclusions.d.ts.map +1 -1
- package/cli/build/checks/heavyExclusions.js +0 -5
- package/cli/build/checks/heavyExclusions.js.map +1 -1
- package/cli/build/doctor.d.ts.map +1 -1
- package/cli/build/doctor.js +26 -32
- package/cli/build/doctor.js.map +1 -1
- package/cli/build/exportExtensionBundles.d.ts.map +1 -1
- package/cli/build/exportExtensionBundles.js +2 -1
- package/cli/build/exportExtensionBundles.js.map +1 -1
- package/expo-module.config.json +0 -1
- package/ios/ExpoTargetsExtensionBundleModule.swift +43 -6
- package/ios/ExpoTargetsExtensionModule.swift +48 -42
- package/ios/ExpoTargetsMessagesModule.swift +20 -35
- package/ios/ExpoTargetsStorageModule.swift +55 -20
- package/package.json +2 -2
- package/plugin/build/android/manifest.d.ts +12 -0
- package/plugin/build/android/manifest.d.ts.map +1 -0
- package/plugin/build/android/manifest.js +44 -0
- package/plugin/build/android/manifest.js.map +1 -0
- package/plugin/build/android/resolveAndroidWidgetProviders.d.ts +3 -1
- package/plugin/build/android/resolveAndroidWidgetProviders.d.ts.map +1 -1
- package/plugin/build/android/resolveAndroidWidgetProviders.js +5 -6
- package/plugin/build/android/resolveAndroidWidgetProviders.js.map +1 -1
- package/plugin/build/android/targetSourceSets.d.ts +19 -2
- package/plugin/build/android/targetSourceSets.d.ts.map +1 -1
- package/plugin/build/android/targetSourceSets.js +49 -35
- package/plugin/build/android/targetSourceSets.js.map +1 -1
- package/plugin/build/android/withAndroidNotification.d.ts.map +1 -1
- package/plugin/build/android/withAndroidNotification.js +5 -34
- package/plugin/build/android/withAndroidNotification.js.map +1 -1
- package/plugin/build/android/withAndroidShareAction.d.ts.map +1 -1
- package/plugin/build/android/withAndroidShareAction.js +2 -7
- package/plugin/build/android/withAndroidShareAction.js.map +1 -1
- package/plugin/build/android/withAndroidSystemService.d.ts.map +1 -1
- package/plugin/build/android/withAndroidSystemService.js +9 -50
- package/plugin/build/android/withAndroidSystemService.js.map +1 -1
- package/plugin/build/android/withAndroidTarget.d.ts.map +1 -1
- package/plugin/build/android/withAndroidTarget.js +2 -0
- package/plugin/build/android/withAndroidTarget.js.map +1 -1
- package/plugin/build/android/withAndroidTargetsConfig.d.ts.map +1 -1
- package/plugin/build/android/withAndroidTargetsConfig.js +2 -1
- package/plugin/build/android/withAndroidTargetsConfig.js.map +1 -1
- package/plugin/build/android/withAndroidWidget.d.ts.map +1 -1
- package/plugin/build/android/withAndroidWidget.js +28 -46
- package/plugin/build/android/withAndroidWidget.js.map +1 -1
- package/plugin/build/autolinkedPackages.d.ts.map +1 -1
- package/plugin/build/autolinkedPackages.js +27 -0
- package/plugin/build/autolinkedPackages.js.map +1 -1
- package/plugin/build/codegen/typedTargets.d.ts +2 -0
- package/plugin/build/codegen/typedTargets.d.ts.map +1 -1
- package/plugin/build/codegen/typedTargets.js +26 -3
- package/plugin/build/codegen/typedTargets.js.map +1 -1
- package/plugin/build/domain/index.d.ts +1 -1
- package/plugin/build/domain/index.d.ts.map +1 -1
- package/plugin/build/domain/index.js +2 -1
- package/plugin/build/domain/index.js.map +1 -1
- package/plugin/build/domain/uiMode.d.ts +6 -0
- package/plugin/build/domain/uiMode.d.ts.map +1 -1
- package/plugin/build/domain/uiMode.js +6 -0
- package/plugin/build/domain/uiMode.js.map +1 -1
- package/plugin/build/entryGraph.d.ts +11 -2
- package/plugin/build/entryGraph.d.ts.map +1 -1
- package/plugin/build/entryGraph.js +65 -20
- package/plugin/build/entryGraph.js.map +1 -1
- package/plugin/build/ios/apply/pbx/bundleReactNative.d.ts.map +1 -1
- package/plugin/build/ios/apply/pbx/bundleReactNative.js +6 -56
- package/plugin/build/ios/apply/pbx/bundleReactNative.js.map +1 -1
- package/plugin/build/ios/apply/pbx/copyFrameworksIntoAppClip.d.ts +0 -5
- package/plugin/build/ios/apply/pbx/copyFrameworksIntoAppClip.d.ts.map +1 -1
- package/plugin/build/ios/apply/pbx/copyFrameworksIntoAppClip.js +7 -112
- package/plugin/build/ios/apply/pbx/copyFrameworksIntoAppClip.js.map +1 -1
- package/plugin/build/ios/apply/pbx/deterministicUuids.d.ts +9 -0
- package/plugin/build/ios/apply/pbx/deterministicUuids.d.ts.map +1 -0
- package/plugin/build/ios/apply/pbx/deterministicUuids.js +36 -0
- package/plugin/build/ios/apply/pbx/deterministicUuids.js.map +1 -0
- package/plugin/build/ios/apply/pbx/fileRefs.d.ts +0 -10
- package/plugin/build/ios/apply/pbx/fileRefs.d.ts.map +1 -1
- package/plugin/build/ios/apply/pbx/fileRefs.js +0 -78
- package/plugin/build/ios/apply/pbx/fileRefs.js.map +1 -1
- package/plugin/build/ios/apply/pbx/index.d.ts +1 -1
- package/plugin/build/ios/apply/pbx/index.d.ts.map +1 -1
- package/plugin/build/ios/apply/pbx/index.js +1 -2
- package/plugin/build/ios/apply/pbx/index.js.map +1 -1
- package/plugin/build/ios/apply/pbx/safariWebBundle.d.ts.map +1 -1
- package/plugin/build/ios/apply/pbx/safariWebBundle.js +11 -55
- package/plugin/build/ios/apply/pbx/safariWebBundle.js.map +1 -1
- package/plugin/build/ios/apply/pbx/shellScriptPhase.d.ts +18 -0
- package/plugin/build/ios/apply/pbx/shellScriptPhase.d.ts.map +1 -0
- package/plugin/build/ios/apply/pbx/shellScriptPhase.js +69 -0
- package/plugin/build/ios/apply/pbx/shellScriptPhase.js.map +1 -0
- package/plugin/build/ios/apply/pbx/targetLifecycle.d.ts.map +1 -1
- package/plugin/build/ios/apply/pbx/targetLifecycle.js +41 -9
- package/plugin/build/ios/apply/pbx/targetLifecycle.js.map +1 -1
- package/plugin/build/ios/apply/podfile/podfile.d.ts +3 -2
- package/plugin/build/ios/apply/podfile/podfile.d.ts.map +1 -1
- package/plugin/build/ios/apply/podfile/podfile.js +122 -181
- package/plugin/build/ios/apply/podfile/podfile.js.map +1 -1
- package/plugin/build/ios/apply/podfile/rubyBlocks.d.ts +46 -0
- package/plugin/build/ios/apply/podfile/rubyBlocks.d.ts.map +1 -0
- package/plugin/build/ios/apply/podfile/rubyBlocks.js +169 -0
- package/plugin/build/ios/apply/podfile/rubyBlocks.js.map +1 -0
- package/plugin/build/ios/apply/podfile/scan.d.ts +2 -2
- package/plugin/build/ios/apply/podfile/scan.d.ts.map +1 -1
- package/plugin/build/ios/apply/podfile/scan.js +24 -63
- package/plugin/build/ios/apply/podfile/scan.js.map +1 -1
- package/plugin/build/ios/cng/withExpoTargetsGenerated.d.ts +2 -1
- package/plugin/build/ios/cng/withExpoTargetsGenerated.d.ts.map +1 -1
- package/plugin/build/ios/cng/withExpoTargetsGenerated.js +30 -20
- package/plugin/build/ios/cng/withExpoTargetsGenerated.js.map +1 -1
- package/plugin/build/ios/config-plugins/withIOSTarget.d.ts.map +1 -1
- package/plugin/build/ios/config-plugins/withIOSTarget.js +6 -27
- package/plugin/build/ios/config-plugins/withIOSTarget.js.map +1 -1
- package/plugin/build/ios/config-plugins/withXcodeChanges.d.ts.map +1 -1
- package/plugin/build/ios/config-plugins/withXcodeChanges.js +3 -1
- package/plugin/build/ios/config-plugins/withXcodeChanges.js.map +1 -1
- package/plugin/build/ios/plan/swiftSources.d.ts.map +1 -1
- package/plugin/build/ios/plan/swiftSources.js +5 -12
- package/plugin/build/ios/plan/swiftSources.js.map +1 -1
- package/plugin/build/ios/plan/types.d.ts +2 -0
- package/plugin/build/ios/plan/types.d.ts.map +1 -1
- package/plugin/build/ios/templates/ReactNativeClipApp.swift +37 -12
- package/plugin/build/ios/templates/ReactNativeViewController.swift +31 -19
- package/plugin/build/ios/templates/clip-extension-data.swift +2 -10
- package/plugin/build/ios/templates/share-extension-data.swift +48 -32
- package/plugin/build/ios/utils/asset.d.ts.map +1 -1
- package/plugin/build/ios/utils/asset.js +73 -48
- package/plugin/build/ios/utils/asset.js.map +1 -1
- package/plugin/build/ios/utils/file.d.ts +2 -1
- package/plugin/build/ios/utils/file.d.ts.map +1 -1
- package/plugin/build/ios/utils/file.js +4 -3
- package/plugin/build/ios/utils/file.js.map +1 -1
- package/plugin/build/ios/utils/paths.d.ts +0 -60
- package/plugin/build/ios/utils/paths.d.ts.map +1 -1
- package/plugin/build/ios/utils/paths.js +0 -64
- package/plugin/build/ios/utils/paths.js.map +1 -1
- package/plugin/build/ios/utils/plist.d.ts +0 -4
- package/plugin/build/ios/utils/plist.d.ts.map +1 -1
- package/plugin/build/ios/utils/plist.js +0 -11
- package/plugin/build/ios/utils/plist.js.map +1 -1
- package/plugin/build/ios/utils/reactNativeSwift.d.ts +2 -0
- package/plugin/build/ios/utils/reactNativeSwift.d.ts.map +1 -1
- package/plugin/build/ios/utils/reactNativeSwift.js +10 -10
- package/plugin/build/ios/utils/reactNativeSwift.js.map +1 -1
- package/plugin/build/ios/utils/safari.d.ts +0 -8
- package/plugin/build/ios/utils/safari.d.ts.map +1 -1
- package/plugin/build/ios/utils/safari.js +0 -17
- package/plugin/build/ios/utils/safari.js.map +1 -1
- package/plugin/build/logger.d.ts +5 -3
- package/plugin/build/logger.d.ts.map +1 -1
- package/plugin/build/logger.js +13 -19
- package/plugin/build/logger.js.map +1 -1
- package/plugin/build/writeFileIfChanged.d.ts +8 -0
- package/plugin/build/writeFileIfChanged.d.ts.map +1 -0
- package/plugin/build/writeFileIfChanged.js +29 -0
- package/plugin/build/writeFileIfChanged.js.map +1 -0
- package/android/src/main/java/expo/modules/targets/ExpoTargetsWidgetProvider.kt +0 -47
- package/android/src/main/java/expo/modules/targets/messages/ExpoTargetsMessagesModule.kt +0 -40
- package/build/metro/src/index.d.ts +0 -2
- package/build/metro/src/index.d.ts.map +0 -1
- package/build/metro/src/index.js +0 -8
- package/build/metro/src/index.js.map +0 -1
- package/build/metro/src/parseScriptConfig.d.ts +0 -6
- package/build/metro/src/parseScriptConfig.d.ts.map +0 -1
- package/build/metro/src/parseScriptConfig.js +0 -163
- package/build/metro/src/parseScriptConfig.js.map +0 -1
- package/build/metro/src/withTargets.d.ts +0 -24
- package/build/metro/src/withTargets.d.ts.map +0 -1
- package/build/metro/src/withTargets.js +0 -205
- package/build/metro/src/withTargets.js.map +0 -1
- package/build/plugin/src/android/activationMime.d.ts +0 -12
- package/build/plugin/src/android/activationMime.d.ts.map +0 -1
- package/build/plugin/src/android/activationMime.js +0 -46
- package/build/plugin/src/android/activationMime.js.map +0 -1
- package/build/plugin/src/android/extraImplementations.d.ts +0 -6
- package/build/plugin/src/android/extraImplementations.d.ts.map +0 -1
- package/build/plugin/src/android/extraImplementations.js +0 -33
- package/build/plugin/src/android/extraImplementations.js.map +0 -1
- package/build/plugin/src/android/generateImageResources.d.ts +0 -7
- package/build/plugin/src/android/generateImageResources.d.ts.map +0 -1
- package/build/plugin/src/android/generateImageResources.js +0 -77
- package/build/plugin/src/android/generateImageResources.js.map +0 -1
- package/build/plugin/src/android/resolveAndroidWidgetProviders.d.ts +0 -49
- package/build/plugin/src/android/resolveAndroidWidgetProviders.d.ts.map +0 -1
- package/build/plugin/src/android/resolveAndroidWidgetProviders.js +0 -182
- package/build/plugin/src/android/resolveAndroidWidgetProviders.js.map +0 -1
- package/build/plugin/src/android/resolveUserClass.d.ts +0 -14
- package/build/plugin/src/android/resolveUserClass.d.ts.map +0 -1
- package/build/plugin/src/android/resolveUserClass.js +0 -57
- package/build/plugin/src/android/resolveUserClass.js.map +0 -1
- package/build/plugin/src/android/targetSourceSets.d.ts +0 -9
- package/build/plugin/src/android/targetSourceSets.d.ts.map +0 -1
- package/build/plugin/src/android/targetSourceSets.js +0 -100
- package/build/plugin/src/android/targetSourceSets.js.map +0 -1
- package/build/plugin/src/android/widgetSourceSets.d.ts +0 -10
- package/build/plugin/src/android/widgetSourceSets.d.ts.map +0 -1
- package/build/plugin/src/android/widgetSourceSets.js +0 -176
- package/build/plugin/src/android/widgetSourceSets.js.map +0 -1
- package/build/plugin/src/android/withAndroidAppBuildGradle.d.ts +0 -7
- package/build/plugin/src/android/withAndroidAppBuildGradle.d.ts.map +0 -1
- package/build/plugin/src/android/withAndroidAppBuildGradle.js +0 -30
- package/build/plugin/src/android/withAndroidAppBuildGradle.js.map +0 -1
- package/build/plugin/src/android/withAndroidNotification.d.ts +0 -13
- package/build/plugin/src/android/withAndroidNotification.d.ts.map +0 -1
- package/build/plugin/src/android/withAndroidNotification.js +0 -237
- package/build/plugin/src/android/withAndroidNotification.js.map +0 -1
- package/build/plugin/src/android/withAndroidShareAction.d.ts +0 -11
- package/build/plugin/src/android/withAndroidShareAction.d.ts.map +0 -1
- package/build/plugin/src/android/withAndroidShareAction.js +0 -199
- package/build/plugin/src/android/withAndroidShareAction.js.map +0 -1
- package/build/plugin/src/android/withAndroidSystemService.d.ts +0 -12
- package/build/plugin/src/android/withAndroidSystemService.d.ts.map +0 -1
- package/build/plugin/src/android/withAndroidSystemService.js +0 -334
- package/build/plugin/src/android/withAndroidSystemService.js.map +0 -1
- package/build/plugin/src/android/withAndroidTarget.d.ts +0 -11
- package/build/plugin/src/android/withAndroidTarget.d.ts.map +0 -1
- package/build/plugin/src/android/withAndroidTarget.js +0 -70
- package/build/plugin/src/android/withAndroidTarget.js.map +0 -1
- package/build/plugin/src/android/withAndroidTargetsConfig.d.ts +0 -9
- package/build/plugin/src/android/withAndroidTargetsConfig.d.ts.map +0 -1
- package/build/plugin/src/android/withAndroidTargetsConfig.js +0 -62
- package/build/plugin/src/android/withAndroidTargetsConfig.js.map +0 -1
- package/build/plugin/src/android/withAndroidWidget.d.ts +0 -13
- package/build/plugin/src/android/withAndroidWidget.d.ts.map +0 -1
- package/build/plugin/src/android/withAndroidWidget.js +0 -499
- package/build/plugin/src/android/withAndroidWidget.js.map +0 -1
- package/build/plugin/src/android/withExpoUiAndroidWidgets.d.ts +0 -34
- package/build/plugin/src/android/withExpoUiAndroidWidgets.d.ts.map +0 -1
- package/build/plugin/src/android/withExpoUiAndroidWidgets.js +0 -120
- package/build/plugin/src/android/withExpoUiAndroidWidgets.js.map +0 -1
- package/build/plugin/src/autolinkedPackages.d.ts +0 -19
- package/build/plugin/src/autolinkedPackages.d.ts.map +0 -1
- package/build/plugin/src/autolinkedPackages.js +0 -262
- package/build/plugin/src/autolinkedPackages.js.map +0 -1
- package/build/plugin/src/codegen/collectRuntimeConfigs.d.ts +0 -45
- package/build/plugin/src/codegen/collectRuntimeConfigs.d.ts.map +0 -1
- package/build/plugin/src/codegen/collectRuntimeConfigs.js +0 -69
- package/build/plugin/src/codegen/collectRuntimeConfigs.js.map +0 -1
- package/build/plugin/src/codegen/index.d.ts +0 -8
- package/build/plugin/src/codegen/index.d.ts.map +0 -1
- package/build/plugin/src/codegen/index.js +0 -17
- package/build/plugin/src/codegen/index.js.map +0 -1
- package/build/plugin/src/codegen/typedTargets.d.ts +0 -36
- package/build/plugin/src/codegen/typedTargets.d.ts.map +0 -1
- package/build/plugin/src/codegen/typedTargets.js +0 -185
- package/build/plugin/src/codegen/typedTargets.js.map +0 -1
- package/build/plugin/src/codegen/warnIfSealedHandEdited.d.ts +0 -12
- package/build/plugin/src/codegen/warnIfSealedHandEdited.d.ts.map +0 -1
- package/build/plugin/src/codegen/warnIfSealedHandEdited.js +0 -31
- package/build/plugin/src/codegen/warnIfSealedHandEdited.js.map +0 -1
- package/build/plugin/src/codegen/widgetKindNames.d.ts +0 -6
- package/build/plugin/src/codegen/widgetKindNames.d.ts.map +0 -1
- package/build/plugin/src/codegen/widgetKindNames.js +0 -40
- package/build/plugin/src/codegen/widgetKindNames.js.map +0 -1
- package/build/plugin/src/domain/appGroups.d.ts +0 -31
- package/build/plugin/src/domain/appGroups.d.ts.map +0 -1
- package/build/plugin/src/domain/appGroups.js +0 -71
- package/build/plugin/src/domain/appGroups.js.map +0 -1
- package/build/plugin/src/domain/bundleIds.d.ts +0 -9
- package/build/plugin/src/domain/bundleIds.d.ts.map +0 -1
- package/build/plugin/src/domain/bundleIds.js +0 -10
- package/build/plugin/src/domain/bundleIds.js.map +0 -1
- package/build/plugin/src/domain/characteristics.d.ts +0 -52
- package/build/plugin/src/domain/characteristics.d.ts.map +0 -1
- package/build/plugin/src/domain/characteristics.js +0 -852
- package/build/plugin/src/domain/characteristics.js.map +0 -1
- package/build/plugin/src/domain/deployment.d.ts +0 -14
- package/build/plugin/src/domain/deployment.d.ts.map +0 -1
- package/build/plugin/src/domain/deployment.js +0 -14
- package/build/plugin/src/domain/deployment.js.map +0 -1
- package/build/plugin/src/domain/index.d.ts +0 -16
- package/build/plugin/src/domain/index.d.ts.map +0 -1
- package/build/plugin/src/domain/index.js +0 -42
- package/build/plugin/src/domain/index.js.map +0 -1
- package/build/plugin/src/domain/rnCompat.d.ts +0 -16
- package/build/plugin/src/domain/rnCompat.d.ts.map +0 -1
- package/build/plugin/src/domain/rnCompat.js +0 -37
- package/build/plugin/src/domain/rnCompat.js.map +0 -1
- package/build/plugin/src/domain/types.d.ts +0 -9
- package/build/plugin/src/domain/types.d.ts.map +0 -1
- package/build/plugin/src/domain/types.js +0 -10
- package/build/plugin/src/domain/types.js.map +0 -1
- package/build/plugin/src/ensureHostAppGroups.d.ts +0 -21
- package/build/plugin/src/ensureHostAppGroups.d.ts.map +0 -1
- package/build/plugin/src/ensureHostAppGroups.js +0 -173
- package/build/plugin/src/ensureHostAppGroups.js.map +0 -1
- package/build/plugin/src/ensureHostLiveActivities.d.ts +0 -14
- package/build/plugin/src/ensureHostLiveActivities.d.ts.map +0 -1
- package/build/plugin/src/ensureHostLiveActivities.js +0 -39
- package/build/plugin/src/ensureHostLiveActivities.js.map +0 -1
- package/build/plugin/src/entryGraph.d.ts +0 -16
- package/build/plugin/src/entryGraph.d.ts.map +0 -1
- package/build/plugin/src/entryGraph.js +0 -155
- package/build/plugin/src/entryGraph.js.map +0 -1
- package/build/plugin/src/index.d.ts +0 -9
- package/build/plugin/src/index.d.ts.map +0 -1
- package/build/plugin/src/index.js +0 -16
- package/build/plugin/src/index.js.map +0 -1
- package/build/plugin/src/ios/apply/fs/applyTargetPlan.d.ts +0 -11
- package/build/plugin/src/ios/apply/fs/applyTargetPlan.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/fs/applyTargetPlan.js +0 -88
- package/build/plugin/src/ios/apply/fs/applyTargetPlan.js.map +0 -1
- package/build/plugin/src/ios/apply/fs/assets.d.ts +0 -9
- package/build/plugin/src/ios/apply/fs/assets.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/fs/assets.js +0 -125
- package/build/plugin/src/ios/apply/fs/assets.js.map +0 -1
- package/build/plugin/src/ios/apply/fs/entitlements.d.ts +0 -11
- package/build/plugin/src/ios/apply/fs/entitlements.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/fs/entitlements.js +0 -61
- package/build/plugin/src/ios/apply/fs/entitlements.js.map +0 -1
- package/build/plugin/src/ios/apply/fs/index.d.ts +0 -14
- package/build/plugin/src/ios/apply/fs/index.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/fs/index.js +0 -24
- package/build/plugin/src/ios/apply/fs/index.js.map +0 -1
- package/build/plugin/src/ios/apply/fs/infoPlist.d.ts +0 -6
- package/build/plugin/src/ios/apply/fs/infoPlist.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/fs/infoPlist.js +0 -44
- package/build/plugin/src/ios/apply/fs/infoPlist.js.map +0 -1
- package/build/plugin/src/ios/apply/fs/safari.d.ts +0 -10
- package/build/plugin/src/ios/apply/fs/safari.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/fs/safari.js +0 -72
- package/build/plugin/src/ios/apply/fs/safari.js.map +0 -1
- package/build/plugin/src/ios/apply/fs/stickers.d.ts +0 -8
- package/build/plugin/src/ios/apply/fs/stickers.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/fs/stickers.js +0 -81
- package/build/plugin/src/ios/apply/fs/stickers.js.map +0 -1
- package/build/plugin/src/ios/apply/fs/swift.d.ts +0 -12
- package/build/plugin/src/ios/apply/fs/swift.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/fs/swift.js +0 -88
- package/build/plugin/src/ios/apply/fs/swift.js.map +0 -1
- package/build/plugin/src/ios/apply/pbx/applyTargetPlan.d.ts +0 -18
- package/build/plugin/src/ios/apply/pbx/applyTargetPlan.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/pbx/applyTargetPlan.js +0 -338
- package/build/plugin/src/ios/apply/pbx/applyTargetPlan.js.map +0 -1
- package/build/plugin/src/ios/apply/pbx/buildPhases.d.ts +0 -30
- package/build/plugin/src/ios/apply/pbx/buildPhases.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/pbx/buildPhases.js +0 -100
- package/build/plugin/src/ios/apply/pbx/buildPhases.js.map +0 -1
- package/build/plugin/src/ios/apply/pbx/buildSettings.d.ts +0 -37
- package/build/plugin/src/ios/apply/pbx/buildSettings.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/pbx/buildSettings.js +0 -79
- package/build/plugin/src/ios/apply/pbx/buildSettings.js.map +0 -1
- package/build/plugin/src/ios/apply/pbx/bundleReactNative.d.ts +0 -19
- package/build/plugin/src/ios/apply/pbx/bundleReactNative.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/pbx/bundleReactNative.js +0 -135
- package/build/plugin/src/ios/apply/pbx/bundleReactNative.js.map +0 -1
- package/build/plugin/src/ios/apply/pbx/clipBuildNumber.d.ts +0 -8
- package/build/plugin/src/ios/apply/pbx/clipBuildNumber.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/pbx/clipBuildNumber.js +0 -32
- package/build/plugin/src/ios/apply/pbx/clipBuildNumber.js.map +0 -1
- package/build/plugin/src/ios/apply/pbx/copyFrameworksIntoAppClip.d.ts +0 -25
- package/build/plugin/src/ios/apply/pbx/copyFrameworksIntoAppClip.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/pbx/copyFrameworksIntoAppClip.js +0 -195
- package/build/plugin/src/ios/apply/pbx/copyFrameworksIntoAppClip.js.map +0 -1
- package/build/plugin/src/ios/apply/pbx/embed.d.ts +0 -63
- package/build/plugin/src/ios/apply/pbx/embed.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/pbx/embed.js +0 -571
- package/build/plugin/src/ios/apply/pbx/embed.js.map +0 -1
- package/build/plugin/src/ios/apply/pbx/fileRefs.d.ts +0 -26
- package/build/plugin/src/ios/apply/pbx/fileRefs.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/pbx/fileRefs.js +0 -131
- package/build/plugin/src/ios/apply/pbx/fileRefs.js.map +0 -1
- package/build/plugin/src/ios/apply/pbx/groups.d.ts +0 -25
- package/build/plugin/src/ios/apply/pbx/groups.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/pbx/groups.js +0 -83
- package/build/plugin/src/ios/apply/pbx/groups.js.map +0 -1
- package/build/plugin/src/ios/apply/pbx/index.d.ts +0 -18
- package/build/plugin/src/ios/apply/pbx/index.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/pbx/index.js +0 -53
- package/build/plugin/src/ios/apply/pbx/index.js.map +0 -1
- package/build/plugin/src/ios/apply/pbx/safariWebBundle.d.ts +0 -15
- package/build/plugin/src/ios/apply/pbx/safariWebBundle.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/pbx/safariWebBundle.js +0 -98
- package/build/plugin/src/ios/apply/pbx/safariWebBundle.js.map +0 -1
- package/build/plugin/src/ios/apply/pbx/targetLifecycle.d.ts +0 -59
- package/build/plugin/src/ios/apply/pbx/targetLifecycle.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/pbx/targetLifecycle.js +0 -184
- package/build/plugin/src/ios/apply/pbx/targetLifecycle.js.map +0 -1
- package/build/plugin/src/ios/apply/pbx/types.d.ts +0 -12
- package/build/plugin/src/ios/apply/pbx/types.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/pbx/types.js +0 -6
- package/build/plugin/src/ios/apply/pbx/types.js.map +0 -1
- package/build/plugin/src/ios/apply/podfile/applyPodfilePlan.d.ts +0 -12
- package/build/plugin/src/ios/apply/podfile/applyPodfilePlan.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/podfile/applyPodfilePlan.js +0 -87
- package/build/plugin/src/ios/apply/podfile/applyPodfilePlan.js.map +0 -1
- package/build/plugin/src/ios/apply/podfile/index.d.ts +0 -11
- package/build/plugin/src/ios/apply/podfile/index.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/podfile/index.js +0 -32
- package/build/plugin/src/ios/apply/podfile/index.js.map +0 -1
- package/build/plugin/src/ios/apply/podfile/podfile.d.ts +0 -143
- package/build/plugin/src/ios/apply/podfile/podfile.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/podfile/podfile.js +0 -749
- package/build/plugin/src/ios/apply/podfile/podfile.js.map +0 -1
- package/build/plugin/src/ios/apply/podfile/scan.d.ts +0 -41
- package/build/plugin/src/ios/apply/podfile/scan.d.ts.map +0 -1
- package/build/plugin/src/ios/apply/podfile/scan.js +0 -134
- package/build/plugin/src/ios/apply/podfile/scan.js.map +0 -1
- package/build/plugin/src/ios/cng/appShortcutsCodegen.d.ts +0 -6
- package/build/plugin/src/ios/cng/appShortcutsCodegen.d.ts.map +0 -1
- package/build/plugin/src/ios/cng/appShortcutsCodegen.js +0 -78
- package/build/plugin/src/ios/cng/appShortcutsCodegen.js.map +0 -1
- package/build/plugin/src/ios/cng/controlCodegen.d.ts +0 -16
- package/build/plugin/src/ios/cng/controlCodegen.d.ts.map +0 -1
- package/build/plugin/src/ios/cng/controlCodegen.js +0 -107
- package/build/plugin/src/ios/cng/controlCodegen.js.map +0 -1
- package/build/plugin/src/ios/cng/liveActivityCodegen.d.ts +0 -6
- package/build/plugin/src/ios/cng/liveActivityCodegen.d.ts.map +0 -1
- package/build/plugin/src/ios/cng/liveActivityCodegen.js +0 -314
- package/build/plugin/src/ios/cng/liveActivityCodegen.js.map +0 -1
- package/build/plugin/src/ios/cng/swiftTypes.d.ts +0 -4
- package/build/plugin/src/ios/cng/swiftTypes.d.ts.map +0 -1
- package/build/plugin/src/ios/cng/swiftTypes.js +0 -33
- package/build/plugin/src/ios/cng/swiftTypes.js.map +0 -1
- package/build/plugin/src/ios/cng/withExpoTargetsGenerated.d.ts +0 -28
- package/build/plugin/src/ios/cng/withExpoTargetsGenerated.d.ts.map +0 -1
- package/build/plugin/src/ios/cng/withExpoTargetsGenerated.js +0 -358
- package/build/plugin/src/ios/cng/withExpoTargetsGenerated.js.map +0 -1
- package/build/plugin/src/ios/config-plugins/withEASCredentials.d.ts +0 -23
- package/build/plugin/src/ios/config-plugins/withEASCredentials.d.ts.map +0 -1
- package/build/plugin/src/ios/config-plugins/withEASCredentials.js +0 -58
- package/build/plugin/src/ios/config-plugins/withEASCredentials.js.map +0 -1
- package/build/plugin/src/ios/config-plugins/withEntitlements.d.ts +0 -15
- package/build/plugin/src/ios/config-plugins/withEntitlements.d.ts.map +0 -1
- package/build/plugin/src/ios/config-plugins/withEntitlements.js +0 -82
- package/build/plugin/src/ios/config-plugins/withEntitlements.js.map +0 -1
- package/build/plugin/src/ios/config-plugins/withIOSTarget.d.ts +0 -24
- package/build/plugin/src/ios/config-plugins/withIOSTarget.d.ts.map +0 -1
- package/build/plugin/src/ios/config-plugins/withIOSTarget.js +0 -348
- package/build/plugin/src/ios/config-plugins/withIOSTarget.js.map +0 -1
- package/build/plugin/src/ios/config-plugins/withPodfile.d.ts +0 -19
- package/build/plugin/src/ios/config-plugins/withPodfile.d.ts.map +0 -1
- package/build/plugin/src/ios/config-plugins/withPodfile.js +0 -51
- package/build/plugin/src/ios/config-plugins/withPodfile.js.map +0 -1
- package/build/plugin/src/ios/config-plugins/withXcodeChanges.d.ts +0 -11
- package/build/plugin/src/ios/config-plugins/withXcodeChanges.d.ts.map +0 -1
- package/build/plugin/src/ios/config-plugins/withXcodeChanges.js +0 -80
- package/build/plugin/src/ios/config-plugins/withXcodeChanges.js.map +0 -1
- package/build/plugin/src/ios/observe/index.d.ts +0 -7
- package/build/plugin/src/ios/observe/index.d.ts.map +0 -1
- package/build/plugin/src/ios/observe/index.js +0 -11
- package/build/plugin/src/ios/observe/index.js.map +0 -1
- package/build/plugin/src/ios/observe/podsRb.d.ts +0 -10
- package/build/plugin/src/ios/observe/podsRb.d.ts.map +0 -1
- package/build/plugin/src/ios/observe/podsRb.js +0 -53
- package/build/plugin/src/ios/observe/podsRb.js.map +0 -1
- package/build/plugin/src/ios/observe/workspace.d.ts +0 -53
- package/build/plugin/src/ios/observe/workspace.d.ts.map +0 -1
- package/build/plugin/src/ios/observe/workspace.js +0 -117
- package/build/plugin/src/ios/observe/workspace.js.map +0 -1
- package/build/plugin/src/ios/plan/assets.d.ts +0 -14
- package/build/plugin/src/ios/plan/assets.d.ts.map +0 -1
- package/build/plugin/src/ios/plan/assets.js +0 -148
- package/build/plugin/src/ios/plan/assets.js.map +0 -1
- package/build/plugin/src/ios/plan/buildInfoPlist.d.ts +0 -43
- package/build/plugin/src/ios/plan/buildInfoPlist.d.ts.map +0 -1
- package/build/plugin/src/ios/plan/buildInfoPlist.js +0 -352
- package/build/plugin/src/ios/plan/buildInfoPlist.js.map +0 -1
- package/build/plugin/src/ios/plan/buildSettings.d.ts +0 -11
- package/build/plugin/src/ios/plan/buildSettings.d.ts.map +0 -1
- package/build/plugin/src/ios/plan/buildSettings.js +0 -262
- package/build/plugin/src/ios/plan/buildSettings.js.map +0 -1
- package/build/plugin/src/ios/plan/bundleReactNative.d.ts +0 -7
- package/build/plugin/src/ios/plan/bundleReactNative.d.ts.map +0 -1
- package/build/plugin/src/ios/plan/bundleReactNative.js +0 -20
- package/build/plugin/src/ios/plan/bundleReactNative.js.map +0 -1
- package/build/plugin/src/ios/plan/bundleResources.d.ts +0 -11
- package/build/plugin/src/ios/plan/bundleResources.d.ts.map +0 -1
- package/build/plugin/src/ios/plan/bundleResources.js +0 -22
- package/build/plugin/src/ios/plan/bundleResources.js.map +0 -1
- package/build/plugin/src/ios/plan/compose.d.ts +0 -7
- package/build/plugin/src/ios/plan/compose.d.ts.map +0 -1
- package/build/plugin/src/ios/plan/compose.js +0 -61
- package/build/plugin/src/ios/plan/compose.js.map +0 -1
- package/build/plugin/src/ios/plan/embed.d.ts +0 -8
- package/build/plugin/src/ios/plan/embed.d.ts.map +0 -1
- package/build/plugin/src/ios/plan/embed.js +0 -12
- package/build/plugin/src/ios/plan/embed.js.map +0 -1
- package/build/plugin/src/ios/plan/entitlements.d.ts +0 -19
- package/build/plugin/src/ios/plan/entitlements.d.ts.map +0 -1
- package/build/plugin/src/ios/plan/entitlements.js +0 -82
- package/build/plugin/src/ios/plan/entitlements.js.map +0 -1
- package/build/plugin/src/ios/plan/identity.d.ts +0 -9
- package/build/plugin/src/ios/plan/identity.d.ts.map +0 -1
- package/build/plugin/src/ios/plan/identity.js +0 -70
- package/build/plugin/src/ios/plan/identity.js.map +0 -1
- package/build/plugin/src/ios/plan/index.d.ts +0 -22
- package/build/plugin/src/ios/plan/index.d.ts.map +0 -1
- package/build/plugin/src/ios/plan/index.js +0 -38
- package/build/plugin/src/ios/plan/index.js.map +0 -1
- package/build/plugin/src/ios/plan/infoPlist.d.ts +0 -9
- package/build/plugin/src/ios/plan/infoPlist.d.ts.map +0 -1
- package/build/plugin/src/ios/plan/infoPlist.js +0 -107
- package/build/plugin/src/ios/plan/infoPlist.js.map +0 -1
- package/build/plugin/src/ios/plan/podfile.d.ts +0 -20
- package/build/plugin/src/ios/plan/podfile.d.ts.map +0 -1
- package/build/plugin/src/ios/plan/podfile.js +0 -23
- package/build/plugin/src/ios/plan/podfile.js.map +0 -1
- package/build/plugin/src/ios/plan/safari.d.ts +0 -14
- package/build/plugin/src/ios/plan/safari.d.ts.map +0 -1
- package/build/plugin/src/ios/plan/safari.js +0 -32
- package/build/plugin/src/ios/plan/safari.js.map +0 -1
- package/build/plugin/src/ios/plan/safariWebBundle.d.ts +0 -7
- package/build/plugin/src/ios/plan/safariWebBundle.d.ts.map +0 -1
- package/build/plugin/src/ios/plan/safariWebBundle.js +0 -62
- package/build/plugin/src/ios/plan/safariWebBundle.js.map +0 -1
- package/build/plugin/src/ios/plan/swiftSources.d.ts +0 -13
- package/build/plugin/src/ios/plan/swiftSources.d.ts.map +0 -1
- package/build/plugin/src/ios/plan/swiftSources.js +0 -330
- package/build/plugin/src/ios/plan/swiftSources.js.map +0 -1
- package/build/plugin/src/ios/plan/types.d.ts +0 -257
- package/build/plugin/src/ios/plan/types.d.ts.map +0 -1
- package/build/plugin/src/ios/plan/types.js +0 -3
- package/build/plugin/src/ios/plan/types.js.map +0 -1
- package/build/plugin/src/ios/safari/exportSafariWebBundle.d.ts +0 -20
- package/build/plugin/src/ios/safari/exportSafariWebBundle.d.ts.map +0 -1
- package/build/plugin/src/ios/safari/exportSafariWebBundle.js +0 -128
- package/build/plugin/src/ios/safari/exportSafariWebBundle.js.map +0 -1
- package/build/plugin/src/ios/safari/exportSafariWebBundleCli.d.ts +0 -2
- package/build/plugin/src/ios/safari/exportSafariWebBundleCli.d.ts.map +0 -1
- package/build/plugin/src/ios/safari/exportSafariWebBundleCli.js +0 -75
- package/build/plugin/src/ios/safari/exportSafariWebBundleCli.js.map +0 -1
- package/build/plugin/src/ios/utils/asset.d.ts +0 -73
- package/build/plugin/src/ios/utils/asset.d.ts.map +0 -1
- package/build/plugin/src/ios/utils/asset.js +0 -389
- package/build/plugin/src/ios/utils/asset.js.map +0 -1
- package/build/plugin/src/ios/utils/expoUiWidgetSwift.d.ts +0 -36
- package/build/plugin/src/ios/utils/expoUiWidgetSwift.d.ts.map +0 -1
- package/build/plugin/src/ios/utils/expoUiWidgetSwift.js +0 -318
- package/build/plugin/src/ios/utils/expoUiWidgetSwift.js.map +0 -1
- package/build/plugin/src/ios/utils/file.d.ts +0 -33
- package/build/plugin/src/ios/utils/file.d.ts.map +0 -1
- package/build/plugin/src/ios/utils/file.js +0 -86
- package/build/plugin/src/ios/utils/file.js.map +0 -1
- package/build/plugin/src/ios/utils/index.d.ts +0 -16
- package/build/plugin/src/ios/utils/index.d.ts.map +0 -1
- package/build/plugin/src/ios/utils/index.js +0 -52
- package/build/plugin/src/ios/utils/index.js.map +0 -1
- package/build/plugin/src/ios/utils/paths.d.ts +0 -130
- package/build/plugin/src/ios/utils/paths.d.ts.map +0 -1
- package/build/plugin/src/ios/utils/paths.js +0 -156
- package/build/plugin/src/ios/utils/paths.js.map +0 -1
- package/build/plugin/src/ios/utils/plist.d.ts +0 -30
- package/build/plugin/src/ios/utils/plist.d.ts.map +0 -1
- package/build/plugin/src/ios/utils/plist.js +0 -105
- package/build/plugin/src/ios/utils/plist.js.map +0 -1
- package/build/plugin/src/ios/utils/reactNativeSwift.d.ts +0 -15
- package/build/plugin/src/ios/utils/reactNativeSwift.d.ts.map +0 -1
- package/build/plugin/src/ios/utils/reactNativeSwift.js +0 -210
- package/build/plugin/src/ios/utils/reactNativeSwift.js.map +0 -1
- package/build/plugin/src/ios/utils/safari.d.ts +0 -76
- package/build/plugin/src/ios/utils/safari.d.ts.map +0 -1
- package/build/plugin/src/ios/utils/safari.js +0 -462
- package/build/plugin/src/ios/utils/safari.js.map +0 -1
- package/build/plugin/src/linkerCompanions.d.ts +0 -21
- package/build/plugin/src/linkerCompanions.d.ts.map +0 -1
- package/build/plugin/src/linkerCompanions.js +0 -59
- package/build/plugin/src/linkerCompanions.js.map +0 -1
- package/build/plugin/src/loadTargetConfigModule.d.ts +0 -3
- package/build/plugin/src/loadTargetConfigModule.d.ts.map +0 -1
- package/build/plugin/src/loadTargetConfigModule.js +0 -54
- package/build/plugin/src/loadTargetConfigModule.js.map +0 -1
- package/build/plugin/src/logger.d.ts +0 -10
- package/build/plugin/src/logger.d.ts.map +0 -1
- package/build/plugin/src/logger.js +0 -55
- package/build/plugin/src/logger.js.map +0 -1
- package/build/plugin/src/resolveExcludedPackages.d.ts +0 -39
- package/build/plugin/src/resolveExcludedPackages.d.ts.map +0 -1
- package/build/plugin/src/resolveExcludedPackages.js +0 -76
- package/build/plugin/src/resolveExcludedPackages.js.map +0 -1
- package/build/plugin/src/targetConfigFile.d.ts +0 -12
- package/build/plugin/src/targetConfigFile.d.ts.map +0 -1
- package/build/plugin/src/targetConfigFile.js +0 -66
- package/build/plugin/src/targetConfigFile.js.map +0 -1
- package/build/plugin/src/withTargetsDir.d.ts +0 -11
- package/build/plugin/src/withTargetsDir.d.ts.map +0 -1
- package/build/plugin/src/withTargetsDir.js +0 -353
- package/build/plugin/src/withTargetsDir.js.map +0 -1
- package/build/src/modules/extensionBundle/constants.d.ts +0 -21
- package/build/src/modules/extensionBundle/constants.d.ts.map +0 -1
- package/build/src/modules/extensionBundle/constants.js +0 -30
- package/build/src/modules/extensionBundle/constants.js.map +0 -1
- package/build/src/modules/extensionBundle/fsInstall.d.ts +0 -48
- package/build/src/modules/extensionBundle/fsInstall.d.ts.map +0 -1
- package/build/src/modules/extensionBundle/fsInstall.js +0 -189
- package/build/src/modules/extensionBundle/fsInstall.js.map +0 -1
- package/plugin/build/android/widgetSourceSets.d.ts +0 -10
- package/plugin/build/android/widgetSourceSets.d.ts.map +0 -1
- package/plugin/build/android/widgetSourceSets.js +0 -176
- package/plugin/build/android/widgetSourceSets.js.map +0 -1
- package/plugin/build/ios/templates/action-extension-data.swift +0 -106
|
@@ -1,749 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Podfile manipulation utilities.
|
|
4
|
-
* Provides helpers for injecting target blocks into Podfile.
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.EXCLUDED_LINKER_STRIP_RUBY = exports.EXCLUDED_LINKER_MARKER = exports.EXCLUDED_PACKAGES_MARKER = void 0;
|
|
8
|
-
exports.ensureResourceBundleCodeSigning = ensureResourceBundleCodeSigning;
|
|
9
|
-
exports.generateReactNativeTargetBlock = generateReactNativeTargetBlock;
|
|
10
|
-
exports.mainTargetUsesFrameworks = mainTargetUsesFrameworks;
|
|
11
|
-
exports.generateStandaloneTargetBlock = generateStandaloneTargetBlock;
|
|
12
|
-
exports.generateExpoUiWidgetTargetBlock = generateExpoUiWidgetTargetBlock;
|
|
13
|
-
exports.ensureExpoWidgetsPostInstall = ensureExpoWidgetsPostInstall;
|
|
14
|
-
exports.insertTargetBlock = insertTargetBlock;
|
|
15
|
-
exports.hasTargetBlock = hasTargetBlock;
|
|
16
|
-
exports.removeTargetBlock = removeTargetBlock;
|
|
17
|
-
exports.ensureMainTargetUsesFrameworks = ensureMainTargetUsesFrameworks;
|
|
18
|
-
exports.updatePodfilePlatform = updatePodfilePlatform;
|
|
19
|
-
exports.ensureExtensionDeploymentTargets = ensureExtensionDeploymentTargets;
|
|
20
|
-
exports.ensureReactNativeExtensionFrameworkPaths = ensureReactNativeExtensionFrameworkPaths;
|
|
21
|
-
exports.ensureExcludedPackagesPostIntegrate = ensureExcludedPackagesPostIntegrate;
|
|
22
|
-
/**
|
|
23
|
-
* Locate the line that closes `react_native_post_install(...)`, which is where
|
|
24
|
-
* generated post_install code has to be injected. Returns -1 when the call is
|
|
25
|
-
* not present.
|
|
26
|
-
*/
|
|
27
|
-
function findReactNativePostInstallEndLine(lines) {
|
|
28
|
-
let startLine = -1;
|
|
29
|
-
let parenDepth = 0;
|
|
30
|
-
for (let i = 0; i < lines.length; i++) {
|
|
31
|
-
const line = lines[i];
|
|
32
|
-
const openParens = (line.match(/\(/g) || []).length;
|
|
33
|
-
const closeParens = (line.match(/\)/g) || []).length;
|
|
34
|
-
if (line.includes('react_native_post_install(')) {
|
|
35
|
-
startLine = i;
|
|
36
|
-
parenDepth = openParens - closeParens;
|
|
37
|
-
continue;
|
|
38
|
-
}
|
|
39
|
-
if (startLine === -1) {
|
|
40
|
-
continue;
|
|
41
|
-
}
|
|
42
|
-
parenDepth += openParens - closeParens;
|
|
43
|
-
if (parenDepth === 0 && closeParens > 0) {
|
|
44
|
-
return i;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return -1;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Locate the line holding the `end` that closes `post_install do`.
|
|
51
|
-
* Ruby closes many keywords with `end`, so all openers have to be counted.
|
|
52
|
-
*/
|
|
53
|
-
function findPostInstallEndLine(lines) {
|
|
54
|
-
const blockOpenRegex = /\b(do|if|unless|def|class|module|begin|case|while|until)\b/g;
|
|
55
|
-
let startLine = -1;
|
|
56
|
-
let depth = 0;
|
|
57
|
-
for (let i = 0; i < lines.length; i++) {
|
|
58
|
-
const line = lines[i];
|
|
59
|
-
if (line.includes('post_install do')) {
|
|
60
|
-
startLine = i;
|
|
61
|
-
depth = 1;
|
|
62
|
-
continue;
|
|
63
|
-
}
|
|
64
|
-
if (startLine === -1) {
|
|
65
|
-
continue;
|
|
66
|
-
}
|
|
67
|
-
const openMatches = (line.match(blockOpenRegex) || []).length;
|
|
68
|
-
const endMatches = (line.match(/\bend\b/g) || []).length;
|
|
69
|
-
depth += openMatches - endMatches;
|
|
70
|
-
if (depth === 0 && endMatches > 0) {
|
|
71
|
-
return i;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return -1;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Drop a previously injected block so injection stays idempotent.
|
|
78
|
-
*/
|
|
79
|
-
function removeMarkedBlock(podfileContent, startMarker, endMarker) {
|
|
80
|
-
const startIndex = podfileContent.indexOf(startMarker);
|
|
81
|
-
if (startIndex === -1) {
|
|
82
|
-
return podfileContent;
|
|
83
|
-
}
|
|
84
|
-
const endIndex = podfileContent.indexOf(endMarker, startIndex);
|
|
85
|
-
if (endIndex === -1) {
|
|
86
|
-
return podfileContent;
|
|
87
|
-
}
|
|
88
|
-
const beforeBlock = podfileContent.substring(0, startIndex);
|
|
89
|
-
const afterBlock = podfileContent.substring(endIndex + endMarker.length);
|
|
90
|
-
return `${beforeBlock.trimEnd()}\n${afterBlock.trimStart()}`;
|
|
91
|
-
}
|
|
92
|
-
const RESOURCE_BUNDLE_SIGNING_START = ' # [expo-targets-resource-bundle-signing-start]';
|
|
93
|
-
const RESOURCE_BUNDLE_SIGNING_END = ' # [expo-targets-resource-bundle-signing-end]';
|
|
94
|
-
/**
|
|
95
|
-
* Ensure resource bundle targets have code signing disabled for Xcode 14+.
|
|
96
|
-
* Starting from Xcode 14, resource bundles are signed by default, which requires
|
|
97
|
-
* setting the development team for each resource bundle target. This fix disables
|
|
98
|
-
* code signing for resource bundles to avoid build failures.
|
|
99
|
-
*
|
|
100
|
-
* Uses START/END markers for reliable, idempotent injection.
|
|
101
|
-
*/
|
|
102
|
-
function ensureResourceBundleCodeSigning(podfileContent) {
|
|
103
|
-
if (podfileContent.includes(RESOURCE_BUNDLE_SIGNING_START)) {
|
|
104
|
-
return podfileContent;
|
|
105
|
-
}
|
|
106
|
-
const fixCode = `${RESOURCE_BUNDLE_SIGNING_START}
|
|
107
|
-
# Fix Xcode 14+ code signing for resource bundles
|
|
108
|
-
installer.pods_project.targets.each do |target|
|
|
109
|
-
if target.respond_to?(:product_type) && target.product_type == "com.apple.product-type.bundle"
|
|
110
|
-
target.build_configurations.each do |config|
|
|
111
|
-
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
|
|
112
|
-
end
|
|
113
|
-
end
|
|
114
|
-
end
|
|
115
|
-
${RESOURCE_BUNDLE_SIGNING_END}`;
|
|
116
|
-
const lines = podfileContent.split('\n');
|
|
117
|
-
const endLine = findReactNativePostInstallEndLine(lines);
|
|
118
|
-
if (endLine === -1) {
|
|
119
|
-
return podfileContent;
|
|
120
|
-
}
|
|
121
|
-
const beforeLines = lines.slice(0, endLine + 1).join('\n');
|
|
122
|
-
const afterLines = lines.slice(endLine + 1).join('\n');
|
|
123
|
-
return `${beforeLines}\n\n${fixCode}\n${afterLines}`;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Indent pods.rb content to match target block indentation.
|
|
127
|
-
*/
|
|
128
|
-
function indentCustomPods(podsRbContent) {
|
|
129
|
-
if (!podsRbContent) {
|
|
130
|
-
return '';
|
|
131
|
-
}
|
|
132
|
-
const indented = podsRbContent
|
|
133
|
-
.split('\n')
|
|
134
|
-
.map((line) => (line.trim() ? ` ${line}` : ''))
|
|
135
|
-
.join('\n');
|
|
136
|
-
return `\n${indented}\n`;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Parseable marker: packages to strip from this nested target's ExpoModulesProvider.
|
|
140
|
-
* Must not be a prefix of the post_integrate fence markers, and those fences
|
|
141
|
-
* must not contain a Ruby `\bend\b` (standalone insert used to splice there).
|
|
142
|
-
*/
|
|
143
|
-
exports.EXCLUDED_PACKAGES_MARKER = '# [expo-targets-excluded-packages-list]';
|
|
144
|
-
exports.EXCLUDED_LINKER_MARKER = '# [expo-targets-excluded-linker-list]';
|
|
145
|
-
const EXCLUDED_PACKAGES_POST_INTEGRATE_START = '# [expo-targets-excluded-packages-begin]';
|
|
146
|
-
const EXCLUDED_PACKAGES_POST_INTEGRATE_END = '# [expo-targets-excluded-packages-done]';
|
|
147
|
-
/**
|
|
148
|
-
* Generate a Podfile target block for a React Native extension.
|
|
149
|
-
* Extension targets only inherit search paths, with no explicit pod dependencies.
|
|
150
|
-
* This avoids linking incompatible modules like Expo that contain UIApplication APIs.
|
|
151
|
-
*
|
|
152
|
-
* `excludedPackages` and `linkerTokens` are recorded as comment markers so a
|
|
153
|
-
* `post_integrate` hook can strip those names from `expo-configure-project.sh`,
|
|
154
|
-
* regenerate the provider, and drop unused `-l` / `-framework` / module maps
|
|
155
|
-
* on `Pods-<target>`. Nested `use_expo_modules!(exclude:)` is a no-op.
|
|
156
|
-
*
|
|
157
|
-
* @param podsRbContent - Optional content from a pods.rb file in the target directory.
|
|
158
|
-
* Allows custom CocoaPods configuration (e.g., Firebase, third-party SDKs).
|
|
159
|
-
*/
|
|
160
|
-
function generateReactNativeTargetBlock({ targetName, deploymentTarget, extensionType: _extensionType, podsRbContent, excludedPackages, linkerTokens, }) {
|
|
161
|
-
const customPods = indentCustomPods(podsRbContent);
|
|
162
|
-
const packages = (excludedPackages ?? [])
|
|
163
|
-
.map((p) => p.trim())
|
|
164
|
-
.filter(Boolean);
|
|
165
|
-
const tokens = (linkerTokens ?? []).map((p) => p.trim()).filter(Boolean);
|
|
166
|
-
const excludeLine = packages.length > 0
|
|
167
|
-
? `\n ${exports.EXCLUDED_PACKAGES_MARKER} ${packages.join(',')}`
|
|
168
|
-
: '';
|
|
169
|
-
const linkerLine = tokens.length > 0
|
|
170
|
-
? `\n ${exports.EXCLUDED_LINKER_MARKER} ${tokens.join(',')}`
|
|
171
|
-
: '';
|
|
172
|
-
// App Clips still use search_paths here; framework embedding for the clip
|
|
173
|
-
// product is handled by a dedicated PBX shell phase (inherit! :complete
|
|
174
|
-
// breaks ExpoModulesCore resolution under nested targets).
|
|
175
|
-
return `
|
|
176
|
-
target '${targetName}' do
|
|
177
|
-
platform :ios, '${deploymentTarget}'
|
|
178
|
-
inherit! :search_paths${excludeLine}${linkerLine}${customPods}
|
|
179
|
-
end
|
|
180
|
-
`;
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Check if main app target uses frameworks.
|
|
184
|
-
* Returns true if use_frameworks! is found in the main target block.
|
|
185
|
-
*/
|
|
186
|
-
function mainTargetUsesFrameworks(podfileContent, mainTargetName) {
|
|
187
|
-
const targetRegex = new RegExp(`target\\s+'${mainTargetName}'\\s+do([\\s\\S]*?)(?=post_install|\\ntarget\\s+|$)`);
|
|
188
|
-
const match = podfileContent.match(targetRegex);
|
|
189
|
-
if (!match) {
|
|
190
|
-
return false;
|
|
191
|
-
}
|
|
192
|
-
const targetBlock = match[1];
|
|
193
|
-
return targetBlock.includes('use_frameworks!');
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Generate a Podfile target block for a standalone (non-RN) extension.
|
|
197
|
-
* Standalone targets use native code only (Swift/Obj-C), no React Native or Expo modules.
|
|
198
|
-
* Must match main app's use_frameworks! setting for CocoaPods integration.
|
|
199
|
-
*
|
|
200
|
-
* @param podsRbContent - Optional content from a pods.rb file in the target directory.
|
|
201
|
-
* Allows custom CocoaPods configuration (e.g., Firebase, third-party SDKs).
|
|
202
|
-
*/
|
|
203
|
-
function generateStandaloneTargetBlock({ targetName, deploymentTarget, useFrameworks, podsRbContent, }) {
|
|
204
|
-
const frameworksLine = useFrameworks
|
|
205
|
-
? ' use_frameworks! :linkage => :static\n'
|
|
206
|
-
: '';
|
|
207
|
-
const customPods = indentCustomPods(podsRbContent);
|
|
208
|
-
return `
|
|
209
|
-
target '${targetName}' do
|
|
210
|
-
${frameworksLine} platform :ios, '${deploymentTarget}'${customPods}
|
|
211
|
-
end
|
|
212
|
-
`;
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Podfile block for expo-ui widgets — mirrors expo-widgets `withPodsLinking`
|
|
216
|
-
* (`use_expo_modules_widgets!` + thin RN host for the layout sandbox).
|
|
217
|
-
*/
|
|
218
|
-
function generateExpoUiWidgetTargetBlock({ targetName, deploymentTarget, podsRbContent, }) {
|
|
219
|
-
const customPods = indentCustomPods(podsRbContent);
|
|
220
|
-
return `
|
|
221
|
-
require File.join(File.dirname(\`node --print "require.resolve('expo-widgets/package.json')"\`), "scripts/autolinking")
|
|
222
|
-
|
|
223
|
-
target '${targetName}' do
|
|
224
|
-
platform :ios, '${deploymentTarget}'
|
|
225
|
-
use_expo_modules_widgets!
|
|
226
|
-
|
|
227
|
-
if ENV['EXPO_USE_COMMUNITY_AUTOLINKING'] == '1'
|
|
228
|
-
config_command = ['node', '-e', "process.argv=['', '', 'config'];require('@react-native-community/cli').run()"];
|
|
229
|
-
else
|
|
230
|
-
config_command = [
|
|
231
|
-
'node',
|
|
232
|
-
'--no-warnings',
|
|
233
|
-
'--eval',
|
|
234
|
-
"require(require.resolve('expo-modules-autolinking', { paths: [require.resolve('expo/package.json')] }))(process.argv.slice(1))",
|
|
235
|
-
'react-native-config',
|
|
236
|
-
'--json',
|
|
237
|
-
'--platform',
|
|
238
|
-
'ios'
|
|
239
|
-
]
|
|
240
|
-
end
|
|
241
|
-
|
|
242
|
-
config = use_expo_native_module!(config_command)
|
|
243
|
-
|
|
244
|
-
use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
|
|
245
|
-
use_frameworks! :linkage => ENV['USE_FRAMEWORKS'].to_sym if ENV['USE_FRAMEWORKS']
|
|
246
|
-
|
|
247
|
-
use_react_native!(
|
|
248
|
-
:path => config[:reactNativePath],
|
|
249
|
-
:hermes_enabled => podfile_properties['expo.jsEngine'] == nil || podfile_properties['expo.jsEngine'] == 'hermes',
|
|
250
|
-
:app_path => "#{Pod::Config.instance.installation_root}/..",
|
|
251
|
-
:privacy_file_aggregation_enabled => podfile_properties['apple.privacyManifestAggregationEnabled'] != 'false',
|
|
252
|
-
)
|
|
253
|
-
${customPods}
|
|
254
|
-
end
|
|
255
|
-
`;
|
|
256
|
-
}
|
|
257
|
-
const EXPO_WIDGETS_POST_INSTALL_MARKER = 'expo_widgets_post_install(installer)';
|
|
258
|
-
/**
|
|
259
|
-
* Ensure `expo_widgets_post_install` runs so ExpoModulesCore / ExpoUI / React
|
|
260
|
-
* can set APPLICATION_EXTENSION_API_ONLY = No for the widget sandbox.
|
|
261
|
-
*/
|
|
262
|
-
function ensureExpoWidgetsPostInstall(podfileContent) {
|
|
263
|
-
if (podfileContent.includes(EXPO_WIDGETS_POST_INSTALL_MARKER)) {
|
|
264
|
-
return podfileContent;
|
|
265
|
-
}
|
|
266
|
-
if (!podfileContent.includes('post_install do |installer|')) {
|
|
267
|
-
return `${podfileContent.trimEnd()}
|
|
268
|
-
|
|
269
|
-
post_install do |installer|
|
|
270
|
-
${EXPO_WIDGETS_POST_INSTALL_MARKER}
|
|
271
|
-
end
|
|
272
|
-
`;
|
|
273
|
-
}
|
|
274
|
-
return podfileContent.replace(/post_install do \|installer\|/, `post_install do |installer|
|
|
275
|
-
${EXPO_WIDGETS_POST_INSTALL_MARKER}`);
|
|
276
|
-
}
|
|
277
|
-
/**
|
|
278
|
-
* Last `end` that opens a line (optional indent). Ignores `end` inside comments
|
|
279
|
-
* such as `# [expo-targets-*-end]`.
|
|
280
|
-
*/
|
|
281
|
-
function findLastLineLevelEndIndex(podfileContent) {
|
|
282
|
-
const lineEnd = /^[ \t]*end\b/gm;
|
|
283
|
-
let match;
|
|
284
|
-
let last = null;
|
|
285
|
-
while ((match = lineEnd.exec(podfileContent)) !== null) {
|
|
286
|
-
last = match;
|
|
287
|
-
}
|
|
288
|
-
if (!last) {
|
|
289
|
-
throw new Error('Could not find any end keyword in Podfile');
|
|
290
|
-
}
|
|
291
|
-
return last.index + last[0].length;
|
|
292
|
-
}
|
|
293
|
-
function escapeRegExp(value) {
|
|
294
|
-
return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
295
|
-
}
|
|
296
|
-
/** Index just past the `end` that closes `target 'name' do`. */
|
|
297
|
-
function findNamedTargetEndIndex(podfileContent, targetName) {
|
|
298
|
-
const targetRegex = new RegExp(`target\\s+['"]${escapeRegExp(targetName)}['"]\\s+do`);
|
|
299
|
-
const match = targetRegex.exec(podfileContent);
|
|
300
|
-
if (!match) {
|
|
301
|
-
return -1;
|
|
302
|
-
}
|
|
303
|
-
return findBlockEndIndex(podfileContent, match.index + match[0].length);
|
|
304
|
-
}
|
|
305
|
-
function spliceAfter(podfileContent, index, insertion) {
|
|
306
|
-
return (podfileContent.slice(0, index) + insertion + podfileContent.slice(index));
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* Standalone targets are inserted as siblings AFTER the main target's closing
|
|
310
|
-
* `end`, which prevents CocoaPods from auto-generating Expo module providers.
|
|
311
|
-
* Always keep a newline after the block so `end` cannot glue onto the next
|
|
312
|
-
* `target` (OneSignal NSE and similar siblings).
|
|
313
|
-
*/
|
|
314
|
-
function insertStandaloneTargetBlock(podfileContent, targetBlock, options) {
|
|
315
|
-
const { logger, mainTargetName } = options;
|
|
316
|
-
const insertion = `\n\n${targetBlock.trim()}\n`;
|
|
317
|
-
if (mainTargetName) {
|
|
318
|
-
const mainEnd = findNamedTargetEndIndex(podfileContent, mainTargetName);
|
|
319
|
-
if (mainEnd !== -1) {
|
|
320
|
-
logger?.log(`Inserting standalone target after '${mainTargetName}' closing end`);
|
|
321
|
-
return spliceAfter(podfileContent, mainEnd, insertion);
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
const hookStart = podfileContent.indexOf(EXCLUDED_PACKAGES_POST_INTEGRATE_START);
|
|
325
|
-
if (hookStart !== -1) {
|
|
326
|
-
logger?.log('Inserting standalone target before excluded-packages post_integrate hook');
|
|
327
|
-
return `${podfileContent.slice(0, hookStart).trimEnd()}${insertion}\n${podfileContent.slice(hookStart)}`;
|
|
328
|
-
}
|
|
329
|
-
const mainTargetEndIndex = findLastLineLevelEndIndex(podfileContent);
|
|
330
|
-
logger?.log(`Inserting standalone target after last line-level 'end' at position ${mainTargetEndIndex}`);
|
|
331
|
-
return spliceAfter(podfileContent, mainTargetEndIndex, insertion);
|
|
332
|
-
}
|
|
333
|
-
/**
|
|
334
|
-
* Insert a target block into a Podfile.
|
|
335
|
-
* React Native targets are nested inside main app to inherit dependencies.
|
|
336
|
-
* Standalone targets are inserted as siblings to avoid Expo module autolinking.
|
|
337
|
-
*/
|
|
338
|
-
function insertTargetBlock(podfileContent, targetBlock, options = {}) {
|
|
339
|
-
const { standalone = false, logger, mainTargetName } = options;
|
|
340
|
-
if (standalone) {
|
|
341
|
-
return insertStandaloneTargetBlock(podfileContent, targetBlock, {
|
|
342
|
-
logger,
|
|
343
|
-
mainTargetName,
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
logger?.log('Inserting React Native target nested inside main target');
|
|
347
|
-
// React Native targets: nest inside main target before post_install
|
|
348
|
-
const postInstallIndex = podfileContent.indexOf('post_install do');
|
|
349
|
-
if (postInstallIndex !== -1) {
|
|
350
|
-
return (podfileContent.slice(0, postInstallIndex) +
|
|
351
|
-
targetBlock +
|
|
352
|
-
'\n ' +
|
|
353
|
-
podfileContent.slice(postInstallIndex));
|
|
354
|
-
}
|
|
355
|
-
if (mainTargetName) {
|
|
356
|
-
const mainEnd = findNamedTargetEndIndex(podfileContent, mainTargetName);
|
|
357
|
-
if (mainEnd !== -1) {
|
|
358
|
-
return spliceAfter(podfileContent, mainEnd - 'end'.length, targetBlock);
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
// Fallback: insert before the last 'end' of main target
|
|
362
|
-
const lastEndIndex = podfileContent.lastIndexOf('end');
|
|
363
|
-
return (podfileContent.slice(0, lastEndIndex) +
|
|
364
|
-
targetBlock +
|
|
365
|
-
'\n' +
|
|
366
|
-
podfileContent.slice(lastEndIndex));
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
|
-
* Check if a Podfile already contains a target block.
|
|
370
|
-
*/
|
|
371
|
-
function hasTargetBlock(podfileContent, targetName) {
|
|
372
|
-
return podfileContent.includes(`target '${targetName}'`);
|
|
373
|
-
}
|
|
374
|
-
/**
|
|
375
|
-
* Find the index just past the `end` that closes the block opened at
|
|
376
|
-
* `afterDoIndex`, counting every Ruby keyword that requires an `end`.
|
|
377
|
-
*/
|
|
378
|
-
function findBlockEndIndex(podfileContent, afterDoIndex) {
|
|
379
|
-
const blockRegex = /\b(do|if|unless|case|begin|class|module|def|end)\b/g;
|
|
380
|
-
blockRegex.lastIndex = afterDoIndex;
|
|
381
|
-
// Start at depth 1 because we're already inside the block (after 'do').
|
|
382
|
-
let depth = 1;
|
|
383
|
-
let match = blockRegex.exec(podfileContent);
|
|
384
|
-
while (match !== null) {
|
|
385
|
-
if (match[1] === 'end') {
|
|
386
|
-
depth--;
|
|
387
|
-
if (depth === 0) {
|
|
388
|
-
return match.index + match[0].length;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
else {
|
|
392
|
-
depth++;
|
|
393
|
-
}
|
|
394
|
-
match = blockRegex.exec(podfileContent);
|
|
395
|
-
}
|
|
396
|
-
return -1;
|
|
397
|
-
}
|
|
398
|
-
/**
|
|
399
|
-
* Remove an existing target block from a Podfile.
|
|
400
|
-
* Finds the target declaration and removes it along with its entire do/end block.
|
|
401
|
-
*/
|
|
402
|
-
function removeTargetBlock(podfileContent, targetName) {
|
|
403
|
-
const targetRegex = new RegExp(`target\\s+['"]${targetName}['"]\\s+do`, 'g');
|
|
404
|
-
const targetMatch = targetRegex.exec(podfileContent);
|
|
405
|
-
if (!targetMatch) {
|
|
406
|
-
return podfileContent; // Target doesn't exist, nothing to remove
|
|
407
|
-
}
|
|
408
|
-
const startIndex = targetMatch.index;
|
|
409
|
-
const targetEndIndex = findBlockEndIndex(podfileContent, targetMatch.index + targetMatch[0].length);
|
|
410
|
-
if (targetEndIndex === -1) {
|
|
411
|
-
throw new Error(`Could not find closing end for target '${targetName}'`);
|
|
412
|
-
}
|
|
413
|
-
// Remove the target block including leading whitespace/newlines
|
|
414
|
-
let removeStart = startIndex;
|
|
415
|
-
while (removeStart > 0 && /[\s\n]/.test(podfileContent[removeStart - 1])) {
|
|
416
|
-
removeStart--;
|
|
417
|
-
}
|
|
418
|
-
// Drop at most one trailing newline
|
|
419
|
-
const removeEnd = podfileContent[targetEndIndex] === '\n'
|
|
420
|
-
? targetEndIndex + 1
|
|
421
|
-
: targetEndIndex;
|
|
422
|
-
return podfileContent.slice(0, removeStart) + podfileContent.slice(removeEnd);
|
|
423
|
-
}
|
|
424
|
-
/**
|
|
425
|
-
* Ensure main app target has use_frameworks! to match extension requirements.
|
|
426
|
-
* CocoaPods requires host app and extensions to have matching use_frameworks! settings.
|
|
427
|
-
*/
|
|
428
|
-
function ensureMainTargetUsesFrameworks(podfileContent, mainTargetName) {
|
|
429
|
-
// Check if main target already has use_frameworks!
|
|
430
|
-
const targetRegex = new RegExp(`target\\s+'${mainTargetName}'\\s+do([\\s\\S]*?)(?=post_install|\\ntarget\\s+|$)`);
|
|
431
|
-
const match = podfileContent.match(targetRegex);
|
|
432
|
-
if (!match) {
|
|
433
|
-
return podfileContent;
|
|
434
|
-
}
|
|
435
|
-
const targetBlock = match[1];
|
|
436
|
-
// Check if unconditional use_frameworks! :linkage => :static already exists
|
|
437
|
-
// Conditional statements use variables (podfile_properties or ENV), so checking
|
|
438
|
-
// for the literal ':static' ensures we only match unconditional statements
|
|
439
|
-
if (targetBlock.includes('use_frameworks! :linkage => :static')) {
|
|
440
|
-
return podfileContent;
|
|
441
|
-
}
|
|
442
|
-
// Find insertion point: after "target 'Name' do" line
|
|
443
|
-
const targetLineRegex = new RegExp(`(target\\s+'${mainTargetName}'\\s+do\\s*\\n)`, 'm');
|
|
444
|
-
return podfileContent.replace(targetLineRegex, '$1 use_frameworks! :linkage => :static\n\n');
|
|
445
|
-
}
|
|
446
|
-
/**
|
|
447
|
-
* Update the Podfile platform line to match the highest deployment target.
|
|
448
|
-
* This ensures consistency between the main app platform and extension targets.
|
|
449
|
-
*
|
|
450
|
-
* Fixes deployment target mismatch where Podfile defaults to 16.4 (Expo SDK 58) but extension
|
|
451
|
-
* targets require a higher version (e.g., 18.0), causing linker errors.
|
|
452
|
-
*/
|
|
453
|
-
function updatePodfilePlatform(podfileContent, deploymentTarget) {
|
|
454
|
-
// Match platform line with various formats:
|
|
455
|
-
// - platform :ios, '15.1'
|
|
456
|
-
// - platform :ios, podfile_properties['ios.deploymentTarget'] || '15.1'
|
|
457
|
-
// - platform :ios, "15.1"
|
|
458
|
-
const platformLineRegex = /(platform\s+:ios\s*,\s*)(?:podfile_properties\[['"]ios\.deploymentTarget['"]\]\s*\|\|\s*)?(['"])([^'"]+)(['"])/;
|
|
459
|
-
const match = podfileContent.match(platformLineRegex);
|
|
460
|
-
if (!match) {
|
|
461
|
-
return podfileContent;
|
|
462
|
-
}
|
|
463
|
-
const currentVersion = match[3];
|
|
464
|
-
const quoteChar = match[2]; // Preserve original quote style (' or ")
|
|
465
|
-
const currentVersionNum = Number.parseFloat(currentVersion);
|
|
466
|
-
const newVersionNum = Number.parseFloat(deploymentTarget);
|
|
467
|
-
// Only update if the new version is higher
|
|
468
|
-
if (newVersionNum > currentVersionNum) {
|
|
469
|
-
// Replace the entire platform line with a simple version
|
|
470
|
-
// Use the same quote style as the original
|
|
471
|
-
return podfileContent.replace(platformLineRegex, `$1${quoteChar}${deploymentTarget}${quoteChar}`);
|
|
472
|
-
}
|
|
473
|
-
return podfileContent;
|
|
474
|
-
}
|
|
475
|
-
const STANDALONE_DEPLOYMENT_START = ' # [expo-targets-standalone-start]';
|
|
476
|
-
const STANDALONE_DEPLOYMENT_END = ' # [expo-targets-standalone-end]';
|
|
477
|
-
/**
|
|
478
|
-
* Ruby that pins one extension target's deployment target, both in the Pods
|
|
479
|
-
* project and in the xcconfig the extension references.
|
|
480
|
-
*/
|
|
481
|
-
const DEPLOYMENT_TARGET_RULE = ` if target.name.include?('{{TARGET_NAME}}')
|
|
482
|
-
target.build_configurations.each do |config|
|
|
483
|
-
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '{{DEPLOYMENT_TARGET}}'
|
|
484
|
-
# Also update the xcconfig file
|
|
485
|
-
xcconfig_path = config.base_configuration_reference.real_path
|
|
486
|
-
if xcconfig_path && File.exist?(xcconfig_path)
|
|
487
|
-
xcconfig_content = File.read(xcconfig_path)
|
|
488
|
-
# Remove existing IPHONEOS_DEPLOYMENT_TARGET if present
|
|
489
|
-
xcconfig_content.gsub!(/^IPHONEOS_DEPLOYMENT_TARGET = .*$/, '')
|
|
490
|
-
# Add deployment target
|
|
491
|
-
xcconfig_content += "\\nIPHONEOS_DEPLOYMENT_TARGET = {{DEPLOYMENT_TARGET}}\\n"
|
|
492
|
-
File.write(xcconfig_path, xcconfig_content)
|
|
493
|
-
end
|
|
494
|
-
end
|
|
495
|
-
end`;
|
|
496
|
-
function buildDeploymentTargetFix(extensions) {
|
|
497
|
-
const rules = extensions
|
|
498
|
-
.map((ext) => DEPLOYMENT_TARGET_RULE.replace(/{{TARGET_NAME}}/g, ext.targetName).replace(/{{DEPLOYMENT_TARGET}}/g, ext.deploymentTarget))
|
|
499
|
-
.join('\n');
|
|
500
|
-
return `${STANDALONE_DEPLOYMENT_START}
|
|
501
|
-
# Fix standalone extension deployment targets
|
|
502
|
-
installer.pods_project.targets.each do |target|
|
|
503
|
-
${rules}
|
|
504
|
-
end
|
|
505
|
-
${STANDALONE_DEPLOYMENT_END}`;
|
|
506
|
-
}
|
|
507
|
-
/**
|
|
508
|
-
* Inject deployment target fixes into the main app's existing post_install hook.
|
|
509
|
-
* This ensures extension targets maintain their correct deployment targets even after
|
|
510
|
-
* react_native_post_install runs, which might override them.
|
|
511
|
-
*
|
|
512
|
-
* Fixes both the Pods Xcode project targets AND the xcconfig files that extensions reference.
|
|
513
|
-
*/
|
|
514
|
-
function ensureExtensionDeploymentTargets(podfileContent, extensions) {
|
|
515
|
-
if (extensions.length === 0) {
|
|
516
|
-
return podfileContent;
|
|
517
|
-
}
|
|
518
|
-
const content = removeMarkedBlock(podfileContent, STANDALONE_DEPLOYMENT_START, STANDALONE_DEPLOYMENT_END);
|
|
519
|
-
const lines = content.split('\n');
|
|
520
|
-
const postInstallEndLine = findPostInstallEndLine(lines);
|
|
521
|
-
if (postInstallEndLine === -1) {
|
|
522
|
-
return content;
|
|
523
|
-
}
|
|
524
|
-
// Insert before the closing 'end' of post_install
|
|
525
|
-
const beforeLines = lines.slice(0, postInstallEndLine).join('\n');
|
|
526
|
-
const afterLines = lines.slice(postInstallEndLine).join('\n');
|
|
527
|
-
return `${beforeLines}\n${buildDeploymentTargetFix(extensions)}\n${afterLines}`;
|
|
528
|
-
}
|
|
529
|
-
const REACT_NATIVE_PATHS_START = ' # [expo-targets-start]';
|
|
530
|
-
const REACT_NATIVE_PATHS_END = ' # [expo-targets-end]';
|
|
531
|
-
/**
|
|
532
|
-
* Ruby that copies the Swift-relevant search paths from the main app's Pods
|
|
533
|
-
* target (and its xcconfig) onto one React Native extension target.
|
|
534
|
-
*/
|
|
535
|
-
const FRAMEWORK_PATHS_RULE = ` if target.name.include?('{{TARGET_NAME}}')
|
|
536
|
-
target.build_configurations.each do |config|
|
|
537
|
-
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '{{DEPLOYMENT_TARGET}}'
|
|
538
|
-
# Copy framework search paths from main app target
|
|
539
|
-
main_target = installer.pods_project.targets.find { |t| t.name == '{{MAIN_PODS_TARGET}}' }
|
|
540
|
-
if main_target
|
|
541
|
-
main_config = main_target.build_configurations.find { |c| c.name == config.name }
|
|
542
|
-
if main_config && main_config.build_settings['FRAMEWORK_SEARCH_PATHS']
|
|
543
|
-
existing_paths = config.build_settings['FRAMEWORK_SEARCH_PATHS'] || ['$(inherited)']
|
|
544
|
-
inherited_paths = main_config.build_settings['FRAMEWORK_SEARCH_PATHS']
|
|
545
|
-
# Merge inherited paths, avoiding duplicates
|
|
546
|
-
merged_paths = existing_paths + inherited_paths.reject { |p| existing_paths.include?(p) }
|
|
547
|
-
config.build_settings['FRAMEWORK_SEARCH_PATHS'] = merged_paths
|
|
548
|
-
end
|
|
549
|
-
end
|
|
550
|
-
# Update the xcconfig file with framework search paths and deployment target
|
|
551
|
-
xcconfig_path = config.base_configuration_reference.real_path
|
|
552
|
-
if xcconfig_path && File.exist?(xcconfig_path)
|
|
553
|
-
xcconfig_content = File.read(xcconfig_path)
|
|
554
|
-
# Remove existing IPHONEOS_DEPLOYMENT_TARGET if present
|
|
555
|
-
xcconfig_content.gsub!(/^IPHONEOS_DEPLOYMENT_TARGET = .*$/, '')
|
|
556
|
-
# Add deployment target
|
|
557
|
-
xcconfig_content += "\\nIPHONEOS_DEPLOYMENT_TARGET = {{DEPLOYMENT_TARGET}}\\n"
|
|
558
|
-
# Copy framework search paths and other Swift-related settings from main app's xcconfig
|
|
559
|
-
if main_target
|
|
560
|
-
main_config = main_target.build_configurations.find { |c| c.name == config.name }
|
|
561
|
-
if main_config
|
|
562
|
-
main_xcconfig_path = main_config.base_configuration_reference.real_path
|
|
563
|
-
if main_xcconfig_path && File.exist?(main_xcconfig_path)
|
|
564
|
-
main_xcconfig_content = File.read(main_xcconfig_path)
|
|
565
|
-
# Copy FRAMEWORK_SEARCH_PATHS (needed for Swift imports)
|
|
566
|
-
framework_paths_match = main_xcconfig_content.match(/^FRAMEWORK_SEARCH_PATHS = (.+)$/m)
|
|
567
|
-
if framework_paths_match
|
|
568
|
-
xcconfig_content.gsub!(/^FRAMEWORK_SEARCH_PATHS = .*$/, '')
|
|
569
|
-
xcconfig_content += "\\nFRAMEWORK_SEARCH_PATHS = #{framework_paths_match[1]}\\n"
|
|
570
|
-
end
|
|
571
|
-
# Copy HEADER_SEARCH_PATHS (includes ExpoModulesCore headers)
|
|
572
|
-
header_paths_match = main_xcconfig_content.match(/^HEADER_SEARCH_PATHS = (.+)$/m)
|
|
573
|
-
if header_paths_match
|
|
574
|
-
xcconfig_content.gsub!(/^HEADER_SEARCH_PATHS = .*$/, '')
|
|
575
|
-
xcconfig_content += "\\nHEADER_SEARCH_PATHS = #{header_paths_match[1]}\\n"
|
|
576
|
-
end
|
|
577
|
-
# Copy OTHER_SWIFT_FLAGS (module maps) but drop host-only Updates /
|
|
578
|
-
# DevLauncher maps. Must strip the paired -Xcc too — otherwise
|
|
579
|
-
# swiftc sees -Xcc -Xcc -fmodule-map-file=... and rejects the flag.
|
|
580
|
-
swift_flags_match = main_xcconfig_content.match(/^OTHER_SWIFT_FLAGS = (.+)$/m)
|
|
581
|
-
if swift_flags_match
|
|
582
|
-
swift_flags = swift_flags_match[1]
|
|
583
|
-
.gsub(/\\s*-Xcc\\s+-fmodule-map-file="[^"]*EXUpdates[^"]*"/, '')
|
|
584
|
-
.gsub(/\\s*-Xcc\\s+-fmodule-map-file="[^"]*EXDevLauncher[^"]*"/, '')
|
|
585
|
-
.gsub(/\\s*-Xcc\\s+-fmodule-map-file="[^"]*expo-dev-client[^"]*"/, '')
|
|
586
|
-
.gsub(/\\s*-fmodule-map-file="[^"]*EXUpdates[^"]*"/, '')
|
|
587
|
-
.gsub(/\\s*-fmodule-map-file="[^"]*EXDevLauncher[^"]*"/, '')
|
|
588
|
-
.gsub(/\\s*-fmodule-map-file="[^"]*expo-dev-client[^"]*"/, '')
|
|
589
|
-
xcconfig_content.gsub!(/^OTHER_SWIFT_FLAGS = .*$/, '')
|
|
590
|
-
xcconfig_content += "\\nOTHER_SWIFT_FLAGS = #{swift_flags}\\n"
|
|
591
|
-
end
|
|
592
|
-
# Copy SWIFT_INCLUDE_PATHS (drop host-only EXUpdates)
|
|
593
|
-
swift_include_match = main_xcconfig_content.match(/^SWIFT_INCLUDE_PATHS = (.+)$/m)
|
|
594
|
-
if swift_include_match
|
|
595
|
-
swift_includes = swift_include_match[1]
|
|
596
|
-
.gsub(/\\s*"\\$\\{PODS_CONFIGURATION_BUILD_DIR\\}\\/EXUpdates"/, '')
|
|
597
|
-
.gsub(/\\s*"\\$\\{PODS_CONFIGURATION_BUILD_DIR\\}\\/EXDevLauncher"/, '')
|
|
598
|
-
xcconfig_content.gsub!(/^SWIFT_INCLUDE_PATHS = .*$/, '')
|
|
599
|
-
xcconfig_content += "\\nSWIFT_INCLUDE_PATHS = #{swift_includes}\\n"
|
|
600
|
-
end
|
|
601
|
-
end
|
|
602
|
-
end
|
|
603
|
-
end
|
|
604
|
-
File.write(xcconfig_path, xcconfig_content)
|
|
605
|
-
end
|
|
606
|
-
end
|
|
607
|
-
end`;
|
|
608
|
-
function buildFrameworkPathsFix(extensions, mainTargetName) {
|
|
609
|
-
const mainPodsTarget = `Pods-${mainTargetName}`;
|
|
610
|
-
const rules = extensions
|
|
611
|
-
.map((ext) => FRAMEWORK_PATHS_RULE.replace(/{{TARGET_NAME}}/g, ext.targetName)
|
|
612
|
-
.replace(/{{DEPLOYMENT_TARGET}}/g, ext.deploymentTarget)
|
|
613
|
-
.replace(/{{MAIN_PODS_TARGET}}/g, mainPodsTarget))
|
|
614
|
-
.join('\n');
|
|
615
|
-
return `${REACT_NATIVE_PATHS_START}
|
|
616
|
-
# Fix React Native extension framework search paths
|
|
617
|
-
installer.pods_project.targets.each do |target|
|
|
618
|
-
${rules}
|
|
619
|
-
end
|
|
620
|
-
${REACT_NATIVE_PATHS_END}`;
|
|
621
|
-
}
|
|
622
|
-
/**
|
|
623
|
-
* Ensure React Native extension targets have proper framework search paths.
|
|
624
|
-
* Uses START/END markers for reliable, idempotent injection.
|
|
625
|
-
*/
|
|
626
|
-
function ensureReactNativeExtensionFrameworkPaths(podfileContent, extensions, mainTargetName) {
|
|
627
|
-
if (extensions.length === 0) {
|
|
628
|
-
return podfileContent;
|
|
629
|
-
}
|
|
630
|
-
const content = removeMarkedBlock(podfileContent, REACT_NATIVE_PATHS_START, REACT_NATIVE_PATHS_END);
|
|
631
|
-
const lines = content.split('\n');
|
|
632
|
-
const endLine = findReactNativePostInstallEndLine(lines);
|
|
633
|
-
if (endLine === -1) {
|
|
634
|
-
return content;
|
|
635
|
-
}
|
|
636
|
-
// Insert right after the closing paren of react_native_post_install
|
|
637
|
-
const insertPosition = lines.slice(0, endLine + 1).join('\n').length;
|
|
638
|
-
const beforeInsert = content.substring(0, insertPosition);
|
|
639
|
-
const afterInsert = content.substring(insertPosition);
|
|
640
|
-
const needsNewlineBefore = !beforeInsert.endsWith('\n');
|
|
641
|
-
// Keep the indentation of what follows: trimming it would break the " end"
|
|
642
|
-
// of post_install that ensureExtensionDeploymentTargets relies on.
|
|
643
|
-
return (beforeInsert.trimEnd() +
|
|
644
|
-
(needsNewlineBefore ? '\n' : '') +
|
|
645
|
-
buildFrameworkPathsFix(extensions, mainTargetName) +
|
|
646
|
-
'\n' +
|
|
647
|
-
afterInsert);
|
|
648
|
-
}
|
|
649
|
-
function rubySingleQuoted(value) {
|
|
650
|
-
return `'${value.replace(/\\/g, '\\\\').replace(/'/g, "\\'")}'`;
|
|
651
|
-
}
|
|
652
|
-
/** Ruby body lines for the excludedPackages post_integrate hook (minus hash). */
|
|
653
|
-
const EXCLUDED_PACKAGES_RUBY_PREFIX = [
|
|
654
|
-
EXCLUDED_PACKAGES_POST_INTEGRATE_START,
|
|
655
|
-
'# Strip unused host packages from nested RN ExpoModulesProviders and linker flags.',
|
|
656
|
-
'# Nested use_expo_modules!(exclude:) is a no-op (parent AutolinkingManager);',
|
|
657
|
-
'# Expo regenerates the provider during integrate_user_targets after post_install.',
|
|
658
|
-
'# Do not copy host OTHER_LDFLAGS onto the appex — inherit! :search_paths already',
|
|
659
|
-
'# did; subtract unused -l / -framework / module maps from Pods-<target> xcconfigs.',
|
|
660
|
-
'# Match each -framework NAME / -lNAME as one argv — a prefix token must not glue the rest.',
|
|
661
|
-
'post_integrate do |installer|',
|
|
662
|
-
' exclusions = {',
|
|
663
|
-
];
|
|
664
|
-
/**
|
|
665
|
-
* Ruby that mutates `xc` for each linker `token`. Exported so tests run the
|
|
666
|
-
* same gsub as `pod install` (unanchored `"?token"?` smashed OTHER_LDFLAGS).
|
|
667
|
-
*/
|
|
668
|
-
exports.EXCLUDED_LINKER_STRIP_RUBY = [
|
|
669
|
-
' tokens.each do |token|',
|
|
670
|
-
' next if token.to_s.empty?',
|
|
671
|
-
' escaped = Regexp.escape(token)',
|
|
672
|
-
' xc.gsub!(/\\s*-l(?:"#{escaped}"|#{escaped}(?=[\\s"]|$))/, \'\')',
|
|
673
|
-
' xc.gsub!(/\\s*-framework\\s+(?:"#{escaped}"|#{escaped}(?=[\\s"]|$))/, \'\')',
|
|
674
|
-
' xc.gsub!(/\\s*-Xcc\\s+-fmodule-map-file="[^"]*[\\/"]#{escaped}(?:\\.modulemap|[\\/"])[^"]*"/, \'\')',
|
|
675
|
-
' xc.gsub!(/\\s*-fmodule-map-file="[^"]*[\\/"]#{escaped}(?:\\.modulemap|[\\/"])[^"]*"/, \'\')',
|
|
676
|
-
' end',
|
|
677
|
-
];
|
|
678
|
-
const EXCLUDED_PACKAGES_RUBY_SUFFIX = [
|
|
679
|
-
' }',
|
|
680
|
-
' exclusions.each do |target_name, spec|',
|
|
681
|
-
' packages = spec[:packages] || []',
|
|
682
|
-
' tokens = spec[:linker] || []',
|
|
683
|
-
' next if packages.empty? && tokens.empty?',
|
|
684
|
-
' support_dir = File.join(installer.sandbox.root, \'Target Support Files\', "Pods-#{target_name}")',
|
|
685
|
-
" script_path = File.join(support_dir, 'expo-configure-project.sh')",
|
|
686
|
-
" provider_path = File.join(support_dir, 'ExpoModulesProvider.swift')",
|
|
687
|
-
' if File.exist?(script_path) && !packages.empty?',
|
|
688
|
-
' content = File.read(script_path)',
|
|
689
|
-
' packages.each do |pkg|',
|
|
690
|
-
' content.gsub!(/\\s*"#{Regexp.escape(pkg)}"/, \'\')',
|
|
691
|
-
' end',
|
|
692
|
-
' File.write(script_path, content)',
|
|
693
|
-
" ok = system({ 'PODS_ROOT' => installer.sandbox.root.to_s }, 'bash', script_path)",
|
|
694
|
-
' unless ok',
|
|
695
|
-
' raise "[expo-targets] Failed to regenerate ExpoModulesProvider for #{target_name} after excludedPackages strip"',
|
|
696
|
-
' end',
|
|
697
|
-
' unless File.exist?(provider_path)',
|
|
698
|
-
' raise "[expo-targets] ExpoModulesProvider missing after regenerate for #{target_name}"',
|
|
699
|
-
' end',
|
|
700
|
-
' # Host-only: ExtensionBundle install API must not register inside RN appexes',
|
|
701
|
-
' # (auto-enable used to treat its presence as "running on host").',
|
|
702
|
-
' provider = File.read(provider_path)',
|
|
703
|
-
" provider.gsub!(/^\\s*\\(module: ExpoTargetsExtensionBundleModule\\.self.*?\\),?\\n/, '')",
|
|
704
|
-
' File.write(provider_path, provider)',
|
|
705
|
-
' Pod::UI.puts "[expo-targets] Applied excludedPackages to #{target_name}: #{packages.join(\', \')}"',
|
|
706
|
-
' elsif !packages.empty?',
|
|
707
|
-
' Pod::UI.warn "[expo-targets] Missing #{script_path}; skip excludedPackages for #{target_name}"',
|
|
708
|
-
' end',
|
|
709
|
-
' unless tokens.empty?',
|
|
710
|
-
" Dir.glob(File.join(support_dir, '*.xcconfig')).each do |xcconfig_path|",
|
|
711
|
-
' xc = File.read(xcconfig_path)',
|
|
712
|
-
...exports.EXCLUDED_LINKER_STRIP_RUBY,
|
|
713
|
-
' File.write(xcconfig_path, xc)',
|
|
714
|
-
' end',
|
|
715
|
-
' Pod::UI.puts "[expo-targets] Stripped #{tokens.length} linker tokens from Pods-#{target_name}"',
|
|
716
|
-
' end',
|
|
717
|
-
' end',
|
|
718
|
-
'end',
|
|
719
|
-
EXCLUDED_PACKAGES_POST_INTEGRATE_END,
|
|
720
|
-
'',
|
|
721
|
-
];
|
|
722
|
-
function buildExcludedPackagesPostIntegrate(exclusions) {
|
|
723
|
-
const hashEntries = exclusions
|
|
724
|
-
.map(({ targetName, packages, linkerTokens }) => {
|
|
725
|
-
const pkgs = packages.map(rubySingleQuoted).join(', ');
|
|
726
|
-
const tokens = (linkerTokens ?? []).map(rubySingleQuoted).join(', ');
|
|
727
|
-
return ` ${rubySingleQuoted(targetName)} => { :packages => [${pkgs}], :linker => [${tokens}] }`;
|
|
728
|
-
})
|
|
729
|
-
.join(',\n');
|
|
730
|
-
return [
|
|
731
|
-
...EXCLUDED_PACKAGES_RUBY_PREFIX,
|
|
732
|
-
hashEntries,
|
|
733
|
-
...EXCLUDED_PACKAGES_RUBY_SUFFIX,
|
|
734
|
-
].join('\n');
|
|
735
|
-
}
|
|
736
|
-
/**
|
|
737
|
-
* Ensure a top-level `post_integrate` hook strips `excludedPackages` from each
|
|
738
|
-
* nested RN target's `expo-configure-project.sh` and regenerates its provider.
|
|
739
|
-
* Idempotent via START/END markers. No exclusions → remove any prior hook.
|
|
740
|
-
*/
|
|
741
|
-
function ensureExcludedPackagesPostIntegrate(podfileContent, exclusions) {
|
|
742
|
-
const without = removeMarkedBlock(podfileContent, EXCLUDED_PACKAGES_POST_INTEGRATE_START, EXCLUDED_PACKAGES_POST_INTEGRATE_END);
|
|
743
|
-
if (exclusions.length === 0) {
|
|
744
|
-
return without.trimEnd() + '\n';
|
|
745
|
-
}
|
|
746
|
-
const block = buildExcludedPackagesPostIntegrate(exclusions);
|
|
747
|
-
return `${without.trimEnd()}\n\n${block}`;
|
|
748
|
-
}
|
|
749
|
-
//# sourceMappingURL=podfile.js.map
|