Educational application written in Kotlin aimed at automating user-defined workflows for the mobile game, "Granblue Fantasy", using MediaProjection, AccessibilityService, and OpenCV.
This pull request is to migrate from native Android UI to React Native.
TODO List
[x] Complete mockup of Home, Settings, and Extra Settings pages.
[x] Complete styling of pages.
[x] Overhaul backend to be able to launch system-critical services like MediaProjection and AccessibilityService via React Native's java module (8f7e612).
[x] Save settings from React Native to settings.json, mirroring the same one created in the PC version (f51ed5c14930073c108be5ca6166711a544e08cd).
[x] Load settings from settings.json into React Native (6d3803925bd9cb71f693c39a40705ced0e254f42).
[x] Load settings from settings.json into the bot when it starts (Preferences maybe) (9867273a56a66b7f88dcc9c5aa7a7e55e29b9313).
Known Issues
When starting the application when it was closed (not resuming, but cold starting it), settings.json on rare occasions will get corrupted and the JSON be invalid. These occurrences have no pattern as far as I can tell. For now, a specialized error message will be printed to the message log when it detects that the file got corrupted. The file can be manually fixed by removing the offending extra lines and brackets appended to the end of the file, but having the application take care of it for you seems difficult to do.
In the past, I was able to reliably replicate the corruption issue when Settings Page resets mission state to default, typically when changing the Farming Mode. But resetting it is necessary for now as the bot readiness snackbar would not show at the appropriate time when the Settings Page did not reset various states like mission and item back to default when Farming Mode was changed. Fixed in (acef7b01730ef09d06bf303716a057b21f2e53eb).
This pull request is to migrate from native Android UI to React Native.
TODO List
[x] Load settings from settings.json into the bot when it starts (Preferences maybe) (9867273a56a66b7f88dcc9c5aa7a7e55e29b9313).
Known Issues
When starting the application when it was closed (not resuming, but cold starting it), settings.json on rare occasions will get corrupted and the JSON be invalid. These occurrences have no pattern as far as I can tell. For now, a specialized error message will be printed to the message log when it detects that the file got corrupted. The file can be manually fixed by removing the offending extra lines and brackets appended to the end of the file, but having the application take care of it for you seems difficult to do.In the past, I was able to reliably replicate the corruption issue when Settings Page resetsFixed in (acef7b01730ef09d06bf303716a057b21f2e53eb).mission
state to default, typically when changing the Farming Mode. But resetting it is necessary for now as the bot readiness snackbar would not show at the appropriate time when the Settings Page did not reset various states likemission
anditem
back to default when Farming Mode was changed.