Skip to content

Commit 647092d

Browse files
committed
feat: update nodejs version to 18.20.4
1. add wpt license 2. remove libnode.so, move it to release page 3. update napi_ih, avoid add exist member of cpp nodejs class 4. disable tagged pointer in audio module (fix napi_ih crash bug) 5. update build docs
1 parent 934908f commit 647092d

File tree

944 files changed

+181551
-83017
lines changed

Some content is hidden

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

944 files changed

+181551
-83017
lines changed

LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
The 3-Clause BSD License
2+
3+
Copyright © web-platform-tests contributors
4+
5+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
8+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10+
11+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12+
13+
114
MIT License
215

316
Copyright (c) 2024 Intro1997

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
![C++17](https://img.shields.io/badge/C%2B%2B-17-blue.svg)
2-
![NodeJS v14.17.0](https://img.shields.io/badge/NodeJS-v14.17.0-blue.svg)
2+
![NodeJS v18.20.4](https://img.shields.io/badge/NodeJS-v18.20.4-blue.svg)
33

44
# Description
55

@@ -27,11 +27,12 @@ more detail info is descript [here](./js_api_define/features.md).
2727

2828
# Build & Run
2929

30-
1. run `npm install` for installing dependency
31-
2. run `npm start` to get server address like `http://xxx.xxx.xxx.xxx:20490`
32-
3. open root folder with Android Studio
33-
4. add this line `js_entry="http://xxx.xxx.xxx.xxx:20490/index.js"` to local.property file
34-
5. build and run app
30+
1. Download `NodeJS v18.20.4` library from [Release](https://github.com/Intro1997/JsAudio-Android/releases),put so in `./app/dependency/cpp/node/library` and named `libnode.so`
31+
2. run `npm install` for installing dependency
32+
3. run `npm start` to get server address like `http://xxx.xxx.xxx.xxx:20490`
33+
4. open root folder with Android Studio
34+
5. add this line `js_entry="http://xxx.xxx.xxx.xxx:20490/index.js"` to local.property file
35+
6. build and run app
3536

3637
# App Interface
3738

@@ -51,7 +52,7 @@ see [develop.md](./docs/develop.md)
5152

5253
# Thanks
5354

54-
1. The NodeJS runtime is base on [node-android-build](https://github.com/toyobayashi/node-android-build) v14.17.0 release verison, Thanks!
55+
1. The NodeJS library is built base on [nodejs-mobile](https://github.com/nodejs-mobile/nodejs-mobile) v18.20.4 release verison by [lima](https://github.com/lima-vm/lima) and [containerd](https://github.com/containerd/containerd), Thanks!
5556
2. Test case based on [wpt](https://github.com/web-platform-tests/wpt).
5657
3. NAPI_IH base on [node-addon-api-helper](https://github.com/ajihyf/node-addon-api-helper).
5758
4. Use [ProcessPhoenix](https://github.com/JakeWharton/ProcessPhoenix) to restart Android App.
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools">
34
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
5+
<!-- solve the forced type conversion crash in NAPI_IH -->
6+
<application
7+
android:allowNativeHeapPointerTagging="false"
8+
tools:targetApi="30" />
49
</manifest>

0 commit comments

Comments
 (0)