Lynx (ReactLynx) Android Google Play Playbook: Dual-Thread Native UI, 16 KB ELF & R8 Rules
Ship high-frame-rate Lynx (`@lynx-js/react`) Android apps through Google Play Closed Testing — auditing C++ `liblynx.so` / `libprimjs.so` 16 KB page alignment, R8 JNI keep rules, and ARM64 frame telemetry.
npx rspeedy build && cd android && ./gradlew :app:bundleReleaseandroid {
namespace = "com.example.lynxapp"
compileSdk = 36
ndkVersion = "28.0.13004108"
defaultConfig {
applicationId = "com.example.lynxapp"
minSdk = 24
targetSdk = 35
versionCode = 1
versionName = "1.0.0"
ndk {
abiFilters += listOf("arm64-v8a", "x86_64")
}
}
packaging {
jniLibs {
useLegacyPackaging = false
}
}
}Packaging ReactLynx Bundles & Auditing 16 KB ELF Native Alignment
**Lynx** (`@lynx-js/react` + Rspeedy) brings web-familiar CSS styling and dual-threaded main-thread interactivity (`main-thread:bindtap`) directly onto native Android UI views without a browser DOM. Because Lynx relies heavily on compiled C++ shared libraries (`jniLibs/arm64-v8a/*.so`) rather than the system Android WebView, native binary hygiene is your #1 pre-submission priority for Google Play.
Before uploading your first host `.aab` to Google Play Console, run `/tools/android-15-16kb-bundle-auditor` or inspect every `.so` inside `base/lib/arm64-v8a/` with `llvm-readelf -l` to confirm `LOAD` segment alignment equals `0x4000` (16 KB) or higher. Simultaneously, ensure `packaging.jniLibs.useLegacyPackaging = false` in `build.gradle.kts` under AGP 8.5.1+ so uncompressed shared libraries align on 16 KB zip boundaries.
Embed your production Rspeedy output (`main.lynx.bundle`) inside `android/app/src/main/assets/` with cryptographic checksum or version pinning before rolling out to your Closed Testing track.
Profiling Dual-Thread Frame Pacing (`gfxinfo`) on Real ARM64 Silicon
Lynx's architectural promise is instant First-Frame Rendering (IFR) and zero-jank main-thread gesture handling while heavy state reconciliations execute asynchronously on the background PrimJS thread. Validating that dual-thread separation on a real mid-range ARM64 handset — rather than a MacBook M-series emulator — catches oversized image decoding spikes and custom shadow/filter overdraw early.
On GOOtester Standard ($12) and Premium ($20) plans, separate automated physical-device ARM64 ADB QA runs capture `adb shell dumpsys gfxinfo <package> framestats` (`<= 16.67ms` 60 Hz frame budget) and `dumpsys meminfo` native heap + graphics RAM PSS — tracked strictly in your Automated QA panel and never counted toward your 12-to-25 human closed testers.
Iterating Safely Through Your 14-Day Closed Testing Window
Note that Google Play policy prohibits downloading executable code dynamically to bypass store review, so ship Lynx template updates cleanly as versioned `.aab` increments (`versionCode 1` -> `2` -> `3`) during your 14-day closed test. Remember GOOtester's service clock starts only after verified `testers@gootester.com` track setup, and Google Play alone decides Production Access.