Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
305 commits
Select commit Hold shift + click to select a range
884a711
feat(v8): add download_v8.sh for the shared V8 build
ammarahm-ed Aug 8, 2026
2f0248b
build(android): fetch the V8 libs on demand instead of committing them
ammarahm-ed Aug 8, 2026
cf75be7
chore(v8): vendor the shared V8 14.9 public headers
ammarahm-ed Aug 8, 2026
fe651c5
refactor(engines): share the vendored Hermes and V8 headers across Ap…
ammarahm-ed Aug 8, 2026
9a98b93
refactor(v8): merge the Apple and Android V8 backends into one napi/v8
ammarahm-ed Aug 8, 2026
491eeee
build(v8): fetch only the V8 headers the build reaches and require ND…
ammarahm-ed Aug 8, 2026
93ef690
refactor(napi): move each engine's node-api layer under vendor/<engine>
ammarahm-ed Aug 8, 2026
903aafd
build(v8): note the release now ships only the header closure
ammarahm-ed Aug 8, 2026
101ba7e
fix(hermes): stop a JSI exception escaping the microtask drain into ObjC
ammarahm-ed Aug 8, 2026
7789da9
chore(v8): pin release -5 and install the full src-headers closure
ammarahm-ed Aug 8, 2026
266867d
chore(android): drop the unused v8-13 prebuilt libs
ammarahm-ed Aug 8, 2026
6e7a182
fix(android/test-app): give timers unique ids and stop timing out str…
ammarahm-ed Aug 8, 2026
23d150e
fix(jsc): guard the context->env map against concurrent worker access
ammarahm-ed Aug 8, 2026
f05e15d
fix(jsc): make Android gc() a real synchronous collection
ammarahm-ed Aug 8, 2026
47b0f80
fix(react-native): keep the JSR runtime scope out of the RN turbomodu…
ammarahm-ed Aug 8, 2026
c2cf9d3
build(android): fetch the Hermes prebuilts before CMake configures
ammarahm-ed Aug 16, 2026
1297fda
fix(jsc): let a JS prototype property shadow the native one again
ammarahm-ed Aug 16, 2026
480b96b
fix(ffi): stop the backend boundary check flagging the engine JSR tree
ammarahm-ed Aug 16, 2026
bb681ee
fix(android): preserve refactor runtime synchronization
DjDeveloperr Aug 28, 2026
28d40ae
fix(quickjs): use standard Node-API failure statuses
DjDeveloperr Aug 28, 2026
7799ec9
fix(android): restore JNI class metadata flow
DjDeveloperr Aug 28, 2026
56702b4
ci(runtime): isolate stacked engine benchmarks
DjDeveloperr Aug 28, 2026
11a1327
refactor(jsi): start the shared engine layer with the neutral GSD core
ammarahm-ed Jul 30, 2026
371f9c7
refactor(jsi): move the QuickJS engine layer into the shared tree
ammarahm-ed Jul 30, 2026
c6c5866
refactor(jsi): move the V8 engine layer into the shared tree
ammarahm-ed Jul 30, 2026
12d9033
refactor(jsi): move the JavaScriptCore engine layer into the shared tree
ammarahm-ed Jul 30, 2026
d4b62a1
refactor(jsi): share the Hermes contract header and the GSD lookup side
ammarahm-ed Jul 30, 2026
b83c05d
chore(ci): teach the FFI boundary check about the shared jsi tree
ammarahm-ed Jul 30, 2026
ae60da4
fix(react-native): package the shared JSI headers
DjDeveloperr Aug 28, 2026
27302fe
feat(engine): bring the optimised nativescript::engine layer onto the…
ammarahm-ed Aug 4, 2026
905ed48
refactor(android): split the runtime into napi/ and jsi/ trees
ammarahm-ed Aug 4, 2026
f7e64d3
feat(jni/jsi): engine-facing foundation for the jsi JNI bridge
ammarahm-ed Aug 4, 2026
65c4aa6
feat(jni/jsi): object identity, finalizer deferral, exceptions, arg c…
ammarahm-ed Aug 4, 2026
3656ec3
feat(jni/jsi): WeakRef polyfill on the engine native-state slot
ammarahm-ed Aug 4, 2026
8e1926c
build(android): wire the engine:: layer into the jsi runtime
ammarahm-ed Aug 4, 2026
ccacd1c
feat(android/jsi): engine host, runtime spine, and the napi-free subs…
ammarahm-ed Aug 4, 2026
af5229f
feat(android/jsi): JNI entry points, profiler, performance, message-l…
ammarahm-ed Aug 4, 2026
32ded0a
feat(android/jsi): port the module loader
ammarahm-ed Aug 4, 2026
3cb211c
feat(android/jsi): port WorkerWrapper
ammarahm-ed Aug 4, 2026
e6c83f8
feat(android/jsi): port Timers
ammarahm-ed Aug 4, 2026
100c0e2
feat(android/jsi): port Console; compile NativeScript/jsi under -Pbin…
ammarahm-ed Aug 4, 2026
11240c4
build(android/jsi): reconcile the two lanes' boundary contracts
ammarahm-ed Aug 4, 2026
3c813e7
feat(android/jsi): port the conversion layer to engine::
ammarahm-ed Aug 4, 2026
72f8f18
feat(android/jsi): port GlobalHelpers, JSONObjectHelper and MethodCache
ammarahm-ed Aug 4, 2026
877f22a
fix(android/jsi): close the last two runtime<->ffi API gaps
ammarahm-ed Aug 4, 2026
c43af0f
feat(android/jsi): port FieldAccessor and MetadataBuilder
ammarahm-ed Aug 4, 2026
deef1e6
feat(android/jsi): port MetadataNode and CallbackHandlers; the tree l…
ammarahm-ed Aug 4, 2026
d493b29
fix(android/jsi): key per-runtime state on a stable identity, not &rt
ammarahm-ed Aug 4, 2026
4a481d0
fix(android/jsi): two more stale-runtime bugs found on device
ammarahm-ed Aug 4, 2026
9ccc1a4
fix(android/jsi): open the JS scope before reading the worker handle
ammarahm-ed Aug 4, 2026
a4164f7
fix(android/jsi): stop native exceptions escaping host callbacks
ammarahm-ed Aug 4, 2026
26bef6c
fix(android/jsi): reject a plain Worker(...) call; V8-13 reaches napi…
ammarahm-ed Aug 4, 2026
eebc677
fix(android/jsi): release host-object proxy handles at runtime dispose
ammarahm-ed Aug 4, 2026
f8477fd
fix(android/jsi): dispose js_util::Builtins at runtime teardown
ammarahm-ed Aug 4, 2026
010a04e
fix(jsi/quickjs,android/jsi): QuickJS reaches napi parity
ammarahm-ed Aug 4, 2026
19e03d8
fix(jsi/jsc): install the constructor back-pointer on a host construc…
ammarahm-ed Aug 4, 2026
9257604
fix(jsi/jsc): give native state own-property semantics
ammarahm-ed Aug 4, 2026
8041e05
test: skip the url specs where the runtime does not provide the module
ammarahm-ed Aug 4, 2026
1050cd2
fix(android/jsi): own the proxy registry independently of the ObjectM…
ammarahm-ed Aug 4, 2026
37cb16f
fix(jsi/hermes): install the constructor back-pointer on a host const…
ammarahm-ed Aug 4, 2026
6e30760
fix(jsi/quickjs): do not allocate a zero-length own-names table
ammarahm-ed Aug 5, 2026
2927a9c
fix(android/jsi): console printed "true" for every message
ammarahm-ed Aug 5, 2026
274c0aa
perf(android/jsi): build native instances with the non-masking interc…
ammarahm-ed Aug 5, 2026
7d4f797
fix(android/jsi): keep the error type when rebuilding an error from a…
ammarahm-ed Aug 5, 2026
0c95a51
fix(apple): stop crashing at exit on destroyed function-local statics
ammarahm-ed Aug 1, 2026
95eae6c
perf(jsi/quickjs): take the RuntimeState off the holder, not the cont…
ammarahm-ed Aug 5, 2026
b30b9e9
perf(jsi): create and read JS strings without an owning engine handle
ammarahm-ed Aug 5, 2026
b68f852
feat(jsi): hand host objects an array index as an integer
ammarahm-ed Aug 5, 2026
635c2fd
feat(android/jsi): run ahead-of-time bytecode modules
ammarahm-ed Aug 5, 2026
a715546
fix: write the number to a byte or short field, not zero
ammarahm-ed Aug 5, 2026
0ed6cf6
chore(android): cleanup
ammarahm-ed Aug 5, 2026
b53f8f3
docs: point comments at the relocated engine binding paths
ammarahm-ed Aug 9, 2026
fb66c46
fix(jsi): use one stack argument array across the engine layer
ammarahm-ed Aug 16, 2026
f2811f1
fix(jsc): treat advisory gc() as engine behaviour instead of forcing …
ammarahm-ed Aug 16, 2026
847c54c
chore(android): clean rebased native sources
DjDeveloperr Aug 28, 2026
641ae5e
fix(runtime): preserve native engine lane boundaries
DjDeveloperr Aug 28, 2026
1972fed
test(runtime): allow JSC weak cleanup on macOS
DjDeveloperr Aug 28, 2026
b0fdf78
chore(napi): sync shared Node-API headers and rename napi_runtime
ammarahm-ed Jul 29, 2026
79f086b
feat(android/quickjs): pin engines as submodules and update the napi …
ammarahm-ed Jul 29, 2026
a0f9043
feat(android/primjs): update PrimJS and rewrite the napi adapter
ammarahm-ed Jul 29, 2026
61f8c84
feat(android/jsc): update JavaScriptCore and add host object support
ammarahm-ed Jul 29, 2026
3b13b44
feat(android/v8): rewrite the host object implementation
ammarahm-ed Jul 29, 2026
c194efd
feat(hermes): support both Node-API ABIs from one JSR
ammarahm-ed Jul 29, 2026
14c6851
feat(android/jni): port the JNI Node-API interop updates
ammarahm-ed Jul 29, 2026
30f58b9
feat(android/runtime): port runtime core, native workers and inspector
ammarahm-ed Jul 29, 2026
473a5df
feat(url): Ada 3.3.0, URLPattern and URLSearchParams spec compliance
ammarahm-ed Jul 29, 2026
dc38fe0
feat(android): port the Java runtime layer
ammarahm-ed Jul 29, 2026
8e77e86
build(android): gradle/CMake updates and prebuilt engine binaries
ammarahm-ed Jul 29, 2026
a84b015
test(android): port the test-app suites and build tools
ammarahm-ed Jul 29, 2026
071cc75
feat(android): bytecode compiler toolchain
ammarahm-ed Jul 29, 2026
598957d
fix(napi): declare jsr_ns_runtime where the typedef was lost
ammarahm-ed Jul 29, 2026
459b6bd
fix(url,android): complete the URLSearchParams port and fix a duplica…
ammarahm-ed Jul 29, 2026
54461dd
fix(hermes): restore js_runtime.h, which the Apple JSR includes
ammarahm-ed Jul 29, 2026
1dd7842
fix(android): unbreak the Hermes build and the last bad CMake definition
ammarahm-ed Jul 29, 2026
6edce1c
fix(android/quickjs): carry napi-ios's WeakRef patch into the submodules
ammarahm-ed Jul 29, 2026
3520ebf
fix(android): resolve Hermes native-lib packaging collisions
ammarahm-ed Jul 29, 2026
eaa5e33
fix(android/quickjs): actually record the engines as submodule gitlinks
ammarahm-ed Jul 29, 2026
75c6973
fix(hermes): give Android its own header set, matching its engine binary
ammarahm-ed Jul 29, 2026
93b602b
fix(url): give the URLSearchParams iterator state a single owner
ammarahm-ed Jul 29, 2026
33548ec
fix(url): derive iterator state from the receiver, not the callback data
ammarahm-ed Jul 29, 2026
8907e68
fix(napi,url): clean up the Apple build and align its URLSearchParams…
ammarahm-ed Jul 30, 2026
b7c155d
fix(napi/quickjs): repair the Apple QuickJS backend after the header …
ammarahm-ed Jul 30, 2026
7ae4d1e
chore(android): remove octane benchmark worker
ammarahm-ed Aug 5, 2026
6bcd826
chore(android): update npm_trusted_release.yml to support android
ammarahm-ed Aug 5, 2026
7b0d53b
chore(android): cleanup
ammarahm-ed Aug 5, 2026
8ed1ee4
style: clang-format the engine napi and jsr sources
ammarahm-ed Aug 7, 2026
e8bd5f1
fix(apple/quickjs): restore the ObjC FFI sources moved out of ffi/obj…
ammarahm-ed Aug 7, 2026
1e842b5
refactor(napi/hermes): use the napi/common headers instead of the for…
ammarahm-ed Aug 7, 2026
db9d2ed
refactor(quickjs): vendor the patched quickjs-ng tree, drop bellard a…
ammarahm-ed Aug 7, 2026
6bb7aad
refactor(android/v8): drop the v8-10 and v8-11 engines
ammarahm-ed Aug 7, 2026
1c6bcb8
docs(android/jsc): record why gc() cannot use the synchronous collector
ammarahm-ed Aug 7, 2026
bf2182f
refactor(quickjs): share one backend between Apple and Android on qui…
ammarahm-ed Aug 7, 2026
7122718
refactor(jsc): share one backend between Apple and Android
ammarahm-ed Aug 7, 2026
ebe0eb9
fix(apple/v8): migrate the backend to the V8 14.9 API
ammarahm-ed Aug 8, 2026
7f03784
feat(v8): add download_v8.sh for the shared V8 build
ammarahm-ed Aug 8, 2026
fb954da
build(android): fetch the V8 libs on demand instead of committing them
ammarahm-ed Aug 8, 2026
ab5334e
chore(v8): vendor the shared V8 14.9 public headers
ammarahm-ed Aug 8, 2026
158c44b
refactor(engines): share the vendored Hermes and V8 headers across Ap…
ammarahm-ed Aug 8, 2026
90c691c
refactor(v8): merge the Apple and Android V8 backends into one napi/v8
ammarahm-ed Aug 8, 2026
68a50bd
build(v8): fetch only the V8 headers the build reaches and require ND…
ammarahm-ed Aug 8, 2026
a4bb9ad
refactor(napi): move each engine's node-api layer under vendor/<engine>
ammarahm-ed Aug 8, 2026
6ed7048
build(v8): note the release now ships only the header closure
ammarahm-ed Aug 8, 2026
2b0414a
fix(hermes): stop a JSI exception escaping the microtask drain into ObjC
ammarahm-ed Aug 8, 2026
78ae4bd
chore(v8): pin release -5 and install the full src-headers closure
ammarahm-ed Aug 8, 2026
82ab4b1
chore(android): drop the unused v8-13 prebuilt libs
ammarahm-ed Aug 8, 2026
1c13eac
fix(android/test-app): give timers unique ids and stop timing out str…
ammarahm-ed Aug 8, 2026
5fd64ca
fix(jsc): guard the context->env map against concurrent worker access
ammarahm-ed Aug 8, 2026
189f6f5
fix(jsc): make Android gc() a real synchronous collection
ammarahm-ed Aug 8, 2026
6ca13f3
fix(react-native): keep the JSR runtime scope out of the RN turbomodu…
ammarahm-ed Aug 8, 2026
ab9c614
build(android): fetch the Hermes prebuilts before CMake configures
ammarahm-ed Aug 16, 2026
85dfe01
fix(jsc): let a JS prototype property shadow the native one again
ammarahm-ed Aug 16, 2026
89f60c5
fix(ffi): stop the backend boundary check flagging the engine JSR tree
ammarahm-ed Aug 16, 2026
51baae7
fix(android): preserve refactor runtime synchronization
DjDeveloperr Aug 28, 2026
b18073c
fix(quickjs): use standard Node-API failure statuses
DjDeveloperr Aug 28, 2026
0c0dbbf
fix(android): restore JNI class metadata flow
DjDeveloperr Aug 28, 2026
aae02b1
ci(runtime): isolate stacked engine benchmarks
DjDeveloperr Aug 28, 2026
9604f3c
refactor(jsi): start the shared engine layer with the neutral GSD core
ammarahm-ed Jul 30, 2026
f1df517
refactor(jsi): move the QuickJS engine layer into the shared tree
ammarahm-ed Jul 30, 2026
07806fe
refactor(jsi): move the V8 engine layer into the shared tree
ammarahm-ed Jul 30, 2026
b4c1c4a
refactor(jsi): move the JavaScriptCore engine layer into the shared tree
ammarahm-ed Jul 30, 2026
ca14ff2
refactor(jsi): share the Hermes contract header and the GSD lookup side
ammarahm-ed Jul 30, 2026
7cdeb2e
chore(ci): teach the FFI boundary check about the shared jsi tree
ammarahm-ed Jul 30, 2026
4246722
fix(react-native): package the shared JSI headers
DjDeveloperr Aug 28, 2026
2700200
Merge pull request #67 from NativeScript/port/android-updates-on-refa…
ammarahm-ed Sep 24, 2026
85933e3
Merge pull request #68 from NativeScript/jsi-shared-jsi-layer
ammarahm-ed Sep 24, 2026
8b11c98
Merge branch 'refactor' into jsi-native-android
ammarahm-ed Sep 24, 2026
4206140
fix(android): jni crash on launch
ammarahm-ed Sep 24, 2026
c424eb7
Merge pull request #69 from NativeScript/jsi-native-android
ammarahm-ed Nov 7, 2026
5be9148
fix(apple/v8): stop the runtime aborting on teardown
ammarahm-ed Nov 8, 2026
e608b1c
Merge pull request #118 from NativeScript/fix/apple-v8-teardown-abort
ammarahm-ed Nov 8, 2026
0fb8162
feat(android/jsi): let EngineHost adopt a jsi::Runtime the embedder owns
ammarahm-ed Aug 9, 2026
e9ec502
feat(android/jsi): add the guest attach path for an embedder-owned ru…
ammarahm-ed Aug 9, 2026
6a2da7e
feat(react-native/android): add the source-built guest runtime module
ammarahm-ed Aug 9, 2026
404eaea
feat(react-native/android): generate metadata and attach to RN's runtime
ammarahm-ed Aug 9, 2026
ba3a9c0
fix(dts-generator): emit declarations TypeScript can parse
ammarahm-ed Aug 9, 2026
d767cb9
feat(react-native/android): support subclassing Java from JS
ammarahm-ed Aug 9, 2026
74aa1a8
feat(react-native): add @NativeClass and package the Android runtime
ammarahm-ed Aug 9, 2026
ba064c3
test(react-native/android): add the conformance fixture and runner
ammarahm-ed Aug 9, 2026
63cb3b0
feat(react-native): add JavaProxy naming for build-time generated cla…
ammarahm-ed Aug 9, 2026
b1785ba
feat(bindings): name generated bindings by content instead of call site
ammarahm-ed Aug 9, 2026
ebba140
feat(jsparser): emit bindings for decorated native class declarations
ammarahm-ed Aug 9, 2026
b31db5c
docs(react-native): document content-keyed class naming and when a na…
ammarahm-ed Aug 9, 2026
5b1c8fd
fix(jsparser): read bundler output whatever its extension, retrying a…
ammarahm-ed Aug 9, 2026
be794ca
feat(react-native): pre-generate Java bindings from a release bundle
ammarahm-ed Aug 9, 2026
82a69bc
fix(test): count a self-reported FAIL result as a failure in the RN f…
ammarahm-ed Aug 9, 2026
e05f58a
feat(jsparser): recognise decorators applied as calls, not just syntax
ammarahm-ed Aug 9, 2026
50dc471
feat(react-native): resolve JavaProxy classes from the release bundle
ammarahm-ed Aug 9, 2026
bcad625
perf(react-native): drop standalone-only runtime modules from the gue…
ammarahm-ed Aug 9, 2026
6a98343
feat(metadata): measure what a JS-bundle filter can and cannot cover
ammarahm-ed Aug 9, 2026
f6e60a4
feat(metadata): filter metadata from the app bundle and emit R8 keep …
ammarahm-ed Aug 9, 2026
620dde9
feat(metadata): verify closure soundness and derive the filter seed i…
ammarahm-ed Aug 9, 2026
708e588
feat(metadata): enforce the generated keep rules so R8 strips the sam…
ammarahm-ed Aug 9, 2026
e819ec3
docs(metadata): report the size win against real payload, not test fi…
ammarahm-ed Aug 9, 2026
49a245b
fix(metadata): close the filter's coverage gaps and check them
ammarahm-ed Aug 9, 2026
ad42587
perf(sbg): compile app classes for binding generation and reuse prege…
ammarahm-ed Aug 9, 2026
e68ae06
perf(dts): replace per-generic regex passes with a single linear scan
ammarahm-ed Aug 10, 2026
e2c74b3
perf(dts): bucket ignored namespaces and copy in runs
ammarahm-ed Aug 10, 2026
29f9647
feat(dts): generate typings by default, cached on the classpath
ammarahm-ed Aug 10, 2026
677ee9c
chore: ignore generated typings output
ammarahm-ed Aug 10, 2026
0682bcc
fix(rn): make the typings task runnable on its own and cache it
ammarahm-ed Aug 10, 2026
d311d8c
fix(metadata): make filtering work on a React Native release build
ammarahm-ed Aug 10, 2026
c7256ad
feat(napi): bring content-keyed bindings and the metadata tracer to t…
ammarahm-ed Aug 10, 2026
e8b625c
fix(bindings): make runtime and generator content keys agree, and pre…
ammarahm-ed Aug 10, 2026
878db06
fix(sbg): count quoted keys in an implementation object as method ove…
ammarahm-ed Aug 10, 2026
122bd20
fix(react-native): stage the Apple bridge and engine layer as trees, …
ammarahm-ed Aug 16, 2026
f0314ea
fix(react-native): metadata filtering fixes for react-native
ammarahm-ed Aug 17, 2026
f1521f1
chore: cleanup .github/workflows in packages/android
ammarahm-ed Aug 17, 2026
eda20bd
fix(metadata): exclude module names that match a js namespace
ammarahm-ed Aug 17, 2026
3701385
fix: add missing bundle-for-analysis.js file
ammarahm-ed Aug 17, 2026
fda8f9b
fix(quickjs): use gitmodules for quickjs_ng source
ammarahm-ed Aug 19, 2026
e330e7d
fix(android): disable generateTypes by default
ammarahm-ed Aug 19, 2026
08081a2
fix(quickjs): record the source_ng submodule gitlink at its pinned co…
ammarahm-ed Aug 19, 2026
627f87c
refactor(quickjs): move the engine patches to vendor/quickjs/patches …
ammarahm-ed Aug 19, 2026
6fabd54
fix(apple): apply the quickjs patches before building and drop the re…
ammarahm-ed Aug 19, 2026
ae3afb0
refactor(android): move the build and setup entry points to the root …
ammarahm-ed Aug 19, 2026
d9050f4
fix(release): merge the android targets into the shared npm tag and v…
ammarahm-ed Aug 19, 2026
92729af
chore(android): drop the bellard quickjs package now that QUICKJS ali…
ammarahm-ed Aug 19, 2026
71d93ec
refactor(android): stage builds in dist/<variant> and tarballs in bui…
ammarahm-ed Aug 19, 2026
e66343f
chore(ci): point the release workflow at the moved scripts and the ne…
ammarahm-ed Aug 19, 2026
f77c921
fix(react-native): enable typings generation by default
ammarahm-ed Aug 19, 2026
847c412
chore(android): remove the inert asNapiModule build flag
ammarahm-ed Aug 19, 2026
66b0050
fix(metadata): only close over and verify a generated seed, leaving a…
ammarahm-ed Aug 19, 2026
ee5f084
feat(android): make content-keyed bindings an app-level flag instead …
ammarahm-ed Aug 19, 2026
6b82d0e
ci(release): apply vendored QuickJS patches before the Apple engine b…
NathanWalker Aug 28, 2026
7abe423
ci(release): fix NDK install on hosted runners where sdkmanager is no…
NathanWalker Aug 29, 2026
51910c7
fix: provenance repo url
NathanWalker Aug 29, 2026
1166270
fix(react-native): @nativescript/react-native skips android sources
ammarahm-ed Aug 29, 2026
f8451b1
fix(quickjs): bytecode functions should say [stripped source] instead…
ammarahm-ed Sep 12, 2026
4166ae3
fix(android): only pick assets/app folder for compiling js bundles
ammarahm-ed Sep 12, 2026
671b18b
fix: sign and restore executable permissions for macOS bytecode compi…
ammarahm-ed Sep 12, 2026
9e9a7dc
chore(android): update bytecode compilers
ammarahm-ed Sep 12, 2026
cbc0e70
fix(android): ensure metadata-filter tools are included in app template
ammarahm-ed Sep 13, 2026
3541fb4
Optimize metadata-first JNI method resolution
ammarahm-ed Sep 13, 2026
dba2639
Use metadata-first resolution for Kotlin methods
ammarahm-ed Sep 14, 2026
6b0c6be
Port metadata lookup optimization to JSI
ammarahm-ed Sep 17, 2026
9fd2f37
fix metadata overload resolution
ammarahm-ed Sep 19, 2026
1a40d3c
fix quickjs timer callbacks
ammarahm-ed Sep 19, 2026
c13e5d3
test overload and return type resolution
ammarahm-ed Sep 19, 2026
eb28324
cleanup metadata tracing
ammarahm-ed Sep 19, 2026
3b55a79
remove temporary metadata filtering docs
ammarahm-ed Sep 19, 2026
95d8234
remove stale metadata docs references
ammarahm-ed Sep 19, 2026
dc76a5c
document metadata filter tools
ammarahm-ed Sep 19, 2026
11ad54f
fix(android): Android overload return type metadata
ammarahm-ed Sep 24, 2026
a682a61
fix(android): exlcude js files app/assets folder when compiling to by…
ammarahm-ed Sep 30, 2026
43a5acf
fix(android): call the single metadata overload directly when null/JS…
ammarahm-ed Oct 1, 2026
f4b6e0b
fix(android): expose a package as $name when its global is non-writable
NathanWalker Oct 16, 2026
76b110d
ci(release): check out LFS objects for the react-native build
NathanWalker Oct 18, 2026
e9a3b14
fix(ffi/objc): key thread_local bridge caches by a per-bridge id
NathanWalker Oct 18, 2026
be991f1
fix(types): nullable blocks as (() => T) | null; declare NativeObject…
NathanWalker Oct 25, 2026
89eca35
fix(react-native): keep metadata.android when writing nativescript.re…
NathanWalker Oct 25, 2026
1bf3bb5
fix(react-native): explain a missing native module at import (#82)
NathanWalker Nov 2, 2026
eaa3a18
fix(android): use $name when a Java package's global name is taken (#86)
NathanWalker Nov 2, 2026
6a193b5
fix(ffi/objc): define only real C enum constant names as globals (#87)
NathanWalker Nov 2, 2026
0ace070
fix(android): re-attach NativeScript after a JavaScript reload (#89)
NathanWalker Nov 2, 2026
096f9e3
fix(android): deliver GC notifications under a per-runtime lock (#91)
NathanWalker Nov 2, 2026
0aa42f8
fix(android): free runtime-owned JNI refs and method callback data on…
NathanWalker Nov 2, 2026
ae86d0e
fix(android): flush queued finalizers before a jsi runtime is marked …
NathanWalker Nov 2, 2026
1270ec8
fix(android): synchronize ArgConverter's per-runtime long cache (#96)
NathanWalker Nov 2, 2026
f868f89
fix(react-native): configure the Worklets Babel plugin with strictGlo…
NathanWalker Nov 7, 2026
abb7e94
fix(ffi/objc): retire a JS-subclass object's expandos when it dealloc…
ammarahm-ed Nov 8, 2026
feaa97e
fix(quickjs): restore the V8-style property-read error messages in th…
ammarahm-ed Nov 8, 2026
4ab02c3
fix(jsc): return undefined when a Node-API callback returns NULL
ammarahm-ed Nov 8, 2026
5d2de69
test(react-native): opt the iOS smoke fixture into metadata globals
ammarahm-ed Nov 8, 2026
03778b0
fix(react-native/android): implement the TurboModule spec from the Fa…
ammarahm-ed Nov 8, 2026
12f3e00
ci: apply the QuickJS patches in the engine and performance jobs
ammarahm-ed Nov 8, 2026
9633aba
test(apple): give the timer specs room for the JSC weak-ref poll
ammarahm-ed Nov 8, 2026
55f6a1e
test(apple): give the block release specs room for the JSC weak-ref poll
ammarahm-ed Nov 8, 2026
c68bbef
bench(objc-dispatch): collect garbage before each timed case
ammarahm-ed Nov 8, 2026
1da4132
Merge pull request #117 from NativeScript/android-react-native
ammarahm-ed Nov 8, 2026
45737c2
Merge main into refactor
ammarahm-ed Nov 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Android engine and test binaries are required build inputs, but must never
# become ordinary Git blobs. Keep the repository history source-only while
# allowing a full checkout to materialize the existing test environment.
platforms/android/**/*.a filter=lfs diff=lfs merge=lfs -text
platforms/android/**/*.aar filter=lfs diff=lfs merge=lfs -text
platforms/android/**/*.exe filter=lfs diff=lfs merge=lfs -text
platforms/android/**/*.jar filter=lfs diff=lfs merge=lfs -text
platforms/android/**/*.so filter=lfs diff=lfs merge=lfs -text
platforms/android/tools/astyle filter=lfs diff=lfs merge=lfs -text
318 changes: 315 additions & 3 deletions .github/workflows/bytecode-compilers.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,322 @@
name: Build bytecode compilers

# Builds the per-host bytecode compiler CLIs for every engine that supports
# ahead-of-time bytecode, by cloning each engine's UPSTREAM repo (not the
# android-runtime vendored sources) and building the CLI there.
#
# Output: one artifact per (engine, host), named `bytecode-compiler-<engine>-<host>`,
# each containing `<engine>/<host>/<binary>` so the downloads merge straight into
# platforms/android/tools/bytecode-compiler/bin/.
#
# The final `bundle` job merges them all into a single `bytecode-compiler-bin`
# artifact laid out exactly like platforms/android/tools/bytecode-compiler/bin/ — download it, unzip,
# and drop its contents into platforms/android/tools/bytecode-compiler/bin/ as-is.
#
# NOTE ON COMPATIBILITY: the produced bytecode must be loadable by the engine
# library the runtime ships. Hermes/PrimJS runtimes link prebuilt binaries and
# QuickJS-NG compiles from the vendored source, so the refs below must be kept in
# step with what the runtime actually bundles. Pin these to exact commits once
# validated instead of moving branches.
on:
workflow_dispatch:
inputs:
hermes_ref:
# MUST match UPSTREAM_COMMIT in build-hermes, which is what produced the
# prebuilt both platforms link. See scripts/download_hermes.sh.
description: "facebook/hermes ref (match the prebuilt release)"
default: "10a40b5f1de81d007cba6afe567c4ba7a0b45f5d"
quickjs_ng_ref:
# MUST match the vendored source in vendor/quickjs/source_ng, or
# JS_ReadObject rejects the blob: the compiler writes its own BC_VERSION
# and the runtime accepts only its own. d950d55e == BC_VERSION 27, which
# is what the vendored quickjs.c defines.
description: "quickjs-ng/quickjs ref (match vendor/quickjs/source_ng)"
default: "d950d55e950dd7994a96c669c31efa967b8b79f3"
primjs_ref:
description: "lynx-family/primjs ref"
default: "9c1fe150179b86f0ae5c6fbe670af7d76eca9df6"

env:
HERMES_REPO: https://github.com/facebook/hermes
QUICKJS_NG_REPO: https://github.com/quickjs-ng/quickjs
PRIMJS_REPO: https://github.com/lynx-family/primjs

jobs:
noop:
runs-on: ubuntu-latest
# ---------------------------------------------------------------------------
# Hermes — `hermesc` already emits a loadable HBC blob; no shim needed.
# ---------------------------------------------------------------------------
hermes:
name: hermes (${{ matrix.host }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- { host: linux-x64, runner: ubuntu-24.04 }
- { host: linux-arm64, runner: ubuntu-24.04-arm }
- { host: darwin-x64, runner: macos-15-intel }
- { host: darwin-arm64, runner: macos-14 }
- { host: win32-x64, runner: windows-2022 }
# win32-arm64 dropped: hermes' Boost.Context ARM64 assembler + CMake's
# ASM_ARMASM linker support fail on windows-11-arm. The win32-x64
# hermesc runs on ARM Windows via x64 emulation (HBC output is portable).
steps:
- name: Install toolchain (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y cmake ninja-build build-essential python3
- name: Install toolchain (macOS)
if: runner.os == 'macOS'
run: brew install cmake ninja
- name: Install toolchain (Windows)
if: runner.os == 'Windows'
run: choco install ninja -y

- name: Clone Hermes
shell: bash
# Fetch by ref so an exact commit SHA works (git clone --branch only
# accepts branch/tag names). GitHub allows fetching arbitrary SHAs.
run: |
set -euxo pipefail
ref="${{ github.event.inputs.hermes_ref || '10a40b5f1de81d007cba6afe567c4ba7a0b45f5d' }}"
git init hermes
git -C hermes remote add origin "$HERMES_REPO"
git -C hermes fetch --depth 1 origin "$ref"
git -C hermes -c advice.detachedHead=false checkout FETCH_HEAD

- name: Build hermesc (Unix)
if: runner.os != 'Windows'
shell: bash
run: |
set -euxo pipefail
cmake -S hermes -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DHERMES_BUILD_APPLE_FRAMEWORK=OFF
cmake --build build --target hermesc

- name: Build hermesc (Windows)
if: runner.os == 'Windows'
shell: bash
run: |
set -euxo pipefail
# Use the default (Visual Studio) generator; Ninja+MSVC also works if the
# VS dev environment is on PATH.
cmake -S hermes -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --target hermesc --config Release

- name: Stage binary
shell: bash
run: |
set -euxo pipefail
mkdir -p "out/hermes/${{ matrix.host }}"
bin="$(find build -type f \( -name hermesc -o -name hermesc.exe \) | head -n1)"
test -n "$bin"
cp "$bin" "out/hermes/${{ matrix.host }}/"
if [ "${{ runner.os }}" = "macOS" ]; then
codesign --sign - --force "out/hermes/${{ matrix.host }}/$(basename "$bin")"
codesign --verify --verbose "out/hermes/${{ matrix.host }}/$(basename "$bin")"
fi

- uses: actions/upload-artifact@v4
with:
name: bytecode-compiler-hermes-${{ matrix.host }}
# Root the artifact at `out/` so it carries the full
# `hermes/<host>/<binary>` path and merges straight into bin/.
path: out
if-no-files-found: error

# ---------------------------------------------------------------------------
# QuickJS-NG — CMake build of libqjs, then our shim (same JS_* API).
#
# There is no bellard/quickjs job: the runtime dropped that tree, and its
# QUICKJS engine is now an alias for QUICKJS_NG (see
# platforms/android/test-app/runtime/build.gradle).
# ---------------------------------------------------------------------------
quickjs-ng:
name: quickjs-ng (${{ matrix.host }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- { host: linux-x64, runner: ubuntu-24.04 }
- { host: linux-arm64, runner: ubuntu-24.04-arm }
- { host: darwin-x64, runner: macos-15-intel }
- { host: darwin-arm64, runner: macos-14 }
- { host: win32-x64, runner: windows-2022 }
# - { host: win32-arm64, runner: windows-11-arm }
steps:
- uses: actions/checkout@v4
- name: Install toolchain (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y cmake ninja-build build-essential
- name: Install toolchain (macOS)
if: runner.os == 'macOS'
run: brew install cmake ninja
- name: Install toolchain (Windows)
if: runner.os == 'Windows'
run: choco install ninja llvm -y

- name: Clone QuickJS-NG
shell: bash
run: |
set -euxo pipefail
ref="${{ github.event.inputs.quickjs_ng_ref || 'd950d55e950dd7994a96c669c31efa967b8b79f3' }}"
git init quickjs-ng
git -C quickjs-ng remote add origin "$QUICKJS_NG_REPO"
git -C quickjs-ng fetch --depth 1 origin "$ref"
git -C quickjs-ng -c advice.detachedHead=false checkout FETCH_HEAD

- name: Build lib + shim
shell: bash
env:
SHIM: ${{ github.workspace }}/platforms/android/tools/bytecode-compiler/native/qjs-compile.c
run: |
set -euxo pipefail
# Note: the workflow lives at the repository root, so the shim path is
# platforms/android/-prefixed; the tool tree itself is under Android.
# Build the shim as a CMake target so it uses the SAME toolchain + CRT
# as the engine lib. Linking a separately-compiled (clang) shim against
# the MSVC-built qjs.lib fails with __imp_*/CRT-mismatch link errors on
# Windows. The 'qjs' target propagates its public include dirs and libm.
cp "$SHIM" quickjs-ng/nsbc-quickjs-ng.c
cat >> quickjs-ng/CMakeLists.txt <<'CMAKE'

add_executable(nsbc-quickjs-ng nsbc-quickjs-ng.c)
target_link_libraries(nsbc-quickjs-ng PRIVATE qjs)
target_compile_definitions(nsbc-quickjs-ng PRIVATE NSBC_MAGIC=\"NSBCNGS\")
CMAKE
cmake -S quickjs-ng -B quickjs-ng/build -DCMAKE_BUILD_TYPE=Release
cmake --build quickjs-ng/build --config Release --target nsbc-quickjs-ng
out="out/quickjs-ng/${{ matrix.host }}"; mkdir -p "$out"
bin="$(find quickjs-ng/build -type f \( -name 'nsbc-quickjs-ng' -o -name 'nsbc-quickjs-ng.exe' \) | head -n1)"
test -n "$bin"; cp "$bin" "$out/"
if [ "${{ runner.os }}" = "macOS" ]; then
codesign --sign - --force "$out/nsbc-quickjs-ng"
codesign --verify --verbose "$out/nsbc-quickjs-ng"
fi
[ "${{ runner.os }}" = "Windows" ] || "$out/nsbc-quickjs-ng" || true

- uses: actions/upload-artifact@v4
with:
name: bytecode-compiler-quickjs-ng-${{ matrix.host }}
# Root the artifact at `out/` so it carries the full
# `quickjs-ng/<host>/<binary>` path and merges straight into bin/.
path: out
if-no-files-found: error

# ---------------------------------------------------------------------------
# PrimJS — build via its own toolchain: `hab sync` fetches gn + ninja + a
# bundled clang + sysroot, then GN/ninja build the engine. We add our LEPUS_*
# shim as a sibling GN executable (reusing the qjs-cli engine deps).
#
# Unix only, and NOT linux-arm64: PrimJS's envsetup.sh aborts on Windows, and
# its DEPS only provides a linux sysroot for x86_64. So: linux-x64 + macOS.
#
# Validated locally on darwin-arm64 (hab sync -> gn gen -> ninja nsbc-primjs
# produces a working CLI). Linux uses the same flow.
# ---------------------------------------------------------------------------
primjs:
name: primjs (${{ matrix.host }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- { host: linux-x64, runner: ubuntu-24.04 }
- { host: darwin-x64, runner: macos-15-intel }
- { host: darwin-arm64, runner: macos-14 }
steps:
- uses: actions/checkout@v4
- name: Install prerequisites (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y python3 curl

- name: Clone PrimJS
shell: bash
run: |
set -euxo pipefail
ref="${{ github.event.inputs.primjs_ref || '9c1fe150179b86f0ae5c6fbe670af7d76eca9df6' }}"
git init primjs
git -C primjs remote add origin "$PRIMJS_REPO"
git -C primjs fetch --depth 1 origin "$ref"
git -C primjs -c advice.detachedHead=false checkout FETCH_HEAD

- name: Add shim as a GN target
shell: bash
env:
SHIM: ${{ github.workspace }}/platforms/android/tools/bytecode-compiler/native/primjs-compile.c
run: |
set -euxo pipefail
# Build as C++ (.cc); the LEPUS_* API is extern "C" so linkage is fine.
cp "$SHIM" primjs/tools/qjs-cli/nsbc-primjs.cc
# Add the target to the ROOT BUILD.gn (always loaded, so it's always
# generated) linking ONLY the core engine (//src:quickjs_lib). We avoid
# qjs_wasm_binding — its WASM/JSC code doesn't build under the bundled
# toolchain's -Werror, and our shim doesn't need it. (Validated locally.)
cat >> primjs/BUILD.gn <<'GN'

executable("nsbc-primjs") {
cflags = [ "-Wno-c99-designator" ]
sources = [ "//tools/qjs-cli/nsbc-primjs.cc" ]
include_dirs = [ "//include" ]
deps = [ "//src:quickjs_lib" ]
}
GN

- name: Build (hab sync + gn + ninja)
shell: bash
working-directory: primjs
run: |
set -euxo pipefail
# hab (in-repo) fetches gn, ninja, the bundled clang toolchain + sysroot.
source tools/envsetup.sh
hab sync .
gn gen out/Default --args="is_debug=false"
ninja -C out/Default nsbc-primjs
out="../out/primjs/${{ matrix.host }}"; mkdir -p "$out"
cp out/Default/nsbc-primjs "$out/nsbc-primjs"
if [ "${{ runner.os }}" = "macOS" ]; then
codesign --sign - --force "$out/nsbc-primjs"
codesign --verify --verbose "$out/nsbc-primjs"
fi
"$out/nsbc-primjs" || true # usage line (exit 2) proves it links & runs

- uses: actions/upload-artifact@v4
with:
name: bytecode-compiler-primjs-${{ matrix.host }}
# Root the artifact at `out/` so it carries the full
# `primjs/<host>/<binary>` path and merges straight into bin/.
path: out
if-no-files-found: error

# ---------------------------------------------------------------------------
# Bundle — merge every per-(engine, host) artifact into a single artifact laid
# out exactly like platforms/android/tools/bytecode-compiler/bin/, ready to download-and-paste.
# ---------------------------------------------------------------------------
bundle:
name: bundle bin/
runs-on: ubuntu-24.04
needs: [hermes, quickjs-ng, primjs]
# Run even if some engine/host builds failed, so a partial bin/ is still
# published rather than nothing.
if: always()
steps:
- run: ":"
- name: Download all compiler artifacts
uses: actions/download-artifact@v4
with:
# Every per-job artifact already carries an `<engine>/<host>/<binary>`
# path; merge-multiple overlays them into one tree = the bin/ layout.
pattern: bytecode-compiler-*
path: bin
merge-multiple: true

- name: Show merged layout
run: find bin -type f | sort

- name: Restore executable permissions
shell: bash
run: find bin -type f -path '*/darwin-*/*' -exec chmod +x {} \;

- uses: actions/upload-artifact@v4
with:
name: bytecode-compiler-bin
path: bin
if-no-files-found: error
Loading
Loading