1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Constants.

This commit is contained in:
Cedric Beust 2015-11-04 23:36:00 -08:00
parent 9f0c866732
commit 3f2ccc7786

View file

@ -171,7 +171,11 @@ public class AndroidPlugin @Inject constructor(val javaCompiler: JavaCompiler) :
return buildDir
}
@Task(name = "generateDex", description = "Generate the dex file", alwaysRunAfter = arrayOf("compile"))
companion object {
const val TASK_GENERATE = "generateDex"
}
@Task(name = TASK_GENERATE, description = "Generate the dex file", alwaysRunAfter = arrayOf("compile"))
fun taskGenerateDex(project: Project) : TaskResult {
//
// Call dx to generate classes.dex
@ -204,7 +208,7 @@ public class AndroidPlugin @Inject constructor(val javaCompiler: JavaCompiler) :
* jarsigner -keystore ~/.android/debug.keystore -storepass android -keypass android -signedjar a.apk a.ap_
* androiddebugkey
*/
@Task(name = "signApk", description = "Generate the dex file", runAfter = arrayOf("generateDex"),
@Task(name = "signApk", description = "Sign the apk file", runAfter = arrayOf(TASK_GENERATE),
runBefore = arrayOf("assemble"))
fun signApk(project: Project) : TaskResult {
val apk = apk(project, flavor, "apk")