3 Commits

Author SHA1 Message Date
da39586c4d big change: move the json loading and random server selection to main PieCannon class (so that it has a reason to live :)) and implement loading the json file in the android app.
I deliberated between re-using the json file in the android app and using a sqlite database or some such thing, given that a UI for editing these will have to be implemented at some point. I figure the json file is more config than data, and probably should be as consistent as possible between platforms.

For now at least this makes the app usable for me, without having to hard-code my server credentials.
2020-10-30 06:52:53 -05:00
4be9bd83bf android: implement better mechanism for generating filename from file uri, using jodd to map mime type to extension and using the file's extension if it has one (sometimes it does not)
note that blindly trusting the name/extension of the file has security ramifications if you don't know what you are doing (and even if the extension is correct, e.g. if you upload a php file to a php enabled server). It is expected you know what you are doing since you have full control of the server.
2020-10-30 04:55:17 -05:00
3a2f8489db add stub android app, for now this does nothing but it -does- compile successfully (not sure if it actually runs) 2020-10-25 07:56:43 -05:00