Configure dependency injection for API and the database. Uses Dagger (dagger.dev)
The API is held in a holder, so that it can be invalidated or recreated as needed.
Big refactor of the feeds, this introduces a bit more duplication of code (some very similar methods that differ only in the types or minor details), but now the inheritance makes more sense and there is less "forcing" to make the inheritance work (for example: no more casting Int to String just to have the right type for the key)
It should be easier to work with the feeds in the future, maybe we'll find better abstractions later on.
* Moved the crop button so that it doesn't take space in the activity
* Semi transparent in the middle, same position than the image
* First draft of the album creation
* choose multiple images in gallery
* Added functionalities to Album creation
* merge with master
* Gallery of images selected for the album creation
* to merge with master
* Images editable individually
* Creation of album is now possible
* Added tests
* Added test to edit picture selected
* merge PostCreation and AlbumCreation
* Merged completely PostCreation and AlbumCreation
* removed albumCreation in Manifest
* Refactored slightly
* Don't re-upload all images at each edit, only re-upload one
* Make sure all images are uploaded, correctly calculate progress
* comment assert, sorry
* fix test
* fix merge
Co-authored-by: Joachim Dunant <joachim.dunant@epfl.ch>
Co-authored-by: Matthieu <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com>
* Add upload bar to PostCreationActivity
* Add upload error handling
* Fix test, remove duplicate api endpoint
* try to trigger ci
* don't show error all the time
* remove unused strings