mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-17 12:48:29 +00:00
Default to config.prop in buildSrc
This commit is contained in:
parent
8a2a6d9232
commit
a013696a41
@ -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 { s -> props.load(s) }
|
config.inputStream().use { props.load(it) }
|
||||||
}
|
|
||||||
|
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user