Skip to content

Commit 348a7ff

Browse files
authored
Merge branch 'main' into main
2 parents 9b42055 + c50792d commit 348a7ff

15 files changed

+20155
-829
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Live version: https://docs.nativescript.org/
44

55
---
66

7-
This repository holds the source for the **latest** version of our docs. The theme and general functionality is being built in a different repo, this repo is purely focused on the content.
7+
This repository holds the source for the **latest** version of our docs.
88

99
## Goals
1010

@@ -29,9 +29,7 @@ This repository holds the source for the **latest** version of our docs. The the
2929
Pick a topic/page that nobody is working on yet, create a new branch, add the necessary markdown file and an entry to `content/sidebar.ts`.
3030
Open a draft PR and start working on the page. Once you are ready for feedback, mark the PR as ready for review. During the review process, address any feedback until the content is approved.
3131

32-
If you have any questions, feel free to ask them in your PR and ping [@rigor789](https://github.com/rigor789).
33-
34-
> **Note**: in the current stage of the beta docs, please try to only include a single page + the sidebar config change in a PR to make the review process easier, and reduce possible conflicts. Once we have the majority of the pages complete, we can focus on adding cross-links and references where necessary, and do any additional cleanup passes - at which point this requirement will be dropped.
32+
If you have any questions, feel free to ask them in your PR.
3533

3634
### Reviewing PRs
3735

content/guide/choosing-an-editor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ If you do choose to [try Visual Studio Code](https://code.visualstudio.com/), le
1616

1717
After you install Visual Studio Code, you can open projects using the editor's `File``Open` menu option, but there's an alternative option that works far better for command-line-based projects like NativeScript: the `code` command.
1818

19-
The `code` command runs in your command-line or terminal, and it works just like the `ns` command does for NativeScript apps. Visual Studio Code installs the `code` command by default on Windows on Linux, but on macOS, there's [one manual step](https://code.visualstudio.com/docs/setup/mac) you must perform.
19+
The `code` command runs in your command-line or terminal, and it works just like the `ns` command does for NativeScript apps. Visual Studio Code installs the `code` command by default on Windows and Linux, but on macOS, there's [one manual step](https://code.visualstudio.com/docs/setup/mac) you must perform.
2020

21-
Once set up, you can type `code .` in your terminal to open the files in your current folder for editing. For example, you could use the following sequence of command to create a new NativeScript app and open it for editing.
21+
Once set up, you can type `code .` in your terminal to open the files in your current folder for editing. For example, you could use the following sequence of commands to create a new NativeScript app and open it for editing.
2222

2323
```bash
2424
ns create MyNewApp

content/guide/code-sharing.md

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ If a "code sharing solution" is maintained by a framework that can often mean th
2525

2626
## Code Sharing Solutions
2727

28-
Here are a few solitions to **code-sharing**, each having their pros and cons.
28+
Here are a few solutions to **code-sharing**, each having their pros and cons.
2929

30-
### Nrwl Nx DevTools with @nativescript/nx
30+
### Nx with @nativescript/nx
3131

3232
[Learn More about @nativescript/nx](https://github.com/NativeScript/nx)
3333

@@ -42,28 +42,10 @@ Here are a few solitions to **code-sharing**, each having their pros and cons.
4242

4343
- Learning curve if not used to Nx practices in general
4444

45-
### Nrwl Nx DevTools with @nstudio/xplat
45+
### npm or yarn workspaces
4646

47-
[Learn more about @nstudio/xplat](https://nstudio.io/xplat)
48-
49-
**Pros:**
50-
51-
- It's centered around JavaScript/TypeScript (lesson 1 and 5 above)
52-
- Uses standard build tooling like TypeScript or webpack to build code (lesson 2 above)
53-
- No custom file extensions to deal with (lesson 3 above)
54-
- Nx splits up "apps" and "libs" clearly identifying deployment/distribution targets "apps" that consume shared code "libs" (lesson 4 above)
55-
- It builds upon @nativescript/nx to further scale it across more paradigms so it's a natural extension when needed if already working in Nx with @nativescript/nx
56-
- Opinionated architecture is provided via xplat which helps to avoid common pitfalls from hard lessons learned in real world developments with cross platform mixtures
57-
58-
**Cons:**
59-
60-
- Learning curve if not used to Nx practices in general
61-
- Learning curve if you have not developed applications in large codebases before
62-
- Understanding the [basic fundamentals](https://nstudio.io/xplat/fundamentals/architecture) of the provided architecture
63-
64-
### Yarn workspaces
65-
66-
[Learn more about Yarn workspaces](https://classic.yarnpkg.com/en/docs/workspaces/)
47+
- [Learn more about npm workspaces](https://docs.npmjs.com/cli/using-npm/workspaces/)
48+
- [Learn more about Yarn workspaces](https://classic.yarnpkg.com/en/docs/workspaces/)
6749

6850
**Pros:**
6951

content/guide/crash-reporting-sentry.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ SENTRY_AUTH_TOKEN=your-auth-token
4545

4646
Replace the above placeholders with your actual Sentry details.
4747

48+
::: tip
49+
If you are also doing XR development with Vision Pro or Meta Quest, you may want to additionally setup `SENTRY_PROJECT_SLUG_VISIONOS`, `SENTRY_DSN_VISIONOS`, `SENTRY_PROJECT_SLUG_QUEST`, and `SENTRY_DSN_QUEST`. The bundling config below demonstrates using a visionOS version string as an example. Meta Quest would use the standard Android versioning location of app.gradle.
50+
:::
51+
4852
## Step 4: Configure Webpack
4953

5054
We will use Webpack to manage environment variables and source maps with plugins:
@@ -89,7 +93,10 @@ module.exports = (env) => {
8993
).match(/versionName\s+"([^"]+)"/)[1]
9094
: parse(
9195
readFileSync(
92-
resolve(__dirname, 'App_Resources/iOS/Info.plist'),
96+
resolve(
97+
__dirname,
98+
`App_Resources/${platform === 'visionos' ? 'visionOS' : 'iOS'}/Info.plist`,
99+
),
93100
'utf8',
94101
),
95102
)['CFBundleShortVersionString']

content/guide/updating/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Updating a NativeScript app is usually a quick process if done regularly. The fo
1010
## Update guides
1111

1212
- [Updating to latest](/guide/updating/to-latest)
13-
- More soon...
1413

1514
## Updating to a tagged version
1615

content/plugins/biometrics.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@ editUrl: https://github.com/NativeScript/plugins/tree/main/packages/biometrics/R
3434
A plugin that allows you to authenticate users with biometrics, such as fingerprints, facial recognition, etc.
3535

3636
> **Note**
37-
> This plugin replaces [@nativescript/fingerprint-auth](../fingerprint-auth).
37+
> This plugin replaces [@nativescript/fingerprint-auth](../plugins/fingerprint-auth).
38+
39+
### Prerequisites:
40+
41+
Before you can verify a user’s biometrics, the device must already have biometric data (such as fingerprints or a face scan) enrolled at the system level. This enrollment is handled by the device’s operating system settings—your app or this plugin does not capture or store biometric data directly. Users must set up biometrics through their device’s security settings (e.g., `Settings` > `Security` > `Biometrics` on Android, or `Settings` > `Face ID` & `Passcode` on iOS).
42+
43+
### How it works:
44+
45+
When you call the plugin’s verification methods, the plugin asks the operating system to prompt the user for their enrolled biometric (fingerprint, face, etc.) and returns the result. The plugin never sees or manages the actual biometric data—only the OS does.
3846

3947
## Installation
4048

content/plugins/detox.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,36 @@ A default NativeScript Android project uses 17 as the minimum SDK, but Detox req
197197

198198
:::
199199

200-
### Allow Local Networking (**iOS Only**)
200+
### Allow Local Networking
201+
202+
#### Android (Compulsory)
203+
204+
We have added a network security config file at `./res/xml/network_security_config.xml`, add it to the applications `AndroidManifest.xml` as below
205+
206+
```xml
207+
<!-- ./res/xml/network_security_config.xml -->
208+
<?xml version="1.0" encoding="utf-8"?>
209+
<network-security-config>
210+
<domain-config cleartextTrafficPermitted="true">
211+
<domain includeSubdomains="true">10.0.2.2</domain>
212+
<domain includeSubdomains="true">localhost</domain>
213+
</domain-config>
214+
</network-security-config>
215+
```
216+
217+
```xml
218+
<!-- ./res/xml/network_security_config.xml -->
219+
...existing code...
220+
221+
<application
222+
...existing attributes...
223+
android:networkSecurityConfig="@xml/network_security_config">
224+
...existing code...
225+
```
226+
227+
If you have an existing network security config, incorporate the configuration specified above into it.
228+
229+
#### iOS (Optional)
201230

202231
Dependending on your setup iOS may not be able to communicate with Detox off the bat. In that case, you need to add the following to your `Info.plist` file to allow for local networking requests.
203232

content/plugins/fingerprint-auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ editUrl: https://github.com/NativeScript/plugins/tree/main/packages/fingerprint-
1111

1212
## Replacement notice
1313

14-
This plugin is replaced by [@nativescript/biometrics](../biometrics)
14+
This plugin is replaced by [@nativescript/biometrics](../plugins/biometrics)
1515

1616
# @nativescript/fingerprint-auth
1717

0 commit comments

Comments
 (0)