Fix building release builds

This commit is contained in:
topjohnwu 2024-07-06 01:55:09 -07:00
parent af5c4d09c4
commit a6e65f9a7e
2 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@ -4,7 +4,7 @@ out
*.apk
/config.prop
/update.sh
/dict.txt
/app/dict.txt
# Built binaries
native/out

View File

@ -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