You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Upgrade gradle
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user