You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/configuration/nativescript.md
+57Lines changed: 57 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -397,6 +397,63 @@ ios: {
397
397
}
398
398
```
399
399
400
+
### ios.NativeSource
401
+
402
+
::: tip
403
+
404
+
NativeSource config option is available in `nativescript@8.9.0` or newer.
405
+
406
+
:::
407
+
408
+
```ts
409
+
ios.NativeSource: Array<{
410
+
name:string;
411
+
path:string;
412
+
}>
413
+
```
414
+
415
+
Include any native source code from anywhere in the project (or workspace). Glob patterns are fully supported.
416
+
417
+
#### Example
418
+
419
+
- Include any `.swift` files anywhere within the project `src` directory:
420
+
421
+
```ts
422
+
// ...
423
+
ios: {
424
+
NativeSource: [
425
+
{
426
+
name: 'ProjectPlatformSrc',
427
+
path: './src/**/*.swift'
428
+
}
429
+
],
430
+
}
431
+
```
432
+
433
+
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.
434
+
435
+
- 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:
0 commit comments