crossbind 2.0.0-beta.58 → 2.0.0-beta.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crossbind",
3
- "version": "2.0.0-beta.58",
3
+ "version": "2.0.0-beta.60",
4
4
  "license": "MIT",
5
5
  "homepage": "https://crossbind.dev",
6
6
  "repository": "https://github.com/crossbind/crossbind.git",
@@ -19,8 +19,8 @@
19
19
  "test:coverage": "vitest run --coverage"
20
20
  },
21
21
  "devDependencies": {
22
- "@vitest/coverage-v8": "^4.1.10",
23
- "vitest": "^4.1.10"
22
+ "@vitest/coverage-v8": "^5.0.1",
23
+ "vitest": "^5.0.1"
24
24
  },
25
25
  "dependencies": {
26
26
  "@rollup/plugin-commonjs": "^29.0.3",
@@ -33,7 +33,7 @@
33
33
  "log-update": "^8.0.0",
34
34
  "picocolors": "^1.1.1",
35
35
  "replace": "^1.2.2",
36
- "rollup": "^4.62.4",
36
+ "rollup": "^4.63.4",
37
37
  "spdx-expression-parse": "^5.0.0",
38
38
  "upath": "^3.0.8"
39
39
  },
@@ -11,7 +11,7 @@ import { wasiCFlags, wasiCxxFlags, resolveWasiSdkPath, WASI_TARGET_TRIPLE } from
11
11
  const EXEC_MAX_BUFFER = 512 * 1024 * 1024;
12
12
  const CROSSCOMPILER_ARM64 = 'aarch64-linux-android33';
13
13
  const CROSSCOMPILER_x86_64 = 'x86_64-linux-android33';
14
- const ANDROID_NDK = '/opt/android-sdk/ndk/27.3.13750724';
14
+ const ANDROID_NDK = '/opt/android-sdk/ndk/current';
15
15
  const t = `${ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64/bin`;
16
16
  const t2 = `${ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64`;
17
17
 
@@ -1,5 +1,5 @@
1
1
  cmake_minimum_required(VERSION 3.28)
2
- set(CMAKE_CXX_STANDARD 17)
2
+ set(CMAKE_CXX_STANDARD 20)
3
3
  project("${PROJECT_NAME}")
4
4
 
5
5
  option(BUILD_BRIDGE "Build Bridge" OFF)
@@ -1,35 +1,35 @@
1
1
  {
2
- "version": "1.0.4",
2
+ "version": "1.0.6",
3
3
  "registry": "ghcr.io/crossbind",
4
4
  "toolchains": {
5
5
  "rust": "1.98.1"
6
6
  },
7
7
  "images": {
8
8
  "rust-sysroot": {
9
- "index": "sha256:1e55dcef1d39af7379f3d83979c345fb65706433a34abdc493264841a3377fca",
9
+ "index": "sha256:b82285c6c74f0f2f21bd4f3d07af8a005b16b9e8faaecbe672f6e9b139616eb7",
10
10
  "platforms": {
11
- "linux/amd64": "sha256:24368e09f52d071088fc5d4ac448a8bf77359efeeb877947b4eaf4079c1eb5b5",
12
- "linux/arm64": "sha256:59e2183fb1360d12ce2a50546a4c28f9918237890770033bd2494d21c61ef05d"
11
+ "linux/arm64": "sha256:50f2bc41d084157bb2d63caa8a91486ea15d3aff248e0d84013a20c7b8cf0c57",
12
+ "linux/amd64": "sha256:65c63d0b3df31406c514a6ed9dbb5ba0940b27c94e2e89b3ceafedaee339bca8"
13
13
  }
14
14
  },
15
15
  "base": {
16
- "index": "sha256:1e74fa9fd70bb9c6d87af107bf772923dd4a63a26c90cbca45eeb717c12d6845",
16
+ "index": "sha256:3a742a779a68e0180ca43232b9e28047e469462c575f1cdef8a3af3ba984263b",
17
17
  "platforms": {
18
- "linux/arm64": "sha256:d503f15f9a49c748d9180f1717e03c24780cd8af9b52b85776c8ebdbc0a67386",
19
- "linux/amd64": "sha256:d77f704ed5371508ec49a2e80a8118c3af8f21f00cfffb48f891169a54c290d9"
18
+ "linux/amd64": "sha256:ff2a42fe5cdff75a9ce89fde340dbde5655f639de2e1288baeb61f2e82d1d095",
19
+ "linux/arm64": "sha256:2571179e6597369544a887da197e280ad9d15075719c04113cc2fd243358f56d"
20
20
  }
21
21
  },
22
22
  "web": {
23
- "index": "sha256:c5965906828d9b415148e5629740e6262ffb68695b648a123fc63ddccc8b9598",
23
+ "index": "sha256:cd9065909b8e4aea584fbe6f6e0215773feaed97ab46e5ce265a487171f87757",
24
24
  "platforms": {
25
- "linux/amd64": "sha256:c794b0cff64637605cd6707e1376a97af2ae2930dce6325a5f780ef0375bb003",
26
- "linux/arm64": "sha256:292e2ff23be5a79a6df7b88894622ac4301b5adc062188abd2079d235dee8db3"
25
+ "linux/arm64": "sha256:224665ea653e6ff6e483fc24b226fa68bf45173a2598439665d827780cbe5534",
26
+ "linux/amd64": "sha256:862b197c13dbdf163d480d35e8b17f96b23b447701cb8e79f0252773d7a48a42"
27
27
  }
28
28
  },
29
29
  "android": {
30
- "index": "sha256:2edc11b760e100fdda24c07148b9f11206602242cdaa210f0b823848f1c22dab",
30
+ "index": "sha256:0d0b56a76cff5b16f52eba3a4d2b17bc888fb2ca502bfd0ae029bf837c6c354d",
31
31
  "platforms": {
32
- "linux/amd64": "sha256:c88bb1012bbb1034e1fd059cfdbc8ea722674194b6659a564e9243c14b4a4588"
32
+ "linux/amd64": "sha256:77fb9007369c5c8003024aade231642afb798664f82aada1a8ac26b931a15fbf"
33
33
  }
34
34
  }
35
35
  }
@@ -140,10 +140,10 @@ function buildScript(target, symbols) {
140
140
 
141
141
  function getReactNativeScript(env) {
142
142
  return `
143
- import { NativeModules } from 'react-native';
143
+ import { TurboModuleRegistry } from 'react-native';
144
144
  import Module from '@crossbind/core-embind-jsi';
145
145
 
146
- const { RNJsiLib } = NativeModules;
146
+ const RNJsiLib = TurboModuleRegistry.get('RNJsiLib');
147
147
 
148
148
  function setEnv() {
149
149
  const env = JSON.parse('${env}');