Package bread bucket as a mobile application #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've been using this site personally and I keep thinking, for my purposes, it would be better to have a mobile app. Instead of going out to the internet, the app could interface with a local
.buckets
file perhaps tracked by a file syncing application (nextcloud for my purposes) and that would handle the syncing.I've spent a bit of time doing just that. In this PR, you'll find the addition of a MobileDockerfile that scripts out the process of setting up the build env and "packaging" the flask app as an Android application. For the Android app, you don't really need some of the functionality built into the current web-app, such as authentication, and limiting, so I've introduced environment sniffing and some branching code depending on the context in which the application is running.
This PR is a rough-in of the Android packaging. Currently there are some caveats including:
db.buckets
file to exist at/storage/emulated/0/Documents
on the device. Ideally the user would be prompted for a file location at first run, and this would be stored for subsequent runspython-for-android
is usedpackage.json
assume things such as the Android SDK installed in a specific location, an AVD is created with a specific name, andadb
is present in the pathI wanted to create this as a Draft PR so that we can have a discussion on where this should exist. Should it be merged in? If so, I've structured the code in such as way, that the "Android" bits are easily distinguishable. Should this exist as a separate project? Let's discuss.
I've included some images of the app running for your viewing pleasure below: