Commit Graph

295 Commits

Author SHA1 Message Date
T3rr0rZ0n3 f72c25d9ab Translated using Weblate (Catalan)
Currently translated at 100.0% (42 of 42 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ca/
2020-05-21 12:25:06 +00:00
Anonymous 8de4e2d741 Translated using Weblate (Spanish)
Currently translated at 100.0% (42 of 42 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/es/
2020-05-21 12:25:06 +00:00
Mostafa Ahangarha 1a74fa2b59 Translated using Weblate (Persian)
Currently translated at 100.0% (42 of 42 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fa/
2020-05-21 12:25:06 +00:00
Siberia Bread Factory b503ef8dd3 Translated using Weblate (Russian)
Currently translated at 100.0% (42 of 42 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ru/
2020-05-21 12:25:06 +00:00
Dylan Wu 09d13880b5 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (42 of 42 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/zh_Hans/
2020-05-21 12:25:06 +00:00
ButterflyOfFire f5fb71d5bb Translated using Weblate (Arabic)
Currently translated at 100.0% (42 of 42 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ar/
2020-05-21 12:25:06 +00:00
Xose M 1368dd45eb Translated using Weblate (Galician)
Currently translated at 100.0% (42 of 42 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/gl/
2020-05-21 12:25:06 +00:00
T3rr0rZ0n3 44ab6e3225 Translated using Weblate (Catalan)
Currently translated at 100.0% (42 of 42 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ca/
2020-05-21 12:25:06 +00:00
Tagomago aac6bf63de Translated using Weblate (Spanish)
Currently translated at 100.0% (42 of 42 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/es/
2020-05-21 12:25:06 +00:00
Anonymous c172e933b5 Translated using Weblate (German)
Currently translated at 90.4% (38 of 42 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/de/
2020-05-21 12:25:06 +00:00
Weblate Admin 4bb78a0df5 Translated using Weblate (French)
Currently translated at 100.0% (42 of 42 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fr/
2020-05-21 12:25:06 +00:00
ButterflyOfFire 41b6b3f289 Translated using Weblate (French)
Currently translated at 100.0% (42 of 42 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fr/
2020-05-21 12:25:06 +00:00
YorimiMochida a8a4b1b94f Translated using Weblate (Japanese)
Currently translated at 100.0% (42 of 42 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ja/
2020-05-21 12:25:06 +00:00
Weblate Admin 10a340ee1c Translated using Weblate (Chinese (Simplified))
Currently translated at 88.0% (37 of 42 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/zh_Hans/
2020-05-21 12:25:06 +00:00
Andrew Dobis 998792d61b
Fix edit dark mode bug (#192)
* fixed visual dark mode bug

* fix another color bug
2020-05-21 13:31:51 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 fb65ff6e83
Fixes #180 (#182) 2020-05-20 18:38:59 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 41383ea258
Add issue template for bugs (#189) 2020-05-20 18:20:58 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 dbf7a3abc3
Update README.md (#181) 2020-05-19 21:42:03 +02:00
Mostafa Ahangarha 747fb4b6ce
fastlane init (#186)
* fastlane init

* shorten short_description

* remove line breaks

* rename screenshots
2020-05-19 20:20:24 +02:00
Andrew Dobis f9835204be
fixed visual dark mode bug (#184) 2020-05-19 17:19:35 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 379b2c9a75
Alpha release 1 (#178) 2020-05-19 10:39:17 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 ca307abcde
multiAccount functionnality (#168)
* 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
2020-05-19 09:49:34 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 d4c026ab44
Translations update from Weblate (#171)
* Translated using Weblate (Swedish)

Currently translated at 15.6% (8 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/sv/

* Translated using Weblate (Swedish)

Currently translated at 19.6% (10 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/sv/

* Translated using Weblate (Basque)

Currently translated at 58.8% (30 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/eu/

* Translated using Weblate (Dutch)

Currently translated at 21.5% (11 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/nl/

* Translated using Weblate (Dutch)

Currently translated at 50.9% (26 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/nl/

* Translated using Weblate (Dutch)

Currently translated at 100.0% (51 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/nl/

* Added translation using Weblate (Galician)

* Translated using Weblate (Swedish)

Currently translated at 98.0% (50 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/sv/

* Translated using Weblate (Galician)

Currently translated at 100.0% (51 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/gl/

* Translated using Weblate (German)

Currently translated at 11.7% (6 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/de/

* Added translation using Weblate (Ukrainian)

* Translated using Weblate (Ukrainian)

Currently translated at 62.7% (32 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/uk/

* Translated using Weblate (Basque)

Currently translated at 100.0% (51 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/eu/

* Translated using Weblate (Basque)

Currently translated at 100.0% (51 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/eu/

* Translated using Weblate (Basque)

Currently translated at 100.0% (51 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/eu/

* Translated using Weblate (Basque)

Currently translated at 100.0% (51 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/eu/

* Translated using Weblate (German)

Currently translated at 47.0% (24 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/de/

* Translated using Weblate (German)

Currently translated at 47.0% (24 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/de/

* Translated using Weblate (German)

Currently translated at 62.7% (32 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/de/

* Translated using Weblate (German)

Currently translated at 62.7% (32 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/de/

* Translated using Weblate (German)

Currently translated at 98.0% (50 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/de/

* Translated using Weblate (German)

Currently translated at 98.0% (50 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/de/

* Added translation using Weblate (Italian)

* Translated using Weblate (Italian)

Currently translated at 100.0% (51 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/it/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (51 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/es/

* Translated using Weblate (French)

Currently translated at 100.0% (51 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fr/

* Added translation using Weblate (Arabic)

* Translated using Weblate (Arabic)

Currently translated at 84.3% (43 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ar/

* Translated using Weblate (German)

Currently translated at 98.0% (50 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/de/

* Translated using Weblate (German)

Currently translated at 100.0% (51 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/de/

* Translated using Weblate (German)

Currently translated at 100.0% (51 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/de/

* Translated using Weblate (Arabic)

Currently translated at 84.3% (43 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ar/

* Translated using Weblate (Arabic)

Currently translated at 100.0% (51 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ar/

* Translated using Weblate (Catalan)

Currently translated at 100.0% (51 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ca/

* Added translation using Weblate (Chinese (Simplified))

* Translated using Weblate (Chinese (Simplified))

Currently translated at 98.0% (50 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/zh_Hans/

* Added translation using Weblate (Russian)

* Translated using Weblate (Russian)

Currently translated at 98.0% (50 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ru/

* Translated using Weblate (Russian)

Currently translated at 100.0% (51 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ru/

* Added translation using Weblate (Japanese)

* Translated using Weblate (Japanese)

Currently translated at 100.0% (51 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ja/

* Added translation using Weblate (Persian)

* Translated using Weblate (Persian)

Currently translated at 100.0% (51 of 51 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fa/

Co-authored-by: Isak Alexander <isak@holmstroms.org>
Co-authored-by: bertol <bertol@ni.eus>
Co-authored-by: Anonymous <noreply@weblate.org>
Co-authored-by: vancha march <tjipkevdh@gmail.com>
Co-authored-by: Weblate Admin <contact@pixeldroid.org>
Co-authored-by: Xose M <correoxm@disroot.org>
Co-authored-by: yybmgzds <yybmgzds@hi2.in>
Co-authored-by: Asier Iturralde Sarasola <asier.iturralde@gmail.com>
Co-authored-by: x <hardwired1.0@protonmail.com>
Co-authored-by: Tagomago <tagomago@disroot.org>
Co-authored-by: ButterflyOfFire <butterflyoffire+pixeldroid@protonmail.com>
Co-authored-by: Sven <weblate.pixeldroid.org@linux4tw.de>
Co-authored-by: MOAD Melek <moadmalek@protonmail.com>
Co-authored-by: retiolus <retiolus@protonmail.com>
Co-authored-by: Dylan Wu <dw@watelier.cn>
Co-authored-by: Siberia Bread Factory <darak85863@mailcupp.com>
Co-authored-by: YorimiMochida <yuuman002@gmail.com>
Co-authored-by: Mostafa Ahangarha <ahangarha@riseup.net>
2020-05-18 17:24:14 +02:00
Andrew Dobis 16d562e012
Added compiling instructions to the readme (#174)
* Added compiling instructions to the readme

* Updated links

* Fixed spelling mistake
2020-05-18 17:03:05 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 14d33fdad7
Translation fix2 (#172)
* remove old strings from translated files
2020-05-17 00:09:46 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 07533104fe
Translations (#170)
* Added translation using Weblate (French)

* Added translation using Weblate (Dutch)

* Added translation using Weblate (German)

* Added translation using Weblate (Spanish)

* Translated using Weblate (Spanish)

Currently translated at 25.0% (9 of 36 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/es/

* Translated using Weblate (Spanish)

Currently translated at 25.0% (9 of 36 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/es/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (36 of 36 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/es/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (36 of 36 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/es/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (36 of 36 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/es/

* Added translation using Weblate (Catalan)

* Translated using Weblate (Spanish)

Currently translated at 100.0% (36 of 36 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/es/

* Translated using Weblate (French)

Currently translated at 97.2% (35 of 36 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fr/

* Translated using Weblate (Catalan)

Currently translated at 61.1% (22 of 36 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ca/

* Added translation using Weblate (Basque)

* Translated using Weblate (Catalan)

Currently translated at 100.0% (36 of 36 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/ca/

* Translated using Weblate (French)

Currently translated at 100.0% (36 of 36 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/fr/

* Translated using Weblate (Basque)

Currently translated at 100.0% (36 of 36 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/eu/

* Added translation using Weblate (Swedish)

* Translated using Weblate (Swedish)

Currently translated at 19.4% (7 of 36 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/sv/

Co-authored-by: Weblate Admin <contact@pixeldroid.org>
Co-authored-by: Anonymous <noreply@weblate.org>
Co-authored-by: victorhck <victorhck@mailbox.org>
Co-authored-by: retiolus <retiolus@protonmail.com>
Co-authored-by: Asier Iturralde Sarasola <asier.iturralde@gmail.com>
Co-authored-by: Isak Alexander <isak@holmstroms.org>
2020-05-16 23:49:55 +02:00
Samuel Dietz 5fadfd2e8e
Sensitive media (#162)
* 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
2020-05-16 23:47:18 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 252a192ff3
Camera tab (#149)
* 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>
2020-05-15 12:10:28 +02:00
Sanimys 5ac3967400
Crop images (#163)
* 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>
2020-05-15 11:46:12 +02:00
Andrew Dobis 8fb5074f84
Added a dark mode (#151)
* 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>
2020-05-15 09:23:06 +02:00
Ulysse Widmer e96d5e22a7
Offline mode - Phase 1 (#156)
* rework post entity

* refactor login activity

* added db instance to login activity

* remember user logins offline

* drawer works offline

* fixed some tests

* move imagefragment in fragment folder

* added tests for the new login flow

* add missing drawer test

* add login offline test

* added online login flow tests

* fixed tests

* added mockserver /instance repsonse

* fixed marie's request
2020-05-14 20:14:41 +02:00
Ulysse Widmer b2842b8abe
fixed issue 152: ask write permissions (#154) 2020-05-08 11:42:41 +02:00
Sanimys c4946dd61c
Edit photos (#114)
* 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>
2020-05-08 10:53:56 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 b8b3112f1b
Translations update from Weblate (#147)
Translations update from Weblate
2020-05-04 00:43:11 +02:00
Andrew Dobis 72bb559468
set orientation to fixed portrait (#148) 2020-05-03 22:53:24 +02:00
Andrew Dobis b873a90a9e
Added public timeline (#134)
* added public timeline

* WIP fixing date

* added test for the Public timeline

* added tests for the public timeline

* took pr comments into account
2020-05-03 22:48:05 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 96e376887f
Add translation badge, add logo to readme (#146)
* Add translation badge, add logo to readme

* add svg and png image
2020-05-03 14:32:35 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 663d0e2599
Discover feature (#143)
* Discover feature

* Add refresh handler

* Add json to mockserver

* singleton mock server, fix null items

* Add test to open discover post
2020-05-03 14:30:01 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 0038cd8c9e
Translations update from Weblate (#145)
* Translated using Weblate (English)

Currently translated at 100.0% (36 of 36 strings)

Translation: PixelDroid/pixeldroid
Translate-URL: http://weblate.pixeldroid.org/projects/pixeldroid/pixeldroid/en/

Co-authored-by: Weblate Admin <contact@pixeldroid.org>
2020-05-03 11:39:24 +02:00
Andrew Dobis 1eeb207432
Update README.md (#142)
* Updated README.md
2020-05-01 16:59:52 +02:00
mjaillot 0df369d88c
My profile from drawer (#125)
* 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
2020-05-01 11:26:18 +02:00
Andrew Dobis 600813baaa
A few UI tweaks (#126)
* 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
2020-05-01 10:39:25 +02:00
Ulysse Widmer db594bbda2
share pictures across apps (#129)
* share implemented

* added test for share intent
2020-05-01 09:01:13 +02:00
Ulysse Widmer 20a2fd51ad
save images to gallery (#124)
* 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
2020-04-30 20:01:35 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 ce0b914d78
Search (#121)
* 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
2020-04-30 17:54:21 +02:00
Ulysse Widmer 92c534ca1b
Feature/post creation (#83)
* 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>
2020-04-24 12:44:12 +02:00
mjaillot 3506f034d4
Follow button and followers list (#109)
* wip follow button

* Fixed follow api typo

* Changed follow button text

* FollowButton click animated

* Fixed follow button

* FollowButton hidden if not ready

* Added toats

* Removed useless val

* Refactored follow onClickListener

* Merge with master

* Followers list WIP

* Distinguish followers and following

* Fixed typo

* Open followers list

* Follows list done

* Tests failing

* Fixed follow button test

* Completed url followers

* Fixed tests

* Added test
2020-04-24 12:10:25 +02:00
Andrew Dobis 5decd6ae12
Fixed crash when post doesn't contain media_attachments (#113) 2020-04-23 21:11:30 +02:00
Wv5twkFEKh54vo4tta9yu7dHa3 94635f5b72
Add splash screen to avoid white screen while opening (#112) 2020-04-23 19:49:30 +02:00
Andrew Dobis 2339fb0967
Added handling of multiple images in a post (#111)
* 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>
2020-04-23 18:49:32 +02:00