mirror of
https://github.com/dovecoteescapee/ByeDPIAndroid.git
synced 2024-12-21 22:06: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 {
|
||||
id("com.android.application")
|
||||
@ -129,17 +129,15 @@ abstract class BuildTun2Socks : BaseTun2SocksTask() {
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register<GetGomobileBind>("getGomobileBind") {
|
||||
val getGomobileBind = tasks.register<GetGomobileBind>("getGomobileBind") {
|
||||
group = "build"
|
||||
description = "Get gomobile bind for compiling tun2socks"
|
||||
}
|
||||
|
||||
tasks.register<BuildTun2Socks>("buildTun2Socks") {
|
||||
val buildTun2Socks = tasks.register<BuildTun2Socks>("buildTun2Socks") {
|
||||
group = "build"
|
||||
description = "Build tun2socks for Android"
|
||||
dependsOn("getGomobileBind")
|
||||
dependsOn(getGomobileBind)
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompile::class).configureEach {
|
||||
dependsOn("buildTun2Socks")
|
||||
}
|
||||
tasks.preBuild.dependsOn(buildTun2Socks)
|
||||
|
Loading…
Reference in New Issue
Block a user