From 89e89eb47e386f6202ef13888ccbb460bcf258d2 Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Mon, 8 Jun 2026 15:13:52 +0200 Subject: [PATCH] chore(gradle): add wrapper sha256 + parallel/caching flags Code review on Task 4 flagged: - distributionSha256Sum missing (F-Droid reproducibility concern) - gradle.properties lacked org.gradle.parallel/caching (default off) - inaccurate K2 attribution in a comment SHA256 fetched live from downloads.gradle.org. Configuration cache left commented for now until all plugins confirm AGP 9.1 compat. Co-Authored-By: Claude Opus 4.7 (1M context) --- gradle.properties | 8 +++++++- gradle/wrapper/gradle-wrapper.properties | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 87f95f2..7a6f3a1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,8 +10,14 @@ kotlin.code.style=official # Enables namespacing of each library's R class, less RAM, faster builds. android.nonTransitiveRClass=true -# Use new K2 compiler defaults (Kotlin 2.x). +# Kotlin incremental compilation (default; kept explicit for documentation). kotlin.incremental=true # Reproducible builds for F-Droid. android.uniquePackageNames=true + +# Performance: enable parallel project execution and build cache (stable in Gradle 9). +org.gradle.parallel=true +org.gradle.caching=true +# Configuration cache: compatible with AGP 9.1; opt in when all plugins confirm support. +# org.gradle.configuration-cache=true diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 5dd3c01..b21b69e 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip +distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME