Commit graph

2476 commits

Author SHA1 Message Date
Stefan Niedermann
b6c5d93a20 Temporary set minVersionCode to 0 for testability 2021-05-18 12:18:20 +02:00
Stefan Niedermann
6b3bcdfb57 Remove need for synchronized access to ApiProvider instance 2021-05-18 10:04:31 +02:00
Stefan Niedermann
48caba2b8a Adjust test style 2021-05-18 09:46:02 +02:00
Stefan Niedermann
30e38d5741 Cover exception cases in CapabilitiesClientTest 2021-05-17 19:14:16 +02:00
Stefan Niedermann
140afac576 Add Unit test for fetching DisplayName 2021-05-17 19:14:16 +02:00
Stefan Niedermann
af99117c75 Add Unit test for fetching Capabilities 2021-05-17 19:14:16 +02:00
Stefan Niedermann
5fda7fb408 Reduce diff with master 2021-05-17 19:14:16 +02:00
Stefan Niedermann
25250701c6 Enhance testability by using Singleton pattern for ApiProvider 2021-05-17 19:14:16 +02:00
Stefan Niedermann
1548df566e Use Intent.EXTRA_USER instead of custom String key to transmit account name 2021-05-17 11:27:23 +02:00
Stefan Niedermann
fbaf93865d Merge remote-tracking branch 'origin/master' 2021-05-17 09:39:06 +02:00
Nextcloud bot
6b3473ec7d [tx-robot] updated from transifex 2021-05-16 21:52:48 +02:00
Stefan Niedermann
c3c041d91b Do not explicitly request ApplicationContext because we already do it in the constructor 2021-05-16 14:16:13 +02:00
Stefan Niedermann
5e8bcb0007 Adds Unit test for syncStatus and errors LiveData in NotesRepository 2021-05-16 13:52:35 +02:00
Stefan Niedermann
8790eeea91 Adds Unit test for deleting an Account 2021-05-16 12:49:07 +02:00
Stefan Niedermann
17296f0446 version bump to 3.4.3 2021-05-14 17:09:50 +02:00
Stefan Niedermann
bcb4a07910 Update changelog 2021-05-14 17:09:39 +02:00
Stefan Niedermann
04d88572ad Minor refactoring 2021-05-14 17:08:04 +02:00
Stefan Niedermann
e2e5c19523 Fix mocks 2021-05-14 17:03:47 +02:00
Stefan Niedermann
5d4c022e17 Merge branch 'master' of https://github.com/Cui-Yusong/nextcloud-notes into Cui-Yusong-master 2021-05-14 16:30:54 +02:00
Stefan Niedermann
3b6baf42dc Open trashbin in files app
With fallback to legacy launch in browser
2021-05-14 16:11:24 +02:00
Cui
3bfa13bc34 update 2021-05-14 20:57:32 +08:00
Cui
0cd28d8b00 update 2021-05-14 20:38:49 +08:00
Stefan Niedermann
ee615512a3 Remove unused variable 2021-05-14 13:40:37 +02:00
Stefan Niedermann
d8dd5483bb Remove unused imports 2021-05-14 13:37:24 +02:00
Stefan Niedermann
586baa0586 Merge remote-tracking branch 'origin/master' 2021-05-14 13:35:10 +02:00
Stefan Niedermann
8d73aaaf51 Fix #1215 Menu text color in dark mode 2021-05-14 13:35:04 +02:00
dependabot[bot]
d541ca921b Bump gradle from 4.2.0 to 4.2.1
Bumps gradle from 4.2.0 to 4.2.1.

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-14 09:00:43 +02:00
dependabot[bot]
f0de338aa5 Bump mockito-core from 3.9.0 to 3.10.0
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.9.0 to 3.10.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.9.0...v3.10.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-13 10:04:44 +02:00
Stefan Niedermann
c07b771743 Add unit test for NotesRepository#getInstance() 2021-05-12 18:15:09 +02:00
Stefan Niedermann
3bf57cd285 Fix #1205 Also remove markdown from title when the note only has one line
Includes a few more unit tests for this method
2021-05-12 15:24:07 +02:00
Stefan Niedermann
303f335fac Fix some IDE warnings and remove outdated unit tests 2021-05-12 14:31:20 +02:00
Cui
44e585f828 update 2021-05-12 20:22:05 +08:00
Stefan Niedermann
23836fe59b Minor code refactorings 2021-05-12 13:26:08 +02:00
Stefan Niedermann
8d2e7941be Add unit test for getMarkdownLink() 2021-05-12 12:03:04 +02:00
Stefan Niedermann
6d0e9bc310 Throw exception when instantiating an util class 2021-05-12 12:00:36 +02:00
Stefan Niedermann
e544a0a416 Add test case for sanitizing an ApiVersion string 2021-05-12 11:57:48 +02:00
Stefan Niedermann
b3d8a6cf22 Add test case for unparsable ApiVersion 2021-05-12 11:54:53 +02:00
Cui
1ccd74e288 update 2021-05-12 17:11:46 +08:00
Stefan Niedermann
5cc85446e8 Rename and move CapabilitiesDeserializerTest 2021-05-12 10:58:43 +02:00
Stefan Niedermann
12652c1203 Add Unit test for displayName 2021-05-12 10:58:43 +02:00
Stefan Niedermann
d105f8c7b9 Add Unit test for NotesServerSyncTask 2021-05-12 10:58:43 +02:00
Stefan Niedermann
6fd4fa5796 Sanitize API versions while migrating the database 2021-05-12 10:58:43 +02:00
Stefan Niedermann
3ddfde9a54 Sanitize API versions while migrating the database 2021-05-12 10:58:43 +02:00
Stefan Niedermann
59c99f7de4 Enhance handling, parsing, sanitizing and serialization of supported ApiVersions 2021-05-12 10:58:43 +02:00
Stefan Niedermann
bf668410a5 Ensure to invalidate APIs in case of a NextcloudApiNotRespondingException 2021-05-12 10:58:43 +02:00
Stefan Niedermann
757d7272ca #1079 Do not refresh displayName on Pull 2 Refresh 2021-05-12 10:58:43 +02:00
Stefan Niedermann
d1ebf6cf89 #1079 Database migration 2021-05-12 10:58:43 +02:00
Stefan Niedermann
30e839de9d #1079 Database migration 2021-05-12 10:58:43 +02:00
Stefan Niedermann
02cb22dc1d #1079 Reuse OcsResponse wrapper also for Capabilities 2021-05-12 10:58:43 +02:00
Stefan Niedermann
ccc812dc6e #1079 Show DisplayName instead of uid attribute for LDAP users 2021-05-12 10:58:43 +02:00