Commit a013696a authored by topjohnwu's avatar topjohnwu

Default to config.prop in buildSrc

parent 8a2a6d92
......@@ -25,11 +25,9 @@ object Config {
class MagiskPlugin : Plugin<Project> {
override fun apply(project: Project) {
val configPath: String? by project
configPath?.let {
val config = File(it)
if (config.exists())
config.inputStream().use { s -> props.load(s) }
}
val config = configPath?.let { File(it) } ?: project.rootProject.file("config.prop")
if (config.exists())
config.inputStream().use { props.load(it) }
val repo = FileRepository(project.rootProject.file(".git"))
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