SpeedcuberOSS / speedcuber-timer

The smart, offline-ready speedcubing Android/iOS app made for speedcubers, by speedcubers.
Mozilla Public License 2.0
4 stars 0 forks source link

Offline cubing.js #125

Open thehale opened 5 months ago

thehale commented 5 months ago

Currently, the puzzles are rendered via cubing.js in a webview. The cubing.js code is loaded from a CDN, which requires an active internet connection. I'd like to bundle the cubing.js code into the app itself so that everything can work fully offline.

Initial resources that may be helpful to understanding current challenges/potential future solutions

[Android] Opening local HTML file as text · Issue #428 · react-native-webview/react-native-webview

https://gist.github.com/paldepind/8cbc430575cd075144d291b0eff463fc

ReactNative: WebView with local content

Loading in-app content | Android Developers

https://medium.com/@snehabagri.90/reactnative-webview-with-local-content-c98a09340801

https://github.com/birdofpreyru/react-native-static-server/tree/master