* 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