mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-21 15:05:28 +00:00
Fix building release builds
This commit is contained in:
parent
af5c4d09c4
commit
a6e65f9a7e
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,7 +4,7 @@ out
|
||||
*.apk
|
||||
/config.prop
|
||||
/update.sh
|
||||
/dict.txt
|
||||
/app/dict.txt
|
||||
|
||||
# Built binaries
|
||||
native/out
|
||||
|
@ -4,7 +4,7 @@ import org.gradle.api.Plugin
|
||||
import org.gradle.api.Project
|
||||
import org.gradle.kotlin.dsl.provideDelegate
|
||||
import java.io.File
|
||||
import java.util.*
|
||||
import java.util.Properties
|
||||
|
||||
private val props = Properties()
|
||||
private var commitHash = ""
|
||||
@ -26,7 +26,7 @@ class MagiskPlugin : Plugin<Project> {
|
||||
override fun apply(project: Project) = project.applyPlugin()
|
||||
|
||||
private fun Project.applyPlugin() {
|
||||
initRandom(rootProject.file("dict.txt"))
|
||||
initRandom(rootProject.file("app/dict.txt"))
|
||||
props.clear()
|
||||
rootProject.file("gradle.properties").inputStream().use { props.load(it) }
|
||||
val configPath: String? by this
|
||||
|
Loading…
Reference in New Issue
Block a user