Content-Length: 275348 | pFad | http://github.com/NativeScript/docs/pull/161/files

C5 feat(config): ios.NativeSource option by NathanWalker · Pull Request #161 · NativeScript/docs · GitHub
Skip to content

feat(config): ios.NativeSource option #161

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 2 commits into from
Feb 22, 2025
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
57 changes: 57 additions & 0 deletions content/configuration/nativescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,63 @@ ios: {
}
```

### ios.NativeSource

::: tip

NativeSource config option is available in `nativescript@8.9.0` or newer.

:::

```ts
ios.NativeSource: Array<{
name: string;
path: string;
}>
```

Include any native source code from anywhere in the project (or workspace). Glob patterns are fully supported.

#### Example

- Include any `.swift` files anywhere within the project `src` directory:

```ts
// ...
ios: {
NativeSource: [
{
name: 'ProjectPlatformSrc',
path: './src/**/*.swift'
}
],
}
```

This will create a file reference folder named `ProjectPlatformSrc` within the generated Xcode project containing any .swift files found anywhere within the project `src` directory.

- Include any `.swift` files anywhere within the project `src` directory, including any (Swift, Obj-C impl/headers, as well as any module.modulemap files) within a workspace `packages` or `libs` dir:

```ts
// ...
ios: {
NativeSource: [
{
name: 'ProjectPlatformSrc',
path: './src/**/*.swift'
},
{
name: 'Auth',
path: '../../packages/**/*.{swift,m,h,modulemap}'
},
{
name: 'Purchasing',
path: '../../libs/**/*.{swift,m,h,modulemap}'
}
],
}
```

## Hooks Configuration Reference

```ts
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/docs/pull/161/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy