From e92d30468787160290d64512850c409286f53ae2 Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Tue, 2 Jul 2024 09:29:33 -0700 Subject: [PATCH] feat(config): embed options for existing platform host projects --- packages/core/config/config.interface.ts | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/packages/core/config/config.interface.ts b/packages/core/config/config.interface.ts index 6669db48e0..6c2e0383e0 100644 --- a/packages/core/config/config.interface.ts +++ b/packages/core/config/config.interface.ts @@ -173,6 +173,28 @@ interface IConfigHook { script: string; } +interface IConfigEmbedProps { + /** + * Relative path to the platform host project directory. + */ + hostProjectPath?: string; + /** + * (Android only) Optional custom module name. + */ + hostProjectModuleName?: string; +} + +interface IConfigEmbed extends IConfigEmbedProps { + /** + * iOS specific embed configurations + */ + ios?: IConfigEmbedProps; + /** + * Android specific embed configurations + */ + android?: IConfigEmbedProps; +} + export interface NativeScriptConfig { /** * App's bundle id @@ -202,6 +224,10 @@ export interface NativeScriptConfig { * You can override that to use a name of your choice by setting this. */ projectName?: string; + /** + * For embedding into existing platform host projects. + */ + embed?: IConfigEmbed; /** * Custom webpack config path * The default is `webpack.config.js` in the root however you can use a custom name and place elsewhere.