Skip to content

Commit

Permalink
Attempt at fixing Android CI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Oct 31, 2023
1 parent 5f480ed commit 40df101
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions android/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ android.libraryVariants.all { variant ->
variant.javaCompileProvider.get().dependsOn('cargoBuild')
variant.javaCompileProvider.get().dependsOn(generateBindings)

// Some stuff here is broken, since Android Tests don't run after running gradle build,
// but do otherwise. Also CI is funky.
tasks.named("compile${variant.name.capitalize()}Kotlin").configure {
dependsOn generateBindings
}

tasks.named("connectedDebugAndroidTest").configure {
dependsOn generateBindings
}

def sourceSet = variant.sourceSets.find { it.name == variant.name }
sourceSet.java.srcDir new File(buildDir, "generated/source/uniffi/${variant.name}/java")

Expand Down

0 comments on commit 40df101

Please sign in to comment.