252 Commits

Author SHA1 Message Date
Julian Raufelder
f2c918b740
Update dependencies 2021-03-31 12:16:07 +02:00
Julian Raufelder
7ea696ac01
Update dependencies 2021-03-30 14:47:05 +02:00
Julian Raufelder
85706c35b3
New Crowdin updates 2021-03-30 12:22:17 +02:00
Julian Raufelder
25ce8e68b3
Update strings.xml
[ci skip]
2021-03-30 12:04:32 +02:00
Julian Raufelder
9364d77f80
Merge branch 'feature/pcloud' into develop 2021-03-26 21:02:08 +01:00
Julian Raufelder
56a1543641
Update to latest version of pcloud-sdk-java 2021-03-26 20:59:49 +01:00
Julian Raufelder
10ce9dee79
Merge pull request #283 from mjenny/feature/native-pcloud-support
feat: introduce native pCloud support
2021-03-26 20:55:52 +01:00
Julian Raufelder
9843e77c3f
Reformat code to apply to project style guide 2021-03-26 17:07:08 +01:00
Julian Raufelder
483a831618
Re-authenticate if credential is expired 2021-03-26 17:07:08 +01:00
Manuel Jenny
d227c5c0fd
fix: use static sets, user proper name 2021-03-26 17:07:07 +01:00
Manuel Jenny
728d5262ab
fix: handleApiError() with name 2021-03-26 17:07:07 +01:00
Manuel Jenny
d3609ac691
fix: directly return newFile 2021-03-26 17:07:07 +01:00
Manuel Jenny
aaf7f4bfb5
fix: remove file encoding left overs 2021-03-26 17:07:07 +01:00
Manuel Jenny
c57a59c29b
fix: remove filename encoding 2021-03-26 17:07:06 +01:00
Manuel Jenny
6217c42440
chore: add TODO regarding filename encoding 2021-03-26 17:07:06 +01:00
Manuel Jenny
e1bc82b89a
fix: throw NoSuchCloudFileException if API Error Code is 2002 2021-03-26 17:07:06 +01:00
Manuel Jenny
fe87ae3126
fix: only take username into account in configurationMatches() 2021-03-26 17:07:06 +01:00
Manuel Jenny
5695a5c0ed
Revert "fix: list for root folder"
This reverts commit a2215694b1a25312dfeaced866561ec1447f09a9.
2021-03-26 17:07:05 +01:00
Manuel Jenny
e35f1d6087
fix: list for root folder 2021-03-26 17:07:05 +01:00
Manuel Jenny
fe07f376b5
fix: use proper icons 2021-03-26 17:07:05 +01:00
Manuel Jenny
9b93fb9623
feat: remove idCache and switch to loading with paths 2021-03-26 17:07:05 +01:00
Manuel Jenny
86a0b1e6d5
fix: actually verify configurationMatches 2021-03-26 17:07:05 +01:00
Manuel Jenny
6ccee05851
fix: instantiate separate idCache for each PCloud instance 2021-03-26 17:07:04 +01:00
Manuel Jenny
d3bb9d30aa
fix: remove cache for OkHttpClient 2021-03-26 17:07:04 +01:00
Manuel Jenny
20939f9ba0
fix: rename writeData to writeToData 2021-03-26 17:07:04 +01:00
Manuel Jenny
c5c139f962
fix: once again remove unused imports... 2021-03-26 17:07:04 +01:00
Manuel Jenny
b97a4750c6
feat: implement file cache
Due to the way the pCloud revision handling is implemented every
download will actually be a cache miss even if the file is small enough
and didn't change since last download.

Therefore, we have to implement our own file cache.
2021-03-26 17:07:03 +01:00
Manuel Jenny
8c030a5f9c
fix: throw NoSuchCloudFileException if fileId is missing 2021-03-26 17:07:03 +01:00
Manuel Jenny
a491dd4766
fix: use correct access token 2021-03-26 17:07:03 +01:00
Manuel Jenny
81bde173f1
fix: improve exception handling for read() 2021-03-26 17:07:03 +01:00
Manuel Jenny
2158e2a0d4
fix: move from stat to loadFile 2021-03-26 17:07:02 +01:00
Manuel Jenny
44c5029651
fix(rebase): use proper setter for Url 2021-03-26 17:07:02 +01:00
Manuel Jenny
5904073776
fix: remove unused imports 2021-03-26 17:07:02 +01:00
Manuel Jenny
2fcf53b633
feat: add exception handling 2021-03-26 17:07:02 +01:00
Manuel Jenny
1146a5e8fc
fix: file upload with unencoded filename
There seems to be an issue with unencoded filenames when uploading a new
file to the vault.

E.g. file name
"YYbfUTn6ViuRkXzeXXYAAu8z6DwFMrTNtPY3zpjn24RIUmzqqi4=.c9r" will result
in a broken upload. Encoding the filename will solve this:
"YYbfUTn6ViuRkXzeXXYAAu8z6DwFMrTNtPY3zpjn24RIUmzqqi4%3D.c9r"

However, this will actually result in the file's name being encoded. If
the filename and the encoded filename do not match we need to rename the
uploaded file using the correct filename.
2021-03-26 17:07:01 +01:00
Manuel Jenny
d9d88df49a
fix: use ROOT_FOLDER_ID inline 2021-03-26 17:07:01 +01:00
Manuel Jenny
eba5ab6a4c
fix: get root folder id from RemoteFolder 2021-03-26 17:07:01 +01:00
Manuel Jenny
80a0d7cdcd
fix: throw WrongCredentialsException in findEntry() 2021-03-26 17:07:01 +01:00
Manuel Jenny
369e1d1945
feat: add error code for revoked access token 2021-03-26 17:07:00 +01:00
Manuel Jenny
c1ca71be82
fix: remove PCloudIdCloudNode interface 2021-03-26 17:07:00 +01:00
Manuel Jenny
f7411ea286
fix: remove unused import 2021-03-26 17:07:00 +01:00
Manuel Jenny
c8a2c1dc19
feat: implement toasts for authentication errors 2021-03-26 17:07:00 +01:00
Manuel Jenny
d92e4b0daf
fix: rename PCloudCloud stuff to PCloud 2021-03-26 17:06:59 +01:00
Manuel Jenny
f17df0e179
fix: don't specify activityResult as optional 2021-03-26 17:06:59 +01:00
Manuel Jenny
9fc4626e61
fix: remove PCLOUD_CLIENT_ID from manifestPlaceholders 2021-03-26 17:06:59 +01:00
Manuel Jenny
73b3dc1459
fix: remove unused pCloud related logout code 2021-03-26 17:06:59 +01:00
Manuel Jenny
0bb01fec0e
fix: remove unused imports 2021-03-26 17:06:58 +01:00
Manuel Jenny
90c7c14471
fix: simplifications
- Change all `CloudNode` to `PCloudNode`
- Check `replace` before `exists()`
- Move definition of relocationEntry below exception
- Change `CloudFile` to `PCloudFile`
2021-03-26 17:06:58 +01:00
Manuel Jenny
b6cebf16fb
fix: move decrypt() for accessToken 2021-03-26 17:06:58 +01:00
Manuel Jenny
091f7eeacf
fix: read pCloud Client ID from BuildConfig 2021-03-26 17:06:58 +01:00