From 1672a80c982415229b67aaf39ec6d099a3107a05 Mon Sep 17 00:00:00 2001 From: krisbitney Date: Wed, 30 Aug 2023 01:07:00 +0300 Subject: [PATCH 1/2] added swift app bindings to cli --- packages/cli/src/commands/create.ts | 2 +- packages/schema/bind/src/bindings/index.ts | 4 ++++ packages/schema/bind/src/types.ts | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/commands/create.ts b/packages/cli/src/commands/create.ts index f840396b4e..d6e32b5696 100644 --- a/packages/cli/src/commands/create.ts +++ b/packages/cli/src/commands/create.ts @@ -28,7 +28,7 @@ const urlStr = intlMsg.commands_create_options_t_url(); export const supportedLangs = { wasm: ["assemblyscript", "rust", "golang", "interface"] as const, - app: ["typescript"] as const, + app: ["typescript", "ios"] as const, plugin: ["typescript", "rust", "python"] as const, }; diff --git a/packages/schema/bind/src/bindings/index.ts b/packages/schema/bind/src/bindings/index.ts index 4bf8889c88..9089cdfa96 100644 --- a/packages/schema/bind/src/bindings/index.ts +++ b/packages/schema/bind/src/bindings/index.ts @@ -45,6 +45,10 @@ export function getGenerateBindingFn( return WrapBindgen.getGenerateBindingFn( "https://github.com/polywrap/wrap-abi-bindgen/tree/nk/ts-app-codegen/implementations/app-typescript" ); + case "app-swift": + return WrapBindgen.getGenerateBindingFn( + "https://github.com/polywrap/wrap-abi-bindgen/tree/nk/ts-app-codegen/implementations/app-swift" + ); default: throw Error(`Error: Language binding unsupported - ${bindLanguage}`); } diff --git a/packages/schema/bind/src/types.ts b/packages/schema/bind/src/types.ts index c7d043e9f6..4f6e8657fe 100644 --- a/packages/schema/bind/src/types.ts +++ b/packages/schema/bind/src/types.ts @@ -11,6 +11,7 @@ export const bindLanguage = { "plugin-kt": "plugin-kt", "plugin-swift": "plugin-swift", "app-ts": "app-ts", + "app-swift": "app-swift", }; export type BindLanguages = typeof bindLanguage; From 3fee09bcb76495f7e1dc47c3dd1b93d7a8bd9f1c Mon Sep 17 00:00:00 2001 From: krisbitney Date: Wed, 30 Aug 2023 01:08:16 +0300 Subject: [PATCH 2/2] reverted adding "ios" to polywrap create command (should be different PR) --- packages/cli/src/commands/create.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/commands/create.ts b/packages/cli/src/commands/create.ts index d6e32b5696..f840396b4e 100644 --- a/packages/cli/src/commands/create.ts +++ b/packages/cli/src/commands/create.ts @@ -28,7 +28,7 @@ const urlStr = intlMsg.commands_create_options_t_url(); export const supportedLangs = { wasm: ["assemblyscript", "rust", "golang", "interface"] as const, - app: ["typescript", "ios"] as const, + app: ["typescript"] as const, plugin: ["typescript", "rust", "python"] as const, };