Skip to content

Instantly share code, notes, and snippets.

@GroovinChip
Last active September 20, 2019 14:01
Show Gist options
  • Save GroovinChip/2e63a0f7b150a49082174e7f1a18dcd5 to your computer and use it in GitHub Desktop.
Save GroovinChip/2e63a0f7b150a49082174e7f1a18dcd5 to your computer and use it in GitHub Desktop.
Codemagic Android release build help
1. Use Gradle 4.10.2 (DO NOT use 5.x)
2. Use 'com.android.tools.build:gradle:3.3.0' in your project-level build.gradle
3. Add this to the very bottom of your app-level build.gradle:
gradle.taskGraph.whenReady { taskGraph ->
def tasks = taskGraph.getAllTasks()
def buildTasks = tasks.find { it.name.startsWith('build') && it.getGroup() == 'build' }
if (buildTasks) {
tasks.findAll {it.name.startsWith('test')}.each { task ->
task.enabled = false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment