From bba186adb4d30d48a958aaa3f62e3462fab19bef Mon Sep 17 00:00:00 2001 From: Max Ast Date: Sat, 24 Aug 2024 14:41:06 +0200 Subject: [PATCH] url activation rule should support both, NSExtensionActivationSupportsWebPageWithMaxCount and NSExtensionActivationSupportsWebURLWithMaxCount --- plugin/src/withShareExtensionInfoPlist.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugin/src/withShareExtensionInfoPlist.ts b/plugin/src/withShareExtensionInfoPlist.ts index 12ccddf..262eb55 100644 --- a/plugin/src/withShareExtensionInfoPlist.ts +++ b/plugin/src/withShareExtensionInfoPlist.ts @@ -32,14 +32,14 @@ export const withShareExtensionInfoPlist: ConfigPlugin<{ height, preprocessingFile, googleServicesFile, - }, + } ) => { return withInfoPlist(config, (config) => { const targetName = getShareExtensionName(config); const targetPath = path.join( config.modRequest.platformProjectRoot, - targetName, + targetName ); const filePath = path.join(targetPath, "Info.plist"); @@ -107,6 +107,8 @@ export const withShareExtensionInfoPlist: ConfigPlugin<{ ...acc, NSExtensionActivationSupportsWebPageWithMaxCount: current.max ?? 1, + NSExtensionActivationSupportsWebURLWithMaxCount: + current.max ?? 1, } : { ...acc, @@ -126,7 +128,7 @@ export const withShareExtensionInfoPlist: ConfigPlugin<{ ...(preprocessingFile && { NSExtensionJavaScriptPreprocessingFile: path.basename( preprocessingFile, - path.extname(preprocessingFile), + path.extname(preprocessingFile) ), }), },