Skip to content

Commit 0b6884b

Browse files
committed
Merge branch 'main' of github.com:NativeScript/nativescript-cli
# Conflicts: # lib/controllers/platform-controller.ts # lib/declarations.d.ts # lib/options.ts # lib/project-data.ts # lib/services/android-plugin-build-service.ts # lib/services/android/gradle-build-args-service.ts # test/services/android/gradle-build-args-service.ts # vendor/gradle-plugin/build.gradle # vendor/gradle-plugin/settings.gradle
2 parents 7f1d147 + bf0e620 commit 0b6884b

64 files changed

Lines changed: 3585 additions & 1102 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,46 @@
1+
## [8.8.2](https://github.com/NativeScript/nativescript-cli/compare/v8.8.1...v8.8.2) (2024-08-28)
2+
3+
4+
### Bug Fixes
5+
6+
* don't quote executable in windows ([823565e](https://github.com/NativeScript/nativescript-cli/commit/823565e95102343449bc687387d43a5f223390b1))
7+
* typings path separator on windows ([#5812](https://github.com/NativeScript/nativescript-cli/issues/5812)) ([25c3d67](https://github.com/NativeScript/nativescript-cli/commit/25c3d67ff92980b45326a4cc5043561bba393598))
8+
9+
10+
11+
## [8.8.1](https://github.com/NativeScript/nativescript-cli/compare/v8.8.0...v8.8.1) (2024-08-19)
12+
13+
14+
### Bug Fixes
15+
16+
* quote windows command line arguments ([#5808](https://github.com/NativeScript/nativescript-cli/issues/5808)) ([bf9a6cd](https://github.com/NativeScript/nativescript-cli/commit/bf9a6cdbed227c876b8a94a13e3517e684dad924))
17+
18+
19+
### Features
20+
21+
* add android 35 support ([#5811](https://github.com/NativeScript/nativescript-cli/issues/5811)) ([abc7ab4](https://github.com/NativeScript/nativescript-cli/commit/abc7ab474024bda566374271e0497f4c73d78b4d))
22+
23+
24+
25+
# [8.8.0](https://github.com/NativeScript/nativescript-cli/compare/v8.7.2...v8.8.0) (2024-07-11)
26+
27+
28+
### Bug Fixes
29+
30+
* `ns config set` failure with prettier plugins ([67e68c6](https://github.com/NativeScript/nativescript-cli/commit/67e68c64aec9fcf180cbb91bcc1bfb1ee897094b))
31+
* **android:** use more accurate PID detection on restart ([#5804](https://github.com/NativeScript/nativescript-cli/issues/5804)) ([6509773](https://github.com/NativeScript/nativescript-cli/commit/650977342c67056a1ac3138d3810739cab95d5d5))
32+
33+
34+
### Features
35+
36+
* ability to embed NativeScript into host Swift and Kotlin projects ([#5803](https://github.com/NativeScript/nativescript-cli/issues/5803)) ([42177c3](https://github.com/NativeScript/nativescript-cli/commit/42177c31bd034b6106500259b264db6347c5e21e))
37+
* add support for custom platform 'projectName' from nativescript.config ([#2107](https://github.com/NativeScript/nativescript-cli/issues/2107)) ([#5801](https://github.com/NativeScript/nativescript-cli/issues/5801)) ([32f8fc5](https://github.com/NativeScript/nativescript-cli/commit/32f8fc5332cfe8deda9606346906a4fa179fe78d))
38+
* gradle 8, kotlin 2 & updated bundletool ([#5799](https://github.com/NativeScript/nativescript-cli/issues/5799)) ([29acc76](https://github.com/NativeScript/nativescript-cli/commit/29acc76479646c1150440f9a4d0defa19faa74f0))
39+
* migrate 8.8 and associated depedencies ([#5807](https://github.com/NativeScript/nativescript-cli/issues/5807)) ([9e9773f](https://github.com/NativeScript/nativescript-cli/commit/9e9773f481991e30ac9c0aaf7a3a5dcc947fc801))
40+
* native add command to add native source files to the project ([#5806](https://github.com/NativeScript/nativescript-cli/issues/5806)) ([2f2d1e0](https://github.com/NativeScript/nativescript-cli/commit/2f2d1e0bfa5e3e41bba653de2393e9a2c169bd38))
41+
42+
43+
144
## [8.7.2](https://github.com/NativeScript/nativescript-cli/compare/v8.7.1...v8.7.2) (2024-05-28)
245

346
### Bug Fixes
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<% if (isJekyll) { %>---
2+
title: ns native add java
3+
position: 2
4+
---<% } %>
5+
6+
# ns native add java
7+
8+
### Description
9+
10+
Adds a newly generated Java file, which includes a class with the specified name, placing it in the appropriate directory.
11+
12+
### Commands
13+
14+
Usage | Synopsis
15+
------|-------
16+
Java | `$ ns native add java <Java class name>`
17+
18+
### Arguments
19+
20+
* `<Java class name>` is the fully qualified name of the `Class` to create, e.g. `org.nativescript.SomeClass`
21+
22+
<% if(isHtml) { %>
23+
24+
### Related Commands
25+
26+
Command | Description
27+
----------|----------
28+
[native add swift](native-add-swift.html) | Generates and adds a Swift file containing a class of the given name.
29+
[native add objective-c](native-add-objective-c.html) | Generates and adds Objective-C files containing an interface of the given name.
30+
[native add java](native-add-java.html) | Generates and adds a Java file containing a class of the given name.
31+
[native add kotlin](native-add-kotlin.html) | Generates and adds a Kotlin file containing a class of the given name.
32+
<% } %>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<% if (isJekyll) { %>---
2+
title: ns native add kotlin
3+
position: 3
4+
---<% } %>
5+
6+
# ns native add kotlin
7+
8+
### Description
9+
10+
Adds a newly generated Kotlin file, which includes a class with the specified name, placing it in the appropriate directory.
11+
12+
Kotlin usage requires that the `useKotlin` property is set in `gradle.properties`, the command will set this to `true`.
13+
14+
### Commands
15+
16+
Usage | Synopsis
17+
------|-------
18+
Kotlin | `$ ns native add kotlin <Kotlin class name>`
19+
20+
### Arguments
21+
22+
* `<Kotlin class name>` is the fully qualified name of the `Class` to create, e.g. `org.nativescript.SomeClass`
23+
24+
<% if(isHtml) { %>
25+
26+
### Related Commands
27+
28+
Command | Description
29+
----------|----------
30+
[native add swift](native-add-swift.html) | Generates and adds a Swift file containing a class of the given name.
31+
[native add objective-c](native-add-objective-c.html) | Generates and adds Objective-C files containing an interface of the given name.
32+
[native add java](native-add-java.html) | Generates and adds a Java file containing a class of the given name.
33+
[native add kotlin](native-add-kotlin.html) | Generates and adds a Kotlin file containing a class of the given name.
34+
<% } %>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<% if (isJekyll) { %>---
2+
title: ns native add objective-c
3+
position: 4
4+
---<% } %>
5+
6+
# ns native add objective-c
7+
8+
### Description
9+
10+
Adds newly generated Objective-C files, which include an interface with the specified name, placing them in the appropriate directory.
11+
12+
Objective-C usage requires that the `module.modulemap` is modified to include the header file, the command will set this entry.
13+
14+
### Commands
15+
16+
Usage | Synopsis
17+
------|-------
18+
Objective-C | `$ ns native add objective-c <Objective-C interface name>`
19+
20+
### Arguments
21+
22+
* `<Objective-C interface name>` is the name of the `interface` to create, e.g. `SomeInterface`
23+
24+
<% if(isHtml) { %>
25+
26+
### Related Commands
27+
28+
Command | Description
29+
----------|----------
30+
[native add swift](native-add-swift.html) | Generates and adds a Swift file containing a class of the given name.
31+
[native add objective-c](native-add-objective-c.html) | Generates and adds Objective-C files containing an interface of the given name.
32+
[native add java](native-add-java.html) | Generates and adds a Java file containing a class of the given name.
33+
[native add kotlin](native-add-kotlin.html) | Generates and adds a Kotlin file containing a class of the given name.
34+
<% } %>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<% if (isJekyll) { %>---
2+
title: ns native add swift
3+
position: 5
4+
---<% } %>
5+
6+
# ns native add swift
7+
8+
### Description
9+
10+
Adds a newly generated Swift file, which includes a class with the specified name, placing it in the appropriate directory.
11+
12+
### Commands
13+
14+
Usage | Synopsis
15+
------|-------
16+
Swift | `$ ns native add swift <Swift class name>`
17+
18+
### Arguments
19+
20+
* `<Swift class name>` is the name of the `Class` to create, e.g. `SomeClass`
21+
22+
<% if(isHtml) { %>
23+
24+
### Related Commands
25+
26+
Command | Description
27+
----------|----------
28+
[native add swift](native-add-swift.html) | Generates and adds a Swift file containing a class of the given name.
29+
[native add objective-c](native-add-objective-c.html) | Generates and adds Objective-C files containing an interface of the given name.
30+
[native add java](native-add-java.html) | Generates and adds a Java file containing a class of the given name.
31+
[native add kotlin](native-add-kotlin.html) | Generates and adds a Kotlin file containing a class of the given name.
32+
<% } %>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<% if (isJekyll) { %>---
2+
title: ns native add
3+
position: 1
4+
---<% } %>
5+
6+
# ns native add
7+
8+
### Description
9+
10+
Commands to add native files to the application placing them in the correct directory.
11+
12+
### Commands
13+
14+
Usage | Synopsis
15+
------|-------
16+
Swift | `$ ns native add swift <Swift class name>`
17+
Objective-C | `$ ns native add objective-c <Objective-C interface name>`
18+
Java | `$ ns native add java <Java class name>`
19+
Kotlin | `$ ns native add kotlin <Kotlin class name>`
20+
21+
<% if(isHtml) { %>
22+
23+
### Related Commands
24+
25+
Command | Description
26+
----------|----------
27+
[native add swift](native-add-swift.html) | Generates and adds a Swift file containing a class of the given name.
28+
[native add objective-c](native-add-objective-c.html) | Generates and adds Objective-C files containing an interface of the given name.
29+
[native add java](native-add-java.html) | Generates and adds a Java file containing a class of the given name.
30+
[native add kotlin](native-add-kotlin.html) | Generates and adds a Kotlin file containing a class of the given name.
31+
<% } %>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<% if (isJekyll) { %>---
2+
title: ns native
3+
position: 1
4+
---<% } %>
5+
6+
# ns native
7+
8+
### Description
9+
10+
Commands to add native files to the application placing them in the correct directory.
11+
12+
### Commands
13+
14+
Usage | Synopsis
15+
------|-------
16+
Swift | `$ ns native add swift <Swift class name>`
17+
Objective-C | `$ ns native add objective-c <Objective-C interface name>`
18+
Java | `$ ns native add java <Java class name>`
19+
Kotlin | `$ ns native add kotlin <Kotlin class name>`
20+
21+
<% if(isHtml) { %>
22+
23+
### Related Commands
24+
25+
Command | Description
26+
----------|----------
27+
[native add swift](native-add-swift.html) | Generates and adds a Swift file containing a class of the given name.
28+
[native add objective-c](native-add-objective-c.html) | Generates and adds Objective-C files containing an interface of the given name.
29+
[native add java](native-add-java.html) | Generates and adds a Java file containing a class of the given name.
30+
[native add kotlin](native-add-kotlin.html) | Generates and adds a Kotlin file containing a class of the given name.
31+
<% } %>

lib/bootstrap.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ injector.requireCommand("build|vision", "./commands/build");
199199
injector.requireCommand("build|visionos", "./commands/build");
200200
injector.requireCommand("deploy", "./commands/deploy");
201201

202+
injector.requireCommand("embed", "./commands/embedding/embed");
203+
202204
injector.require("testExecutionService", "./services/test-execution-service");
203205
injector.requireCommand("dev-test|android", "./commands/test");
204206
injector.requireCommand("dev-test|ios", "./commands/test");
@@ -458,5 +460,14 @@ injector.require("keyCommandHelper", "./helpers/key-command-helper");
458460

459461
injector.requireCommand("start", "./commands/start");
460462
injector.require("startService", "./services/start-service");
461-
463+
injector.requireCommand(
464+
[
465+
"native|add",
466+
"native|add|java",
467+
"native|add|kotlin",
468+
"native|add|swift",
469+
"native|add|objective-c",
470+
],
471+
"./commands/native-add"
472+
);
462473
require("./key-commands/bootstrap");

lib/commands/add-platform.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import { injector } from "../common/yok";
1212

1313
export class AddPlatformCommand
1414
extends ValidatePlatformCommandBase
15-
implements ICommand {
15+
implements ICommand
16+
{
1617
public allowedParameters: ICommandParameter[] = [];
1718

1819
constructor(

0 commit comments

Comments
 (0)