# LumaCubs native Android build and test

## Provenance

- References checked: `https://shezataha.github.io/LumaCubs/` (HTTP 200) and
  `https://github.com/shezataha/LumaCubs` (default branch `main`, pushed 2026-11-20).
- GitHub API reports `"license": null`; `LICENSE`, `LICENSE.txt` and `COPYING` all return 404.
  No upstream code was copied. The APK bundles the clean-room generated v2 app from
  `public/published-v2/lumacubs/`.

## Build

The native project is at `android/lumacubs/`. It is a minimal WebView wrapper with bundled
assets, built with JDK 17, Gradle 8.9 and Android SDK 35.

```
gradle --no-daemon assembleDebug testDebugUnitTest
```

Result: `BUILD SUCCESSFUL`. APK: `lumacubs-debug.apk`
SHA-256: `e624d67f9c99287fcc7f5cfe58fafa397433e6ca835a1cc56b9f7277d7ce74a4`

`aapt dump badging` confirms `com.maahir.lumacubs`, version 1.0.0, minSdk 24, targetSdk 35,
launchable `MainActivity`. `apksigner verify` confirms a valid v2 signature with one signer.
The APK contains `assets/web/index.html`, `app.js`, `styles.css` and `PROVENANCE.md`.

## Tests

- Local JVM: 2/2 pass, zero failures or errors.
- Device: installed on a headless Pixel 7 emulator running Android 15 (API 35) with KVM,
  launched successfully, and driven through a real add-card interaction. The status changed
  to `Card saved.` and the saved count changed from 0 to 1. No app runtime errors in logcat.

## Visual QA

The first build rendered the page header twice because the status bar overlaid the WebView.
The wrapper was changed to inflate `res/layout/activity_main.xml` with `fitsSystemWindows=true`;
the rebuilt app was reinstalled and re-tested. Both screenshots below are from the fixed build.

| Evidence | File |
|---|---|
| Launch screen, clean header | `emulator-launch.png` |
| After adding a card | `emulator-interaction.png` |
| Full machine-readable evidence | `evidence.json` |

## Limitations

This is a debug-signed APK for proof, not a Play Store release. The wrapper runs the bundled
web app in a WebView; it is not a full native-language rewrite.
