mirror of
https://github.com/dovecoteescapee/ByeDPIAndroid.git
synced 2024-12-22 14:26:22 +00:00
Fix build.gradle.kts
This commit is contained in:
parent
a5a53762d5
commit
ad81b55b23
@ -1,4 +1,4 @@
|
|||||||
import org.jetbrains.kotlin.gradle.dsl.KotlinCompile
|
import com.android.build.gradle.internal.tasks.factory.dependsOn
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("com.android.application")
|
id("com.android.application")
|
||||||
@ -129,17 +129,15 @@ abstract class BuildTun2Socks : BaseTun2SocksTask() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register<GetGomobileBind>("getGomobileBind") {
|
val getGomobileBind = tasks.register<GetGomobileBind>("getGomobileBind") {
|
||||||
group = "build"
|
group = "build"
|
||||||
description = "Get gomobile bind for compiling tun2socks"
|
description = "Get gomobile bind for compiling tun2socks"
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register<BuildTun2Socks>("buildTun2Socks") {
|
val buildTun2Socks = tasks.register<BuildTun2Socks>("buildTun2Socks") {
|
||||||
group = "build"
|
group = "build"
|
||||||
description = "Build tun2socks for Android"
|
description = "Build tun2socks for Android"
|
||||||
dependsOn("getGomobileBind")
|
dependsOn(getGomobileBind)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(KotlinCompile::class).configureEach {
|
tasks.preBuild.dependsOn(buildTun2Socks)
|
||||||
dependsOn("buildTun2Socks")
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user