Skip to content

Commit

Permalink
Make sure conan assets are already gathered when AGP tries to pack th…
Browse files Browse the repository at this point in the history
…em into AAR
  • Loading branch information
ViliusSutkus89 committed Aug 4, 2024
1 parent ea08ebb commit b8f05aa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pdf2htmlEX/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ android {
sourceSets.main.assets.srcDirs += "build/assets"
}

// Assets delivered by conan are gathered by CMake
afterEvaluate {
tasks.named("generateDebugAssets").configure {
dependsOn(tasks.named("mergeDebugNativeLibs"))
}
tasks.named("generateReleaseAssets").configure {
dependsOn(tasks.named("mergeReleaseNativeLibs"))
}
}

dependencies {
implementation 'androidx.annotation:annotation:1.8.0'
implementation 'com.getkeepsafe.relinker:relinker:1.4.5'
Expand Down

0 comments on commit b8f05aa

Please sign in to comment.