Skip to content

Commit

Permalink
Sort Locale list (#675)
Browse files Browse the repository at this point in the history
This enables reproducible builds as discussed here:
#674
  • Loading branch information
Iamlooker authored Feb 12, 2024
1 parent acf2953 commit f5da5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit f5da5bc

Please sign in to comment.