File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
4
4
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
5
+ import com.android.build.gradle.tasks.GenerateLocaleConfigTask
5
6
6
7
// Grotesque workaround for https://issuetracker.google.com/issues/279780940
7
8
System .setProperty(" com.android.tools.r8.disableApiModeling" , " 1" )
@@ -94,3 +95,14 @@ tasks.withType<JavaCompile>().configureEach {
94
95
tasks.withType<KotlinCompile >().configureEach {
95
96
compilerOptions.jvmTarget.set(JvmTarget .JVM_17 )
96
97
}
98
+
99
+ // Grotesque workaround for https://issuetracker.google.com/issues/281825213
100
+ tasks.withType<GenerateLocaleConfigTask >().configureEach {
101
+ doLast {
102
+ localeConfig.asFileTree.files.forEach {
103
+ val lines = it.readLines()
104
+ val newLines = lines.subList(0 , 2 ) + lines.subList(2 , lines.size - 1 ).sorted() + lines.last()
105
+ it.writeText(newLines.joinToString(separator = " \n " ))
106
+ }
107
+ }
108
+ }
You can’t perform that action at this time.
0 commit comments