From f5da5bcdb9af990eb5c4ed3b25b0e6565ceb3965 Mon Sep 17 00:00:00 2001 From: LooKeR Date: Mon, 12 Feb 2024 07:43:37 +0530 Subject: [PATCH] Sort Locale list (#675) This enables reproducible builds as discussed here: https://github.com/Droid-ify/client/issues/674 --- core/common/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/common/build.gradle.kts b/core/common/build.gradle.kts index 9c7871a7f..bd94952f3 100644 --- a/core/common/build.gradle.kts +++ b/core/common/build.gradle.kts @@ -52,7 +52,7 @@ task("detectAndroidLocals") { langsList.add(languageCode) } } - val langsListString = "{${langsList.joinToString(",") { "\"${it}\"" }}}" + val langsListString = "{${langsList.sorted().joinToString(",") { "\"${it}\"" }}}" android.defaultConfig.buildConfigField("String[]", "DETECTED_LOCALES", langsListString) } tasks.preBuild.dependsOn("detectAndroidLocals")