Skip to content
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 `[email protected]` 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