Upgrade gradle

This commit is contained in:
LoveSy
2023-02-20 14:55:27 +08:00
committed by John Wu
parent ae34659b26
commit 4ba365565f
19 changed files with 28 additions and 64 deletions
+2 -3
View File
@@ -159,7 +159,7 @@ fun genStubManifest(srcDir: File, outDir: File): String {
fun List<String>.process() = asSequence()
.filter(::notJavaKeyword)
// Distinct by lower case to support case insensitive file systems
.distinctBy { it.toLowerCase(Locale.ROOT) }
.distinctBy { it.lowercase() }
val names = mutableListOf<String>()
names.addAll(c1)
@@ -174,8 +174,7 @@ fun genStubManifest(srcDir: File, outDir: File): String {
cls.append(names.random(kRANDOM))
// Old Android does not support capitalized package names
// Check Android 7.0.0 PackageParser#buildClassName
cls[0] = cls[0].toLowerCase()
yield(cls.toString())
yield(cls.toString().replaceFirstChar { it.lowercase() })
}
}.distinct().iterator()