aboutsummaryrefslogtreecommitdiffstats
path: root/build-logic/build.gradle.kts
AgeCommit message (Collapse)AuthorFilesLines
2026-11-02build: drop the nonFree flavor, Sentry and Play ServicesDanilo M.1-5/+0
The fork targets GrapheneOS and ships only FOSS builds. The nonFree flavor added Sentry crash reporting, wired to upstream's Sentry project, and Play Services SMS one-time-code autofill, which needs Google's servers. Neither is wanted, so remove the flavor dimension entirely: - Delete app/src/nonFree, the SentryPlugin, the sentry-stub module, the Sentry and Play Services catalog entries, and the Sentry scope setup in Application. - Move the free AutofillSmsActivity stub into main; it keeps the SMS OTP feature off exactly as the free build did. A ponytail note marks the FillOtpFromSms paths for later removal. - SlimTests no longer needs to skip a nonFree variant. - Workflows and docs use :app:assembleDebug / :app:assembleRelease. A bare assembleRelease would also verify library modules in release mode, where ui:compose fails on a pre-existing AppCompat attribute reference the old flavored task never touched. 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-4/+0
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>
2026-11-02build: update to Gradle 8.14.6, AGP 8.13.2, Kotlin 2.1.21, Hilt 2.58Danilo M.1-1/+0
Newest releases that still fit together on the Gradle 8 / AGP 8 line: - Kotlin stops at 2.1, the newest metadata Gradle 8's embedded Kotlin 2.0 compiler can read when compiling build-logic. - Hilt stops at 2.58; 2.59 and later require AGP 9. Hilt 2.52's annotation processor could not read Kotlin 2.1 metadata. Drop the languageVersion = 1.9 pin so code compiles with the K2 frontend; Kotlin 2.4 no longer accepts 1.9. Drop the R8 8.5.35 pin and its repository, which is older than the R8 AGP 8.13 bundles. Move the deprecated buildFeatures.androidResources flag to androidResources.enable, and replace Uri.parse with toUri for the new UseKtx lint check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2024-08-18fix: rework Crowdin integration (#3175)Harsh Shandilya1-4/+0
* chore: set up Crowdin configuration * fix(app): sync strings from Crowdin Closes #3174 * fix(ci): use crowdin/github-action instead of homebrew setup * fix(build): remove obsolete Crowdin plugin
2024-08-14chore: add missing copyright headers and update existing onesHarsh Shandilya1-1/+1
2024-08-14feat(build): replace homebrew ktfmt formatter with SpotlessHarsh Shandilya1-5/+5
Spotless has fixed their Gradle Configuration Cache woes in the past couple months which gets rid of my primary complaint.
2024-03-22feat(build): add back dependency updates pluginHarsh Shandilya1-0/+5
2024-01-22feat(build): remove dependency updates pluginHarsh Shandilya1-6/+0
Renovate handles this for us
2023-12-16fix(build): temporarily downgrade AGP to stable trackHarsh Shandilya1-1/+1
Fixes #2820
2023-11-28refactor(build): use typed catalog in build-logicHarsh Shandilya1-0/+3
2023-08-26chore(build): require a Java 20 hostHarsh Shandilya1-4/+1
2023-07-12fix(build): properly resolve JavaPoet version resolution issueHarsh Shandilya1-0/+1
2023-07-06fix(build): adjust ktfmt path filtering to allow formatting build.gradle.kts ↵Harsh Shandilya1-1/+2
files
2023-07-01fix(build): remove useless Java configuration for Gradle ToolchainsHarsh Shandilya1-1/+0
2023-07-01fix(build): remove JVM vendor preferenceHarsh Shandilya1-4/+1
2023-06-15chore: rename TOML keys for coroutines depsHarsh Shandilya1-1/+1
2023-05-24feat(build): use JVM toolchains to enforce Java 17 usageHarsh Shandilya1-17/+5
This simplifies project setup in both CI and for individual contributors
2023-05-16feat(build): raise target bytecode to Java 17Harsh Shandilya1-3/+3
2023-04-29fix(deps): update dependency com.facebook:ktfmt to v0.44 (#2490)renovate[bot]1-3/+5
* fix(deps): update dependency com.facebook:ktfmt to v0.44 * chore: reformat with ktfmt 0.44 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
2023-04-27feat(build): remove DetektHarsh Shandilya1-1/+0
This no longer adds value for me and instead results in unnecessary bikeshedding.
2023-04-27refactor(build): introduce a standalone plugin for Kotlin JVM librariesHarsh Shandilya1-3/+3
2023-03-26feat(build): migrate to Crowdin V2 APIHarsh Shandilya1-0/+2
2023-03-21fix(build): disable SAM conversion for build-logicHarsh Shandilya1-1/+0
No longer required https://docs.gradle.org/8.1-rc-1/release-notes.html#:~:text=Support%20of%20Java%20lambdas
2023-03-21fix(build): remove `DSL_SCOPE_VIOLATION` suppressionHarsh Shandilya1-2/+0
This was a Gradle bug that is now fixed https://docs.gradle.org/8.1-rc-1/release-notes.html#:~:text=Access%20to%20version%20catalog%20for%20plugins%20in%20the%20plugins%20%7B%7D%20block
2023-03-21fix(build): remove unneeded `afterEvaluate`Harsh Shandilya1-13/+11
https://docs.gradle.org/8.1-rc-1/release-notes.html#:~:text=Easier%20customization%20of%20Kotlin%20options
2023-02-27chore(build): ensure Kotlin versions are aligned in `build-logic` projectHarsh Shandilya1-0/+1
2022-12-02refactor(build-logic): move all code to a single top-level projectHarsh Shandilya1-0/+112
2021-11-16Convert build-logic to a proper included buildHarsh Shandilya1-3/+0
2021-11-15build-logic: migrate Spotless to a convention pluginHarsh Shandilya1-0/+3