File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1- import org.jetbrains.kotlin .gradle.dsl.KotlinCompile
1+ import com.android.build .gradle.internal.tasks.factory.dependsOn
22
33plugins {
44 id(" com.android.application" )
@@ -129,17 +129,15 @@ abstract class BuildTun2Socks : BaseTun2SocksTask() {
129129 }
130130}
131131
132- tasks.register<GetGomobileBind >(" getGomobileBind" ) {
132+ val getGomobileBind = tasks.register<GetGomobileBind >(" getGomobileBind" ) {
133133 group = " build"
134134 description = " Get gomobile bind for compiling tun2socks"
135135}
136136
137- tasks.register<BuildTun2Socks >(" buildTun2Socks" ) {
137+ val buildTun2Socks = tasks.register<BuildTun2Socks >(" buildTun2Socks" ) {
138138 group = " build"
139139 description = " Build tun2socks for Android"
140- dependsOn(" getGomobileBind" )
140+ dependsOn(getGomobileBind)
141141}
142142
143- tasks.withType(KotlinCompile ::class ).configureEach {
144- dependsOn(" buildTun2Socks" )
145- }
143+ tasks.preBuild.dependsOn(buildTun2Socks)
You can’t perform that action at this time.
0 commit comments