Skip to content

Commit

Permalink
add privacy manifest to pbxProject
Browse files Browse the repository at this point in the history
  • Loading branch information
achorein committed Apr 12, 2024
1 parent a056f98 commit 71773ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugin/src/ios/withIosShareExtensionXcodeTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
shareExtensionName,
} from "./constants";
import {
getPrivacyInfoFilePath,
getShareExtensionEntitlementsFilePath,
getShareExtensionInfoFilePath,
getShareExtensionStoryboardFilePath,
Expand Down Expand Up @@ -35,6 +36,7 @@ export const withShareExtensionXcodeTarget: ConfigPlugin<Parameters> = (
getShareExtensionViewControllerPath(platformProjectRoot);
const storyboardFilePath =
getShareExtensionStoryboardFilePath(platformProjectRoot);
const privacyFilePath = getPrivacyInfoFilePath(platformProjectRoot);

await writeShareExtensionFiles(
platformProjectRoot,
Expand Down Expand Up @@ -88,6 +90,11 @@ export const withShareExtensionXcodeTarget: ConfigPlugin<Parameters> = (
{ target: target.uuid },
pbxGroupKey,
);
pbxProject.addResourceFile(
privacyFilePath,
{ target: target.uuid },
pbxGroupKey,
);

const configurations = pbxProject.pbxXCBuildConfigurationSection();
for (const key in configurations) {
Expand Down

0 comments on commit 71773ea

Please sign in to comment.