forked from ankidroid/Anki-Android
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
anki-android-backend-testing contains pre-compiled Rust code so Robolectric can load it and run natively. We can't currently include an Apple Silicon (AS) dylib inside anki-android-backend-testing (`cross` doesn't compile AS code yet) But, we can compile an AS dylib on an AS Mac and reference it. So we include the dylib in the releases folder of Anki-Android-Backend and add functionality to specify an environment variable to load this dylib from disk, instead of from the .jar Instructions (for 0.1.10): Download librsdroid-arm64.dylib from https://github.com/ankidroid/Anki-Android-Backend/releases/tag/0.1.10 And add the following environment variables: one to the path and one for the version ``` export ANKIDROID_BACKEND_PATH="/Users/davidallison/StudioProjects/Anki-Android-Backend/rslib-bridge/target/aarch64-apple-darwin/release/librsdroid-arm64.dylib" export ANKIDROID_BACKEND_VERSION="0.1.10" ``` Library generated from: ``` davidallison@Davids-MBP rslib-bridge % pwd /Users/davidallison/StudioProjects/Anki-Android-Backend/rslib-bridge cross build --release --features no-android --verbose --target aarch64-apple ``` on an AS MacBook Fixes ankidroid/Anki-Android-Backend#164
- Loading branch information
1 parent
f0aa92f
commit 18456de
Showing
3 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters