{"slug": "building-a-hardened-android-kotlin-ios-swiftui-cbz-pdf-opds-reader-a-20-agent-ai", "title": "Building a Hardened Android (Kotlin) + iOS (SwiftUI) CBZ/PDF/OPDS Reader & a 20-Agent AI QA Fleet", "summary": "A developer built PanelVerse, a dual-native Android (Kotlin/Material 3) and iOS (SwiftUI) comic, manga and PDF reader for indie publishers and self-hosted Komga, Kavita and Calibre libraries, with hardened CBZ/PDF import, a native OPDS 1.2 Atom browser and store-compliance flows. The project bundles mobile-agent-testers, a 20-agent AI QA fleet that runs device × locale × persona combinations via Maestro and a Gemini vision backend, deduplicates bugs across devices and outputs markdown, JSON and an interactive HTML dashboard. The full Android and iOS source, QA suite and setup guide are being sold as a boilerplate package.", "body_md": "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).\n\nI 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.\n\nHere are the four engineering decisions that mattered most:\n\nAccepting local `.cbz` and `.pdf` files up to 250 MB means treating every archive as hostile input:\n\n`../`), 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.\nInstead 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:\n\n`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.\nGoogle Play and Apple App Store reviews fail apps quickly when privacy or security is an afterthought:\n\n`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`.\nManually testing RTL layouts, long-text German/Swedish/Finnish compound words, and `1.4x` accessibility font scales across 10+ devices takes days.\n\nSo I built and bundled **`mobile-agent-testers`** right inside `tools/mobile-agent-testers/`:\n\n`(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`.\n\n```\ncd tools/mobile-agent-testers && ./setup.sh\nmobile-agent-testers plan -c panelverse.yaml -n 20\nmobile-agent-testers run -c panelverse.yaml -n 4 \\\n  --devices iphone-se,pixel-8 --locales sv-SE,ar-SA \\\n  --backend gemini --driver maestro\n```\n\nIf 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:\n\nHappy to answer any questions about Android `PdfRenderer`, OPDS 1.2 parsing, Firebase App Check, or running Maestro + vision agents on GitHub Actions!", "url": "https://wpnews.pro/news/building-a-hardened-android-kotlin-ios-swiftui-cbz-pdf-opds-reader-a-20-agent-ai", "canonical_source": "https://dev.to/saul323/building-a-hardened-android-kotlin-ios-swiftui-cbzpdfopds-reader-a-20-agent-ai-qa-fleet-1np5", "published_at": "2026-12-02 19:09:19+00:00", "updated_at": "2026-12-02 19:16:43.455812+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools"], "entities": ["PanelVerse", "Komga", "Kavita", "Calibre", "Google Play", "Apple App Store", "Firebase", "Maestro"], "also_reported_by": [], "takeaway": "A 20-agent fleet parameterized by device × locale × persona, driven by Maestro and a Gemini vision backend, can replace days of manual RTL, long-text and 1.4x font-scale testing across 10+ devices while deduplicating identical bugs into a single report.", "recommendation": {"advice": "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.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/building-a-hardened-android-kotlin-ios-swiftui-cbz-pdf-opds-reader-a-20-agent-ai", "markdown": "https://wpnews.pro/news/building-a-hardened-android-kotlin-ios-swiftui-cbz-pdf-opds-reader-a-20-agent-ai.md", "text": "https://wpnews.pro/news/building-a-hardened-android-kotlin-ios-swiftui-cbz-pdf-opds-reader-a-20-agent-ai.txt", "jsonld": "https://wpnews.pro/news/building-a-hardened-android-kotlin-ios-swiftui-cbz-pdf-opds-reader-a-20-agent-ai.jsonld"}}