Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55627926e4 | ||
|
|
5c47a2273b | ||
|
|
429198eb0c | ||
|
|
38f1ebd5ff | ||
|
|
a486fa5322 | ||
|
|
57c02dcb55 | ||
|
|
b33da80a9c | ||
|
|
6ca8751e37 | ||
|
|
a12f1cc661 | ||
|
|
1a1ddc2464 | ||
|
|
418238dcf3 | ||
|
|
7ac41a2949 | ||
|
|
e2c0ef92b9 | ||
|
|
2f64df3318 | ||
|
|
bee90a0a90 | ||
|
|
2ef7a1f7a2 | ||
|
|
02a93b6ad3 | ||
|
|
06f8aa0dfb | ||
|
|
e906152907 | ||
|
|
5d3629cd0f | ||
|
|
a14b0c67a9 | ||
|
|
6e719cdcd4 | ||
|
|
d8c79db19d | ||
|
|
068e547e4f | ||
|
|
a7e4f4508d | ||
|
|
844221473b | ||
|
|
9778193e47 | ||
|
|
72c17139ec | ||
|
|
9c3b6e8bba | ||
|
|
ff1abf6161 | ||
|
|
0a2aa49d57 | ||
|
|
a37143a33f | ||
|
|
6fe36d6e8a | ||
|
|
34c70e208a | ||
|
|
68143dc8cc | ||
|
|
cf533cdcec | ||
|
|
08df55a4aa | ||
|
|
28423cde29 | ||
|
|
da45670abe | ||
|
|
1147932dc4 | ||
|
|
0d1fe6fb91 | ||
|
|
ade86c3409 | ||
|
|
1215f4309a | ||
|
|
9cde3dbace | ||
|
|
560342cebe | ||
|
|
c6a2efb307 | ||
|
|
76b945b4c5 | ||
|
|
ad36f9f5e7 | ||
|
|
58ae20f7b0 | ||
|
|
e9193d1b03 | ||
|
|
728541e364 | ||
|
|
d12464a7f3 | ||
|
|
58c59bb41a | ||
|
|
795bbb4b18 | ||
|
|
a0ae27cff2 | ||
|
|
05cdedf743 | ||
|
|
5978f8a9a2 | ||
|
|
88365a7301 | ||
|
|
78d2eaeecb | ||
|
|
1b29e592b5 | ||
|
|
2fcc92bf0a | ||
|
|
f947658dc0 | ||
|
|
75910e1548 | ||
|
|
e126adee9d | ||
|
|
386f0ab568 | ||
|
|
3144a1430c | ||
|
|
d6757dd1b4 | ||
|
|
026a6a80e6 | ||
|
|
0b117473b9 | ||
|
|
ad7b0815d7 | ||
|
|
878d8accf9 | ||
|
|
5555488964 | ||
|
|
cd6ec5ff7c | ||
|
|
9d20384248 | ||
|
|
a22b21dacf | ||
|
|
8989ed79d5 | ||
|
|
5a4378dd88 | ||
|
|
12509aa30b | ||
|
|
a501c81bae | ||
|
|
84ec717a57 | ||
|
|
63cea252c5 | ||
|
|
33dc062f71 | ||
|
|
1294a67376 | ||
|
|
e1062d95e4 | ||
|
|
dcdac2ca6f | ||
|
|
586a9b8010 | ||
|
|
3eef65d882 | ||
|
|
ef52850861 | ||
|
|
3626a22d3e | ||
|
|
506fd49f3a | ||
|
|
ce28b385c2 | ||
|
|
f28592fc16 | ||
|
|
ed0cdbcdb5 | ||
|
|
0aeb707249 | ||
|
|
5e4effa388 | ||
|
|
cc25a39983 | ||
|
|
152831e0fd | ||
|
|
6f36d43fbe | ||
|
|
8c1b086587 | ||
|
|
83726b0baa | ||
|
|
e062d8cf96 | ||
|
|
d471c8f89a | ||
|
|
1163605c52 | ||
|
|
ed6d6efdb5 | ||
|
|
7ddfe03f5d | ||
|
|
69387af38b | ||
|
|
62ce8f2fbb | ||
|
|
ee455e1674 | ||
|
|
2e555589e4 | ||
|
|
e8a0d5df74 | ||
|
|
ace0965af2 | ||
|
|
a4a4d86612 | ||
|
|
0c6f141c57 | ||
|
|
defdb92055 | ||
|
|
83e1ac5e60 | ||
|
|
9590120284 | ||
|
|
edd42aabd1 | ||
|
|
98cd991502 | ||
|
|
ace68da2a7 | ||
|
|
9f7370f76b | ||
|
|
907cd130e0 | ||
|
|
0f1d0ed6c3 | ||
|
|
507ad3f543 | ||
|
|
b0bf5ecda1 | ||
|
|
d31312eb51 | ||
|
|
b4536c9025 | ||
|
|
8d99529b22 | ||
|
|
8f362c040b | ||
|
|
6ecd83f987 | ||
|
|
3e656486c7 | ||
|
|
175a2421dd | ||
|
|
33fa2ffd35 | ||
|
|
2a8110f526 | ||
|
|
df566b9c3e | ||
|
|
e7027dbf3b | ||
|
|
e17dc1f592 | ||
|
|
0c445d4024 | ||
|
|
83edc19c93 | ||
|
|
1d84bd28e0 | ||
|
|
4385285f68 | ||
|
|
de8d45646f | ||
|
|
66cf7f83eb | ||
|
|
b977b44295 | ||
|
|
bfb319b67e | ||
|
|
2ec38321b7 | ||
|
|
d5a91239cc | ||
|
|
32350da288 | ||
|
|
1113005e5c | ||
|
|
763c3a77a6 | ||
|
|
570efe69e5 | ||
|
|
459f7deb93 | ||
|
|
abe82cb47f | ||
|
|
dd68fe6162 | ||
|
|
77f74f0386 | ||
|
|
4134bca13e | ||
|
|
ddcd22357b | ||
|
|
9801624786 | ||
|
|
2d53e53a47 | ||
|
|
06b8db9e26 | ||
|
|
54cc4f8377 | ||
|
|
98529dc291 | ||
|
|
0d53be7890 | ||
|
|
561c6d1d0b | ||
|
|
41b06ccf4e | ||
|
|
e0ac903bce | ||
|
|
fb087b56ec | ||
|
|
06af70802d | ||
|
|
8d4a34c86a | ||
|
|
3cffeee863 | ||
|
|
92c99b2233 | ||
|
|
8f698167eb | ||
|
|
51b5add1be | ||
|
|
2ca151d9bc | ||
|
|
21ef73578a | ||
|
|
ac3c735d97 | ||
|
|
4796b67943 | ||
|
|
312e793fb2 | ||
|
|
ded93848a4 | ||
|
|
f7bfaa5ba1 | ||
|
|
d620123e3e | ||
|
|
baba9e0455 | ||
|
|
bab98b4213 | ||
|
|
8f718995ea | ||
|
|
a4c36f180b | ||
|
|
623ff84a43 | ||
|
|
b8055bcf65 | ||
|
|
9de9f0d0f5 | ||
|
|
e2fc6a74d8 | ||
|
|
7be3938798 | ||
|
|
2a3ade90b7 | ||
|
|
dfd5e46d78 | ||
|
|
49ee19d785 | ||
|
|
329f113d75 | ||
|
|
1a7f34d302 | ||
|
|
b9be105730 | ||
|
|
9487e8b3c8 | ||
|
|
aab9409ad3 | ||
|
|
42a9c1fa69 | ||
|
|
5dab2604d2 | ||
|
|
5c7cdafa10 | ||
|
|
0ff17fbb13 | ||
|
|
2a09f53f6c | ||
|
|
5531d29213 | ||
|
|
2d65cee38e | ||
|
|
770f228174 | ||
|
|
7cbc69c079 | ||
|
|
ed7626241c | ||
|
|
bb72d0b4f8 | ||
|
|
ba85b70364 | ||
|
|
cc4e71d467 | ||
|
|
125238cbd3 | ||
|
|
12d16dc8f1 | ||
|
|
e070878e80 | ||
|
|
0835fce7ab | ||
|
|
1dffffb451 | ||
|
|
4a224815cc | ||
|
|
1f43a4c6d4 | ||
|
|
aa3c87aa7a | ||
|
|
581b258952 | ||
|
|
6ab6f7c46f | ||
|
|
2d711b9782 | ||
|
|
585dda3583 | ||
|
|
7e46856090 | ||
|
|
a61d615440 | ||
|
|
01a61ccca7 | ||
|
|
82c50e2114 | ||
|
|
52314d1989 | ||
|
|
2b43c5279a | ||
|
|
f86238b0af | ||
|
|
f556167c56 | ||
|
|
a30de8a424 | ||
|
|
536a821d82 | ||
|
|
ef81f43730 | ||
|
|
f0f60e0c12 | ||
|
|
0dc680269f | ||
|
|
63d2c66518 | ||
|
|
565158cf7b | ||
|
|
82baa59e32 | ||
|
|
aa5a196961 | ||
|
|
077ff6ad58 | ||
|
|
f836644333 | ||
|
|
b08e2e132b | ||
|
|
4811df6f6c | ||
|
|
e48a933b51 | ||
|
|
16f4a467a6 | ||
|
|
b0890567c7 | ||
|
|
8a6f52a765 | ||
|
|
e315793137 | ||
|
|
7acacbe4ec | ||
|
|
6e2619f040 | ||
|
|
8b5bad1f33 | ||
|
|
7157191669 | ||
|
|
0174370288 | ||
|
|
d874881e13 | ||
|
|
acf287346d | ||
|
|
ff01a89e89 | ||
|
|
da5c4beb51 | ||
|
|
4ba47438b2 | ||
|
|
8e4cc74e86 | ||
|
|
c9c82efe11 | ||
|
|
e4045ce087 | ||
|
|
28cc777600 | ||
|
|
fd5496f166 | ||
|
|
dee3ee67fd | ||
|
|
e8dae6599a | ||
|
|
8352718092 | ||
|
|
1d23c3a45e | ||
|
|
8311326d55 | ||
|
|
f5b5f8fab6 | ||
|
|
eb9244df1d | ||
|
|
1a553180ca | ||
|
|
432cc31ce6 | ||
|
|
1b04b91418 | ||
|
|
05e1d69f94 | ||
|
|
25b9e5b337 | ||
|
|
d4b46893fd | ||
|
|
287203e2a5 | ||
|
|
a0c5a9e3e4 | ||
|
|
72fdb340eb | ||
|
|
034ab2c22e | ||
|
|
dc1d5dfa19 | ||
|
|
9e45aedc7a | ||
|
|
46b56c43f7 | ||
|
|
9bcce5ed82 | ||
|
|
cff4973f35 | ||
|
|
10ce4fd7dd | ||
|
|
c813538422 | ||
|
|
879124bb0a | ||
|
|
d85214677e | ||
|
|
455874293b | ||
|
|
633d8de28c | ||
|
|
c0b3ec8b80 | ||
|
|
cbd2b64e0d | ||
|
|
c8510275bb | ||
|
|
e10f3b1afd | ||
|
|
93bc307640 | ||
|
|
64443475cb | ||
|
|
d137b71024 | ||
|
|
866531259e | ||
|
|
5d269d00f7 | ||
|
|
bfddd8b34e | ||
|
|
97b4d0d6ae | ||
|
|
72ef3f34cf | ||
|
|
b4b5fae8aa | ||
|
|
aecb574b05 | ||
|
|
2db2d4cf2f | ||
|
|
d554f01407 | ||
|
|
19ac34e299 | ||
|
|
0a1336a10f | ||
|
|
cd1fa9e9a7 | ||
|
|
c7ea8166a0 | ||
|
|
ce65f4dd66 | ||
|
|
97e31aaede | ||
|
|
d631131f4d | ||
|
|
851221245c | ||
|
|
03b83c4a0a | ||
|
|
d763717daa | ||
|
|
63756c7a14 | ||
|
|
cca9329a2d | ||
|
|
6a96931c01 | ||
|
|
4ee8483272 | ||
|
|
9d7d5bb283 | ||
|
|
ac785d3d77 | ||
|
|
5cce0ebfd4 | ||
|
|
2b021c5a54 | ||
|
|
79d4753bba | ||
|
|
f62fbd0194 | ||
|
|
a2d12f45ff | ||
|
|
a15092e62b | ||
|
|
ade2c0c568 | ||
|
|
870e78ab3b | ||
|
|
1c24f780e8 | ||
|
|
684a7c67dd | ||
|
|
a845cd2b8b | ||
|
|
851d4c3daf | ||
|
|
b5d0d1acc7 | ||
|
|
608c66ca62 | ||
|
|
f171e0a794 | ||
|
|
a9302966c0 | ||
|
|
c01fc2d795 | ||
|
|
3be1ee92cb | ||
|
|
dbe54da4be | ||
|
|
887dd0f106 | ||
|
|
54cc1df23a | ||
|
|
490a9595dd | ||
|
|
5fe0fdcbeb | ||
|
|
db426aa3fc | ||
|
|
3f9e563dea | ||
|
|
9f7f1f288c | ||
|
|
590bb8f51c | ||
|
|
7a7c12b3df | ||
|
|
3ae45b4beb | ||
|
|
4039ffe0c9 | ||
|
|
d5b1891439 | ||
|
|
8746e903cf | ||
|
|
7abddb240d | ||
|
|
d45ed86f3f | ||
|
|
d8db5739bd | ||
|
|
4a8ceb59aa | ||
|
|
50e76e7d9e | ||
|
|
7014ad133a | ||
|
|
35533e1264 | ||
|
|
772f9c9b56 | ||
|
|
60bcb92cd9 | ||
|
|
e9054e1a05 | ||
|
|
90902f5194 | ||
|
|
e0ad34c472 | ||
|
|
005bbcd20f | ||
|
|
0c42df2337 | ||
|
|
f4b49b5da5 | ||
|
|
8bdfbb49ab | ||
|
|
66902d2ced | ||
|
|
87784c2345 | ||
|
|
5662885d82 | ||
|
|
22b091014d | ||
|
|
bae0ab70f6 | ||
|
|
904e556a97 | ||
|
|
8b8ac0b038 | ||
|
|
66150af636 | ||
|
|
79ebc7c6f1 | ||
|
|
00c2b76b17 | ||
|
|
da1a9518e0 | ||
|
|
a2ed2a701f | ||
|
|
6c936885f1 | ||
|
|
a95a1ecf2b | ||
|
|
43ce5582af | ||
|
|
f32438693c | ||
|
|
de21cfd9c9 | ||
|
|
f682715292 | ||
|
|
3134ab1936 | ||
|
|
088cb72912 | ||
|
|
33d20128cc | ||
|
|
c3c7606edc | ||
|
|
cf9855844b | ||
|
|
b5738c718e | ||
|
|
b4ee24ce0d | ||
|
|
d9550175e8 | ||
|
|
c1e1cf1032 | ||
|
|
7be7026fa9 | ||
|
|
1f88ba0333 | ||
|
|
2146e395e4 | ||
|
|
02d0901163 | ||
|
|
d36a80559a | ||
|
|
3ad56f3704 | ||
|
|
3f8ce2e327 | ||
|
|
668c63f465 | ||
|
|
234082b39e | ||
|
|
4a28561ed6 | ||
|
|
38d14cc791 | ||
|
|
fed49594a5 | ||
|
|
4a191e2b62 | ||
|
|
6b0af0af32 | ||
|
|
78db60aec1 | ||
|
|
d8255e76e3 | ||
|
|
1dfc12c97c | ||
|
|
56c8b72f8d | ||
|
|
831847eee2 | ||
|
|
d41ab3c2c1 | ||
|
|
9450fc2136 | ||
|
|
a24c15daca | ||
|
|
6fced1952b | ||
|
|
693b06a456 | ||
|
|
b0cc96a561 | ||
|
|
d69b9a9fbe | ||
|
|
fb4420cb09 | ||
|
|
c5c6dac1df | ||
|
|
aa4fc03662 | ||
|
|
f15bdb67e2 | ||
|
|
7be2a1680c | ||
|
|
f985c7a676 | ||
|
|
9b18f62299 | ||
|
|
273edf9b74 | ||
|
|
f66bdcfd0f | ||
|
|
e479950912 | ||
|
|
de146a1958 | ||
|
|
a7433351e5 | ||
|
|
c94b2f1c51 | ||
|
|
6cdae0d74a | ||
|
|
1eae2a4c0f | ||
|
|
7c3eb3d316 | ||
|
|
7b8e9ded17 | ||
|
|
ca29ea92af | ||
|
|
e2dfea7c75 | ||
|
|
b85affb3f9 | ||
|
|
c45d8394e2 | ||
|
|
846b701916 | ||
|
|
d8e951ecaa | ||
|
|
dbcfcca259 | ||
|
|
db547427f4 | ||
|
|
e48cb5aee4 | ||
|
|
f15c017174 | ||
|
|
190d0a9bab | ||
|
|
bcbefc0e0b | ||
|
|
bf8c6d8a89 | ||
|
|
e764a3eabb | ||
|
|
98d11ce379 | ||
|
|
e1071374c8 | ||
|
|
aff67498f1 | ||
|
|
3200a16f81 | ||
|
|
4224b45152 | ||
|
|
2d16a1eac2 | ||
|
|
aa77375ae3 | ||
|
|
918adcad05 | ||
|
|
b59cf3bd1e | ||
|
|
686730882a | ||
|
|
a2510495bd | ||
|
|
a6a3197b78 | ||
|
|
cc79542099 | ||
|
|
07ef42de72 | ||
|
|
dd2104a318 | ||
|
|
dc65407672 | ||
|
|
a9d9fbfcc5 | ||
|
|
a05d638407 | ||
|
|
6d0aaa6499 | ||
|
|
d60864a340 | ||
|
|
abd3f9e547 | ||
|
|
3602d9af0c | ||
|
|
23b2306c9c | ||
|
|
04ab8f0347 | ||
|
|
15879b384d | ||
|
|
4f52062f16 | ||
|
|
ace56876d9 | ||
|
|
da414658dc | ||
|
|
82f3d06c32 | ||
|
|
18ca1af906 | ||
|
|
5c38fc52cc | ||
|
|
4e5d3112b5 | ||
|
|
2ff4f0402c | ||
|
|
06927968a9 | ||
|
|
d009778689 | ||
|
|
cbc5fe4ef7 | ||
|
|
5934b048f5 | ||
|
|
220823da6b | ||
|
|
611051f49c | ||
|
|
7ca05ca679 | ||
|
|
d7a9d75dc1 | ||
|
|
b11853caf1 | ||
|
|
264db1d824 | ||
|
|
c73fc7620e | ||
|
|
4fe93a0bf6 | ||
|
|
916f38bad4 | ||
|
|
229f59269e | ||
|
|
ad8da72554 | ||
|
|
4f0c892eea | ||
|
|
ea0aa57dfe | ||
|
|
90ba36aeb2 | ||
|
|
de20c6dc13 | ||
|
|
7286af80f0 | ||
|
|
75ff52aa16 | ||
|
|
b12f417a1a | ||
|
|
151ec16567 | ||
|
|
30ef5b466c | ||
|
|
a14b90885f | ||
|
|
577c110921 | ||
|
|
e7ab1e8eab | ||
|
|
d5fbba280f | ||
|
|
662eb9144b | ||
|
|
35024f0678 | ||
|
|
8fa1ae2499 | ||
|
|
ffc0528605 | ||
|
|
5d26dbede3 | ||
|
|
564a5fe2c7 | ||
|
|
0f827f5bad | ||
|
|
71e9c60631 | ||
|
|
ff060eff6a | ||
|
|
29ed5f01e6 | ||
|
|
c32881ed60 | ||
|
|
5f578c4f8c | ||
|
|
41cfc914bf | ||
|
|
f52199dde9 | ||
|
|
2032c004d9 | ||
|
|
74868302a2 | ||
|
|
a7af4fae42 | ||
|
|
e197d3586f | ||
|
|
b7479c1572 |
No files matched your search
@@ -1,4 +1,4 @@
|
||||
FROM ubuntu:noble@sha256:99c35190e22d294cdace2783ac55effc69d32896daaa265f0bbedbcde4fbe3e5
|
||||
FROM ubuntu:noble@sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ENV ANDROID_HOME=/usr/lib/android-sdk
|
||||
@@ -12,5 +12,9 @@ RUN mkdir -p /usr/lib/android-sdk/cmdline-tools/
|
||||
RUN cd /tmp/ && mv cmdline-tools/ latest/ && mv latest/ /usr/lib/android-sdk/cmdline-tools/
|
||||
RUN mkdir /usr/lib/android-sdk/licenses/
|
||||
RUN chmod -R 755 /usr/lib/android-sdk/
|
||||
RUN mkdir -p $HOME/.gradle
|
||||
RUN echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > $HOME/.gradle/gradle.properties
|
||||
RUN mkdir -p "$HOME/.gradle" && \
|
||||
echo "org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g" > "$HOME/.gradle/gradle.properties" && \
|
||||
echo "org.gradle.caching=true" >> "$HOME/.gradle/gradle.properties" && \
|
||||
echo "org.gradle.parallel=true" >> "$HOME/.gradle/gradle.properties" && \
|
||||
echo "org.gradle.configureondemand=true" >> "$HOME/.gradle/gradle.properties" && \
|
||||
echo "kapt.incremental.apt=true" >> "$HOME/.gradle/gradle.properties"
|
||||
@@ -9,7 +9,7 @@ name: tests-stable
|
||||
|
||||
steps:
|
||||
- name: gplay
|
||||
image: ghcr.io/nextcloud/continuous-integration-android8:3
|
||||
image: ghcr.io/nextcloud/continuous-integration-android8:4
|
||||
privileged: true
|
||||
environment:
|
||||
LOG_USERNAME:
|
||||
@@ -55,7 +55,7 @@ services:
|
||||
- su www-data -c "git clone --depth 1 -b $SERVER_VERSION https://github.com/nextcloud/end_to_end_encryption.git /var/www/html/apps/end_to_end_encryption/"
|
||||
- su www-data -c "php /var/www/html/occ app:enable end_to_end_encryption"
|
||||
- su www-data -c "git clone --depth 1 -b $SERVER_VERSION https://github.com/nextcloud/photos.git /var/www/html/apps/photos/"
|
||||
- su www-data -c "cd /var/www/html/apps/photos; composer install"
|
||||
- su www-data -c "cd /var/www/html/apps/photos; composer install --no-dev"
|
||||
- su www-data -c "php /var/www/html/occ app:enable -f photos"
|
||||
- /usr/local/bin/run.sh
|
||||
|
||||
@@ -113,7 +113,7 @@ services:
|
||||
- su www-data -c "git clone --depth 1 -b master https://github.com/nextcloud/end_to_end_encryption/ /var/www/html/apps/end_to_end_encryption/"
|
||||
- su www-data -c "php /var/www/html/occ app:enable end_to_end_encryption"
|
||||
- su www-data -c "git clone --depth 1 https://github.com/nextcloud/photos.git /var/www/html/apps/photos/"
|
||||
- su www-data -c "cd /var/www/html/apps/photos; composer install"
|
||||
- su www-data -c "cd /var/www/html/apps/photos; composer install --no-dev"
|
||||
- su www-data -c "php /var/www/html/occ app:enable -f photos"
|
||||
- /usr/local/bin/run.sh
|
||||
|
||||
@@ -132,7 +132,7 @@ name: allScreenshots
|
||||
|
||||
steps:
|
||||
- name: runAllScreenshots
|
||||
image: ghcr.io/nextcloud/continuous-integration-android8:3
|
||||
image: ghcr.io/nextcloud/continuous-integration-android8:4
|
||||
privileged: true
|
||||
environment:
|
||||
GIT_USERNAME:
|
||||
@@ -183,6 +183,6 @@ name: GIT_TOKEN
|
||||
data: XIoa9IYq+xQ+N5iln8dlpWv0jV6ROr7HuE24ioUr4uQ8m8SjyH0yognWYLYLqnbTKrFWlFZiEMQTH/sZiWjRFvV1iL0=
|
||||
---
|
||||
kind: signature
|
||||
hmac: a659f1f06a609743077c77b6a07a369e55db67adbd8343fc027ac1c9473d1a43
|
||||
hmac: f0d3fa25f7f901e8b3deacec52db0d5a81f05f7d4f13af27c633ad712ecdbc4d
|
||||
|
||||
...
|
||||
@@ -10,3 +10,4 @@ contact_links:
|
||||
- name: 💼 Nextcloud Enterprise
|
||||
url: https://portal.nextcloud.com/
|
||||
about: If you are a Nextcloud Enterprise customer, or need Professional support, so it can be resolved directly by our dedicated engineers more quickly
|
||||
blank_issues_enabled: false
|
||||
@@ -49,7 +49,7 @@ jobs:
|
||||
repository: ${{ steps.get-vars.outputs.repo }}
|
||||
ref: ${{ steps.get-vars.outputs.branch }}
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
|
||||
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
|
||||
with:
|
||||
distribution: "temurin"
|
||||
java-version: 17
|
||||
@@ -61,5 +61,9 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
mkdir -p "$HOME/.gradle"
|
||||
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties"
|
||||
echo "org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g" > "$HOME/.gradle/gradle.properties"
|
||||
echo "org.gradle.caching=true" >> $HOME/.gradle/gradle.properties
|
||||
echo "org.gradle.parallel=true" >> $HOME/.gradle/gradle.properties
|
||||
echo "org.gradle.configureondemand=true" >> $HOME/.gradle/gradle.properties
|
||||
echo "kapt.incremental.apt=true" >> $HOME/.gradle/gradle.properties
|
||||
scripts/analysis/analysis-wrapper.sh ${{ steps.get-vars.outputs.branch }} ${{ secrets.LOG_USERNAME }} ${{ secrets.LOG_PASSWORD }} "$GITHUB_RUN_NUMBER" ${{ steps.get-vars.outputs.pr }}
|
||||
@@ -24,11 +24,15 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- name: set up JDK 17
|
||||
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
|
||||
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
|
||||
with:
|
||||
distribution: "temurin"
|
||||
java-version: 17
|
||||
- name: Build ${{ matrix.flavor }}
|
||||
run: |
|
||||
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" >> gradle.properties
|
||||
echo "org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g" >> gradle.properties
|
||||
echo "org.gradle.caching=true" >> gradle.properties
|
||||
echo "org.gradle.parallel=true" >> gradle.properties
|
||||
echo "org.gradle.configureondemand=true" >> gradle.properties
|
||||
echo "kapt.incremental.apt=true" >> gradle.properties
|
||||
./gradlew assemble${{ matrix.flavor }}
|
||||
@@ -24,7 +24,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
|
||||
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
|
||||
with:
|
||||
distribution: "temurin"
|
||||
java-version: 17
|
||||
|
||||
@@ -39,11 +39,11 @@ jobs:
|
||||
with:
|
||||
swap-size-gb: 10
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0
|
||||
uses: github/codeql-action/init@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
|
||||
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
|
||||
with:
|
||||
distribution: "temurin"
|
||||
java-version: 17
|
||||
@@ -53,4 +53,4 @@ jobs:
|
||||
echo "org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties"
|
||||
./gradlew assembleDebug
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0
|
||||
uses: github/codeql-action/analyze@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
|
||||
@@ -17,12 +17,12 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
detectWrongSettings:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-24.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
|
||||
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
|
||||
with:
|
||||
distribution: "temurin"
|
||||
java-version: 17
|
||||
|
||||
@@ -20,7 +20,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: The get-github-handles-from-website action
|
||||
uses: marcelklehr/get-github-handles-from-website-action@a739600f6b91da4957f51db0792697afbb2f143c # v1.0.0
|
||||
uses: marcelklehr/get-github-handles-from-website-action@06b2239db0a48fe1484ba0bfd966a3ab81a08308 # v1.0.1
|
||||
id: scrape
|
||||
with:
|
||||
website: 'https://nextcloud.com/team/'
|
||||
|
||||
@@ -26,7 +26,7 @@ jobs:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
|
||||
- name: set up JDK 17
|
||||
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
|
||||
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
|
||||
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
|
||||
with:
|
||||
distribution: "temurin"
|
||||
@@ -41,9 +41,13 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
mkdir -p $HOME/.gradle
|
||||
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > $HOME/.gradle/gradle.properties
|
||||
echo "org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g" > $HOME/.gradle/gradle.properties
|
||||
echo "org.gradle.caching=true" >> $HOME/.gradle/gradle.properties
|
||||
echo "org.gradle.parallel=true" >> $HOME/.gradle/gradle.properties
|
||||
echo "org.gradle.configureondemand=true" >> $HOME/.gradle/gradle.properties
|
||||
echo "kapt.incremental.apt=true" >> $HOME/.gradle/gradle.properties
|
||||
sed -i "/qa/,/\}/ s/versionCode .*/versionCode ${{github.event.number}} /" app/build.gradle
|
||||
sed -i "/qa/,/\}/ s/versionName .*/versionName \"${{github.event.number}}\"/" app/build.gradle
|
||||
./gradlew assembleQaDebug
|
||||
$(find /usr/local/lib/android/sdk/build-tools/*/apksigner | sort | tail -n1) sign --ks-pass pass:$KS_PASS --key-pass pass:$KEY_PASS --ks-key-alias key0 --ks scripts/QA_keystore.jks app/build/outputs/apk/qa/debug/qa-debug-*.apk
|
||||
scripts/uploadArtifact.sh $LOG_USERNAME $LOG_PASSWORD ${{github.event.number}} ${{github.event.number}}
|
||||
scripts/uploadArtifact.sh $LOG_USERNAME $LOG_PASSWORD ${{github.event.number}} ${{github.event.number}} $GITHUB_TOKEN
|
||||
@@ -19,4 +19,4 @@ jobs:
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: REUSE Compliance Check
|
||||
uses: fsfe/reuse-action@3ae3c6bdf1257ab19397fab11fd3312144692083 # v4.0.0
|
||||
uses: fsfe/reuse-action@bb774aa972c2a89ff34781233d275075cbddf542 # v5.0.0
|
||||
@@ -42,6 +42,6 @@ jobs:
|
||||
|
||||
# Upload the results to GitHub's code scanning dashboard.
|
||||
- name: "Upload to code-scanning"
|
||||
uses: github/codeql-action/upload-sarif@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0
|
||||
uses: github/codeql-action/upload-sarif@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
|
||||
with:
|
||||
sarif_file: results.sarif
|
||||
@@ -17,7 +17,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
screenshot:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-24.04
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -28,14 +28,14 @@ jobs:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Gradle cache
|
||||
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
|
||||
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
||||
- name: AVD cache
|
||||
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
|
||||
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
||||
id: avd-cache
|
||||
with:
|
||||
path: |
|
||||
@@ -43,7 +43,7 @@ jobs:
|
||||
~/.android/adb*
|
||||
key: avd-${{ matrix.api-level }}
|
||||
|
||||
- uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
|
||||
- uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
|
||||
with:
|
||||
distribution: "temurin"
|
||||
java-version: 17
|
||||
@@ -69,8 +69,11 @@ jobs:
|
||||
- name: Configure gradle daemon
|
||||
run: |
|
||||
mkdir -p $HOME/.gradle
|
||||
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > $HOME/.gradle/gradle.properties
|
||||
echo "org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g" > $HOME/.gradle/gradle.properties
|
||||
echo "org.gradle.caching=true" >> $HOME/.gradle/gradle.properties
|
||||
echo "org.gradle.parallel=true" >> $HOME/.gradle/gradle.properties
|
||||
echo "org.gradle.configureondemand=true" >> $HOME/.gradle/gradle.properties
|
||||
echo "kapt.incremental.apt=true" >> $HOME/.gradle/gradle.properties
|
||||
|
||||
- name: Build gplay
|
||||
run: ./gradlew assembleGplayDebug
|
||||
@@ -99,7 +102,7 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: scripts/uploadReport.sh "${{ secrets.LOG_USERNAME }}" "${{ secrets.LOG_PASSWORD }}" ${{github.event.number}} "${{ matrix.color }}-${{ matrix.scheme }}" "Screenshot" ${{github.event.number}}
|
||||
- name: Archive Espresso results
|
||||
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
|
||||
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
name: Report-${{ matrix.color }}-${{ matrix.scheme }}
|
||||
|
||||
@@ -23,7 +23,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
|
||||
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
|
||||
with:
|
||||
distribution: "temurin"
|
||||
java-version: 17
|
||||
@@ -42,14 +42,14 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: scripts/uploadReport.sh "${{ secrets.LOG_USERNAME }}" "${{ secrets.LOG_PASSWORD }}" ${{github.event.number}} "test" "Unit" ${{github.event.number}}
|
||||
- name: Upload coverage to codecov
|
||||
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
|
||||
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
flags: unit
|
||||
fail_ci_if_error: true
|
||||
- name: Upload jacoco artifacts
|
||||
if: ${{ failure() }}
|
||||
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
|
||||
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
|
||||
with:
|
||||
name: test-results
|
||||
path: app/build/reports/tests/testGplayDebugUnitTest/
|
||||
@@ -1,3 +1,11 @@
|
||||
## 3.30.7 (January 6, 2025)
|
||||
|
||||
- Fix crash of auto upload settings
|
||||
|
||||
Minimum: NC 16 Server, Android 7.0 Nougat
|
||||
|
||||
For a full list, please see https://github.com/nextcloud/android/milestone/104
|
||||
|
||||
## 3.30.3 (October 22, 2024)
|
||||
|
||||
- Bugfix for two way sync: sync only on wifi
|
||||
|
||||
@@ -198,7 +198,7 @@ Source code of app:
|
||||
XML (layout) file:
|
||||
```xml
|
||||
<!--
|
||||
~ Nextcloud Talk - Android Client
|
||||
~ Nextcloud - Android Client
|
||||
~
|
||||
~ SPDX-FileCopyrightText: 2024 Your name <your@email.com>
|
||||
~ SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
|
||||
|
||||
@@ -10,16 +10,16 @@ GEM
|
||||
artifactory (3.0.17)
|
||||
atomos (0.1.3)
|
||||
aws-eventstream (1.3.0)
|
||||
aws-partitions (1.992.0)
|
||||
aws-sdk-core (3.211.0)
|
||||
aws-partitions (1.1021.0)
|
||||
aws-sdk-core (3.214.0)
|
||||
aws-eventstream (~> 1, >= 1.3.0)
|
||||
aws-partitions (~> 1, >= 1.992.0)
|
||||
aws-sigv4 (~> 1.9)
|
||||
jmespath (~> 1, >= 1.6.1)
|
||||
aws-sdk-kms (1.95.0)
|
||||
aws-sdk-kms (1.96.0)
|
||||
aws-sdk-core (~> 3, >= 3.210.0)
|
||||
aws-sigv4 (~> 1.5)
|
||||
aws-sdk-s3 (1.169.0)
|
||||
aws-sdk-s3 (1.176.0)
|
||||
aws-sdk-core (~> 3, >= 3.210.0)
|
||||
aws-sdk-kms (~> 1)
|
||||
aws-sigv4 (~> 1.5)
|
||||
@@ -69,7 +69,7 @@ GEM
|
||||
faraday_middleware (1.2.1)
|
||||
faraday (~> 1.0)
|
||||
fastimage (2.3.1)
|
||||
fastlane (2.225.0)
|
||||
fastlane (2.226.0)
|
||||
CFPropertyList (>= 2.3, < 4.0.0)
|
||||
addressable (>= 2.8, < 3.0.0)
|
||||
artifactory (~> 3.0)
|
||||
@@ -109,9 +109,9 @@ GEM
|
||||
tty-spinner (>= 0.8.0, < 1.0.0)
|
||||
word_wrap (~> 1.0.0)
|
||||
xcodeproj (>= 1.13.0, < 2.0.0)
|
||||
xcpretty (~> 0.3.0)
|
||||
xcpretty (~> 0.4.0)
|
||||
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
|
||||
fastlane-plugin-huawei_appgallery_connect (1.0.30)
|
||||
fastlane-plugin-huawei_appgallery_connect (1.0.31)
|
||||
cgi
|
||||
fastlane-sirp (1.0.0)
|
||||
sysrandom (~> 1.0)
|
||||
@@ -153,32 +153,32 @@ GEM
|
||||
os (>= 0.9, < 2.0)
|
||||
signet (>= 0.16, < 2.a)
|
||||
highline (2.0.3)
|
||||
http-cookie (1.0.7)
|
||||
http-cookie (1.0.8)
|
||||
domain_name (~> 0.5)
|
||||
httpclient (2.8.3)
|
||||
jmespath (1.6.2)
|
||||
json (2.7.2)
|
||||
json (2.9.0)
|
||||
jwt (2.9.3)
|
||||
base64
|
||||
mini_magick (4.13.2)
|
||||
mini_mime (1.1.5)
|
||||
multi_json (1.15.0)
|
||||
multipart-post (2.4.1)
|
||||
nanaimo (0.3.0)
|
||||
nanaimo (0.4.0)
|
||||
naturally (2.2.1)
|
||||
nkf (0.2.0)
|
||||
optparse (0.5.0)
|
||||
optparse (0.6.0)
|
||||
os (1.1.4)
|
||||
plist (3.7.1)
|
||||
public_suffix (5.1.1)
|
||||
public_suffix (6.0.1)
|
||||
rake (13.2.1)
|
||||
representable (3.2.0)
|
||||
declarative (< 0.1.0)
|
||||
trailblazer-option (>= 0.1.1, < 0.2.0)
|
||||
uber (< 0.2.0)
|
||||
retriable (3.1.2)
|
||||
rexml (3.3.8)
|
||||
rouge (2.0.7)
|
||||
rexml (3.3.9)
|
||||
rouge (3.28.0)
|
||||
ruby2_keywords (0.0.5)
|
||||
rubyzip (2.3.2)
|
||||
security (0.1.5)
|
||||
@@ -202,15 +202,15 @@ GEM
|
||||
uber (0.1.0)
|
||||
unicode-display_width (2.6.0)
|
||||
word_wrap (1.0.0)
|
||||
xcodeproj (1.25.1)
|
||||
xcodeproj (1.27.0)
|
||||
CFPropertyList (>= 2.3.3, < 4.0)
|
||||
atomos (~> 0.1.3)
|
||||
claide (>= 1.0.2, < 2.0)
|
||||
colored2 (~> 3.1)
|
||||
nanaimo (~> 0.3.0)
|
||||
nanaimo (~> 0.4.0)
|
||||
rexml (>= 3.3.6, < 4.0)
|
||||
xcpretty (0.3.0)
|
||||
rouge (~> 2.0.7)
|
||||
xcpretty (0.4.0)
|
||||
rouge (~> 3.28.0)
|
||||
xcpretty-travis-formatter (1.0.1)
|
||||
xcpretty (~> 0.2, >= 0.0.7)
|
||||
|
||||
|
||||
@@ -13,6 +13,15 @@ height="80">](https://play.google.com/store/apps/details?id=com.nextcloud.client
|
||||
alt="Get it on F-Droid"
|
||||
height="80">](https://f-droid.org/packages/com.nextcloud.client/)
|
||||
|
||||
Signing certificate fingerprint to [verify](https://developer.android.com/studio/command-line/apksigner#usage-verify) the APK:
|
||||
- APK with "gplay" name, found [here](https://github.com/nextcloud/android/releases) or distributed via Google Play Store
|
||||
- APK with "nextcloud", found [here](https://github.com/nextcloud/android/releases)
|
||||
- not suitable for Fdroid downloads, as Fdroid is signing it on their own
|
||||
```
|
||||
SHA-256: fb009522f65e25802261b67b10a45fd70e610031976f40b28a649e152ded0373
|
||||
SHA-1: 74aa1702e714941be481e1f7ce4a8f779c19dcea
|
||||
```
|
||||
|
||||
**The Android client for [Nextcloud](https://nextcloud.com). Easily work with your data on your Nextcloud.**
|
||||
|
||||

|
||||
|
||||
@@ -16,7 +16,7 @@ import org.gradle.internal.jvm.Jvm
|
||||
buildscript {
|
||||
dependencies {
|
||||
classpath "com.android.tools.build:gradle:$androidPluginVersion"
|
||||
classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:6.0.25'
|
||||
classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:6.0.27'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.7"
|
||||
classpath "commons-httpclient:commons-httpclient:3.1@jar" // remove after entire switch to lib v2
|
||||
@@ -28,10 +28,10 @@ buildscript {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id "org.jetbrains.kotlin.plugin.compose" version "2.0.21"
|
||||
id "org.jetbrains.kotlin.plugin.compose" version "2.1.0"
|
||||
id "com.diffplug.spotless" version "6.25.0"
|
||||
id "org.jetbrains.kotlin.kapt" version "2.0.21"
|
||||
id 'com.google.devtools.ksp' version '2.0.21-1.0.26' apply false
|
||||
id "org.jetbrains.kotlin.kapt" version "2.1.0"
|
||||
id 'com.google.devtools.ksp' version '2.1.0-1.0.29' apply false
|
||||
}
|
||||
|
||||
apply plugin: 'com.android.application'
|
||||
@@ -106,8 +106,8 @@ android {
|
||||
defaultConfig {
|
||||
applicationId "com.nextcloud.client"
|
||||
minSdkVersion 24
|
||||
targetSdkVersion 34
|
||||
compileSdk 34
|
||||
targetSdkVersion 35
|
||||
compileSdk 35
|
||||
|
||||
buildConfigField 'boolean', 'CI', ciBuild.toString()
|
||||
buildConfigField 'boolean', 'RUNTIME_PERF_ANALYSIS', perfAnalysis.toString()
|
||||
@@ -147,6 +147,7 @@ android {
|
||||
buildTypes {
|
||||
debug {
|
||||
testCoverageEnabled(project.hasProperty('coverage'))
|
||||
resConfigs "xxxhdpi"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -186,7 +187,6 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
testOptions {
|
||||
unitTests.returnDefaultValues = true
|
||||
animationsDisabled true
|
||||
@@ -261,6 +261,10 @@ android {
|
||||
// Adds exported schema location as test app assets.
|
||||
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
|
||||
}
|
||||
|
||||
kapt {
|
||||
useBuildCache true
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -269,7 +273,7 @@ dependencies {
|
||||
}
|
||||
|
||||
// Jetpack Compose
|
||||
implementation(platform("androidx.compose:compose-bom:2024.10.00"))
|
||||
implementation(platform("androidx.compose:compose-bom:2024.12.01"))
|
||||
implementation("androidx.compose.ui:ui")
|
||||
implementation("androidx.compose.ui:ui-graphics")
|
||||
implementation("androidx.compose.material3:material3")
|
||||
@@ -280,7 +284,7 @@ dependencies {
|
||||
// remove after entire switch to lib v2
|
||||
implementation "commons-httpclient:commons-httpclient:3.1@jar" // remove after entire switch to lib v2
|
||||
implementation 'org.apache.jackrabbit:jackrabbit-webdav:2.13.5' // remove after entire switch to lib v2
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
|
||||
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
||||
implementation 'com.google.android.material:material:1.12.0'
|
||||
implementation 'com.jakewharton:disklrucache:2.0.2'
|
||||
@@ -288,18 +292,18 @@ dependencies {
|
||||
implementation 'androidx.webkit:webkit:1.12.1'
|
||||
implementation 'androidx.cardview:cardview:1.0.0'
|
||||
implementation 'androidx.exifinterface:exifinterface:1.3.7'
|
||||
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.6"
|
||||
implementation "androidx.lifecycle:lifecycle-service:2.8.6"
|
||||
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7"
|
||||
implementation "androidx.lifecycle:lifecycle-service:2.8.7"
|
||||
implementation "androidx.work:work-runtime:$workRuntime"
|
||||
implementation "androidx.work:work-runtime-ktx:$workRuntime"
|
||||
implementation "androidx.fragment:fragment-ktx:1.8.4"
|
||||
implementation "androidx.fragment:fragment-ktx:1.8.5"
|
||||
implementation 'com.github.albfernandez:juniversalchardet:2.0.3' // need this version for Android <7
|
||||
compileOnly 'com.google.code.findbugs:annotations:3.0.1u2'
|
||||
implementation 'commons-io:commons-io:2.17.0'
|
||||
implementation 'commons-io:commons-io:2.18.0'
|
||||
implementation 'org.greenrobot:eventbus:3.3.1'
|
||||
implementation 'com.googlecode.ez-vcard:ez-vcard:0.12.1'
|
||||
implementation 'org.lukhnos:nnio:0.3.1'
|
||||
implementation 'org.bouncycastle:bcpkix-jdk18on:1.78.1'
|
||||
implementation 'org.bouncycastle:bcpkix-jdk18on:1.79'
|
||||
implementation 'com.google.code.gson:gson:2.11.0'
|
||||
implementation 'com.github.nextcloud-deps:sectioned-recyclerview:0.6.1'
|
||||
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
|
||||
@@ -310,9 +314,9 @@ dependencies {
|
||||
exclude group: "com.android.support"
|
||||
}
|
||||
implementation 'com.caverock:androidsvg:1.4'
|
||||
implementation 'androidx.annotation:annotation:1.9.0'
|
||||
implementation 'androidx.annotation:annotation:1.9.1'
|
||||
implementation 'com.vanniktech:emoji-google:0.21.0'
|
||||
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.6")
|
||||
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
|
||||
|
||||
// document scanner not available on FDroid (generic) due to OpenCV binaries
|
||||
gplayImplementation project(':appscan')
|
||||
@@ -320,7 +324,7 @@ dependencies {
|
||||
qaImplementation project(':appscan')
|
||||
|
||||
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.13.0'
|
||||
spotbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.6.5'
|
||||
spotbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.6.8'
|
||||
|
||||
implementation "com.google.dagger:dagger:$daggerVersion"
|
||||
implementation "com.google.dagger:dagger-android:$daggerVersion"
|
||||
@@ -412,11 +416,11 @@ dependencies {
|
||||
implementation "com.github.stateless4j:stateless4j:2.6.0"
|
||||
|
||||
// upon each update first test: new registration, receive push
|
||||
gplayImplementation "com.google.firebase:firebase-messaging:24.0.2"
|
||||
gplayImplementation "com.google.firebase:firebase-messaging:24.1.0"
|
||||
gplayImplementation 'com.google.android.gms:play-services-base:18.5.0'
|
||||
gplayImplementation 'com.google.android.play:review-ktx:2.0.2'
|
||||
|
||||
implementation 'com.github.nextcloud.android-common:ui:0.17.0'
|
||||
implementation 'com.github.nextcloud.android-common:ui:0.24.0'
|
||||
|
||||
implementation "androidx.room:room-runtime:$roomVersion"
|
||||
ksp "androidx.room:room-compiler:$roomVersion"
|
||||
@@ -468,7 +472,7 @@ if (shotTest) {
|
||||
showOnlyFailingTestsInReports = ciBuild
|
||||
// CI environment renders some shadows slightly different from local VMs
|
||||
// Add a 0.5% tolerance to account for that
|
||||
tolerance = ciBuild ? 0.5 : 0
|
||||
tolerance = ciBuild ? 0.1 : 0
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~ Nextcloud Talk - Android Client
|
||||
~ Nextcloud - Android Client
|
||||
~
|
||||
~ SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
~ SPDX-FileCopyrightText: 2022 Andy Scherzinger <info@andy-scherzinger.de>
|
||||
@@ -26,14 +26,21 @@
|
||||
<ignore path="**/raw/encryption_key_words.txt" />
|
||||
</issue>
|
||||
|
||||
<issue id="ImpliedQuantity">
|
||||
<ignore path="**/values-**/strings.xml" />
|
||||
</issue>
|
||||
|
||||
<issue id="MissingQuantity">
|
||||
<ignore path="**/values-ka-rGE/strings.xml"/>
|
||||
<ignore path="**/values-ar/strings.xml" />
|
||||
<ignore path="**/values-**/strings.xml" />
|
||||
</issue>
|
||||
|
||||
<issue id="UnusedQuantity">
|
||||
<ignore path="**/values-**/strings.xml" />
|
||||
</issue>
|
||||
|
||||
<issue id="StringFormatCount">
|
||||
<ignore path="**/values-**/strings.xml" />
|
||||
</issue>
|
||||
|
||||
<issue id="ExtraTranslation">
|
||||
<ignore path="**/strings.xml"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 9.2 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 20 KiB |
@@ -155,43 +155,43 @@ class FileDisplayActivityIT : AbstractOnServerIT() {
|
||||
Assert.assertEquals(storageManager.getFileByPath("/"), sut.currentDir)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun checkToolbarTitleOnNavigation() {
|
||||
// Create folder structure
|
||||
val topFolder = "folder1"
|
||||
val childFolder = "folder2"
|
||||
|
||||
CreateFolderOperation("/$topFolder/", user, targetContext, storageManager)
|
||||
.execute(client)
|
||||
|
||||
CreateFolderOperation("/$topFolder/$childFolder/", user, targetContext, storageManager)
|
||||
.execute(client)
|
||||
|
||||
activityRule.launchActivity(null)
|
||||
|
||||
shortSleep()
|
||||
|
||||
// go into "foo"
|
||||
onView(withText(topFolder)).perform(click())
|
||||
shortSleep()
|
||||
|
||||
// check title is right
|
||||
checkToolbarTitle(topFolder)
|
||||
|
||||
// go into "bar"
|
||||
onView(withText(childFolder)).perform(click())
|
||||
shortSleep()
|
||||
|
||||
// check title is right
|
||||
checkToolbarTitle(childFolder)
|
||||
|
||||
// browse back up, we should be back in "foo"
|
||||
Espresso.pressBack()
|
||||
shortSleep()
|
||||
|
||||
// check title is right
|
||||
checkToolbarTitle(topFolder)
|
||||
}
|
||||
// @Test
|
||||
// fun checkToolbarTitleOnNavigation() {
|
||||
// // Create folder structure
|
||||
// val topFolder = "folder1"
|
||||
// val childFolder = "folder2"
|
||||
//
|
||||
// CreateFolderOperation("/$topFolder/", user, targetContext, storageManager)
|
||||
// .execute(client)
|
||||
//
|
||||
// CreateFolderOperation("/$topFolder/$childFolder/", user, targetContext, storageManager)
|
||||
// .execute(client)
|
||||
//
|
||||
// activityRule.launchActivity(null)
|
||||
//
|
||||
// shortSleep()
|
||||
//
|
||||
// // go into "foo"
|
||||
// onView(withText(topFolder)).perform(click())
|
||||
// shortSleep()
|
||||
//
|
||||
// // check title is right
|
||||
// checkToolbarTitle(topFolder)
|
||||
//
|
||||
// // go into "bar"
|
||||
// onView(withText(childFolder)).perform(click())
|
||||
// shortSleep()
|
||||
//
|
||||
// // check title is right
|
||||
// checkToolbarTitle(childFolder)
|
||||
//
|
||||
// // browse back up, we should be back in "foo"
|
||||
// Espresso.pressBack()
|
||||
// shortSleep()
|
||||
//
|
||||
// // check title is right
|
||||
// checkToolbarTitle(topFolder)
|
||||
// }
|
||||
|
||||
private fun checkToolbarTitle(childFolder: String) {
|
||||
onView(withId(R.id.appbar)).check(
|
||||
@@ -234,7 +234,6 @@ class FileDisplayActivityIT : AbstractOnServerIT() {
|
||||
)
|
||||
)
|
||||
shortSleep()
|
||||
shortSleep()
|
||||
checkToolbarTitle(topFolder)
|
||||
// sort button should now be visible
|
||||
onView(withId(R.id.sort_button)).check(matches(ViewMatchers.isDisplayed()))
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
*/
|
||||
package com.nextcloud.client;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Looper;
|
||||
|
||||
import com.nextcloud.client.preferences.SubFolderRule;
|
||||
import com.owncloud.android.AbstractIT;
|
||||
@@ -25,6 +25,7 @@ import org.junit.Test;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
import androidx.test.espresso.intent.rule.IntentsTestRule;
|
||||
|
||||
import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentation;
|
||||
@@ -78,4 +79,24 @@ public class SyncedFoldersActivityIT extends AbstractIT {
|
||||
|
||||
screenshot(Objects.requireNonNull(sut.requireDialog().getWindow()).getDecorView());
|
||||
}
|
||||
|
||||
@Test
|
||||
@ScreenshotTest
|
||||
public void showPowerCheckDialog() {
|
||||
if (Looper.myLooper() == null) {
|
||||
Looper.prepare();
|
||||
}
|
||||
|
||||
Intent intent = new Intent(targetContext, SyncedFoldersActivity.class);
|
||||
SyncedFoldersActivity activity = activityRule.launchActivity(intent);
|
||||
|
||||
AlertDialog sut = activity.buildPowerCheckDialog();
|
||||
|
||||
activity.runOnUiThread(sut::show);
|
||||
|
||||
getInstrumentation().waitForIdleSync();
|
||||
shortSleep();
|
||||
|
||||
screenshot(Objects.requireNonNull(sut.getWindow()).getDecorView());
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,7 @@ package com.nextcloud.client.assistant
|
||||
|
||||
import com.nextcloud.client.assistant.repository.AssistantRepository
|
||||
import com.owncloud.android.AbstractOnServerIT
|
||||
import com.owncloud.android.lib.resources.assistant.v2.model.TaskTypeData
|
||||
import com.owncloud.android.lib.resources.status.NextcloudVersion
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Before
|
||||
@@ -21,7 +22,7 @@ class AssistantRepositoryTests : AbstractOnServerIT() {
|
||||
|
||||
@Before
|
||||
fun setup() {
|
||||
sut = AssistantRepository(nextcloudClient)
|
||||
sut = AssistantRepository(nextcloudClient, capability)
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -33,10 +34,7 @@ class AssistantRepositoryTests : AbstractOnServerIT() {
|
||||
}
|
||||
|
||||
val result = sut?.getTaskTypes()
|
||||
assertTrue(result?.isSuccess == true)
|
||||
|
||||
val taskTypes = result?.resultData?.types
|
||||
assertTrue(taskTypes?.isNotEmpty() == true)
|
||||
assertTrue(result?.isNotEmpty() == true)
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -48,10 +46,7 @@ class AssistantRepositoryTests : AbstractOnServerIT() {
|
||||
}
|
||||
|
||||
val result = sut?.getTaskList("assistant")
|
||||
assertTrue(result?.isSuccess == true)
|
||||
|
||||
val taskList = result?.resultData?.tasks
|
||||
assertTrue(taskList?.isEmpty() == true || (taskList?.size ?: 0) > 0)
|
||||
assertTrue(result?.isEmpty() == true || (result?.size ?: 0) > 0)
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -63,8 +58,14 @@ class AssistantRepositoryTests : AbstractOnServerIT() {
|
||||
}
|
||||
|
||||
val input = "Give me some random output for test purpose"
|
||||
val type = "OCP\\TextProcessing\\FreePromptTaskType"
|
||||
val result = sut?.createTask(input, type)
|
||||
val taskType = TaskTypeData(
|
||||
"core:text2text",
|
||||
"Free text to text prompt",
|
||||
"Runs an arbitrary prompt through a language model that returns a reply",
|
||||
null,
|
||||
null
|
||||
)
|
||||
val result = sut?.createTask(input, taskType)
|
||||
assertTrue(result?.isSuccess == true)
|
||||
}
|
||||
|
||||
@@ -80,13 +81,11 @@ class AssistantRepositoryTests : AbstractOnServerIT() {
|
||||
|
||||
sleep(120)
|
||||
|
||||
val resultOfTaskList = sut?.getTaskList("assistant")
|
||||
assertTrue(resultOfTaskList?.isSuccess == true)
|
||||
val taskList = sut?.getTaskList("assistant")
|
||||
assertTrue(taskList != null)
|
||||
|
||||
sleep(120)
|
||||
|
||||
val taskList = resultOfTaskList?.resultData?.tasks
|
||||
|
||||
assert((taskList?.size ?: 0) > 0)
|
||||
|
||||
val result = sut?.deleteTask(taskList!!.first().id)
|
||||
|
||||
@@ -1,86 +0,0 @@
|
||||
/*
|
||||
* Nextcloud - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2024 Alper Ozturk <[email protected]>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
package com.nextcloud.utils
|
||||
|
||||
import android.os.Bundle
|
||||
import com.owncloud.android.AbstractIT
|
||||
import com.owncloud.android.lib.common.OwnCloudClientManagerFactory
|
||||
import com.owncloud.android.utils.appConfig.AppConfigKeys
|
||||
import com.owncloud.android.utils.appConfig.AppConfigManager
|
||||
import org.junit.AfterClass
|
||||
import org.junit.Test
|
||||
|
||||
class AppConfigManagerTests : AbstractIT() {
|
||||
|
||||
private val testBaseUrl = "nextcloud.cloud.cloud"
|
||||
private val testProxyHost = "nextcloud.cloud.cloud.com"
|
||||
|
||||
@Suppress("MagicNumber")
|
||||
private val testProxyPort = 8800
|
||||
|
||||
@Test
|
||||
fun testSetProxyConfigWhenGivenClientBrandedPlusAndCorrectBundleDataProxyConfigurationShouldSet() {
|
||||
val proxySetting = Bundle().apply {
|
||||
putString(AppConfigKeys.ProxyHost.key, testProxyHost)
|
||||
putInt(AppConfigKeys.ProxyPort.key, testProxyPort)
|
||||
}
|
||||
|
||||
AppConfigManager(targetContext, proxySetting).run {
|
||||
setProxyConfig(true)
|
||||
}
|
||||
|
||||
val proxyHost = OwnCloudClientManagerFactory.getProxyHost()
|
||||
val proxyPort = OwnCloudClientManagerFactory.getProxyPort()
|
||||
|
||||
assert(proxyHost.equals(testProxyHost))
|
||||
assert(proxyPort == testProxyPort)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testSetProxyConfigWhenGivenClientNotBrandedPlusAndCorrectBundleDataProxyConfigurationShouldNotSet() {
|
||||
val proxySetting = Bundle().apply {
|
||||
putString(AppConfigKeys.ProxyHost.key, testProxyHost)
|
||||
putInt(AppConfigKeys.ProxyPort.key, testProxyPort)
|
||||
}
|
||||
|
||||
AppConfigManager(targetContext, proxySetting).run {
|
||||
setProxyConfig(false)
|
||||
}
|
||||
|
||||
val proxyHost = OwnCloudClientManagerFactory.getProxyHost()
|
||||
val proxyPort = OwnCloudClientManagerFactory.getProxyPort()
|
||||
|
||||
assert(proxyHost.equals(""))
|
||||
assert(proxyPort == -1)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testGetBaseUrlConfigWhenGivenClientBrandedPlusAndCorrectBundleDataBaseUrlConfigurationShouldSet() {
|
||||
val baseUrlConfig = Bundle().apply {
|
||||
putString(AppConfigKeys.BaseUrl.key, testBaseUrl)
|
||||
}
|
||||
val sut = AppConfigManager(targetContext, baseUrlConfig)
|
||||
assert(!sut.getBaseUrl(true).isNullOrEmpty())
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testGetBaseUrlConfigWhenGivenClientBrandedPlusAndBrokenBundleDataBaseUrlConfigurationShouldNotSet() {
|
||||
val baseUrlConfig = Bundle()
|
||||
val sut = AppConfigManager(targetContext, baseUrlConfig)
|
||||
assert(sut.getBaseUrl(true).isNullOrEmpty())
|
||||
}
|
||||
|
||||
companion object {
|
||||
@JvmStatic
|
||||
@AfterClass
|
||||
fun tearDown() {
|
||||
OwnCloudClientManagerFactory.setProxyHost("")
|
||||
OwnCloudClientManagerFactory.setProxyPort(-1)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -167,4 +167,12 @@ class AutoRenameTests : AbstractOnServerIT() {
|
||||
val expectedFolderName = "/COm02/2569.webp"
|
||||
assert(result == expectedFolderName) { "Expected $expectedFolderName but got $result" }
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testValidFilename() {
|
||||
val filename = ".file.TXT"
|
||||
val result = AutoRename.rename(filename, capability)
|
||||
val expectedFilename = "_file.txt"
|
||||
assert(result == expectedFilename) { "Expected $expectedFilename but got $result" }
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,6 @@ import android.content.res.Configuration;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.NetworkOnMainThreadException;
|
||||
import android.text.TextUtils;
|
||||
import android.view.View;
|
||||
|
||||
@@ -183,7 +182,7 @@ public abstract class AbstractIT {
|
||||
String darkModeParameter = arguments.getString("DARKMODE");
|
||||
|
||||
if (darkModeParameter != null) {
|
||||
if (darkModeParameter.equalsIgnoreCase("dark")) {
|
||||
if ("dark".equalsIgnoreCase(darkModeParameter)) {
|
||||
DARK_MODE = "dark";
|
||||
AppPreferencesImpl.fromContext(targetContext).setDarkThemeMode(DarkMode.DARK);
|
||||
MainApp.setAppTheme(DarkMode.DARK);
|
||||
@@ -192,7 +191,7 @@ public abstract class AbstractIT {
|
||||
}
|
||||
}
|
||||
|
||||
if (DARK_MODE.equalsIgnoreCase("light") && COLOR.equalsIgnoreCase("blue")) {
|
||||
if ("light".equalsIgnoreCase(DARK_MODE) && "blue".equalsIgnoreCase(COLOR)) {
|
||||
// use already existing names
|
||||
DARK_MODE = "";
|
||||
COLOR = "";
|
||||
@@ -469,6 +468,12 @@ public abstract class AbstractIT {
|
||||
}
|
||||
}
|
||||
|
||||
protected void screenshotViaName(View view, String name) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {
|
||||
Screenshot.snap(view).setName(name).record();
|
||||
}
|
||||
}
|
||||
|
||||
protected void screenshot(View view, String prefix) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {
|
||||
Screenshot.snap(view).setName(createName(prefix)).record();
|
||||
|
||||
@@ -106,7 +106,8 @@ public class FileIT extends AbstractOnServerIT {
|
||||
assertTrue(new SynchronizeFolderOperation(targetContext,
|
||||
folderPath,
|
||||
user,
|
||||
fileDataStorageManager)
|
||||
fileDataStorageManager,
|
||||
false)
|
||||
.execute(targetContext)
|
||||
.isSuccess());
|
||||
|
||||
|
||||
@@ -515,7 +515,7 @@ public class UploadIT extends AbstractOnServerIT {
|
||||
|
||||
OCFile ocFile = null;
|
||||
for (OCFile f : files) {
|
||||
if (f.getFileName().equals("metadata.jpg")) {
|
||||
if ("metadata.jpg".equals(f.getFileName())) {
|
||||
ocFile = f;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -134,11 +134,26 @@ class UploadFilesActivityIT : AbstractIT() {
|
||||
}
|
||||
}
|
||||
|
||||
fun fileSelected() {
|
||||
@Test
|
||||
@ScreenshotTest
|
||||
fun selectAll() {
|
||||
val sut: UploadFilesActivity = activityRule.launchActivity(null)
|
||||
|
||||
// TODO select one
|
||||
sut.runOnUiThread {
|
||||
sut.fileListFragment.setFiles(
|
||||
listOf(
|
||||
File("1.txt"),
|
||||
File("2.pdf"),
|
||||
File("3.mp3")
|
||||
)
|
||||
)
|
||||
|
||||
screenshot(sut)
|
||||
sut.fileListFragment.selectAllFiles(true)
|
||||
}
|
||||
|
||||
onIdleSync {
|
||||
val screenShotName = createName(testClassName + "_" + "selectAll", "")
|
||||
screenshotViaName(sut.fileListFragment.binding.listRoot, screenShotName)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,94 +7,154 @@
|
||||
package com.owncloud.android.ui.fragment
|
||||
|
||||
import android.Manifest
|
||||
import androidx.test.espresso.intent.rule.IntentsTestRule
|
||||
import androidx.test.core.app.launchActivity
|
||||
import androidx.test.espresso.Espresso.onView
|
||||
import androidx.test.espresso.IdlingRegistry
|
||||
import androidx.test.espresso.assertion.ViewAssertions.matches
|
||||
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
|
||||
import androidx.test.espresso.matcher.ViewMatchers.isRoot
|
||||
import androidx.test.rule.GrantPermissionRule
|
||||
import com.owncloud.android.AbstractIT
|
||||
import com.owncloud.android.R
|
||||
import com.owncloud.android.datamodel.OCFile
|
||||
import com.owncloud.android.ui.activity.ContactsPreferenceActivity
|
||||
import com.owncloud.android.ui.fragment.contactsbackup.BackupListFragment
|
||||
import com.owncloud.android.utils.EspressoIdlingResource
|
||||
import com.owncloud.android.utils.ScreenshotTest
|
||||
import org.junit.After
|
||||
import org.junit.Before
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
|
||||
class BackupListFragmentIT : AbstractIT() {
|
||||
@get:Rule
|
||||
val testActivityRule = IntentsTestRule(ContactsPreferenceActivity::class.java, true, false)
|
||||
|
||||
@get:Rule
|
||||
val permissionRule: GrantPermissionRule = GrantPermissionRule.grant(Manifest.permission.READ_CALENDAR)
|
||||
|
||||
private val testClassName = "com.owncloud.android.ui.fragment.BackupListFragmentIT"
|
||||
|
||||
@Before
|
||||
fun registerIdlingResource() {
|
||||
IdlingRegistry.getInstance().register(EspressoIdlingResource.countingIdlingResource)
|
||||
}
|
||||
|
||||
@After
|
||||
fun unregisterIdlingResource() {
|
||||
IdlingRegistry.getInstance().unregister(EspressoIdlingResource.countingIdlingResource)
|
||||
}
|
||||
|
||||
@Test
|
||||
@ScreenshotTest
|
||||
fun showLoading() {
|
||||
val sut = testActivityRule.launchActivity(null)
|
||||
val file = OCFile("/")
|
||||
val transaction = sut.supportFragmentManager.beginTransaction()
|
||||
launchActivity<ContactsPreferenceActivity>().use { scenario ->
|
||||
scenario.onActivity { sut ->
|
||||
val file = OCFile("/")
|
||||
val transaction = sut.supportFragmentManager.beginTransaction()
|
||||
|
||||
transaction.replace(R.id.frame_container, BackupListFragment.newInstance(file, user))
|
||||
transaction.commit()
|
||||
onIdleSync {
|
||||
EspressoIdlingResource.increment()
|
||||
|
||||
waitForIdleSync()
|
||||
screenshot(sut)
|
||||
transaction.replace(R.id.frame_container, BackupListFragment.newInstance(file, user))
|
||||
transaction.commit()
|
||||
|
||||
EspressoIdlingResource.decrement()
|
||||
|
||||
val screenShotName = createName(testClassName + "_" + "showLoading", "")
|
||||
onView(isRoot()).check(matches(isDisplayed()))
|
||||
screenshotViaName(sut, screenShotName)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
@ScreenshotTest
|
||||
fun showContactList() {
|
||||
val sut = testActivityRule.launchActivity(null)
|
||||
val transaction = sut.supportFragmentManager.beginTransaction()
|
||||
val file = getFile("vcard.vcf")
|
||||
val ocFile = OCFile("/vcard.vcf")
|
||||
ocFile.storagePath = file.absolutePath
|
||||
ocFile.mimeType = "text/vcard"
|
||||
launchActivity<ContactsPreferenceActivity>().use { scenario ->
|
||||
scenario.onActivity { sut ->
|
||||
val transaction = sut.supportFragmentManager.beginTransaction()
|
||||
val file = getFile("vcard.vcf")
|
||||
val ocFile = OCFile("/vcard.vcf").apply {
|
||||
storagePath = file.absolutePath
|
||||
mimeType = "text/vcard"
|
||||
}
|
||||
|
||||
transaction.replace(R.id.frame_container, BackupListFragment.newInstance(ocFile, user))
|
||||
transaction.commit()
|
||||
onIdleSync {
|
||||
EspressoIdlingResource.increment()
|
||||
|
||||
waitForIdleSync()
|
||||
shortSleep()
|
||||
screenshot(sut)
|
||||
transaction.replace(R.id.frame_container, BackupListFragment.newInstance(ocFile, user))
|
||||
transaction.commit()
|
||||
|
||||
EspressoIdlingResource.decrement()
|
||||
|
||||
val screenShotName = createName(testClassName + "_" + "showContactList", "")
|
||||
onView(isRoot()).check(matches(isDisplayed()))
|
||||
screenshotViaName(sut, screenShotName)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
@ScreenshotTest
|
||||
fun showCalendarList() {
|
||||
val sut = testActivityRule.launchActivity(null)
|
||||
val transaction = sut.supportFragmentManager.beginTransaction()
|
||||
val file = getFile("calendar.ics")
|
||||
val ocFile = OCFile("/Private calender_2020-09-01_10-45-20.ics.ics")
|
||||
ocFile.storagePath = file.absolutePath
|
||||
ocFile.mimeType = "text/calendar"
|
||||
launchActivity<ContactsPreferenceActivity>().use { scenario ->
|
||||
scenario.onActivity { sut ->
|
||||
val transaction = sut.supportFragmentManager.beginTransaction()
|
||||
val file = getFile("calendar.ics")
|
||||
val ocFile = OCFile("/Private calender_2020-09-01_10-45-20.ics.ics").apply {
|
||||
storagePath = file.absolutePath
|
||||
mimeType = "text/calendar"
|
||||
}
|
||||
|
||||
transaction.replace(R.id.frame_container, BackupListFragment.newInstance(ocFile, user))
|
||||
transaction.commit()
|
||||
onIdleSync {
|
||||
EspressoIdlingResource.increment()
|
||||
|
||||
waitForIdleSync()
|
||||
screenshot(sut)
|
||||
transaction.replace(R.id.frame_container, BackupListFragment.newInstance(ocFile, user))
|
||||
transaction.commit()
|
||||
|
||||
EspressoIdlingResource.decrement()
|
||||
|
||||
val screenShotName = createName(testClassName + "_" + "showCalendarList", "")
|
||||
onView(isRoot()).check(matches(isDisplayed()))
|
||||
screenshotViaName(sut, screenShotName)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
@ScreenshotTest
|
||||
fun showCalendarAndContactsList() {
|
||||
val sut = testActivityRule.launchActivity(null)
|
||||
val transaction = sut.supportFragmentManager.beginTransaction()
|
||||
launchActivity<ContactsPreferenceActivity>().use { scenario ->
|
||||
scenario.onActivity { sut ->
|
||||
val transaction = sut.supportFragmentManager.beginTransaction()
|
||||
val calendarFile = getFile("calendar.ics")
|
||||
val calendarOcFile = OCFile("/Private calender_2020-09-01_10-45-20.ics.ics").apply {
|
||||
storagePath = calendarFile.absolutePath
|
||||
mimeType = "text/calendar"
|
||||
}
|
||||
|
||||
val calendarFile = getFile("calendar.ics")
|
||||
val calendarOcFile = OCFile("/Private calender_2020-09-01_10-45-20.ics")
|
||||
calendarOcFile.storagePath = calendarFile.absolutePath
|
||||
calendarOcFile.mimeType = "text/calendar"
|
||||
val contactFile = getFile("vcard.vcf")
|
||||
val contactOcFile = OCFile("/vcard.vcf").apply {
|
||||
storagePath = contactFile.absolutePath
|
||||
mimeType = "text/vcard"
|
||||
}
|
||||
|
||||
val contactFile = getFile("vcard.vcf")
|
||||
val contactOcFile = OCFile("/vcard.vcf")
|
||||
contactOcFile.storagePath = contactFile.absolutePath
|
||||
contactOcFile.mimeType = "text/vcard"
|
||||
val files = arrayOf(calendarOcFile, contactOcFile)
|
||||
|
||||
val files = arrayOf(calendarOcFile, contactOcFile)
|
||||
transaction.replace(R.id.frame_container, BackupListFragment.newInstance(files, user))
|
||||
transaction.commit()
|
||||
onIdleSync {
|
||||
EspressoIdlingResource.increment()
|
||||
|
||||
waitForIdleSync()
|
||||
screenshot(sut)
|
||||
transaction.replace(R.id.frame_container, BackupListFragment.newInstance(files, user))
|
||||
transaction.commit()
|
||||
|
||||
EspressoIdlingResource.decrement()
|
||||
|
||||
val screenShotName = createName(testClassName + "_" + "showCalendarAndContactsList", "")
|
||||
onView(isRoot()).check(matches(isDisplayed()))
|
||||
screenshotViaName(sut, screenShotName)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -300,6 +300,14 @@ class OCFileListFragmentStaticServerIT : AbstractIT() {
|
||||
sut.storageManager.saveFile(this)
|
||||
}
|
||||
|
||||
OCFile("/offlineOperation/").apply {
|
||||
mimeType = MimeType.DIRECTORY
|
||||
decryptedRemotePath = "/offlineOperation/"
|
||||
modificationTimestamp = System.currentTimeMillis()
|
||||
parentId = sut.storageManager.getFileByEncryptedRemotePath("/").fileId
|
||||
sut.storageManager.saveFile(this)
|
||||
}
|
||||
|
||||
sut.addFragment(fragment)
|
||||
|
||||
shortSleep()
|
||||
|
||||