Repository navigation
Tech Build System, R8 & Automated Tests
This page documents ApkUp's Gradle build configuration, R8 shrinking, Android Lint checks, and automated unit test suites.
-
Kotlin + Jetpack Compose + Koin: Built with Gradle (
app/build.gradle.kts, reading SemVer fields andVERSION_CODEfromversion.properties), Kotlin incremental compilation (kotlin.incremental=true), configuration/build caching (org.gradle.caching=true), and parallel execution (org.gradle.parallel=true). -
Build Variants:
-
debug: Fast iteration build without R8, usingapplicationIdSuffix = ".debug"(com.apkup.debug),versionNameSuffix = "-debug", and isolated Compose@Previews underapp/src/debug/kotlin/(AboutVersionBadgePreview.kt). -
release: Full R8 code shrinking/obfuscation and resource shrinking, signed via release keystore (local.propertieslocally or CI secrets inrelease.yml), leavingdebug-only previews excluded.
-
-
SelfUpdateRepositoryTest&SelfUpdateTest: Verify SemVer 2.0.0 precedence (alpha < beta < rc < stable), ignoring+build metadata, legacy(...)tie-breakers, and-build<N>release APK asset matching. -
PrefsTest: VerifiesPrefSlotdefaults, persistence across backend re-instantiation, and reactiveStateFlowemissions. -
ChangelogBottomSheetTest:- Parses monthly accordion sections (
## Month Year), release headers (### Date | Version | Badge), pill types (Feature,Patch,Major), and mandatory> [Banner]blocks on.0feature releases. - Enforces formatting rules on production assets (
1.47_de.md,1.47_en.md): no trailing colons on entry titles and no inline backticks in descriptions.
- Parses monthly accordion sections (
-
AccessibilityAuditTest: Audits localization completeness across all 9 locales for accessibility strings (theme_a11y,a11y_accessible_ui_*,a11y_sun_*,onboarding_mode_*, etc.). -
Repository, Integrity & State Tests: Covers
ApkIntegrityVerifier,UpdatesUiState,SolarScheduleCalculator, source parsers, and backup serialization.
-
lintDebug: Enforces Android resource/layout/API safety includingUnusedResources(preventing dead strings across 9 locales) andRemoteViewLayout(ensuring widget XMLs only useRemoteViews-supported views). -
website/scripts/check-a11y.mjs: Runs as part of website validation to check all 90 built HTML pages for AA/AAA contrast tokens and ARIA compliance.
🏠 Wiki Home · 📦 Releases · 🐛 Report an Issue · 🛡️ Security · Licensing & Third-Party Notices · GPL-3.0-or-later
Found this helpful? ⭐ Star on GitHub · ☕ Buy Me a Coffee · 💛 Coindrop
- 🌐 Update Sources & Signature Protection
- 📦 F-Droid & Index V2 Repositories
- 🔑 GitHub, GitLab & Codeberg Tokens
- 📲 Installing Unknown Apps
⚠️ Google’s 24h Lock & Keep Android Open- ⚡ Shizuku & Background Installation
- ♿ Accessibility & Accessible Mode
- 🛠️ Apps, Filters, Rollbacks & Backup
- 🔄 Obtainium Migration & Sync Guide
- 🌐 Sources, Networking & Parsing
- ⚡ Installation, Shizuku & WorkManager
- 🛡️ Security, Cryptography & Privacy
- 🎨 UI, Accessibility & Website
- 🚀 CI/CD, Releases & Checksums
- 🏷️ Versioning (Legacy vs. SemVer 2.0.0)
- 💾 Storage, Backups, Logs & Widget
- 🧪 Build System, R8 & Tests
- 🌍 Localization, Weblate & Assets