Skip to content

Commit cf61acb

Browse files
committed
Merge remote-tracking branch 'nativescript/main'
# Conflicts: # CHANGELOG.md # lib/commands/config.ts # lib/common/helpers.ts # lib/common/logger/logger.ts # lib/controllers/prepare-controller.ts # lib/controllers/run-controller.ts # lib/definitions/project.d.ts # lib/services/ios-project-service.ts # lib/services/webpack/webpack-compiler-service.ts # package-lock.json # package.json # tsconfig.json
2 parents 7fef61f + 23c07aa commit cf61acb

File tree

64 files changed

+6077
-5550
lines changed

Some content is hidden

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

64 files changed

+6077
-5550
lines changed

.github/workflows/npm_release_cli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
- uses: actions/setup-node@v3
2525
with:
26-
node-version: 18
26+
node-version: 22.14.0
2727

2828
- name: Setup
2929
run: npm i --ignore-scripts --legacy-peer-deps --no-package-lock

CHANGELOG.md

Lines changed: 47 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,68 @@
1-
# Changelog
1+
## [8.9.3](https://github.com/NativeScript/nativescript-cli/compare/v8.9.2...v8.9.3) (2025-07-16)
22

3-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
43

5-
### 8.8.7 (2025-01-24)
4+
### Bug Fixes
5+
6+
* **bundler:** include process.env first ([4df139d](https://github.com/NativeScript/nativescript-cli/commit/4df139dc83456ac98dc4cdae765b72a47a945f91))
7+
* pass down process environment to webpack process ([#5844](https://github.com/NativeScript/nativescript-cli/issues/5844)) ([1e8b93f](https://github.com/NativeScript/nativescript-cli/commit/1e8b93fb0b8c5ac3080fdb5eecec5b7326859c81))
68

7-
### 8.8.6 (2024-11-04)
89

9-
### [8.8.5](https://github.com/farfromrefug/nativescript-cli/compare/v8.8.4...v8.8.5) (2024-10-18)
10+
11+
## [8.9.2](https://github.com/NativeScript/nativescript-cli/compare/v8.9.1...v8.9.2) (2025-03-25)
1012

1113

1214
### Bug Fixes
1315

14-
* regression fix ([d7041a8](https://github.com/farfromrefug/nativescript-cli/commit/d7041a85258428d0fda5dcf69ac73be907f05517))
16+
* icon generator color type error ([#5838](https://github.com/NativeScript/nativescript-cli/issues/5838)) ([af81491](https://github.com/NativeScript/nativescript-cli/commit/af8149113844a7aebcd6bf66eeae73154ac7927b))
17+
* remove --legacy-peer-deps flag on install ([#5839](https://github.com/NativeScript/nativescript-cli/issues/5839)) ([ca6fb68](https://github.com/NativeScript/nativescript-cli/commit/ca6fb68a96cbf4006885c878527c0743b3dae248))
18+
1519

16-
### [8.8.4](https://github.com/farfromrefug/nativescript-cli/compare/v8.8.3...v8.8.4) (2024-10-17)
20+
21+
## [8.9.1](https://github.com/NativeScript/nativescript-cli/compare/v8.9.0...v8.9.1) (2025-03-05)
1722

1823

1924
### Bug Fixes
2025

21-
* regression fix ([fd25a26](https://github.com/farfromrefug/nativescript-cli/commit/fd25a26de1b81036a7c53842f5955264e387af13))
26+
* support node < 22.14 ([#5834](https://github.com/NativeScript/nativescript-cli/issues/5834)) ([9c5fdb2](https://github.com/NativeScript/nativescript-cli/commit/9c5fdb24a826974d62ce72b74a13e5e419136d77))
27+
2228

23-
### [8.8.3](https://github.com/farfromrefug/nativescript-cli/compare/v8.8.2...v8.8.3) (2024-10-17)
29+
30+
# [8.9.0](https://github.com/NativeScript/nativescript-cli/compare/v8.8.3...v8.9.0) (2025-02-27)
2431

2532

2633
### Bug Fixes
2734

28-
* add runtime infos in app package.json. Cleanup that package.json ([8223062](https://github.com/farfromrefug/nativescript-cli/commit/8223062c58769dd557eb5de7fadd1d10d8f87828))
29-
* add webpack env data so that scripts can read it (like svelte-preprocessor) ([144d775](https://github.com/farfromrefug/nativescript-cli/commit/144d775d2adde5ad7299e42354f8d49991d22007))
30-
* android fix when passing compileSdk as gradle arg ([ee31dd4](https://github.com/farfromrefug/nativescript-cli/commit/ee31dd464055f5b6fc657500b5238e1af6b2a11d))
31-
* deps update ([fbb6b86](https://github.com/farfromrefug/nativescript-cli/commit/fbb6b86e59e323036b46c94ff047b6baaf156a1f))
32-
* updated bundletool.jar to support 16 KB page size. remove vendor adb ([db7f7f4](https://github.com/farfromrefug/nativescript-cli/commit/db7f7f4fa3411374b23b6a118c18dfdffc1c0459))
35+
* add webpack env data so that scripts can read it ([#5817](https://github.com/NativeScript/nativescript-cli/issues/5817)) ([bc23679](https://github.com/NativeScript/nativescript-cli/commit/bc23679c426858dc4a6824641123116a8720d33f))
36+
* **android:** emulator ini file parsing ([#5824](https://github.com/NativeScript/nativescript-cli/issues/5824)) ([2f35b34](https://github.com/NativeScript/nativescript-cli/commit/2f35b347e1d9710f17862009784826cfb0c589aa))
37+
* **android:** logging after app restart ([#5815](https://github.com/NativeScript/nativescript-cli/issues/5815)) ([86d9f29](https://github.com/NativeScript/nativescript-cli/commit/86d9f29ced188a8b7904a83f3c58f06131db8282))
38+
* apple team id not being used when persisted to the platforms folder ([#5821](https://github.com/NativeScript/nativescript-cli/issues/5821)) ([4176e98](https://github.com/NativeScript/nativescript-cli/commit/4176e989cc132591b94d2a876fe72a3ab85a3527))
39+
* ensure plugin path is defined to process configs ([d96fde1](https://github.com/NativeScript/nativescript-cli/commit/d96fde1f151e1565ac38d311b42a91b552d70d1c))
40+
* ios-device-lib compiled with arm and x64 ([#5825](https://github.com/NativeScript/nativescript-cli/issues/5825)) ([9eac531](https://github.com/NativeScript/nativescript-cli/commit/9eac5314ac34ee1eea69d480534e1de7e3c99cd6))
41+
* ios-mobileprovision-finder updates for profile location adjustments ([ea0a138](https://github.com/NativeScript/nativescript-cli/commit/ea0a1389bc91c5549744cf710bef7f471bcc9823))
42+
* ios-mobileprovision-finder updates for windows ([c06e099](https://github.com/NativeScript/nativescript-cli/commit/c06e0995364769848e693ad513fcad8b6699029a))
43+
* ns publish, apple authentication, appstore list ([#5820](https://github.com/NativeScript/nativescript-cli/issues/5820)) ([5e381d4](https://github.com/NativeScript/nativescript-cli/commit/5e381d435ee8e65d729b5683040cef0a9a03a71c))
44+
* **windows:** APPDATA required ([#5823](https://github.com/NativeScript/nativescript-cli/issues/5823)) ([91eab28](https://github.com/NativeScript/nativescript-cli/commit/91eab28c982e98f7dec6ab3aa943900daed2f12a))
45+
46+
47+
### Features
48+
49+
* build flag to append generated suffix to bundles ([#5814](https://github.com/NativeScript/nativescript-cli/issues/5814)) ([d10b817](https://github.com/NativeScript/nativescript-cli/commit/d10b817f7428f7fc668b21c38302704592060823))
50+
* custom android-studio path to support nixos using new env.NATIVESCRIPT_ANDROID_STUDIO_PATH ([#5816](https://github.com/NativeScript/nativescript-cli/issues/5816)) ([661b653](https://github.com/NativeScript/nativescript-cli/commit/661b653f39332859bb808cec5992c6b4fcbfe150))
51+
* **ios:** 'ns widget ios' for single command widget generator ([#5829](https://github.com/NativeScript/nativescript-cli/issues/5829)) ([89d09d3](https://github.com/NativeScript/nativescript-cli/commit/89d09d3d27030ec98ce1e50b21be2d238c79f2e5))
52+
* **ios:** allow collections of NativeSource to be included via nativescript.config ([#5830](https://github.com/NativeScript/nativescript-cli/issues/5830)) ([daa567c](https://github.com/NativeScript/nativescript-cli/commit/daa567caa7250d17cb567883a4753480dcb6b933))
53+
* **ios:** multi target support for swift packages ([#5828](https://github.com/NativeScript/nativescript-cli/issues/5828)) ([2090491](https://github.com/NativeScript/nativescript-cli/commit/209049163b6235f6726230e8eec2f19908e893ea))
54+
* plugins can now define their own nativescript.config for SPMPackage inclusion ([#5826](https://github.com/NativeScript/nativescript-cli/issues/5826)) ([b2bad0c](https://github.com/NativeScript/nativescript-cli/commit/b2bad0cfaaaea4d1aafddfdf1153e1f3e3afee5d))
55+
* support solid with typescript template ([1b6202d](https://github.com/NativeScript/nativescript-cli/commit/1b6202db13eb585e342b72604028dd3e0aeef97f))
56+
57+
58+
59+
## [8.8.3](https://github.com/NativeScript/nativescript-cli/compare/v8.8.2...v8.8.3) (2024-12-03)
60+
61+
* SPM package version now supports semver ranges
62+
* `~1.0.0` => upToNextMinor
63+
* `^1.0.0` => upToNextMajor
64+
* `#hash` => specific commit hash
65+
* `<branch>` => specific branch
3366

3467
## [8.8.2](https://github.com/NativeScript/nativescript-cli/compare/v8.8.1...v8.8.2) (2024-08-28)
3568

Gruntfile.js

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ const childProcess = require("child_process");
22
const EOL = require("os").EOL;
33
const path = require("path");
44
const now = new Date().toISOString();
5-
const latestVersion = require('latest-version');
5+
const latestVersion = require('latest-version').default;
6+
67

78
const ENVIRONMENTS = {
89
live: "live",
@@ -247,15 +248,40 @@ function registerTestingDependenciesTasks(grunt) {
247248
const generatedVersionFilePath = path.join(configsBasePath, "test-deps-versions-generated.json");
248249

249250
grunt.registerTask("generate_unit_testing_dependencies", async function () {
250-
var done = this.async();
251+
const done = this.async();
252+
251253
const dependenciesVersions = {};
252-
const testDependencies = grunt.file.readJSON(path.join(configsBasePath, "test-dependencies.json"));
253-
for (var dependency of testDependencies) {
254-
const dependencyVersion = dependency.version || await latestVersion(dependency.name);
255-
dependenciesVersions[dependency.name] = dependencyVersion;
254+
let testDependencies;
255+
256+
try {
257+
testDependencies = grunt.file.readJSON(path.join(configsBasePath, "test-dependencies.json"));
258+
} catch (err) {
259+
grunt.log.error("Could not read test-dependencies.json:", err);
260+
return done(false);
256261
}
257-
grunt.file.write(generatedVersionFilePath, JSON.stringify(dependenciesVersions));
258-
done();
262+
263+
264+
// Kick off all version resolutions in parallel
265+
const versionPromises = testDependencies.map(dep => {
266+
if (dep.version) {
267+
dependenciesVersions[dep.name] = dep.version;
268+
return Promise.resolve();
269+
}
270+
return latestVersion(dep.name).then(v => {
271+
dependenciesVersions[dep.name] = v;
272+
});
273+
});
274+
275+
Promise.all(versionPromises)
276+
.then(() => {
277+
grunt.file.write(generatedVersionFilePath, JSON.stringify(dependenciesVersions, null, 2));
278+
grunt.log.writeln("Wrote", generatedVersionFilePath);
279+
done();
280+
})
281+
.catch(err => {
282+
grunt.log.error(err);
283+
done(false);
284+
});
259285
});
260286

261287
grunt.registerTask("verify_unit_testing_dependencies", function () {
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<% if (isJekyll) { %>---
2+
title: ns widget ios
3+
position: 11
4+
---<% } %>
5+
6+
# ns widget ios
7+
8+
### Description
9+
10+
Interactively adds a new iOS widget based on a predefined template.
11+
12+
### Commands
13+
14+
Usage | Synopsis
15+
------|-------
16+
General | `$ ns widget ios`
17+
18+
<% if(isHtml) { %>
19+
20+
### Command Limitations
21+
22+
* You can run `$ ns widget ios` only on macOS systems.
23+
24+
<% } %>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<% if (isJekyll) { %>---
2+
title: ns widget ios
3+
position: 11
4+
---<% } %>
5+
6+
# ns widget ios
7+
8+
### Description
9+
10+
Interactively adds a new iOS widget based on a predefined template.
11+
12+
### Commands
13+
14+
Usage | Synopsis
15+
------|-------
16+
General | `$ ns widget ios`
17+
18+
<% if(isHtml) { %>
19+
20+
### Command Limitations
21+
22+
* You can run `$ ns widget ios` only on macOS systems.
23+
24+
<% } %>

docs/man_pages/start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Command | Description
5050
[install](project/configuration/install.html) | Installs all platforms and dependencies described in the `package.json` file in the current directory.
5151
[plugin](lib-management/plugin.html) | Lets you manage the plugins for your project.
5252
[open](project/configuration/open.md) | Opens the native project in Xcode/Android Studio.
53-
53+
[widget ios](project/configuration/widget.md) | Adds a new iOS widget to the project.
5454
## Publishing Commands
5555
Command | Description
5656
---|---

0 commit comments

Comments
 (0)