Skip to content

Commit

Permalink
url activation rule should support both, NSExtensionActivationSupport…
Browse files Browse the repository at this point in the history
…sWebPageWithMaxCount and NSExtensionActivationSupportsWebURLWithMaxCount
  • Loading branch information
MaxAst committed Aug 24, 2024
1 parent b5c3c61 commit bba186a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions plugin/src/withShareExtensionInfoPlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -107,6 +107,8 @@ export const withShareExtensionInfoPlist: ConfigPlugin<{
...acc,
NSExtensionActivationSupportsWebPageWithMaxCount:
current.max ?? 1,
NSExtensionActivationSupportsWebURLWithMaxCount:
current.max ?? 1,
}
: {
...acc,
Expand All @@ -126,7 +128,7 @@ export const withShareExtensionInfoPlist: ConfigPlugin<{
...(preprocessingFile && {
NSExtensionJavaScriptPreprocessingFile: path.basename(
preprocessingFile,
path.extname(preprocessingFile),
path.extname(preprocessingFile)
),
}),
},
Expand Down

0 comments on commit bba186a

Please sign in to comment.