Skip to content

Latest commit

 

History

History
85 lines (67 loc) · 3.28 KB

general.md

File metadata and controls

85 lines (67 loc) · 3.28 KB

Rambling markdown file around mobile project

Questions

  • Should user authenticate in the app, or be prompted for a personal access token?
    • Asking for token directly is the simplest approach, but could be cumbersome to the user
    • Not sure how to authenticate using username/password..
    • Possible to implement username/password auth later?
  • What library to use for compression
  • Mock Github API? Or at the very least minimize requests during development.

sources

Planned external libraries

  • (Something for talking with Github API: (one of the following))
    • org.eclipse.egit.github.core
    • JCabi (only jar, crashed on simple test) (might find grade dep.)
    • Volley (barebones)
  • (Something to take images):
    • Camera1 (haven't looked at yet)
    • Camera2 (very advanced)
    • CameraKit (convenient, but only does preview ??)
    • Camera Intent (but cumbersome to get hold of taken images) <-- but figured it out!
  • Gson
  • (Some image compression library (??))

Quickest way to add a file:

"PUT https://api.github.com/repos/:user/:repo/contents/:path" with body:

    {
        "message": "my commit message",
        "committer": {
            "name": "tholok97",
            "email": "anemail"
        },
        "content": "{{base64 content}}"
    }

Doing a commit the hard way: