7 Commits

Author SHA1 Message Date
84e14a890f Pie Cannon can send anything, although some server types may have restrictions. But for now it's just plain sftp/ftp/http and we can push anything through that. 2020-10-30 07:09:08 -05:00
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
51a2b89af1 android: add test server stub class. There aren't any credentials here yet, you'll have to add them yourself 2020-10-29 03:58:31 -05:00
54e87049b3 android: actually implement a working(ish) file upload activity. 2020-10-29 03:56:54 -05:00
4f7d6c1230 android: add stub activity for receiving file submissions 2020-10-26 09:07:01 -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