Skip to content

Platform support ​

Support matrix ​

Compilation modePlatformStatus
CommonWeb✅ full suite verified on the JS toolchain
Vapor modeApp-Android✅ verified via cloud build (Kotlin toolchain), on-device cases under re-verification
CommonApp-iOSsame codebase, pending testing
CommonApp-HarmonyOSsame codebase, pending testing
CommonWeChat mini-programdeclared support (rides the uni-app x toolchain), not specifically tested

Requires HBuilderX 4.75+.

Verified adjudication record ​

The following platform difference items were all tested and adjudicated on both platforms (the conclusions finalized the class + reactive architecture):

ItemSymptomRuling
reactive<T>compile-time expanded (generates property-proxy classes with inlined dependency tracking); Kotlin generation worksclass + reactive is viable — the architecture foundation
runtime-class vue symbols (Ref / ref / watch / effectScope)recent compilers fail to generate Kotlin imports for these symbols inside UTS pluginsbanned inside plugins; reactive / computed (compile-time expanded) are usable
effectScopesilently dropped by the generatorgetters replace computed fields
app.use(pinia instance)does not fire install on nativemount-free is the only reliable form; plugins via top-level setActivePinia
template binding of class methodsa method is not a value on Kotlin; compiling without parentheses failstemplate events always carry parentheses: @click="store.method()"
generic T stored in a MapKotlin compile error (error17)contained with as any inside the library

One codebase across platforms ​

unix-pinia is a pure orchestration layer (no platform-specific directories): it depends on no platform-proprietary API, and every implementation is built on uni-app x built-in reactivity primitives (reactive / computed compile-time expansion) plus UTS language capabilities — one source code across uni-app x. The Swift / ArkTS compilation constraints of iOS / HarmonyOS share the same origin as Android (the UTS nominal type system), so direct compilation is expected; this page will be updated after on-device re-verification.

Released under the MIT License.