Verified Commit 673f31a5 authored by Ayush Shrivastava's avatar Ayush Shrivastava
Browse files

Fix we/irdest#19 enable cross-compilation in CI

parent 7ed7d547
Pipeline #1141 passed with stage
in 0 seconds
......@@ -79,3 +79,15 @@ buildscript {
repositories {
mavenCentral()
}
afterEvaluate {
// The `cargoBuild` task isn't available until after evaluation.
android.applicationVariants.all { variant ->
def productFlavor = ""
variant.productFlavors.each {
productFlavor += "${it.name.capitalize()}"
}
def buildType = "${variant.buildType.name.capitalize()}"
tasks["generate${productFlavor}${buildType}Assets"].dependsOn(tasks["cargoBuild"])
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment