Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(config): embed options for existing platform host projects #10568

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2024
Merged
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
26 changes: 26 additions & 0 deletions packages/core/config/config.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
Loading