Commit a013696a authored by topjohnwu's avatar topjohnwu

Default to config.prop in buildSrc

parent 8a2a6d92
...@@ -25,11 +25,9 @@ object Config { ...@@ -25,11 +25,9 @@ object Config {
class MagiskPlugin : Plugin<Project> { class MagiskPlugin : Plugin<Project> {
override fun apply(project: Project) { override fun apply(project: Project) {
val configPath: String? by project val configPath: String? by project
configPath?.let { val config = configPath?.let { File(it) } ?: project.rootProject.file("config.prop")
val config = File(it) if (config.exists())
if (config.exists()) config.inputStream().use { props.load(it) }
config.inputStream().use { s -> props.load(s) }
}
val repo = FileRepository(project.rootProject.file(".git")) val repo = FileRepository(project.rootProject.file(".git"))
val refId = repo.refDatabase.exactRef("HEAD").objectId val refId = repo.refDatabase.exactRef("HEAD").objectId
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment