EXPERIMENTAL - Mobile Horizon!#551
Conversation
Changes to support Horizon as a mobile app. I've been using Android Studio's emulator. My build script: Push-Location (your def fodler)\Horizon; Remove-Item mobile\www -Recurse -Force -ErrorAction SilentlyContinue; node webpack.js development mobile/webpack.config.js 2>&1 | Select-Object -Last 2; Remove-Item mobile\android\app\src\main\assets\www -Recurse -Force -ErrorAction SilentlyContinue; Copy-Item mobile\www mobile\android\app\src\main\assets\www -Recurse; cd mobile\android; .\gradlew assembleDebug installDebug 2>&1 | Select-Object -Last 3; Pop-Location and my logging scripts: adb logcat -c adb shell am force-stop net.f_list.fchat Start-Sleep -Seconds 4 adb logcat -d | Select-String "CONSOLE|mobile" This is very incomplete, however most features work. I had to make a few changes for the mobile app to work, hopefully the styling isn't offensive.
Removed many of my console.log statements that were there for debug. Also ran prettifier.
|
There are still some to-dos I haven't handled yet:
Mobile does not support being logged into multiple characters at once yet, either. Not sure that will need to be implemented, as there comes a point where there's too much going on for a user. If anyone tests this, please let me know! |
|
I cannot build either on Windows or Linux. edit : after some tests, I did manage a white screen on the app. Not much else |
From the mobile/android directory you should just need to do a My script in the description takes advantage of /mobile/www being in gitignore as I copy assets there, them do the build. Do you get any warnings? And if you examine any logs with adb do you see much? |
Seems the node script fails for me. maybe I don't have the correct version ?
Nothing at all but that might be because I dunno ho to use it... |
|
Oh. You're missing pnpm.
Then
I think the issue you've got is just missing dependencies. |
No that was AOK. "Already up to date" Edit
I managed to install the app on my phone and got past login but not character log in |
|
Huh... I wonder why my build succeeded without that... Regardless, thank you very much for those logs! Looks like I actually do have some things to implement in my filesystem shim. Never hit those from the emulator. |
|
Pleasure is all mine ! |
Changes to support Horizon as a mobile app. I've been using Android Studio's emulator.
My build script:
Push-Location (your def fodler)\Horizon; Remove-Item mobile\www -Recurse -Force -ErrorAction SilentlyContinue; node webpack.js development mobile/webpack.config.js 2>&1 | Select-Object -Last 2; Remove-Item mobile\android\app\src\main\assets\www -Recurse -Force -ErrorAction SilentlyContinue; Copy-Item mobile\www mobile\android\app\src\main\assets\www -Recurse; cd mobile\android; .\gradlew assembleDebug installDebug 2>&1 | Select-Object -Last 3; Pop-Location
and my logging scripts:
adb logcat -c
adb shell am force-stop net.f_list.fchat
Start-Sleep -Seconds 4
adb logcat -d | Select-String "CONSOLE|mobile"
This is very incomplete, however most features work. I had to make a few changes for the mobile app to work, hopefully the styling isn't offensive.
The comments might not be 100% accurate, this was done sloppily over a few days. The big gradle version bump was a pain. Needs JDK 17 (I used OpenJDK.)