Last active
September 20, 2019 14:01
-
-
Save GroovinChip/2e63a0f7b150a49082174e7f1a18dcd5 to your computer and use it in GitHub Desktop.
Codemagic Android release build help
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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