Allan Wang
03/02/2020, 7:15 AMassembleRelease
is null on evaluation, and a bunch of previous posts here simply check for null before actually handling ittapchicoma
03/02/2020, 8:26 PMtasks.whenTaskAdded {
if (name == "assembleRelease") {
logger.warn("Task found: $this")
}
}
Allan Wang
03/02/2020, 8:31 PMafterEvaluate
, but that hasn’t worked. For now, I made my own task that depends on the segment I want, and then I ordered my own tasks since they existtapchicoma
03/02/2020, 8:33 PMplugins.withId("com.android.application") { .. }
to ensure that this will be called only when android plugin is availableAllan Wang
03/02/2020, 8:33 PMtapchicoma
03/02/2020, 8:35 PM