Skip to content

Commit

Permalink
New addEmbeddedFramework directive for iOS plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
belemaire committed Feb 7, 2020
1 parent 5a423f9 commit 82cf07e
Show file tree
Hide file tree
Showing 4 changed files with 481 additions and 443 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,19 @@
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
9C2FE58C23EBF1750014DB26 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
223A89451E89CDC70092741E /* MiniApp.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = MiniApp.jsbundle; sourceTree = "<group>"; };
2265A4A11EB26943007D6C3D /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand Down Expand Up @@ -255,6 +268,7 @@
485009DF1E2FF23B009B6610 /* Frameworks */,
485009E01E2FF23B009B6610 /* Headers */,
485009E11E2FF23B009B6610 /* Resources */,
9C2FE58C23EBF1750014DB26 /* Embed Frameworks */,
);
buildRules = (
);
Expand Down
10 changes: 10 additions & 0 deletions ern-core/src/iosUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,16 @@ export async function fillProjectHull(
}
}

if (pluginConfig.ios.pbxproj.addEmbeddedFramework) {
for (const framework of pluginConfig.ios.pbxproj
.addEmbeddedFramework) {
iosProject.addFramework(framework, {
customFramework: true,
embed: true,
})
}
}

if (pluginConfig.ios.pbxproj.addFrameworkSearchPath) {
for (const p of pluginConfig.ios.pbxproj.addFrameworkSearchPath) {
iosProject.addToFrameworkSearchPaths(p)
Expand Down

0 comments on commit 82cf07e

Please sign in to comment.