mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-22 13:48:25 +07:00
...
This commit is contained in:
@ -116,12 +116,6 @@ android{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!project.ext.hasSprites()){
|
|
||||||
println "Scheduling sprite pack."
|
|
||||||
assembleDebug.dependsOn ":tools:pack"
|
|
||||||
assembleRelease.dependsOn ":tools:pack"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// called every time gradle gets executed, takes the native dependencies of
|
// called every time gradle gets executed, takes the native dependencies of
|
||||||
// the natives configuration, and extracts them to the proper libs/ folders
|
// the natives configuration, and extracts them to the proper libs/ folders
|
||||||
@ -157,3 +151,11 @@ task run(type: Exec){
|
|||||||
def adb = path + "/platform-tools/adb"
|
def adb = path + "/platform-tools/adb"
|
||||||
commandLine "$adb", 'shell', 'am', 'start', '-n', 'io.anuke.mindustry/mindustry.android.AndroidLauncher'
|
commandLine "$adb", 'shell', 'am', 'start', '-n', 'io.anuke.mindustry/mindustry.android.AndroidLauncher'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!project.ext.hasSprites()){
|
||||||
|
tasks.whenTaskAdded{ task ->
|
||||||
|
if(task.name == 'assembleDebug' || task.name == 'assembleRelease'){
|
||||||
|
task.dependsOn ":tools:pack"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user