-
Notifications
You must be signed in to change notification settings - Fork 4
portability(android-aarch32): make it work :) #1
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
base: main
Are you sure you want to change the base?
Conversation
|
Thx for the PR. I'm reluctant to merge this as I got new constraints on the app from Google Play:
I suspect this might get in the way of solving these two issues. But I'm glad you made it working on an old version of android. I leave it open as I might reconsider merging this when I'll address the two points above. |
|
@jecaro, sure no problem, I've just learnt that 32bit is no longer a priority for Google, sadly I've just noticed that $ ob run
./.obelisk/impl: command not cached, building ...
✔ Built on ./.obelisk/impl [command]
Process exited with code 1; /nix/store/7wfnj6hg24p9v212qfx81a16f6rnaqzy-
nix-2.11.0/bin/nix-shell -E $'{root, pkgs, shell}: ((import root
{}).passthru.__unstable__.self.extend (_: _: {shellPackages = builtins.fromJSON
pkgs;})).project.shells.${shell}' --arg root ./. --argstr pkgs $'{"backend":"/
home/julm/src/haskell/diverk/backend","common":"/home/julm/src/haskell/diverk/
common","frontend":"/home/julm/src/haskell/diverk/frontend","obelisk-generated-
static":"/nix/store/g4228gn5xyrmsxsaxrqgf2rmvkd0vxxw-asset-manifest-
haskellManifest"}' --argstr shell ghc --run $'export $\'NIX_PATH=nixpkgs=/nix/
store/ahg8gp1z3qrw1ds5vx2324j72i7y9vjg-source\' ; bash -c \'type -p ghc\''By the way, though it works great in chromium (v139), in firefox (v141) the front page is "frozen" with high CPU usage and without any input field showing up:
|
|
Strangely, https://diverk.quillet.org works fine in the same |
|
Firefox not responding is a known issue. See this entry in obelisk FAQ for details. Basically, that's jsaddle magic, which is not working when using |
|
@jecaro, and apparently it has just been fixed upstream ghcjs/jsaddle#160 :) |
|
|
That's great work 👍 I'll closely follow this issue and the PRs linked. Many thanks for your work on this @alexfmpe |
Hi! Thanks for that work @jecaro!
It helped me a lot to consider
obeliskas an other way to get Haskell to Android(the other being the SimpleX way, which is much more complex and much less reproducible).
This PR downgrads GHC to enable support for Android running on
aarch32(eg.armeabi-v7a).I've tested with success on a real phone running Android 10.
Maybe upgrading to a recent GHC instead would make it work too,
but alas I'm not sure
obeliskandreflex-patformwill ever get to that point anytime soon…Feel free to merge or ignore, anyone looking to solve the same problem will find this PR anyway.
Cheers!