mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-05-28 20:40:12 +02:00
Update dependencies
This commit is contained in:
parent
eec19ba9af
commit
e33d623d40
@ -76,6 +76,7 @@ tasks["preBuild"]?.dependsOn(copyUtils)
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
||||||
|
implementation(kotlin("stdlib"))
|
||||||
implementation(project(":app:shared"))
|
implementation(project(":app:shared"))
|
||||||
implementation(project(":app:signing"))
|
implementation(project(":app:signing"))
|
||||||
|
|
||||||
@ -83,20 +84,18 @@ dependencies {
|
|||||||
implementation("com.github.topjohnwu:indeterminate-checkbox:1.0.7")
|
implementation("com.github.topjohnwu:indeterminate-checkbox:1.0.7")
|
||||||
implementation("com.jakewharton.timber:timber:4.7.1")
|
implementation("com.jakewharton.timber:timber:4.7.1")
|
||||||
|
|
||||||
implementation(kotlin("stdlib"))
|
|
||||||
|
|
||||||
val vBAdapt = "4.0.0"
|
val vBAdapt = "4.0.0"
|
||||||
val bindingAdapter = "me.tatarka.bindingcollectionadapter2:bindingcollectionadapter"
|
val bindingAdapter = "me.tatarka.bindingcollectionadapter2:bindingcollectionadapter"
|
||||||
implementation("${bindingAdapter}:${vBAdapt}")
|
implementation("${bindingAdapter}:${vBAdapt}")
|
||||||
implementation("${bindingAdapter}-recyclerview:${vBAdapt}")
|
implementation("${bindingAdapter}-recyclerview:${vBAdapt}")
|
||||||
|
|
||||||
val vMarkwon = "4.4.0"
|
val vMarkwon = "4.5.1"
|
||||||
implementation("io.noties.markwon:core:${vMarkwon}")
|
implementation("io.noties.markwon:core:${vMarkwon}")
|
||||||
implementation("io.noties.markwon:html:${vMarkwon}")
|
implementation("io.noties.markwon:html:${vMarkwon}")
|
||||||
implementation("io.noties.markwon:image:${vMarkwon}")
|
implementation("io.noties.markwon:image:${vMarkwon}")
|
||||||
implementation("com.caverock:androidsvg:1.4")
|
implementation("com.caverock:androidsvg:1.4")
|
||||||
|
|
||||||
val vLibsu = "3.0.1"
|
val vLibsu = "3.0.2"
|
||||||
implementation("com.github.topjohnwu.libsu:core:${vLibsu}")
|
implementation("com.github.topjohnwu.libsu:core:${vLibsu}")
|
||||||
implementation("com.github.topjohnwu.libsu:io:${vLibsu}")
|
implementation("com.github.topjohnwu.libsu:io:${vLibsu}")
|
||||||
|
|
||||||
@ -128,8 +127,9 @@ dependencies {
|
|||||||
implementation("androidx.room:room-ktx:${vRoom}")
|
implementation("androidx.room:room-ktx:${vRoom}")
|
||||||
kapt("androidx.room:room-compiler:${vRoom}")
|
kapt("androidx.room:room-compiler:${vRoom}")
|
||||||
|
|
||||||
implementation("androidx.navigation:navigation-fragment-ktx:${Deps.vNav}")
|
val vNav: String by rootProject.extra
|
||||||
implementation("androidx.navigation:navigation-ui-ktx:${Deps.vNav}")
|
implementation("androidx.navigation:navigation-fragment-ktx:${vNav}")
|
||||||
|
implementation("androidx.navigation:navigation-ui-ktx:${vNav}")
|
||||||
|
|
||||||
implementation("androidx.biometric:biometric:1.0.1")
|
implementation("androidx.biometric:biometric:1.0.1")
|
||||||
implementation("androidx.constraintlayout:constraintlayout:2.0.0-rc1")
|
implementation("androidx.constraintlayout:constraintlayout:2.0.0-rc1")
|
||||||
|
@ -14,10 +14,13 @@ buildscript {
|
|||||||
maven { url = uri("https://kotlin.bintray.com/kotlinx") }
|
maven { url = uri("https://kotlin.bintray.com/kotlinx") }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val vNav = "2.3.0"
|
||||||
|
extra["vNav"] = vNav
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath("com.android.tools.build:gradle:4.0.1")
|
classpath("com.android.tools.build:gradle:4.0.1")
|
||||||
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72")
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72")
|
||||||
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:${Deps.vNav}")
|
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:${vNav}")
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
@ -59,7 +62,7 @@ subprojects {
|
|||||||
plugins.hasPlugin("com.android.application")) {
|
plugins.hasPlugin("com.android.application")) {
|
||||||
android.apply {
|
android.apply {
|
||||||
compileSdkVersion(30)
|
compileSdkVersion(30)
|
||||||
buildToolsVersion = "30.0.1"
|
buildToolsVersion = "30.0.2"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
if (minSdkVersion == null)
|
if (minSdkVersion == null)
|
||||||
|
@ -2,13 +2,10 @@
|
|||||||
import org.gradle.api.GradleException
|
import org.gradle.api.GradleException
|
||||||
import org.gradle.api.Plugin
|
import org.gradle.api.Plugin
|
||||||
import org.gradle.api.Project
|
import org.gradle.api.Project
|
||||||
|
import org.gradle.kotlin.dsl.provideDelegate
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
object Deps {
|
|
||||||
const val vNav = "2.3.0"
|
|
||||||
}
|
|
||||||
|
|
||||||
private val props = Properties()
|
private val props = Properties()
|
||||||
|
|
||||||
object Config {
|
object Config {
|
||||||
@ -18,8 +15,8 @@ object Config {
|
|||||||
|
|
||||||
class MagiskPlugin : Plugin<Project> {
|
class MagiskPlugin : Plugin<Project> {
|
||||||
override fun apply(project: Project) {
|
override fun apply(project: Project) {
|
||||||
val file = project.findProperty("configPath")?.let { File(it as String) }
|
val configPath: String? by project
|
||||||
?: project.file("config.prop")
|
val file = configPath?.let { File(it) } ?: project.file("config.prop")
|
||||||
if (!file.exists())
|
if (!file.exists())
|
||||||
throw GradleException("Please setup config.prop")
|
throw GradleException("Please setup config.prop")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user