# Building a Hardened Android (Kotlin) + iOS (SwiftUI) CBZ/PDF/OPDS Reader & a 20-Agent AI QA Fleet

> Source: <https://dev.to/saul323/building-a-hardened-android-kotlin-ios-swiftui-cbzpdfopds-reader-a-20-agent-ai-qa-fleet-1np5>
> Published: 2026-12-02 19:09:19+00:00

**Recommendation:** Fan out mobile QA agents across device, locale and persona combinations with Maestro and a vision backend, then deduplicate identical failures across devices into one severity-ranked report.
More in the playbook "Evals and testing for LLM apps": <https://wpnews.pro/playbooks/evals-testing>

Most mobile comic and PDF reader templates cut corners: sluggish WebView wrappers, zero archive validation, hardcoded Firebase configs, and missing store-compliance flows (Age Gate, consent timestamps, in-app account deletion).

I built **PanelVerse** to solve that — a dual-native **Android (Kotlin / Material 3)** and **iOS (SwiftUI / iOS 16+)** comic, manga, and PDF reader designed for indie publishers and self-hosted **Komga / Kavita / Calibre** libraries.

Here are the four engineering decisions that mattered most:

Accepting local `.cbz` and `.pdf` files up to 250 MB means treating every archive as hostile input:

`../`), absolute paths, or backslashes before extraction.` inJustDecodeBounds = true`), verify actual MIME type (` image/jpeg`, `image/png`, `image/webp`), and cap total pixels at `%PDF-` magic bytes and page-count bounds via Android SDK `PdfRenderer` before saving to app-private storage.
Instead of relying on fragile web scrapers, PanelVerse includes a native **OPDS 1.2 Atom** browser so users can connect their own self-hosted Komga, Kavita, or Calibre servers:

`disallow-doctype-decl`, `external-general-entities`, `external-parameter-entities`) to block XXE.` followSslRedirects(false)`), with a strict 2 MB XML response cap.`.cbz` and `.pdf` acquisitions straight through the same validated offline import pipeline.
Google Play and Apple App Store reviews fail apps quickly when privacy or security is an afterthought:

`database.rules.json` verified by an automated emulator test suite + `FLAG_DEBUGGABLE` and attached debuggers in release builds, plus optional XOR-masked SHA-256 release signing certificate pinning configured via `gradle.properties`.
Manually testing RTL layouts, long-text German/Swedish/Finnish compound words, and `1.4x` accessibility font scales across 10+ devices takes days.

So I built and bundled **`mobile-agent-testers`** right inside `tools/mobile-agent-testers/`:

`(device × locale × persona)` agents`BLOCKER` / `MAJOR` / `MINOR`), deduplicates identical bugs across devices, and outputs `report.md`, `report.json`, and a single-file interactive `dashboard.html`.

```
cd tools/mobile-agent-testers && ./setup.sh
mobile-agent-testers plan -c panelverse.yaml -n 20
mobile-agent-testers run -c panelverse.yaml -n 4 \
  --devices iphone-se,pixel-8 --locales sv-SE,ar-SA \
  --backend gemini --driver maestro
```

If you're building an indie comic publisher app, self-hosted OPDS reader, or white-label PDF/manga reader and want to skip months of native boilerplate and security work, the complete Android + iOS source code (plus the 20-agent AI QA suite and 10-minute `BUYER_SETUP.md`) is live here:

Happy to answer any questions about Android `PdfRenderer`, OPDS 1.2 parsing, Firebase App Check, or running Maestro + vision agents on GitHub Actions!
