[#723] Fix inclusion of native libraries in demo-app

This commit is contained in:
Carter Jernigan 2022-11-29 13:23:57 -05:00 committed by Carter Jernigan
parent d25d67c470
commit f2d71593ec
2 changed files with 10 additions and 2 deletions

View File

@ -337,7 +337,7 @@ jobs:
ORG_GRADLE_PROJECT_ZCASH_RELEASE_KEY_ALIAS: androiddebugkey
ORG_GRADLE_PROJECT_ZCASH_RELEASE_KEY_ALIAS_PASSWORD: android
run: |
./gradlew :demo-app:assembleRelease
./gradlew assembleRelease
- name: Collect Artifacts
timeout-minutes: 1
env:

View File

@ -159,3 +159,11 @@ fladle {
}
}
}
// This is a workaround for issue #723.
// Native libraries are missing after this: `./gradlew clean; ./gradlew :demo-app:assemble`
// But are present after this: `./gradlew clean; ./gradlew assemble`
// The second one probably doesn't solve the problem, as there's probably a race condition in the Rust Gradle Plugin.
// This hack ensures that the SDK is completely built before the demo app starts being built. There may be more
// efficient or better solutions we can find later.
tasks.getByName("assemble").dependsOn(":sdk-lib:assemble")