Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(cli): support swift plugin bindings #1840

Merged
merged 1 commit into from
Jul 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/cli/src/lib/project/manifests/plugin/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const pluginManifestLanguages = {
"plugin/rust": "plugin/rust",
"plugin/python": "plugin/python",
"plugin/kotlin": "plugin/kotlin",
"plugin/swift": "plugin/swift",
};

export type PluginManifestLanguages = typeof pluginManifestLanguages;
Expand All @@ -31,6 +32,8 @@ export function pluginManifestLanguageToBindLanguage(
return "plugin-py";
case "plugin/kotlin":
return "plugin-kt";
case "plugin/swift":
return "plugin-swift";
default:
throw Error(
intlMsg.lib_language_unsupportedManifestLanguage({
Expand Down
4 changes: 4 additions & 0 deletions packages/schema/bind/src/bindings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export function getGenerateBindingFn(
return WrapBindgen.getGenerateBindingFn(
"https://github.com/polywrap/wrap-abi-bindgen/tree/wrap-0.1/implementations/plugin-kotlin"
);
case "plugin-swift":
return WrapBindgen.getGenerateBindingFn(
"https://github.com/polywrap/wrap-abi-bindgen/tree/wrap-0.1/implementations/plugin-swift"
);
case "app-ts":
return WrapBindgen.getGenerateBindingFn(
"https://github.com/polywrap/wrap-abi-bindgen/tree/wrap-0.1/implementations/app-typescript"
Expand Down
1 change: 1 addition & 0 deletions packages/schema/bind/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export type BindLanguage =
| "plugin-rs"
| "plugin-py"
| "plugin-kt"
| "plugin-swift"
| "app-ts";

export interface BindOutput {
Expand Down