diff --git a/examples/with-media/app.json b/examples/with-media/app.json index 62a2819..7c79046 100644 --- a/examples/with-media/app.json +++ b/examples/with-media/app.json @@ -12,9 +12,7 @@ "resizeMode": "contain", "backgroundColor": "#ffffff" }, - "assetBundlePatterns": [ - "**/*" - ], + "assetBundlePatterns": ["**/*"], "ios": { "supportsTablet": true, "bundleIdentifier": "expo.modules.shareextension.withmedia" @@ -33,9 +31,7 @@ [ "expo-font", { - "fonts": [ - "./assets/fonts/Inter-Black.otf" - ] + "fonts": ["./assets/fonts/Inter-Black.otf"] } ], [ diff --git a/plugin/src/withExpoConfig.ts b/plugin/src/withExpoConfig.ts index 63d51fb..c5ea1fc 100644 --- a/plugin/src/withExpoConfig.ts +++ b/plugin/src/withExpoConfig.ts @@ -1,6 +1,7 @@ import { ConfigPlugin } from "@expo/config-plugins"; import { + getAppBundleIdentifier, getAppGroup, getShareExtensionBundleIdentifier, getShareExtensionName, @@ -20,6 +21,7 @@ export const withExpoConfig: ConfigPlugin = (config) => { const extensionName = getShareExtensionName(config); const extensionBundleIdentifier = getShareExtensionBundleIdentifier(config); + const appBundleIdentifier = getAppBundleIdentifier(config); const iosExtensions: iOSExtensionConfig[] = config.extra?.eas?.build?.experimental?.ios?.appExtensions; @@ -57,13 +59,14 @@ export const withExpoConfig: ConfigPlugin = (config) => { }, }, ...(iosExtensions?.filter( - (extension) => extension.targetName !== extensionName, + (extension) => extension.targetName !== extensionName ) ?? []), ], }, }, }, }, + appleApplicationGroup: getAppGroup(appBundleIdentifier), }, }; };