aboutsummaryrefslogtreecommitdiffstats
path: root/build-logic/src/main/kotlin/app/passwordstore/gradle/AndroidCommon.kt
AgeCommit message (Collapse)AuthorFilesLines
2026-11-05build: raise minSdk to 31Danilo M.1-1/+1
The project targets GrapheneOS, which only runs current Android. Android 12 gives the platform night mode API and removes the fingerprint dialog path that needs AppCompat. Devices below it stay on 0.2.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02build: update to Gradle 9.8.2, AGP 9.5.0, Kotlin 2.4.21, Hilt 2.60.1Danilo M.1-21/+16
AGP 9 migration: - Configure the shared Android setup through the new DSL (CommonExtension, ApplicationExtension) instead of the removed TestedExtension and BaseAppModuleExtension; targetSdk moves to the application extension. - Stop applying the Kotlin Android plugin; AGP 9 compiles Kotlin itself. - Replace kapt with KSP 2.3.13 for Hilt, which built-in Kotlin requires, and carry the Dagger compiler options over as KSP arguments. - AGP 9 now applies packaging excludes to unit-test resources, which stripped the diceware word list (**/*.txt) from its tests; lift that exclude in the diceware module. - Use resources.directories instead of the deprecated srcDir. Plugin updates required by Gradle 9 / AGP 9: Sentry Gradle plugin 6.25.0 (sentry-android 8.62.0), metalava plugin 0.5.1, maven-publish 0.37.0, spotless 8.10.4, version-catalog-update 1.1.2, download task 5.7.0, foojay resolver 1.0.0, with their API changes. Newer metalava models Kotlin properties, so autofill-parser/api.txt is regenerated; the diff is representation only, no API was added or removed. Fix new Kotlin 2.4 and lint findings (explicit return type in a function with an early return, UseKtx in autofill-parser), drop deprecated Kotlin Gradle properties, and make the AGENTS.md pre-commit command cover every task CI runs (both flavors, lint on all modules). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2024-08-14chore: add missing copyright headers and update existing onesHarsh Shandilya1-0/+5
2024-08-08fix(build): compile against SDK 35Harsh Shandilya1-1/+1
2023-11-28refactor(build): use typed catalog in build-logicHarsh Shandilya1-7/+5
2023-07-12feat(build): target API 34Harsh Shandilya1-2/+2
2023-06-04feat: add `slack-lint-checks`Harsh Shandilya1-4/+4
2023-05-24feat(build): use JVM toolchains to enforce Java 17 usageHarsh Shandilya1-6/+0
This simplifies project setup in both CI and for individual contributors
2023-05-16feat(build): raise target bytecode to Java 17Harsh Shandilya1-2/+2
2023-05-12feat: raise min SDK to 26Harsh Shandilya1-9/+4
Autofill is only available on API 26 and above and I do not want to deal with bugs on these older Android releases.
2023-04-27feat(build): add Slack's Compose LintsHarsh Shandilya1-0/+8
2023-04-27refactor(build): commonize Lint configHarsh Shandilya1-8/+1
2023-04-25fix(build): simplify Kotlin JVM target handlingHarsh Shandilya1-1/+0
2023-03-01feat(build): configure Lint baselines for all compatible projectsHarsh Shandilya1-0/+13
2022-12-02refactor(build-logic): move all code to a single top-level projectHarsh Shandilya1-0/+55