-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to build this library from source for F-Droid? #375
Comments
Hey! 👋 Not familiar with F-Droid, but I'm super impressed you were able to figure all of that out on your own. Yea, you got the gist down.
Yes, but one caveat: you will need to have mimir checked out locally; I'd suggest in a monorepo alongside your app. The binaries must be moved to the instance of No clue how your build from source works with F-Droid, but you could also manually put those binaries in the pub cache version of Let me know if you have any other questions. This will hopefully become less of a pain in the 🍑 once dart-lang/sdk#50565 ships. I have been awaiting that feature for a long time now, and I have no easy upgrade path to the Swift Package Manager (which may means iOS/macOS builds will fail when Flutter deprecates CocoaPods). |
I have some experience doing this because I just completed this whole process for Isar, which also uses rust. Also an F-Droid maintainer pointed me to your With Isar, I have their repository as a submodule, which I believe is easier than what you suggested since I can easily check it out and update it when you make updates. So doing the same with mimir should work. I also do move the built binaries to the pub cache, it's actually quite easy, an Anyway, I can't wait for the feature you mentioned to be released, it will make this way easier! And finally thank you so much for this package, it works so well with so little efforts 🪄 |
Ahh, a git submodule would actually be much better than what I suggested. Do that :) (just remember you’ll need to move the binaries to the version of mimir in use, whether that be from pub cache or a git submodule)
of course! There are definitely still some kinks on iOS/macOS still, but those won’t impact what you’re doing with Android. |
@GregoryConrad Ok so this is mostly working. Two things an F-Fdroid maintainer asked to be changed:
|
Yep, F-Droid build every apk one by one. Currently all abis are built 3 times.
The |
That's good to know--saw @maelchiotti Those all seem like fair requests, but I'm a bit busy right now between work/holidays. Would you mind submitting a PR for that android build script? |
Sure, I'll submit a PR asap. It's not urgent anyway. And I misunderstood a bit the --locked when I looked for it also, so great to know. |
Hi, I am developing an Android Flutter app and plan to include your awesome library into it.
However, as my app is published on F-Droid, the binaries need to be built from source.
From what I've seen, scripts/build_android.sh builds the binaries. And the CMakeLists.txt only downloads the binaries if they are not already present.
So, am I right to guess that executing
build_android.sh
and then moving the binary to the right place is enough? Pretty much like you do in the github workflow.The text was updated successfully, but these errors were encountered: