mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-12 05:07:45 +02:00
Update dependencies
This commit is contained in:
@ -2,13 +2,10 @@
|
||||
import org.gradle.api.GradleException
|
||||
import org.gradle.api.Plugin
|
||||
import org.gradle.api.Project
|
||||
import org.gradle.kotlin.dsl.provideDelegate
|
||||
import java.io.File
|
||||
import java.util.*
|
||||
|
||||
object Deps {
|
||||
const val vNav = "2.3.0"
|
||||
}
|
||||
|
||||
private val props = Properties()
|
||||
|
||||
object Config {
|
||||
@ -18,8 +15,8 @@ object Config {
|
||||
|
||||
class MagiskPlugin : Plugin<Project> {
|
||||
override fun apply(project: Project) {
|
||||
val file = project.findProperty("configPath")?.let { File(it as String) }
|
||||
?: project.file("config.prop")
|
||||
val configPath: String? by project
|
||||
val file = configPath?.let { File(it) } ?: project.file("config.prop")
|
||||
if (!file.exists())
|
||||
throw GradleException("Please setup config.prop")
|
||||
|
||||
|
Reference in New Issue
Block a user