Support matrix
ota-nativescript only claims support for runtime, bundler and platform combinations verified on real release builds.
Verified v0.1 baseline
| Axis | Verified in v0.1 | Evidence |
|---|---|---|
| NativeScript Core | @nativescript/core 9.1.4 | Proven in release builds (#4–#13) |
| iOS Runtime | @nativescript/ios 9.1.1 (Xcode 27.2, iOS 26.2 Simulator release) | Proven 8/8 in #13 |
| Android Runtime | @nativescript/android 9.1.3 (Physical Xiaomi M2103K19PG, Android 16 / API 36, signed R8 minifyEnabled true release APK) | Proven 8/8 in #13 |
| Bundlers | Webpack 5 (@nativescript/webpack 5.0.43) & Vite 8 (@nativescript/vite 8.0.24 / Rolldown native ESM) production .mjs output | Proven 8/8 on iOS & Android (#13, #15) |
| Reference App Stacks | Webpack 5: fixtures/vue-mavis-app (Vue 3 + Mavis + Jolt); Vite 8: fixtures/vite-app (Vue 3 + ESM + require(esm) + ns:util + Worker) | Proven 8/8 on iOS & physical Android (#13, #15) |
| Android V8 caching | android.codeCache: true (per-release .cache isolation via files/app symlink); legacy V8 heap snapshots (libsnapshot.so) blocked in ota-ns pack | Proven on physical Android 16 (#16) |
| Asset deduplication | Content-addressed (sha256 + size) local file reuse (APFS CoW on iOS; byte copy on Android) with full staging verification & HTTP fallback | Proven on iOS (99.45%) & Android (99.41%) (#17) |
| Cryptography | Ed25519 + streaming SHA-256 (CryptoKit on iOS; Google Tink 1.15.0 on Android API 24+) | Verified against RFC 8032 vectors (#7, #13) |
| Activation model | Background streaming download with local reuse, 3-gate verification, atomic staging, activation on next cold launch | Proven over HTTP in #10, #13, #15, #17 |
| Local recovery | Last confirmed OTA release and immutable embedded bundle, 100% offline | Proven in #4, #5, #6, #13, #15 |
| Store binary upgrades | Higher build number or changed runtime contract resets OTA pointers and cleans obsolete releases/ | Proven in-place on iOS & Android in #9, #13, #15 |
| Compatibility gate | Per-platform 5-section runtime contract fingerprinting (ota-ns fingerprint / pack, incl. Android V8 snapshot & codeCache checks) | Proven on real release builds in #11, #13, #16 |
| Release CLI | @getcortexlabs/ota-cli (keygen, fingerprint, pack, verify, serve with 9 modes) | Proven end-to-end in #12, #13, #15, #16 |
Known platform & bundler notes uncovered during validation
- Extensionless
main: "bundle"in Webpack 5 and Vite.mjsoutput: NativeScript 9.1 writes"main": "bundle"in preparedapp/package.jsonwhile emittingbundle.mjs. Both native bootstrappers andota-ns packnormalize leading./and resolvemain,${main}.mjs,${main}.js(and.cjsinpack).ota-ns packalso falls back to.ns-vite-build/<platform>whenplatforms/is not prepared. - Android V8 heap snapshots vs
codeCache(#16): Binary inspection of@nativescript/android9.1.3(libNativeScript.so) confirms V8 heap snapshot loading (libsnapshot.so/SetSnapshotDataBlob) was removed in NativeScript 7 (NativeScript/android#8926) and replaced by V8codeCache(android.codeCache: true). Becausefiles/appis switched per release via an atomic symlink, each OTA release gets isolated.cachefiles with zero cross-release bytecode clashes.ota-ns packdetects and refuses legacy snapshot artifacts/config by default. - iOS release console logging:
CortexOtaMain.mmirrors upstream@nativescript/iosby settingconfig.LogToSystemConsole = falsein Release builds (#ifndef DEBUG). Use structured files or remote telemetry (POST /events) rather than expecting JSconsole.login iOS release console output. - npm 11
postinstallscript blocking: npm 11 skips third-partypostinstallhooks by default unless approved; verifyhooks/after-prepare/ota-nativescript-config.mjsexists or runnode node_modules/@getcortexlabs/ota-nativescript/hooks/postinstall.mjs .once. - Android R8 keep rules: Plugin Java sources compile into
:appviainclude.gradlealongside the plugin's ownproguard-rules.prokeepingcom.getcortexlabs.ota.*(includingcopyFileandgetEmbeddedAppPath) and Tink classes; app-levelApp_Resources/Android/proguard-rules.proonly needs standardcom.tns.**,org.nativescript.**,androidx.**rules.
Explicitly out of scope
These capabilities are not supported and must not be assumed to work:
- Legacy Android V8 heap snapshots (
libsnapshot.so/TNSSnapshot.blob) — detected and refused duringota-ns packunless--allow-snapshotis explicitly passed (#16) - Mid-session hot code swap without process restart
- Automatic rollback of local SQLite schemas,
ApplicationSettingsor persisted data
