Skip to content

Commit

Permalink
Fix build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
dovecoteescapee committed Aug 8, 2024
1 parent a5a5376 commit ad81b55
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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")
Expand Down Expand Up @@ -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)

0 comments on commit ad81b55

Please sign in to comment.