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>
* store posts base idea
* switch to nullable types in Status object
* store posts first try + switch to nullable types for Attachment objects
* fix some tests, add converters
* update gradle
* wip: display stored post
* first draft of functional offline post
* added likes and shares to offline data
* fully functional
* clear activity correctly
* clear correctly activities
* refactored some tests and added offline feed test
* Distinguish between users, and only store home timeline
* count better
* Sort when getting statuses
* disable buttons, since we're offline anyways
Co-authored-by: Matthieu <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com>
* Make less copies, detect if no changes are made for a fast path, give some feedback while processing the image
* avoid NPE on camera, use more generic inputstream so that file picking works again
* stop using resource in test
* stop using resource in test
* fix uri issue and add test
* Test dialog, stringify strings
* click error button, for fun
* test error button in post creation
* check retry of upload works
* Remove wrong button click in test
* add some tests for followers list
* test edit profile button
* test back button
* try to get all callbacks to be called
* Fix typo
* Make sure crop is not ignored
* Moved the crop button so that it doesn't take space in the activity
* Semi transparent in the middle, same position than the image
Co-authored-by: Joachim Dunant <joachim.dunant@epfl.ch>
* 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
* Extracted all visible texts
* Unit test import
* Removed conflicting import
* Removed unit tests that are no longer valid
* Added tests
* Renamed string
* Fixed string
* Added strings descriptions
* Converted string to templates
* multiAccount functionnality
* remove sharedpreferences usages
* start fixing tests to work with changes
* remove test of removed functionality
* more fiddling with tests
* fix instance insert being broken
* clean up some more preferences usage
* close db
* try to fix a bunch of issues
* move db close
* add instance to user drawer item
* remove rule that is no longer needed
* correct mock server to fix test
* removed unused stuff
* fix domains not being validated correctly
* update test
* Delete q
* Move image filter application to a thread
* remove unused imports
* remove unused strings
* remove unused strings
* fix buttons (sometimes)
* solve some linter issues, fix saturation brightness contrast not being shown properly
* remove unused strings
* add tests for drawer
* remove unused imports, other linter suggestions
* fix broken auto linter fix
* utility functions to censor and decensor a post image
* added Text warning about sensitive content
* adapt layout based on Sensitive attribute, censor and decensor
* try to perform clicks on sensitive image
* small refactor of status for sensitive layout
* testing censor Matrices functions
* perform test on sensitive post
* modified so second post is sensitive
* hide sensitiveWarning from albums for now
* hide totaly the image
* perform visibility check on sensitive warning textView
* deleted tests using activityScenario.onActivity as they return true on assert(false)
* commented dummy test for matrix censoring
* implemented sensitive layout for multiple pictures posts
* remove diplay check before click
* now testing visibility of textView
* deleted faulty lines i hope
* bring back dummy check for matrices
* everything is now sensitive, testing on tab post
* implemented matcher for second item
* implemented tests for tabs and classic sensitive layout using custom matcher Second
* cleaning in JSON values, put sensitive true on posts
* hide sensitive posts behind red triangle
* centered background triangle
* corrected indentation
* extracted sensitive string in string.xml
* added CameraX depedencies
* added basis of camera activity layout
* basis of camera layout
* declare activity and request camera permissions
* request camera permissions
* implemented basic viewFinder aka stream preview
* added drawing of layout
* linked camera activity to new post fragment
* texture view now fills the entire screen
* added button, call to camera activity FOR RESULT and return to New Post Fragment
* can now take a photo a upload it
* locked camera activity in portrait orientation
* added basic test to CameraActivity
* added test with device orientation
* deleted orientation test as it broke the whole app
* deleted occurence of orientation tool for tests
* added buttons for flipping cameras and picture upload
* replaced NewPostFragment and took its job
* deleted cameraActivity
* replaced newPostFragment by Camera Activity
* revamped NewPostFragment
* perform basic test on buttons
* corrected retrieval of buttons
* robust camera fragment
* fix thumbnail permission requests
* refactor, finish fragment
* try to fix build not working on CI
* Add dependency
* Fix camera test
* update tests, delete obsolete xml
* Try to fix test
* Stop nullpointer that happens sometimes, when it shouldn't
* remove unused strings
* edit the photo instead of posting directly
* fix test after changing putextra name
* remove useless analyzer
* add test?
* better tests?
* add dependencies
* update dependencies
* try to fix build
* undo change to build.gradle
* try to fix tests
* try to fix tests
* remove useless listener
* save image so that ci can go through gallery
* remove extraneous permission
* Any app that declares the WRITE_EXTERNAL_STORAGE permission is implicitly granted this permission.
Co-authored-by: Andrea Clement <samuel.dietz@epfl.ch>
* Beginning of edit photos activity
* First batch for edition of photos
* EditActivity working properly except flow & save
* Added tests
* Changed name of tabLayouts back to tabs
* Resolved 2 errors from last build
* Truly resolved the 2 issues with requireContext/Activity
* Made test work with API23 emulator
* added 2 tests
* Corrected test @Before to have the right button to click on
* Added flow to newPost and few tests
* Added a test and refactor PhotoEditActivity
* Added flow from upload picture, tests doesn't work
* Added CropImageActivity from ucrop library, crashes for now
* Modified test FiltersIsSwipeableAndClickeable but still doesn't work
* Merge with master
* rectified test SaveButtonLaunchNewPostActivity
* FiltersIsSwipeableAndClickeable test completed
* Ready to merge to master
* resolved error in merge
* Added button save and upload, removed BitmapUtils
* Removed unnecessary libraries and imports
* Remove dependency on library for permissions
* Added crop, rescale of big images to avoid lag, bug fixes
* Remove unnessecary imports
Co-authored-by: Joachim Dunant <joachim.dunant@epfl.ch>
Co-authored-by: Matthieu De Beule <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com>
* first draft of dark mode, still needs some work
* changed dark mode colors
* fixed more buttons in dark mode
* Ran linter and fixed a few things
* mades things more kotlin-like
* added night mode selector in settings, but doesn't seem to work
* WIP Theme settings
* Fix callback not getting called (not registered)
* added theme test
* removed useless strings
* Fix dark mode not being applied
* Our app isn't called ThemedApplication and fixed fix
* changed default theme for API versions lower than 29
* WIP splashscreen nightmode
* Added custom splashscreen
* added night mode for splashscreen
* removed useless night values
* adapted icons for dark mode
* fixed light mode colors
* fixed a few light mode color bugs
* fixed bad login button
* fixed search tabs color
* fixed weird text input in post creation
* removed hardcoded strings in settings test
* removed unnecessary margin in login activity
* replace getIntrumentation.context with getInstrumentation.targetContext in settings test
Co-authored-by: Matthieu De Beule <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com>
* Beginning of edit photos activity
* First batch for edition of photos
* EditActivity working properly except flow & save
* Added tests
* Changed name of tabLayouts back to tabs
* Resolved 2 errors from last build
* Truly resolved the 2 issues with requireContext/Activity
* Made test work with API23 emulator
* added 2 tests
* Corrected test @Before to have the right button to click on
* Added flow to newPost and few tests
* Added a test and refactor PhotoEditActivity
* Added flow from upload picture, tests doesn't work
* Added CropImageActivity from ucrop library, crashes for now
* Modified test FiltersIsSwipeableAndClickeable but still doesn't work
* Merge with master
* rectified test SaveButtonLaunchNewPostActivity
* FiltersIsSwipeableAndClickeable test completed
* Ready to merge to master
* resolved error in merge
* Added button save and upload, removed BitmapUtils
* Removed unnecessary libraries and imports
* Remove dependency on library for permissions
Co-authored-by: Joachim Dunant <joachim.dunant@epfl.ch>
Co-authored-by: Matthieu De Beule <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com>
* Refactor profile as Activity
* Profile info in drawer + tests
* Fixed usernames and post scroll
* Updated username test
* Default avatar drawer
* Fixed avatar drawer
* Correction getUserName
* Fixed get username
* Small refactors for codeclimate
* Uncomment test
* adapted test to new modifications made on this branch
* added timestamp and 'from domain' for people who aren't on our domain
* added abbreviated timestamp for feed posts
* changed timestamp text color
* added share notification clicking
* fixed search
* Fixed broken test
* refactored notification clicks a bit
* fixed accounts in test
* popup menu xml and longclicklistener on postfragment
* modularize popup menu code and added listener on homefeed
* fixed position
* image download implemented
* added download state messages
* added test and applied some lint cleanup suggestions
* added functionality to albums
* added test for album
* Search
* refactor
* add hashtags
* clean up xml, add some spacing to hashtag list
* Fix invalidation causing failures
* Move Tag's id to read-only member value
* Refactor
* Add test, rename things to be more sensible
* added perm and features for cameraS, gps and external storage
* added camera activity accessible from main activity
* added button to redirect to camera activity
* implementing callback flow to use camera
* working camera
* added texture view for camera display
* added camera activity
* implemented texture listener
* camera not working, flow done, no feedback implemented
* camera working
* refactored code, still an activity
* added private to internal function, better error function handling
* deleted camera activity
* added camera fragment
* added camera fragment
* refactored camera as fragment
* necessary dependencies for fragment testing
* initial camera fragment test
* corrected access to activity form fragment
* Added state changes and termination
* added lines to test, to test coverage
* Removed unsupported state STARTED state transition
* Added basic tests to test code coverage
* use layout for tests, to trigger permissions requirements
* grant camera permission to app in camera test
* replaced null handlers by proper function getter
* changed layout, added takePictureButton
* using expresso to get code coverage on camea
* take picture flow not finished
* dummy change to camera test to perform new build
* added connection flow before test to reach main activity
* can take a picture and put it to ImageView
* replaced button text with images
* smaller buttons
* test camera fragment buttons
* added orientation handler
* changed icon to make travis happy
* test new espresso config for travis
* removed useless rule
* deleted useless val
* added layout ID's
* moved swipes from Before to Tests, and thread sleep
* stoped swiping, now tests from fragment directly
* start post creation flow
* use Uri when taking photo, can now go back from picture preview
* adjusted test and flow idea
* tests on displayed UI elements for the post creation fragment
* refactor camera fragment into transition new post fragemnt
* finished first phase: get a picture Uri
* fixed lint error found by travis CI
* added global timeout to test
* test the new way of test
* refactor new way of testing
* added in-app camera view and linked everything to the final flow + started API to post
* strugling on the upload media part
* upload image on server implemented
* post upload implemented
* added API call to get max_toot_chars and correct def of a post description
* fixed some tests
* fix tests: clicking on tabs make the app crash because of the camera fragment
* comment problematic chunk of code while samuel tries to fix it
* switch minimumsdk to api 24
* Revert "switch minimumsdk to api 24"
This reverts commit 24ce46dd82038b59732fd958e5e071ded39cd549.
* deactivited live camera for API 23
* tests for post creation fragment UI elements
* remove worthless UI testing and add gallery intent test
* removed camera intent for now
* some refactor
* lint error and more refactor
* more refactor on merge from master
* refactor and test for PostCreationActivity
* Revert "refactor and test for PostCreationActivity"
This reverts commit a0c146bcc545cdc3792df4806e6b0c908bd18747.
* Revert "Revert "refactor and test for PostCreationActivity""
This reverts commit 147a9ed80d5f9c9e3c38b5a977786bfb39eeb1b6.
* permissions correction for test
* updtated test
* fix a test and refactor
* relink correct fragment
* save picture locally
* test post button
* requested changes
* fixed required changes
* Revert "fixed required changes"
This reverts commit 405a9d4d1af05353e30028e60041cc1c97569c1b.
* redo change request
* added /media api response to mockserver
Co-authored-by: Andrea Clement <samuel.dietz@epfl.ch>
* Changed Post interaction icons and added click feedback
* added reblog and unreblog api implementations
* Use fancy animated buttons
* WIP reposter
* WIP reblog button
* renamed ViewHolder => PostViewHolder
* activated reblogger in feed
* added custom html parser, still need to fix clickable links
* added parsed HTML in notifications
* fixed mention click
* added tests for reblog and clickable mentions
* adapted unit tests to work with new html parser
* changed incoherent comment
* made hashtags slightly less useless
* removed unit test that were no longer valid
* removed useless test
* trying to fix tests
* fixing tests
* trying to improve coverage a little
* removed unused code to improve coverage
* changed cast to type converter
* added failure responses to help coverage
* added mock server response for reblogging
* fixed broken json
* trying to fix a broken test
* added handling of multiple images in a post
* Tweak tests
* Typo in test
* Add scrolls to make tests pass on small screens
* fixed old JSON in mockserver
* fixed linter issue
* merged with master again
* added test for albums
Co-authored-by: Matthieu <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com>
* Changed Post interaction icons and added click feedback
* added reblog and unreblog api implementations
* Use fancy animated buttons
* WIP reposter
* WIP reblog button
* renamed ViewHolder => PostViewHolder
* activated reblogger in feed
* added custom html parser, still need to fix clickable links
* added parsed HTML in notifications
* fixed mention click
* added tests for reblog and clickable mentions
* adapted unit tests to work with new html parser
* changed incoherent comment
* made hashtags slightly less useless
* removed unit test that were no longer valid
* removed useless test
* trying to fix tests
* fixing tests
* trying to improve coverage a little
* removed unused code to improve coverage
* changed cast to type converter
* added failure responses to help coverage
* added mock server response for reblogging
* fixed broken json
* trying to fix a broken test
* Tweak tests
* Typo in test
* Add scrolls to make tests pass on small screens
* fixed old JSON in mockserver
* fixed linter issue
Co-authored-by: Matthieu <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com>
* reconnect button and profile button functionality
* fix lint error and cleaned some imports
* more lint errors
* added tests for the drawer menu
* added some timing for the animations
* drawer settings test
Comment and like buttons added + a few UI tweaks
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* layout changes
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* fixed merging errors
* trying my best to merge
* removed drawable definition in activity_post.xml
* Started converting Post to a fragment
* got a working feed
* WI
* removed non-valid test
* rebase on other branch
* moved the feed to the home page
* Add tests
* delete test for now
* Adapt test to changes (no more profile from drawer)
* Add unit test for api
* Add test for profile, refactor to allow testing, add exception to security policy to allow tests
* Adapt test to new situation
* Fix typo due to change
* refactor somewhat
* added a feed test
* WIP posts
* trying to add images
* WIP posts
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* WIP posts
* trying to add images
* WIP posts
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* fixed merging errors
* trying my best to merge
* removed drawable definition in activity_post.xml
* Started converting Post to a fragment
* got a working feed
* WI
* removed non-valid test
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* refactoring
* refactoring
* removed wrong annotation in unit test
* WIP posts
* WIP posts
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* layout changes
* moved a test file
* refactoring
* refactoring
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* fixed merging errors
* trying my best to merge
* removed drawable definition in activity_post.xml
* Started converting Post to a fragment
* got a working feed
* WI
* removed non-valid test
* rebase on other branch
* moved the feed to the home page
* added a feed test
* added a working feed test
* fixed broken test
* merged with master
* added a max height for images and made profile pictures round
* Added a default image for the post
* created a PostActivity to look a single posts
* fixed buggy postActivity
* Complete overhall of the feed UI
* removed test that didn't please Travis
* removed legacy test
* changed feedAdapter init location (outside of network callback)
* changed the feed from public timeline to home timeline
* Refactored myProfile page
* Converted profile picture to round image
* restored feed test
* I can like a post, but unlike is still a WIP
* Liking kind of works now and added tests
* fixed an error, now we can unlike as well
* fixed travis constraint error
* Display user's posts on profile page
* moved test to Mock server tests
* fixed test
* last resort debugging
* Changed fixed size of profile posts
* last resort debugging
* last resort debugging
* last resort debugging
* made post_activity profilepic round
* Total refactor of profile posts
* still have a weird bug with the comments: input is always null (WIP)
* still trying to fix coments
* removed annoying side margins in the home feed
* trying to fix comments
* fixed null comment
* converted all posts back to statuses and got rid of post
* Refactored recycler view
* Merged with my-profile
* Posts displayed on profile page
* Added links to profile activity where needed
* fixed comment posting
* finished implementing comments, but api is buggy so none are visible
* removed useless space in profile page
* fixed ci config bug
* trying to trigger ci hook (github was down last time)
* updated tests with master tests
* added tests for the comments
* added tests for the comments
* added first() matcher to fix comment test
* still trying to fix comment tests' null progress bar
* getting rid of that null progress bar
* added comment test
* fixed merge error
* added like button test
* added more post tests
* took pr coments into account
* added back an old test
* added mockServer response for comment test and fixed comment null pointer bug
* changed notification UI to better separate notifications
* added mockserver response for likes and corrected like toggling error
* added a test for posting comments
* fixed typo in test
* a gift for code climate
* refactored stuff
* fixed broken imports
* comment refactored as xml
Co-authored-by: Matthieu <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com>
Co-authored-by: mjaillot <marie.jaillot@epfl.ch>
* Refactored myProfile page
* Total refactor of profile posts
* Merged with my-profile
* Posts displayed on profile page
* Added links to profile activity where needed
* Removed MyProfileTest with swipes
* Tests ProfileActivity from Notifications
* Add test, fix progressbar being null
* Add loading indications, refactor fragments into common parent class
* Add cirrus
* actually add cirrus
* Add timeouts
* Fix test rules
* Add gitlab ci file to tes
* move tests to MockedServer to not have infinite waits by Espresso
* Update README for gitlab badge
* Add notification fragment to notification tab
* First functional-ish version of notifications
* Fix test failing due to profile requesting multiple times (?)
* Test notifications list
* Move resource that was in the wrong place for some reason
* Improve fallback image, add new drawable for it, add a margin
* Only show image thumbnail when there is one
* Go to post activity on click
* Add pull to refresh
* Refactor somewhat
* Test other notification too
* Test opening post
* add icons for various things (heart, follow, share, image fallback)
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* WIP posts
* trying to add images
* WIP posts
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* rebased from master
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* WIP posts
* trying to add images
* WIP posts
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* rebased from master
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* fixed merging errors
* fixed another merge problem
* trying my best to merge
* removed drawable definition in activity_post.xml
* implements swipe motion
add a new class to implement swipe motion
add the swipe right from home page to display settings
passed the homepage in a fragment
* transform profile activity into fragment
transformed profile activity and layout into fragment
linked it with a swipe motion
* Implement swipeable tabs
* Ask for login on first start, add API endpoints, change profile to show the user's profile
* Started converting Post to a fragment
* got a working feed
* WI
* removed non-valid test
* WIP posts
* trying to add images
* WIP posts
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* layout changes
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* fixed merging errors
* trying my best to merge
* removed drawable definition in activity_post.xml
* Started converting Post to a fragment
* got a working feed
* WI
* removed non-valid test
* rebase on other branch
* moved the feed to the home page
* Add tests
* delete test for now
* Adapt test to changes (no more profile from drawer)
* Add unit test for api
* Add test for profile, refactor to allow testing, add exception to security policy to allow tests
* Adapt test to new situation
* Fix typo due to change
* refactor somewhat
* added a feed test
* WIP posts
* trying to add images
* WIP posts
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* WIP posts
* trying to add images
* WIP posts
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* fixed merging errors
* trying my best to merge
* removed drawable definition in activity_post.xml
* Started converting Post to a fragment
* got a working feed
* WI
* removed non-valid test
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* refactoring
* refactoring
* removed wrong annotation in unit test
* WIP posts
* WIP posts
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* layout changes
* moved a test file
* refactoring
* refactoring
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* fixed merging errors
* trying my best to merge
* removed drawable definition in activity_post.xml
* Started converting Post to a fragment
* got a working feed
* WI
* removed non-valid test
* rebase on other branch
* moved the feed to the home page
* added a feed test
* added a working feed test
* fixed broken test
* merged with master
* added a max height for images and made profile pictures round
* Added a default image for the post
* created a PostActivity to look a single posts
* fixed buggy postActivity
* Complete overhall of the feed UI
* removed test that didn't please Travis
* removed legacy test
* changed feedAdapter init location (outside of network callback)
Co-authored-by: Matthieu <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com>
Co-authored-by: Ulysse Widmer <ulysse.widmer@epfl.ch>
* Layout of my-profile page
* implements swipe motion
add a new class to implement swipe motion
add the swipe right from home page to display settings
passed the homepage in a fragment
* transform profile activity into fragment
transformed profile activity and layout into fragment
linked it with a swipe motion
* Implement swipeable tabs
* Ask for login on first start, add API endpoints, change profile to show the user's profile
* Added constraint view
* Layout of my-profile page
* Added constraint view
* Rebase myProfile with login-flow
* Add tests
* delete test for now
* Adapt test to changes (no more profile from drawer)
* Add unit test for api
* Add test for profile, refactor to allow testing, add exception to security policy to allow tests
* Adapt test to new situation
* Fix typo due to change
* refactor somewhat
* Added myProfile fragment to main activity + edit link
* Layout of my-profile page
* Added constraint view
* Layout of my-profile page
* Added constraint view
* Rebase myProfile with login-flow
* Added myProfile fragment to main activity + edit link
* Working tests for MyProfile
Co-authored-by: Ulysse Widmer <ulysse.widmer@epfl.ch>
* transform profile activity into fragment
* Implement swipeable tabs
* Ask for login on first start, add API endpoints, change profile to show the user's profile
* Add tests
* delete test for now
* Adapt test to changes (no more profile from drawer)
* Add unit test for api
* Add test for profile, refactor to allow testing, add exception to security policy to allow tests
* Adapt test to new situation
* Fix typo due to change
* refactor somewhat
* remove unused function
* remove test dependent on network
* update test
* remove test
Co-authored-by: Ulysse Widmer <ulysse.widmer@epfl.ch>
* implements swipe motion
add a new class to implement swipe motion
add the swipe right from home page to display settings
passed the homepage in a fragment
* transform profile activity into fragment
transformed profile activity and layout into fragment
linked it with a swipe motion
* refactor settings drawer tests
* added more tests and refactored some files
* added animations to the sliding of the swipe motion
Add Kotlin representations (data classes) of the Types of the Mastodon API.
Create helper function to make API from the interface.
Test the deserialization.