Skip to content

Commit

Permalink
Fix issue with the gradle build > Android Test sequence (locally; CI …
Browse files Browse the repository at this point in the history
…still broken?)
  • Loading branch information
ianthetechie committed Nov 5, 2023
1 parent de5f2f0 commit 9248106
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions android/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,12 @@ android.libraryVariants.all { variant ->
// idea.module.generatedSourceDirs += file("${buildDir}/generated/source/uniffi/${variant.name}/java/uniffi")

sourceSet.java.srcDir 'src/main/java'
}

// Fixes a bug(?) with certain AGP versions that results in UnsatisfiedLinkErrors in some conditions.
// See https://github.com/mozilla/rust-android-gradle/issues/118#issuecomment-1778332125

tasks.matching { it.name.matches(/merge.*JniLibFolders/) }.configureEach {
it.inputs.dir(new File(buildDir, "rustJniLibs/android"))
it.dependsOn("cargoBuild")
}

0 comments on commit 9248106

Please sign in to comment.