Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f7597cc68 | ||
|
|
d31a83c426 | ||
|
|
0acae91fdf | ||
|
|
f6e8636cfa | ||
|
|
ba62819180 | ||
|
|
cee5b45b84 | ||
|
|
05748959e9 | ||
|
|
969c0d3916 | ||
|
|
726e4ca7b4 | ||
|
|
444dcd000e | ||
|
|
551628d4fe | ||
|
|
9f7f28c7c1 | ||
|
|
5fa9f7420d | ||
|
|
db5b0752f8 | ||
|
|
7cbfc58036 | ||
|
|
3d7e8b770a | ||
|
|
f1a70ccb32 | ||
|
|
d721941032 | ||
|
|
f07e14fd30 | ||
|
|
7af28a1c36 | ||
|
|
e5f56152b0 | ||
|
|
4a4ad20e66 | ||
|
|
74e68d6b8e | ||
|
|
a887a4c32b | ||
|
|
50b19e5d77 | ||
|
|
bcb1262064 | ||
|
|
214689bc0d | ||
|
|
ed4917db14 | ||
|
|
815e30166e | ||
|
|
40d40c32b1 | ||
|
|
51365fa7c3 | ||
|
|
3848346f4a | ||
|
|
3c7fe3a405 | ||
|
|
8c9841f033 | ||
|
|
ff4a0a7030 | ||
|
|
197552a488 | ||
|
|
beb45efc0b | ||
|
|
b630abe052 | ||
|
|
07a2106d45 | ||
|
|
10f6ec94fa | ||
|
|
738291b2fa | ||
|
|
14fd15e9ae | ||
|
|
4073cd235c | ||
|
|
cc517ffcfd | ||
|
|
98d1b5e2b9 | ||
|
|
3102c23d2c | ||
|
|
32a0d1c309 | ||
|
|
212b3a6ef9 | ||
|
|
fd7b722ac4 | ||
|
|
0207e70323 | ||
|
|
fb5ae37a38 | ||
|
|
ced60bf59b | ||
|
|
3c609a329f | ||
|
|
9a0d1085ed | ||
|
|
a5142483a4 | ||
|
|
1edaffeafe | ||
|
|
b2ff37505e | ||
|
|
ebbedb46a0 | ||
|
|
dfe2e5dbd4 | ||
|
|
c1f5817f3f | ||
|
|
9f23230bf1 | ||
|
|
fbfdf1104a | ||
|
|
bf587f1a65 | ||
|
|
cbfa9ff6cb | ||
|
|
6db7c79962 | ||
|
|
dbae9443eb | ||
|
|
e13a3ca7cb | ||
|
|
79f4270bb9 | ||
|
|
5f73a5ec75 | ||
|
|
0ad81bdd29 | ||
|
|
8af257d54f | ||
|
|
a7088c8c87 | ||
|
|
5b76892ab1 | ||
|
|
7005cdef2e | ||
|
|
643454c1d7 | ||
|
|
20d2ef989d | ||
|
|
dfc94f4505 | ||
|
|
8f0e4eab60 | ||
|
|
93d0875883 | ||
|
|
947e4a1b10 | ||
|
|
c55e9b8fd2 | ||
|
|
2b5c39095d | ||
|
|
348ae4435a | ||
|
|
a22b0724ae | ||
|
|
c42c24be80 | ||
|
|
7e03aa39b5 | ||
|
|
097434916e | ||
|
|
728de81736 | ||
|
|
21f2ce7425 | ||
|
|
8ba7eb619e | ||
|
|
5609b5041e | ||
|
|
d36c2d35a5 | ||
|
|
741cc24d11 | ||
|
|
5288548e70 | ||
|
|
e0d5676151 | ||
|
|
7ed4e2b24e | ||
|
|
58ba15ac95 | ||
|
|
fe1cd33c26 | ||
|
|
c3f838d445 | ||
|
|
2f60b75fc5 | ||
|
|
f6e7c44596 | ||
|
|
1017e3ac3b | ||
|
|
2913918232 | ||
|
|
ca7350fa8a | ||
|
|
2c5fb2b2f9 | ||
|
|
d70502f747 | ||
|
|
38c28332e2 | ||
|
|
bd5c9dfa1e | ||
|
|
db4a7ee8f5 | ||
|
|
066fef03c2 | ||
|
|
741fb410f1 | ||
|
|
961e6c179a | ||
|
|
22657040bd | ||
|
|
a9dc3f5787 | ||
|
|
e5ec91b5a7 | ||
|
|
1ecd64f128 | ||
|
|
6dfb4c7ef6 | ||
|
|
56a1fc868d | ||
|
|
7140340c59 | ||
|
|
360f9dab90 | ||
|
|
83d4aaf1ab | ||
|
|
01d9d2e437 | ||
|
|
98d930b8ab | ||
|
|
0fa902d2d2 | ||
|
|
1f5352f2ec | ||
|
|
72fce1dd1e | ||
|
|
9e633b91b5 | ||
|
|
37fdd97c29 | ||
|
|
cb0ae700db | ||
|
|
9f3e1857db | ||
|
|
f0a608acde | ||
|
|
4a791dda86 | ||
|
|
3e05624064 | ||
|
|
33dfc9651a | ||
|
|
14172fd1f0 | ||
|
|
b18ff7404e | ||
|
|
ed8819ec86 | ||
|
|
a424706368 | ||
|
|
7ced94d42e | ||
|
|
86ebd24f2d | ||
|
|
99d6c1c5fd | ||
|
|
0aed8aaa86 | ||
|
|
c5abe938bd | ||
|
|
4e52f7f970 | ||
|
|
a43933082d | ||
|
|
374bb21c33 | ||
|
|
558f1775de | ||
|
|
934e1f406a | ||
|
|
7732ff065b | ||
|
|
9e6fa5c769 | ||
|
|
59fddce138 | ||
|
|
e503106960 | ||
|
|
96aecac8ed | ||
|
|
ab3dff9e1b | ||
|
|
2bbaf7b21d | ||
|
|
9370cbab09 | ||
|
|
a04f52915a | ||
|
|
0de60103b1 | ||
|
|
388301082d | ||
|
|
4bdd27ffe0 | ||
|
|
fb1bb6905c | ||
|
|
3a28b84e9d | ||
|
|
94d7506cb5 | ||
|
|
ab0ea3e8d9 | ||
|
|
eb08f75257 | ||
|
|
e40893a136 | ||
|
|
5f185326ab | ||
|
|
a9f689044d | ||
|
|
7360bbabfe | ||
|
|
0f9ec55d7a | ||
|
|
7802fabf0e | ||
|
|
f6f401aa0d | ||
|
|
123593fc4e | ||
|
|
a9b8bf7f3a | ||
|
|
0630142792 | ||
|
|
94dfdd88a6 | ||
|
|
33d5826337 | ||
|
|
7306bc096d | ||
|
|
a475af6ac6 | ||
|
|
c048fe2121 | ||
|
|
ace90ef2ad | ||
|
|
1b1a58ed8c | ||
|
|
6e7cdededb | ||
|
|
cc06c8b613 | ||
|
|
347abae8aa | ||
|
|
b65fd5bd46 | ||
|
|
6d3c96c8f3 | ||
|
|
6a6913b17e | ||
|
|
28279bc3c1 | ||
|
|
663537f304 | ||
|
|
39bb258648 | ||
|
|
a33cc9d278 | ||
|
|
73c22d4e8f | ||
|
|
7b88e39572 | ||
|
|
6f31f92a3f | ||
|
|
f499fb3ee8 | ||
|
|
d053177cf7 | ||
|
|
8e5f893812 | ||
|
|
7f1ba75b7d | ||
|
|
b6b57fa06e | ||
|
|
adac921f5c | ||
|
|
78b879d10f | ||
|
|
7c5948b61a | ||
|
|
0b15433cda | ||
|
|
228a44fc87 | ||
|
|
fbb3a339bc | ||
|
|
5d9d094f42 | ||
|
|
094416e8e3 | ||
|
|
2d6c25ab0f | ||
|
|
34eaf9d6db | ||
|
|
3ae47b3f9a | ||
|
|
37bf0dde69 | ||
|
|
eec9e940fd | ||
|
|
f608b3916e | ||
|
|
81764b4872 | ||
|
|
fd7cf51a4b | ||
|
|
09c48e65d4 | ||
|
|
3e3d80d08c | ||
|
|
fa9804d742 | ||
|
|
983a35517d | ||
|
|
49a93485c4 | ||
|
|
a2487ff457 | ||
|
|
7d000f964e | ||
|
|
d65d917b81 | ||
|
|
5f74c93664 | ||
|
|
a71933d075 | ||
|
|
0f06180ba3 | ||
|
|
5d8883e8c2 | ||
|
|
8a70f22cc3 | ||
|
|
b508452eb0 | ||
|
|
270c8a36d2 | ||
|
|
4d9fc70376 | ||
|
|
c289e61b39 | ||
|
|
5aeba5e021 | ||
|
|
740c3fe2ba | ||
|
|
b633ebd86b | ||
|
|
77ab8116cc | ||
|
|
613b98ae1b | ||
|
|
5ba2aff146 | ||
|
|
29ed661cec | ||
|
|
e95caf3572 | ||
|
|
5472ec40e2 | ||
|
|
f028eefd83 | ||
|
|
2e8fd6aba1 | ||
|
|
3965af0cfc | ||
|
|
fe8b0fba77 | ||
|
|
6f9db5475e | ||
|
|
75ce22d2db | ||
|
|
9801bbef76 | ||
|
|
a0bf78e7b4 | ||
|
|
8b1396f73a | ||
|
|
b13e828b87 | ||
|
|
53fcf81b75 | ||
|
|
3c0415e417 | ||
|
|
ec12ad56d4 | ||
|
|
8cec637c24 | ||
|
|
392961dbe6 | ||
|
|
d2f1f33ef0 | ||
|
|
45ef15cd66 | ||
|
|
36eaee63b6 | ||
|
|
ec5dcefc7d | ||
|
|
1671ba29c8 | ||
|
|
6bd0fd9eb6 | ||
|
|
5adef2978a | ||
|
|
d2a56f871b | ||
|
|
94e72e9293 | ||
|
|
ddb8ee9fd1 | ||
|
|
f07c535fba | ||
|
|
94b31a0a37 | ||
|
|
b625cdaddb | ||
|
|
3d5d6ea739 | ||
|
|
cad9e59435 | ||
|
|
b996cced68 | ||
|
|
80d83e4721 | ||
|
|
d0f3a00637 | ||
|
|
ee6e5311b8 | ||
|
|
d1f17df63c | ||
|
|
409947cb10 | ||
|
|
9016b98cb1 | ||
|
|
389b0efe14 | ||
|
|
ba6a38de64 | ||
|
|
f0f700900f | ||
|
|
27214ae138 | ||
|
|
d446d9eae9 | ||
|
|
352cdb6332 | ||
|
|
20a63a6cde | ||
|
|
07dc18339a | ||
|
|
1dd3c986c4 | ||
|
|
6a6231ef5e | ||
|
|
2a3fd4287e | ||
|
|
a86038ebab | ||
|
|
ca8a89b930 | ||
|
|
8a09c3fdfd | ||
|
|
80d4dd5908 | ||
|
|
16794043fe | ||
|
|
f0f77098bb | ||
|
|
4b9319a38c | ||
|
|
5b3f222971 | ||
|
|
b0ac12f933 | ||
|
|
d968dc20b3 | ||
|
|
c20ac3b7f2 | ||
|
|
7739d87cbb | ||
|
|
cff3d8f588 | ||
|
|
3e55fad482 | ||
|
|
212671813b | ||
|
|
8d6e4a9b6e | ||
|
|
72ddb14d95 | ||
|
|
1fcc05d04c | ||
|
|
060416fb20 | ||
|
|
a97933e14c | ||
|
|
68eb067ad0 | ||
|
|
b0eb93da68 | ||
|
|
96236d7740 | ||
|
|
e9734ffb00 | ||
|
|
89eaa947e1 | ||
|
|
73d4b60d98 | ||
|
|
4cca23f32a | ||
|
|
1866d2b213 | ||
|
|
32c7c0560c | ||
|
|
2d0d307d11 | ||
|
|
e81dcb7804 | ||
|
|
5a76122a94 | ||
|
|
7972c6cf7d | ||
|
|
d94f3817d7 | ||
|
|
8af384f1f1 | ||
|
|
9613502253 | ||
|
|
134286eff1 | ||
|
|
fe20249af3 | ||
|
|
f3effa397b | ||
|
|
8034601537 | ||
|
|
7fd7e10f8d | ||
|
|
2e051917ec | ||
|
|
2ce949cb81 | ||
|
|
42b4aaad99 | ||
|
|
22d460d434 | ||
|
|
8f6722e673 | ||
|
|
12cdf456df | ||
|
|
27ec5c8688 | ||
|
|
af14a5ae95 | ||
|
|
9ed8713503 | ||
|
|
ba5430ff1d | ||
|
|
64c5a3b199 | ||
|
|
68fd9847f0 | ||
|
|
c9b4f42fd6 | ||
|
|
2052894196 | ||
|
|
204844e451 | ||
|
|
01ef66a13d | ||
|
|
f953f2513d | ||
|
|
9c7bd2b3e5 | ||
|
|
189b812845 | ||
|
|
50120cb083 | ||
|
|
22ad54b80c | ||
|
|
252b0dac19 | ||
|
|
bd94196ede | ||
|
|
af166ba8ce | ||
|
|
58a92cbebc | ||
|
|
9d47c07fa0 | ||
|
|
eb88e0f7e9 | ||
|
|
0fc1fce488 | ||
|
|
00df846744 | ||
|
|
85b68f4482 | ||
|
|
2d862d257f | ||
|
|
138aec8855 | ||
|
|
67ea4c872e | ||
|
|
47ebef15c1 | ||
|
|
1dbd3435d6 | ||
|
|
b752e94130 | ||
|
|
bb83592db3 | ||
|
|
2d3aef36f6 | ||
|
|
807917c491 | ||
|
|
7d16250ab3 | ||
|
|
6e14d46ea1 | ||
|
|
8081bf7d06 | ||
|
|
fb014b3029 | ||
|
|
ca17f165bb | ||
|
|
52401cfa41 | ||
|
|
196956193d | ||
|
|
e0892eef8c | ||
|
|
d54a7403d3 | ||
|
|
fa8ffa1873 | ||
|
|
c13ddaac99 | ||
|
|
6e34c38da7 | ||
|
|
f4752cb9bb | ||
|
|
f41e2c80b8 | ||
|
|
da5983d7db | ||
|
|
01a597d391 | ||
|
|
127f4886cd | ||
|
|
9049b51de0 | ||
|
|
d43ec2d3be | ||
|
|
74e7b13968 | ||
|
|
df6256edd4 | ||
|
|
dfbb80b933 | ||
|
|
3465e08d4d | ||
|
|
9e4b6250d6 | ||
|
|
710e3957fb | ||
|
|
6e3edc41f1 | ||
|
|
ce5aa9267d | ||
|
|
5b5fdb4d6f | ||
|
|
d4dcaaa0eb | ||
|
|
a885fb2aa7 | ||
|
|
a5b0c83f02 | ||
|
|
dd1a192650 | ||
|
|
df75e35db5 | ||
|
|
a87c54effa | ||
|
|
6d4597b258 | ||
|
|
129f815267 | ||
|
|
3fc11ac9bd | ||
|
|
e22ef9ebf3 | ||
|
|
b09ae7255d | ||
|
|
be2a4489e2 | ||
|
|
d3c84bb6c1 | ||
|
|
5843499d7a | ||
|
|
46c410cad6 | ||
|
|
eae71a31e4 | ||
|
|
43cf2909c4 | ||
|
|
f9d54fe468 | ||
|
|
4dd361c219 | ||
|
|
92dd7b968c | ||
|
|
016fa1373a | ||
|
|
2c1c49076c | ||
|
|
926b3a2cdf | ||
|
|
bfb01fbdb3 | ||
|
|
11adba0301 | ||
|
|
5d7610d8b4 | ||
|
|
db49ffd29c | ||
|
|
0d741ff73a | ||
|
|
f0da2f41e1 | ||
|
|
1a4be987d9 | ||
|
|
89c9838442 | ||
|
|
b580352ccc | ||
|
|
d88f346b28 | ||
|
|
7d8ee17399 | ||
|
|
d9f2d996bf | ||
|
|
13f071a721 | ||
|
|
c059aa605e | ||
|
|
183e1eb77b | ||
|
|
a575cb01c6 | ||
|
|
45bcd3029a | ||
|
|
34ccaef48e | ||
|
|
d7c98b4bde | ||
|
|
73f6d9d800 | ||
|
|
57de283d58 | ||
|
|
e2e606633f | ||
|
|
8c8850a625 | ||
|
|
c3b7ccb46c | ||
|
|
4847d3f2f5 | ||
|
|
05d3fe1742 | ||
|
|
3963a0dec1 | ||
|
|
b417d6eae9 | ||
|
|
a1a1a8d565 | ||
|
|
ba3529ee78 | ||
|
|
d7eadbbb19 | ||
|
|
a2fc279c01 | ||
|
|
4f6e810226 | ||
|
|
98a0ca8a57 | ||
|
|
8d4d52dbd3 | ||
|
|
a6e4818225 | ||
|
|
561c5f4b94 | ||
|
|
40c2de359f | ||
|
|
de1a14fc0b | ||
|
|
0e74305c1d | ||
|
|
2c2a07de46 | ||
|
|
7f00d2b018 | ||
|
|
6163badbb7 | ||
|
|
768b067fb2 | ||
|
|
89908d2296 | ||
|
|
e722448e19 | ||
|
|
da1a2e20f7 | ||
|
|
39cb42a4d1 | ||
|
|
4a39f3970d | ||
|
|
829d17c69e | ||
|
|
58f804360b | ||
|
|
6517cb85e7 | ||
|
|
0d7185c75e | ||
|
|
2a0b1ea5d2 | ||
|
|
84971d876e | ||
|
|
5eea9fd7fb | ||
|
|
55c68e789b | ||
|
|
a707091c19 | ||
|
|
bcaa29eff5 | ||
|
|
25f9485e4d | ||
|
|
f33b3bf5ca | ||
|
|
5a8cec6372 | ||
|
|
ecd96ca10b | ||
|
|
7aefbee788 | ||
|
|
d6ffe98714 | ||
|
|
96f03d1ec6 | ||
|
|
a0ff4e4cc1 | ||
|
|
8edbd8349e | ||
|
|
30bc33307e | ||
|
|
fe4175ae59 | ||
|
|
d6f9f3f09e | ||
|
|
2b0f55982e | ||
|
|
f53b16a48c | ||
|
|
ef5edb1018 | ||
|
|
1c7430367d | ||
|
|
4ef84bd2fd | ||
|
|
d2e3bef968 | ||
|
|
23f1c74e1d | ||
|
|
30501e9503 | ||
|
|
24252b6e43 | ||
|
|
d0b883f61d | ||
|
|
ed73735e40 | ||
|
|
83d46ffe63 | ||
|
|
f971c0b3e6 | ||
|
|
62ab750512 | ||
|
|
8e8d57ad27 | ||
|
|
cbf64fb928 | ||
|
|
f5dfefc560 | ||
|
|
bbe21a9d9f | ||
|
|
c4174b52be | ||
|
|
3c41a3ff09 | ||
|
|
2f12db03bb | ||
|
|
d09c4510a4 | ||
|
|
8255b94284 | ||
|
|
f17213c34d | ||
|
|
3d951e16c6 | ||
|
|
fec01b6db5 | ||
|
|
bfc054f38a | ||
|
|
08ed7a971e | ||
|
|
14f841300a | ||
|
|
d8dace97c4 | ||
|
|
cd5406b7e0 | ||
|
|
a725bbbc47 | ||
|
|
186ce62bdb | ||
|
|
df107cc34e | ||
|
|
898975b822 | ||
|
|
937f6e036c | ||
|
|
7e34e3b965 | ||
|
|
b607542c39 | ||
|
|
d5c8e9911f | ||
|
|
f770912328 | ||
|
|
adecd7b5ae | ||
|
|
54d4acf216 | ||
|
|
ab99e71c41 | ||
|
|
b10038cced | ||
|
|
c0bd6b1a51 | ||
|
|
24cbc66a92 | ||
|
|
a9a2c06a1b | ||
|
|
19deab3fba | ||
|
|
10437c9d82 | ||
|
|
53a1344e47 | ||
|
|
9a00819286 | ||
|
|
820f6745e1 | ||
|
|
ad8eaff22b | ||
|
|
dfb3d8d15f | ||
|
|
40e1f089f4 | ||
|
|
a751523c20 | ||
|
|
37aa694a52 | ||
|
|
ee882187fb | ||
|
|
b0ab109e5d | ||
|
|
bb805f681b | ||
|
|
659dabb672 | ||
|
|
48fc341f90 | ||
|
|
77c104d2fe | ||
|
|
2956c59e43 | ||
|
|
db104952d5 | ||
|
|
1bc187ec48 | ||
|
|
93e0fef71b | ||
|
|
5464453901 | ||
|
|
e3d71457e7 | ||
|
|
c6c38e87eb | ||
|
|
2dd3d7505c | ||
|
|
013f7d2fca | ||
|
|
7475c667a8 | ||
|
|
4a5d98020d | ||
|
|
a4c7941a30 | ||
|
|
4157a120fe | ||
|
|
e88da96a28 | ||
|
|
dcb4f117ea | ||
|
|
f612f81fc0 | ||
|
|
89b20d61ed | ||
|
|
6f5e7027f4 | ||
|
|
ffcfdf9fdb | ||
|
|
f50325c514 | ||
|
|
cbe99d978e | ||
|
|
0734102c4c | ||
|
|
f9c233f5b3 | ||
|
|
09cc29b5e5 | ||
|
|
8779f633ab | ||
|
|
e84cc8eca3 | ||
|
|
ac35fb0b56 | ||
|
|
8bedbef074 | ||
|
|
5ce43b4eb3 | ||
|
|
4e1ef91f8c | ||
|
|
25adbd4f47 | ||
|
|
109be926ff | ||
|
|
4a764ff616 | ||
|
|
40328631fd | ||
|
|
8c1c803b9d | ||
|
|
7873c4d7aa | ||
|
|
5ee1650064 | ||
|
|
4247a512c2 | ||
|
|
7084735f5e | ||
|
|
f899c2c668 | ||
|
|
3eb8b1c069 | ||
|
|
c276374978 | ||
|
|
c5dd1a94ec | ||
|
|
60d7f2c417 | ||
|
|
d86e5bb256 | ||
|
|
ab6d2557e0 | ||
|
|
c3f015b695 | ||
|
|
f0c09bdd7b | ||
|
|
1cf41b93ff | ||
|
|
eee55edb80 | ||
|
|
8073a0d003 | ||
|
|
d62174a97d | ||
|
|
245decb0f8 | ||
|
|
cbeaf726b3 | ||
|
|
3bc3a86354 | ||
|
|
45b09c64d2 | ||
|
|
ae33986943 | ||
|
|
483c1962d5 | ||
|
|
2391561755 | ||
|
|
a46c58dabf | ||
|
|
f17509478d | ||
|
|
abaecc3bcc | ||
|
|
b12671234a | ||
|
|
d008c5464c | ||
|
|
ba7964805d | ||
|
|
c125bf0907 | ||
|
|
84c1378dae | ||
|
|
29f60460bb | ||
|
|
b690617f9b | ||
|
|
280dd91c92 | ||
|
|
4accfe4efa | ||
|
|
d12d20fc1d | ||
|
|
050bcdd3c8 | ||
|
|
0ccd196845 | ||
|
|
62de808945 | ||
|
|
3fa4c17f4c | ||
|
|
6fa36fa4b7 | ||
|
|
d209c239e8 | ||
|
|
207846ebea | ||
|
|
a143fdfd27 | ||
|
|
0aae89ddb5 | ||
|
|
9f63c3db85 | ||
|
|
09f03c8f7c | ||
|
|
679e513d52 | ||
|
|
ab7a04419c | ||
|
|
5e6beb78ff | ||
|
|
834ad8018a | ||
|
|
e8dc080fee | ||
|
|
3417a75e2e | ||
|
|
13b55f9e15 | ||
|
|
886c0c6394 | ||
|
|
eb03d18ed7 | ||
|
|
29fb9b2272 | ||
|
|
f9a2223b32 | ||
|
|
3aa25cc7a5 | ||
|
|
a38017893e | ||
|
|
1512b96482 | ||
|
|
99888c2640 | ||
|
|
84d740c231 | ||
|
|
f22c34e432 | ||
|
|
1a2d85a9cb | ||
|
|
45b0d3638b | ||
|
|
d670218993 | ||
|
|
f477a6873b | ||
|
|
40fd0ff757 | ||
|
|
56c7fb4949 | ||
|
|
cf996c34af | ||
|
|
61fc005c26 | ||
|
|
aaabd6d6ff | ||
|
|
907d8007b5 | ||
|
|
43bbdfdbd9 | ||
|
|
0edbd4832b | ||
|
|
265dad23c8 | ||
|
|
c1e031384e | ||
|
|
9dacc8bf4b | ||
|
|
d066d2d42c | ||
|
|
bbdeec4d9e | ||
|
|
5858f68878 | ||
|
|
57ac50788e | ||
|
|
f1743e96b3 | ||
|
|
ef5df5376a | ||
|
|
ff4df03919 | ||
|
|
a31854a5c4 | ||
|
|
63a3d92b1c | ||
|
|
ad0e77ef03 | ||
|
|
871caae99f | ||
|
|
aa95964058 | ||
|
|
81a6ab38a9 | ||
|
|
5ba9e6c198 | ||
|
|
4a94b547a7 | ||
|
|
833720261b | ||
|
|
121b60a17c | ||
|
|
fc9c5e35b6 | ||
|
|
808e5acfb0 | ||
|
|
84e72b11a1 | ||
|
|
8008688fec | ||
|
|
653984e7e1 | ||
|
|
c785c0b22d | ||
|
|
bba0b35518 | ||
|
|
5db713f02a | ||
|
|
8cf578db52 | ||
|
|
d7533ee640 | ||
|
|
922f84a443 | ||
|
|
f97dc2d101 | ||
|
|
3d033ff9b9 | ||
|
|
27e6c7b205 | ||
|
|
76a093e63f | ||
|
|
8128c3f9f2 | ||
|
|
f3fbdab05a | ||
|
|
9396b2b43e | ||
|
|
841cedd307 | ||
|
|
1adc7654a1 | ||
|
|
4b083e9e34 | ||
|
|
4b464e1f54 | ||
|
|
32f9a64225 | ||
|
|
829e17fd06 | ||
|
|
ea86559e84 | ||
|
|
1917f68931 | ||
|
|
44b12dcd3b | ||
|
|
2d3048eead | ||
|
|
59226deecb | ||
|
|
fc804bafce | ||
|
|
f163dcb67e | ||
|
|
a19b145a36 | ||
|
|
51c7c85c39 | ||
|
|
4022cda329 | ||
|
|
eafacd00ec | ||
|
|
c7d562370d | ||
|
|
97c27f1051 | ||
|
|
4f360fa786 | ||
|
|
c1396fd3b8 | ||
|
|
46f0880b83 | ||
|
|
7b166fc957 | ||
|
|
4b71608c2a | ||
|
|
d5b9b3e55d | ||
|
|
9a63600521 | ||
|
|
31df74ed17 | ||
|
|
e3c9a11167 | ||
|
|
3f4e6247c8 | ||
|
|
5581ef7460 | ||
|
|
1ffbb63fef | ||
|
|
0793808a06 | ||
|
|
2c3ebac7e4 | ||
|
|
515e551fda | ||
|
|
6d34e6c1f8 | ||
|
|
47b94004b8 | ||
|
|
d5394df132 | ||
|
|
8b9147ac4a | ||
|
|
4653f10957 | ||
|
|
1ec71927df | ||
|
|
9c6105e94c | ||
|
|
ec2214337d | ||
|
|
d6ad8f6c2f | ||
|
|
d0a6fdc2da | ||
|
|
77c4a3e6a5 | ||
|
|
719e3b1b63 | ||
|
|
5da1b7f8a9 | ||
|
|
268f71f0a0 | ||
|
|
894b4b0977 | ||
|
|
1a473b6f6e | ||
|
|
31fe35906e | ||
|
|
4491f9a40d | ||
|
|
a92725f8a7 | ||
|
|
2dc5fcaef0 | ||
|
|
34c05c9d0e | ||
|
|
775066bf8f | ||
|
|
fde2de08e0 | ||
|
|
f53e509085 | ||
|
|
9fc40c61f0 | ||
|
|
5942e4e661 | ||
|
|
5610aa03d0 | ||
|
|
35c9175e8c | ||
|
|
5febcdfd0d | ||
|
|
d37e0e8254 | ||
|
|
76123e6d3d | ||
|
|
d4bc9b3cf2 | ||
|
|
3a9d9e8c23 | ||
|
|
525f6076c6 | ||
|
|
620b672344 | ||
|
|
0f7fd5c60c | ||
|
|
acb78ca293 | ||
|
|
bcf40b29f9 | ||
|
|
c0e80d5ebd | ||
|
|
f22a7c70b3 | ||
|
|
aa9e80f0a7 | ||
|
|
47d5552af8 | ||
|
|
c42d12cc6f | ||
|
|
f84369b5ed | ||
|
|
af0b39ebe9 | ||
|
|
8a5d4bec67 | ||
|
|
766b7c755a | ||
|
|
464aaded14 | ||
|
|
db3bd029ca | ||
|
|
32da47d6a3 | ||
|
|
30e7728dbc | ||
|
|
4b30ed5993 | ||
|
|
fb7d489ed7 | ||
|
|
887ac009eb | ||
|
|
352dbd575c | ||
|
|
4dc092945b | ||
|
|
6c889e62cb | ||
|
|
7f3ca4fa9f | ||
|
|
ffacdbd7f9 | ||
|
|
0a2e59d63e | ||
|
|
cac0fc7a69 | ||
|
|
34b93be4e0 | ||
|
|
16bb8d3dfc | ||
|
|
a9ea2b5e32 | ||
|
|
b4db8d8f95 | ||
|
|
34e7dbd5de | ||
|
|
e53d40a4e3 | ||
|
|
bf7e13efbf | ||
|
|
517437eba9 | ||
|
|
1013b6b977 | ||
|
|
45315f1486 | ||
|
|
d251fbb556 | ||
|
|
d10403bd3c | ||
|
|
886e28bfc2 | ||
|
|
7a9e67e788 | ||
|
|
fbfefd5235 | ||
|
|
a445602f2d | ||
|
|
4914f4ec42 | ||
|
|
a07cc68573 | ||
|
|
29cffa4a24 | ||
|
|
1d8e5a2648 | ||
|
|
43c6daadcc | ||
|
|
167011caf1 | ||
|
|
ca2420e1d6 | ||
|
|
e9bdd81029 | ||
|
|
6fc6b6e4a3 | ||
|
|
86ca6d5cf8 | ||
|
|
92ae5122b0 | ||
|
|
4795aa1571 | ||
|
|
2c9b0758e4 | ||
|
|
f1c8d40817 | ||
|
|
7469f8dfb5 | ||
|
|
3b13c7156a | ||
|
|
2ae9b70c49 | ||
|
|
f8a5643eca | ||
|
|
9aa8ec066b | ||
|
|
2734e5382b | ||
|
|
3035a03955 | ||
|
|
92d69de551 | ||
|
|
0259a33134 | ||
|
|
a7c7d8de0b | ||
|
|
ade73c3e57 | ||
|
|
6f5b671d8c | ||
|
|
949a5c3a4f | ||
|
|
535624264c | ||
|
|
676e41092f | ||
|
|
c43b234ae4 | ||
|
|
b413d942ad | ||
|
|
54134c43b2 | ||
|
|
b73040ec62 | ||
|
|
d423baa0a3 | ||
|
|
4ea0892630 | ||
|
|
e0d4a9df26 | ||
|
|
34ee2dd4a9 | ||
|
|
6b851a73df | ||
|
|
a7bf4aa581 | ||
|
|
67e2fee514 | ||
|
|
5cd1feaf7b | ||
|
|
7d2d48f1c6 | ||
|
|
f83566febc | ||
|
|
4fc05e63b4 | ||
|
|
7f47effb34 | ||
|
|
7651a9df83 | ||
|
|
0f64f96478 | ||
|
|
c7c6827e18 | ||
|
|
98fe1a788e | ||
|
|
b2220226d0 | ||
|
|
7d0bbc6f37 | ||
|
|
fd3daa7968 | ||
|
|
4425f8672c | ||
|
|
5053c2bf6a | ||
|
|
d66a60e6af | ||
|
|
b3f8860fa7 | ||
|
|
05852e9594 | ||
|
|
721a5debce | ||
|
|
d31dd61b1b | ||
|
|
01f138a761 | ||
|
|
5e2241d4ae | ||
|
|
de65ab841e | ||
|
|
2acb8c7117 | ||
|
|
572c26071f | ||
|
|
2ae6c5f01b | ||
|
|
9e71804337 | ||
|
|
2a73db1ea3 | ||
|
|
697d660d42 | ||
|
|
c45ae25414 | ||
|
|
d25c8f25df | ||
|
|
61c8cd76dd | ||
|
|
c6be91a096 | ||
|
|
b130690bd8 | ||
|
|
d3f3b98be0 | ||
|
|
12a6cdfcea | ||
|
|
456ae330dd | ||
|
|
62074a00a6 | ||
|
|
b93b8e6dd8 | ||
|
|
ff07f3b8f2 | ||
|
|
f72c7ac2c3 | ||
|
|
5204ba7541 | ||
|
|
6f34899327 | ||
|
|
5faff2fa59 | ||
|
|
ba1c2f517c | ||
|
|
44bcecf98b | ||
|
|
14d6e473a3 | ||
|
|
46051694fe | ||
|
|
1e17af8a75 | ||
|
|
9fa46b0b48 | ||
|
|
1a26399051 | ||
|
|
cdcacd25fd | ||
|
|
448435cb8c | ||
|
|
ae0016a3f6 | ||
|
|
4cd105d5ec | ||
|
|
3f98a6914b | ||
|
|
e13c7b9093 | ||
|
|
44793c2ba7 | ||
|
|
9caa4ab460 | ||
|
|
0c0e586411 | ||
|
|
84de3091de | ||
|
|
ef8123369a | ||
|
|
d969a344d7 | ||
|
|
42f5469afc | ||
|
|
0b19e2129d | ||
|
|
e6f93eaead | ||
|
|
c19cdc0469 | ||
|
|
c2319d3a2c | ||
|
|
e85c272ec4 | ||
|
|
f60472c26e | ||
|
|
4ba70164be | ||
|
|
f554b0ca1f | ||
|
|
257b27309c | ||
|
|
80b1e23c0e | ||
|
|
18cdde1acd | ||
|
|
271e163c30 | ||
|
|
ac6bcb1320 | ||
|
|
9d96e1e87c | ||
|
|
606d525168 | ||
|
|
9dc695d4a1 | ||
|
|
b04c09e82b | ||
|
|
4ab6e19406 | ||
|
|
a0d583c969 | ||
|
|
796db9d195 | ||
|
|
bc2a0725ac | ||
|
|
452e93e581 | ||
|
|
9c5d1e16f6 | ||
|
|
f2c44e39c3 | ||
|
|
ec70e76d22 | ||
|
|
19a5bc2f60 | ||
|
|
78bf9d5012 | ||
|
|
7f0aa2661c | ||
|
|
791d461e51 | ||
|
|
9079a3299d | ||
|
|
78f1289cd5 | ||
|
|
1227572edd | ||
|
|
9a1dd92e5d | ||
|
|
c0c631fe64 | ||
|
|
fac23bf2ea | ||
|
|
31cd0be017 | ||
|
|
555967e774 | ||
|
|
25b8886ba2 | ||
|
|
25c24b961c | ||
|
|
1a1c42e0a7 | ||
|
|
7eb0f66079 | ||
|
|
bc2790ef10 | ||
|
|
7d2ad3afda | ||
|
|
aa2f44b92d | ||
|
|
1f805e5a57 | ||
|
|
28d35f26af | ||
|
|
1038cf507c | ||
|
|
b34bf03551 | ||
|
|
f565b6cf48 | ||
|
|
48741d990b | ||
|
|
f94a2d5561 | ||
|
|
f8428a0d1f | ||
|
|
5f30815410 | ||
|
|
95d6d6a905 | ||
|
|
7b0fd67be7 | ||
|
|
1cb680b4ff | ||
|
|
bc3d631e8b | ||
|
|
e568054e94 | ||
|
|
0c051fd72b | ||
|
|
b0943079c3 | ||
|
|
4bf40b5860 | ||
|
|
779b1b388b | ||
|
|
3f1dfed3a8 | ||
|
|
624cba1a7a | ||
|
|
5e05c072c1 | ||
|
|
179559e223 | ||
|
|
5af031151f | ||
|
|
b6d2147ed3 | ||
|
|
168505570c | ||
|
|
3a7e1ec43d | ||
|
|
ff97bcc23e | ||
|
|
a6786831c5 | ||
|
|
44166a2001 | ||
|
|
07f2e98400 | ||
|
|
9ea27802d0 | ||
|
|
0c7bec049f | ||
|
|
f36ac479a8 | ||
|
|
682ed36006 | ||
|
|
e1b0b521f9 | ||
|
|
0925f54d84 | ||
|
|
6df2d58de5 | ||
|
|
7ab1377744 | ||
|
|
c77f212fab | ||
|
|
7b5e3607aa | ||
|
|
b3153237fd | ||
|
|
510c6c26e8 | ||
|
|
909c9606ce | ||
|
|
500fdb919b | ||
|
|
48d0249e7e | ||
|
|
d604084496 | ||
|
|
2ede91bceb | ||
|
|
ed8ef97ec3 | ||
|
|
287ff2532e | ||
|
|
221d3cc327 | ||
|
|
8cd2648bd0 | ||
|
|
8cb003b78e | ||
|
|
f7ffbe689f | ||
|
|
c771db8bb5 | ||
|
|
2a57580cc7 | ||
|
|
52ba845e86 | ||
|
|
1b5d37b50c | ||
|
|
65e3c66d14 | ||
|
|
58ae52d108 | ||
|
|
7cdf890bf4 | ||
|
|
4923a8efa7 | ||
|
|
3e741eee31 | ||
|
|
4920991618 | ||
|
|
e891411a56 | ||
|
|
b97df4eb08 | ||
|
|
25a67fe4cb | ||
|
|
92dd3a0e94 | ||
|
|
43977198f2 | ||
|
|
adae2e48da | ||
|
|
4ce2729a8f | ||
|
|
d5e1209d00 | ||
|
|
9ead4432e8 | ||
|
|
3108759dac | ||
|
|
b0234d895e | ||
|
|
d741ca7724 | ||
|
|
9710a8a863 | ||
|
|
99e3843427 | ||
|
|
3996901d7c | ||
|
|
14f6353cb3 | ||
|
|
593b684d4d | ||
|
|
cedb397566 | ||
|
|
8e45d953f1 | ||
|
|
19333cef78 | ||
|
|
e32364d2fd | ||
|
|
a52277e5c0 | ||
|
|
c09264bc0f | ||
|
|
9686d38f95 | ||
|
|
a712d61386 | ||
|
|
4f7fd16470 | ||
|
|
3598ed75a3 | ||
|
|
770f5264fc | ||
|
|
8e5fc8ea9c | ||
|
|
12d4a93144 | ||
|
|
54889cb418 | ||
|
|
03c586bd94 | ||
|
|
be4efdd8ce | ||
|
|
37cc49b2d0 | ||
|
|
3cfec4e0ba | ||
|
|
7a6ae44d77 | ||
|
|
4a6f5b2da7 | ||
|
|
b960e9c9ba | ||
|
|
581c12a867 | ||
|
|
4a957714ea | ||
|
|
232c801c9f | ||
|
|
11aa3e1575 | ||
|
|
5872a973a7 | ||
|
|
1ba288e5e6 | ||
|
|
9ef27576e1 | ||
|
|
439dd4ff78 | ||
|
|
1ab8d98d85 | ||
|
|
b87bf1f10e | ||
|
|
98e4acc75a | ||
|
|
793dd901a2 | ||
|
|
b4a6ce98c1 | ||
|
|
d19e9e0556 | ||
|
|
56d7169ca2 | ||
|
|
2061207e25 | ||
|
|
bac4e9b854 | ||
|
|
c00b13df12 | ||
|
|
30ac72652e | ||
|
|
dc01b2d5ab | ||
|
|
3a77d8071d | ||
|
|
a65b208355 | ||
|
|
4f47892823 | ||
|
|
0f0173ccf3 | ||
|
|
9c10afa84e | ||
|
|
ca6a4e39c2 | ||
|
|
4d231841d0 | ||
|
|
7e595f713c | ||
|
|
185123c58f | ||
|
|
24f8bdbd29 | ||
|
|
8c2c38d916 | ||
|
|
4f0bf90433 | ||
|
|
f63502a8fa | ||
|
|
2ffb6dab5f | ||
|
|
7ca6f304ed | ||
|
|
b8c4c68275 | ||
|
|
836e51fa79 | ||
|
|
628e58e65e | ||
|
|
ae08a42f8a | ||
|
|
3ae41ec9fa | ||
|
|
de7b7f5c06 | ||
|
|
1e3c6d1080 | ||
|
|
3dde163c70 | ||
|
|
b9df3de466 | ||
|
|
01b1e719ff | ||
|
|
e5e4973c60 | ||
|
|
bd0d38227a | ||
|
|
b9ea5d44ba | ||
|
|
daf3e9aebd | ||
|
|
a341ebcc83 | ||
|
|
bd01843be7 | ||
|
|
d5fe7679da | ||
|
|
3ca46b9a19 | ||
|
|
d8ada799f3 | ||
|
|
cd794ab1c1 | ||
|
|
be11180ca9 | ||
|
|
bf7d33066b | ||
|
|
d4f28aad60 | ||
|
|
40afe563f3 | ||
|
|
391a9fe8e3 | ||
|
|
6d6d8898cd | ||
|
|
83b67b93ad | ||
|
|
db8d3a5d18 | ||
|
|
c578eccade | ||
|
|
059eb9176c | ||
|
|
4013c47b48 | ||
|
|
9938f2e421 | ||
|
|
3facd6c200 | ||
|
|
78adcfb3d6 | ||
|
|
d88dac6284 | ||
|
|
42d1dafaff | ||
|
|
a6c95934cf | ||
|
|
43dfa7a779 | ||
|
|
4481af43fc | ||
|
|
36dbdf5f6e | ||
|
|
cd893c685b | ||
|
|
8b14e8a8bc | ||
|
|
82d0ad98d7 | ||
|
|
0467cc37ca | ||
|
|
eb94a66b2f | ||
|
|
543e25667a | ||
|
|
97c53b38ce | ||
|
|
d7febee4fa | ||
|
|
812e8500f7 | ||
|
|
b8e63e39e9 | ||
|
|
a163321fa1 | ||
|
|
6ab91c959e | ||
|
|
68d6fe5557 | ||
|
|
f782e3d9fd | ||
|
|
aed8a1ade0 | ||
|
|
c6bb9744ee | ||
|
|
0b90250b69 | ||
|
|
7b049a99d0 | ||
|
|
70471b6233 | ||
|
|
bdaaf63fc3 | ||
|
|
1cc383df2a | ||
|
|
84cef3bafc | ||
|
|
ecd5379646 | ||
|
|
5969d0a6eb | ||
|
|
e1b8d525e5 | ||
|
|
92f5e07b9f | ||
|
|
de4fc2cd2b | ||
|
|
9b3f00c12d | ||
|
|
3ec795f0bf | ||
|
|
da6a29a51e | ||
|
|
2356e839d3 | ||
|
|
7305272bda | ||
|
|
be238a3f96 | ||
|
|
65548c4b4b | ||
|
|
ac6a64b672 | ||
|
|
993aa4afb2 | ||
|
|
0f1da5238b | ||
|
|
26bbfa3538 | ||
|
|
3f62afabf6 | ||
|
|
5d428fe9a2 | ||
|
|
49f3a67251 | ||
|
|
6540e3ef71 | ||
|
|
a4ff1f11d7 | ||
|
|
e77ffa00a8 | ||
|
|
91ef307e7a | ||
|
|
52d089b18a | ||
|
|
ec27f840a6 | ||
|
|
7713a28a4f | ||
|
|
6783e8ab4c | ||
|
|
213002f44e | ||
|
|
1b7bd72c49 | ||
|
|
c243453168 | ||
|
|
d178cde220 | ||
|
|
2b26a5176a | ||
|
|
a93313ca19 | ||
|
|
467104c455 | ||
|
|
c59f9c0b91 | ||
|
|
c821f192d6 | ||
|
|
389090d3e8 | ||
|
|
511a16612d | ||
|
|
4616b0d40b | ||
|
|
20b910a646 | ||
|
|
0977c37916 | ||
|
|
5c74f2b1be | ||
|
|
27fabe745b | ||
|
|
60295480b5 | ||
|
|
020e5a2c3b | ||
|
|
490b292ad9 | ||
|
|
61027524f7 | ||
|
|
7b4e1b82e3 | ||
|
|
87df2c8e1c | ||
|
|
af93382c66 | ||
|
|
0afc2645c4 | ||
|
|
68f06ea158 | ||
|
|
2d82f80e9c | ||
|
|
706ae93a32 | ||
|
|
045a7aa9e7 | ||
|
|
5cc0360855 | ||
|
|
eefeda930c | ||
|
|
7156aaff2a | ||
|
|
57ce989a5a | ||
|
|
23fea78a96 | ||
|
|
67880e2758 | ||
|
|
a063f32d25 | ||
|
|
d841f64254 | ||
|
|
0569b0de65 | ||
|
|
53024d1cd1 | ||
|
|
e716c99a9b | ||
|
|
26d7b9c692 | ||
|
|
c2750aabda | ||
|
|
ebcbf0afac |
No files matched your search
@@ -1,54 +1,7 @@
|
||||
kind: pipeline
|
||||
name: generic
|
||||
|
||||
steps:
|
||||
- name: generic
|
||||
image: nextcloudci/android:android-49
|
||||
environment:
|
||||
GIT_USERNAME:
|
||||
from_secret: GIT_USERNAME
|
||||
GIT_TOKEN:
|
||||
from_secret: GIT_TOKEN
|
||||
commands:
|
||||
- scripts/checkIfRunDrone.sh $GIT_USERNAME $GIT_TOKEN $DRONE_PULL_REQUEST || exit 0
|
||||
- ./gradlew assembleGeneric
|
||||
|
||||
- name: notify
|
||||
image: drillster/drone-email
|
||||
settings:
|
||||
port: 587
|
||||
from: [email protected]
|
||||
recipients_only: true
|
||||
username:
|
||||
from_secret: EMAIL_USERNAME
|
||||
password:
|
||||
from_secret: EMAIL_PASSWORD
|
||||
recipients:
|
||||
from_secret: EMAIL_RECIPIENTS
|
||||
host:
|
||||
from_secret: EMAIL_HOST
|
||||
GIT_USERNAME:
|
||||
from_secret: GIT_USERNAME
|
||||
GIT_TOKEN:
|
||||
from_secret: GIT_TOKEN
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
status:
|
||||
- failure
|
||||
branch:
|
||||
- master
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: gplay
|
||||
type: docker
|
||||
name: tests-stable
|
||||
|
||||
steps:
|
||||
- name: gplay
|
||||
@@ -67,13 +20,94 @@ steps:
|
||||
commands:
|
||||
- scripts/checkIfRunDrone.sh $GIT_USERNAME $GIT_TOKEN $DRONE_PULL_REQUEST || exit 0
|
||||
- emulator-headless -avd android-27 -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &
|
||||
- sed -i s'#<bool name="is_beta">false</bool>#<bool name="is_beta">true</bool>#'g src/main/res/values/setup.xml
|
||||
- sed -i s"#server#server#" gradle.properties
|
||||
- ./gradlew assembleGplay
|
||||
- ./gradlew assembleGplayDebug
|
||||
- scripts/wait_for_emulator.sh
|
||||
- ./gradlew jacocoTestGplayDebugUnitTestReport || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "Unit" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
|
||||
- ./gradlew jacocoTestGplayDebugUnitTestReport && scripts/deleteOutdatedComments.sh "stable" "Unit" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "stable" "Unit" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
|
||||
- ./gradlew installGplayDebugAndroidTest
|
||||
- ./gradlew createGplayDebugCoverageReport || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
|
||||
- ./gradlew executeScreenshotTests || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "Screenshot" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
|
||||
- scripts/wait_for_server.sh "server"
|
||||
- ./gradlew createGplayDebugCoverageReport -Pandroid.testInstrumentationRunnerArguments.notAnnotation=com.owncloud.android.utils.ScreenshotTest && scripts/deleteOutdatedComments.sh "stable" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "stable" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
|
||||
- ./gradlew combinedTestReport
|
||||
- name: notify
|
||||
image: drillster/drone-email
|
||||
settings:
|
||||
port: 587
|
||||
from: [email protected]
|
||||
recipients_only: true
|
||||
username:
|
||||
from_secret: EMAIL_USERNAME
|
||||
password:
|
||||
from_secret: EMAIL_PASSWORD
|
||||
recipients:
|
||||
from_secret: EMAIL_RECIPIENTS
|
||||
host:
|
||||
from_secret: EMAIL_HOST
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
status:
|
||||
- failure
|
||||
branch:
|
||||
- master
|
||||
|
||||
services:
|
||||
- name: server
|
||||
image: nextcloudci/server:server-17 # also change in updateScreenshots.sh
|
||||
commands:
|
||||
- BRANCH='stable18' /usr/local/bin/initnc.sh
|
||||
- echo 127.0.0.1 server >> /etc/hosts
|
||||
- su www-data -c "OC_PASS=user1 php /var/www/html/occ user:add --password-from-env --display-name='User One' user1"
|
||||
- su www-data -c "OC_PASS=user2 php /var/www/html/occ user:add --password-from-env --display-name='User Two' user2"
|
||||
- su www-data -c "OC_PASS=user3 php /var/www/html/occ user:add --password-from-env --display-name='User Three' user3"
|
||||
- su www-data -c "php /var/www/html/occ user:setting user2 files quota 1G"
|
||||
- su www-data -c "php /var/www/html/occ group:add users"
|
||||
- su www-data -c "php /var/www/html/occ group:adduser users user1"
|
||||
- su www-data -c "php /var/www/html/occ group:adduser users user2"
|
||||
- su www-data -c "git clone -b stable18 https://github.com/nextcloud/activity.git /var/www/html/apps/activity/"
|
||||
- su www-data -c "php /var/www/html/occ app:enable activity"
|
||||
- su www-data -c "git clone -b stable18 https://github.com/nextcloud/text.git /var/www/html/apps/text/"
|
||||
- su www-data -c "php /var/www/html/occ app:enable text"
|
||||
- su www-data -c "php /var/www/html/occ app:enable end_to_end_encryption"
|
||||
- /usr/local/bin/run.sh
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: tests-master
|
||||
|
||||
steps:
|
||||
- name: gplay
|
||||
image: nextcloudci/android:android-49
|
||||
privileged: true
|
||||
environment:
|
||||
LOG_USERNAME:
|
||||
from_secret: LOG_USERNAME
|
||||
LOG_PASSWORD:
|
||||
from_secret: LOG_PASSWORD
|
||||
GIT_USERNAME:
|
||||
from_secret: GIT_USERNAME
|
||||
GIT_TOKEN:
|
||||
from_secret: GIT_TOKEN
|
||||
ORG_GRADLE_PROJECT_coverage: ''
|
||||
commands:
|
||||
- scripts/checkIfRunDrone.sh $GIT_USERNAME $GIT_TOKEN $DRONE_PULL_REQUEST || exit 0
|
||||
- emulator-headless -avd android-27 -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &
|
||||
- sed -i s'#<bool name="is_beta">false</bool>#<bool name="is_beta">true</bool>#'g src/main/res/values/setup.xml
|
||||
- ./gradlew assembleGplay
|
||||
- ./gradlew assembleGplayDebug
|
||||
- scripts/wait_for_emulator.sh
|
||||
- ./gradlew jacocoTestGplayDebugUnitTestReport && scripts/deleteOutdatedComments.sh "master" "Unit" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "master" "Unit" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
|
||||
- ./gradlew installGplayDebugAndroidTest
|
||||
- scripts/wait_for_server.sh "server"
|
||||
- ./gradlew createGplayDebugCoverageReport -Pandroid.testInstrumentationRunnerArguments.notAnnotation=com.owncloud.android.utils.ScreenshotTest && scripts/deleteOutdatedComments.sh "master" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "master" "IT" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
|
||||
- ./gradlew combinedTestReport
|
||||
- curl -o codecov.sh https://codecov.io/bash
|
||||
- bash ./codecov.sh -t fc506ba4-33c3-43e4-a760-aada38c24fd5
|
||||
@@ -101,7 +135,24 @@ steps:
|
||||
|
||||
services:
|
||||
- name: server
|
||||
image: nextcloudci/server:server-3
|
||||
image: nextcloudci/server:server-17 # also change in updateScreenshots.sh
|
||||
commands:
|
||||
- /usr/local/bin/initnc.sh
|
||||
- echo 127.0.0.1 server >> /etc/hosts
|
||||
- su www-data -c "OC_PASS=user1 php /var/www/html/occ user:add --password-from-env --display-name='User One' user1"
|
||||
- su www-data -c "OC_PASS=user2 php /var/www/html/occ user:add --password-from-env --display-name='User Two' user2"
|
||||
- su www-data -c "OC_PASS=user3 php /var/www/html/occ user:add --password-from-env --display-name='User Three' user3"
|
||||
- su www-data -c "php /var/www/html/occ user:setting user2 files quota 1G"
|
||||
- su www-data -c "php /var/www/html/occ group:add users"
|
||||
- su www-data -c "php /var/www/html/occ group:adduser users user1"
|
||||
- su www-data -c "php /var/www/html/occ group:adduser users user2"
|
||||
- su www-data -c "git clone -b master https://github.com/nextcloud/activity.git /var/www/html/apps/activity/"
|
||||
- su www-data -c "php /var/www/html/occ app:enable activity"
|
||||
- su www-data -c "git clone -b master https://github.com/nextcloud/text.git /var/www/html/apps/text/"
|
||||
- su www-data -c "php /var/www/html/occ app:enable text"
|
||||
- su www-data -c "git clone -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"
|
||||
- /usr/local/bin/run.sh
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
@@ -111,6 +162,158 @@ trigger:
|
||||
- pull_request
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: screenshots-stable
|
||||
|
||||
steps:
|
||||
- name: gplay
|
||||
image: nextcloudci/android:android-49
|
||||
privileged: true
|
||||
environment:
|
||||
LOG_USERNAME:
|
||||
from_secret: LOG_USERNAME
|
||||
LOG_PASSWORD:
|
||||
from_secret: LOG_PASSWORD
|
||||
GIT_USERNAME:
|
||||
from_secret: GIT_USERNAME
|
||||
GIT_TOKEN:
|
||||
from_secret: GIT_TOKEN
|
||||
ORG_GRADLE_PROJECT_coverage: ''
|
||||
commands:
|
||||
- scripts/checkIfRunDrone.sh $GIT_USERNAME $GIT_TOKEN $DRONE_PULL_REQUEST || exit 0
|
||||
- emulator-headless -avd android-27 -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &
|
||||
- sed -i s'#<bool name="is_beta">false</bool>#<bool name="is_beta">true</bool>#'g src/main/res/values/setup.xml
|
||||
- ./gradlew assembleGplayDebug
|
||||
- scripts/wait_for_emulator.sh
|
||||
- ./gradlew installGplayDebugAndroidTest
|
||||
- scripts/wait_for_server.sh "server"
|
||||
- ./gradlew gplayDebugExecuteScreenshotTests -Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest && scripts/deleteOutdatedComments.sh "stable" "Screenshot" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "stable" "Screenshot" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
|
||||
- name: notify
|
||||
image: drillster/drone-email
|
||||
settings:
|
||||
port: 587
|
||||
from: [email protected]
|
||||
recipients_only: true
|
||||
username:
|
||||
from_secret: EMAIL_USERNAME
|
||||
password:
|
||||
from_secret: EMAIL_PASSWORD
|
||||
recipients:
|
||||
from_secret: EMAIL_RECIPIENTS
|
||||
host:
|
||||
from_secret: EMAIL_HOST
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
status:
|
||||
- failure
|
||||
branch:
|
||||
- master
|
||||
|
||||
services:
|
||||
- name: server
|
||||
image: nextcloudci/server:server-17 # also change in updateScreenshots.sh
|
||||
commands:
|
||||
- BRANCH='stable18' /usr/local/bin/initnc.sh
|
||||
- su www-data -c "OC_PASS=user1 php /var/www/html/occ user:add --password-from-env --display-name='User One' user1"
|
||||
- su www-data -c "OC_PASS=user2 php /var/www/html/occ user:add --password-from-env --display-name='User Two' user2"
|
||||
- su www-data -c "OC_PASS=user3 php /var/www/html/occ user:add --password-from-env --display-name='User Three' user3"
|
||||
- su www-data -c "php /var/www/html/occ user:setting user2 files quota 1G"
|
||||
- su www-data -c "php /var/www/html/occ group:add users"
|
||||
- su www-data -c "php /var/www/html/occ group:adduser users user1"
|
||||
- su www-data -c "php /var/www/html/occ group:adduser users user2"
|
||||
- su www-data -c "git clone -b stable18 https://github.com/nextcloud/activity.git /var/www/html/apps/activity/"
|
||||
- su www-data -c "php /var/www/html/occ app:enable activity"
|
||||
- su www-data -c "git clone -b stable18 https://github.com/nextcloud/text.git /var/www/html/apps/text/"
|
||||
- su www-data -c "php /var/www/html/occ app:enable text"
|
||||
- su www-data -c "php /var/www/html/occ app:enable end_to_end_encryption"
|
||||
- /usr/local/bin/run.sh
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: screenshots-master
|
||||
|
||||
steps:
|
||||
- name: gplay
|
||||
image: nextcloudci/android:android-49
|
||||
privileged: true
|
||||
environment:
|
||||
LOG_USERNAME:
|
||||
from_secret: LOG_USERNAME
|
||||
LOG_PASSWORD:
|
||||
from_secret: LOG_PASSWORD
|
||||
GIT_USERNAME:
|
||||
from_secret: GIT_USERNAME
|
||||
GIT_TOKEN:
|
||||
from_secret: GIT_TOKEN
|
||||
ORG_GRADLE_PROJECT_coverage: ''
|
||||
commands:
|
||||
- scripts/checkIfRunDrone.sh $GIT_USERNAME $GIT_TOKEN $DRONE_PULL_REQUEST || exit 0
|
||||
- emulator-headless -avd android-27 -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &
|
||||
- sed -i s'#<bool name="is_beta">false</bool>#<bool name="is_beta">true</bool>#'g src/main/res/values/setup.xml
|
||||
- ./gradlew assembleGplayDebug
|
||||
- scripts/wait_for_emulator.sh
|
||||
- ./gradlew installGplayDebugAndroidTest
|
||||
- scripts/wait_for_server.sh "server"
|
||||
- ./gradlew gplayDebugExecuteScreenshotTests -Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest && scripts/deleteOutdatedComments.sh "master" "Screenshot" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "master" "Screenshot" $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
|
||||
- name: notify
|
||||
image: drillster/drone-email
|
||||
settings:
|
||||
port: 587
|
||||
from: [email protected]
|
||||
recipients_only: true
|
||||
username:
|
||||
from_secret: EMAIL_USERNAME
|
||||
password:
|
||||
from_secret: EMAIL_PASSWORD
|
||||
recipients:
|
||||
from_secret: EMAIL_RECIPIENTS
|
||||
host:
|
||||
from_secret: EMAIL_HOST
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
status:
|
||||
- failure
|
||||
branch:
|
||||
- master
|
||||
|
||||
services:
|
||||
- name: server
|
||||
image: nextcloudci/server:server-17 # also change in updateScreenshots.sh
|
||||
commands:
|
||||
- /usr/local/bin/initnc.sh
|
||||
- su www-data -c "OC_PASS=user1 php /var/www/html/occ user:add --password-from-env --display-name='User One' user1"
|
||||
- su www-data -c "OC_PASS=user2 php /var/www/html/occ user:add --password-from-env --display-name='User Two' user2"
|
||||
- su www-data -c "OC_PASS=user3 php /var/www/html/occ user:add --password-from-env --display-name='User Three' user3"
|
||||
- su www-data -c "php /var/www/html/occ user:setting user2 files quota 1G"
|
||||
- su www-data -c "php /var/www/html/occ group:add users"
|
||||
- su www-data -c "php /var/www/html/occ group:adduser users user1"
|
||||
- su www-data -c "php /var/www/html/occ group:adduser users user2"
|
||||
- su www-data -c "git clone -b master https://github.com/nextcloud/activity.git /var/www/html/apps/activity/"
|
||||
- su www-data -c "php /var/www/html/occ app:enable activity"
|
||||
- su www-data -c "git clone -b master https://github.com/nextcloud/text.git /var/www/html/apps/text/"
|
||||
- su www-data -c "php /var/www/html/occ app:enable text"
|
||||
- su www-data -c "git clone -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"
|
||||
- /usr/local/bin/run.sh
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: analysis
|
||||
|
||||
steps:
|
||||
@@ -160,6 +363,7 @@ trigger:
|
||||
- pull_request
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: qa
|
||||
|
||||
steps:
|
||||
@@ -184,7 +388,7 @@ steps:
|
||||
- sed -i "/qa/,/\}/ s/versionCode .*/versionCode $DRONE_BUILD_NUMBER/" build.gradle
|
||||
- sed -i "/qa/,/\}/ s/versionName .*/versionName \"$DRONE_BUILD_NUMBER\"/" build.gradle
|
||||
- ./gradlew assembleQaDebug
|
||||
- /opt/android-sdk-linux/build-tools/*/apksigner sign --ks-pass pass:$KS_PASS --key-pass pass:$KEY_PASS --ks-key-alias key0 --ks scripts/QA_keystore.jks build/outputs/apk/qa/debug/qa-debug-*.apk
|
||||
- $(find /opt/android-sdk-linux/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 build/outputs/apk/qa/debug/qa-debug-*.apk
|
||||
- scripts/uploadArtifact.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER $DRONE_PULL_REQUEST $GIT_USERNAME $GIT_TOKEN
|
||||
|
||||
trigger:
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# You can add one username per supported platform and one custom link
|
||||
custom: https://www.bountysource.com/teams/nextcloud/issues?tracker_ids=38838206
|
||||
custom: https://nextcloud.com/include/
|
||||
@@ -16,6 +16,11 @@ labels: bug
|
||||
### Actual behaviour
|
||||
- Tell us what happens
|
||||
|
||||
### Can you reproduce this problem on https://try.nextcloud.com?
|
||||
- Please create a test demo account and see if this still happens there.
|
||||
- If yes, please open up a bug report
|
||||
- If not, please verify server setup and ask for help on forum
|
||||
|
||||
### Environment data
|
||||
Android version:
|
||||
|
||||
@@ -27,6 +32,8 @@ Nextcloud app version:
|
||||
|
||||
Nextcloud server version:
|
||||
|
||||
Reverse proxy:
|
||||
|
||||
### Logs
|
||||
#### Web server error log
|
||||
```
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
### Testing
|
||||
Writing tests is very important. Please try to write some tests for your PR.
|
||||
|
||||
If you need help, please do not hesitate to ask in this PR for help.
|
||||
|
||||
- [ ] [unit tests](https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md#unit-tests)
|
||||
- [ ] [instrumented tests](https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md#instrumented-tests)
|
||||
- [ ] [UI tests](https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md#ui-tests)
|
||||
[unit tests](https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md#unit-tests)
|
||||
[instrumented tests](https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md#instrumented-tests)
|
||||
[UI tests](https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md#ui-tests)
|
||||
|
||||
- [ ] Tests written, or not not needed
|
||||
@@ -2,19 +2,17 @@
|
||||
daysUntilStale: 28
|
||||
# Number of days of inactivity before a stale issue is closed
|
||||
daysUntilClose: 14
|
||||
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
|
||||
onlyLabels:
|
||||
- bug
|
||||
- "needs info/discussion"
|
||||
# Issues with these labels will never be considered stale
|
||||
exemptLabels:
|
||||
- 1. developing
|
||||
- 2. to review
|
||||
- 3. to release
|
||||
- approved
|
||||
- enhancement
|
||||
- overview
|
||||
exemptLabels: []
|
||||
# Label to use when marking an issue as stale
|
||||
staleLabel: stale
|
||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||
markComment: >
|
||||
This request did not receive an update in the last 4 weeks.
|
||||
This bug report did not receive an update in the last 4 weeks.
|
||||
Please take a look again and update the issue with new details,
|
||||
otherwise the issue will be automatically closed in 2 weeks. Thank you!
|
||||
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
name: Detekt
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
detekt:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Runt detekt
|
||||
run: ./gradlew detekt
|
||||
@@ -0,0 +1,25 @@
|
||||
name: "Gplay Flavor"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
gPlayFlavor:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Install NDK
|
||||
run: echo "y" | sudo /usr/local/lib/android/sdk/tools/bin/sdkmanager --install "ndk;21.0.6113669" --sdk_root=${ANDROID_SDK_ROOT}
|
||||
- name: Build with Gradle
|
||||
run: |
|
||||
mkdir -p $HOME/.gradle
|
||||
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > $HOME/.gradle/gradle.properties
|
||||
./gradlew assembleGplay
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
name: "Generic Flavor"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
genericFlavor:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Install NDK
|
||||
run: echo "y" | sudo /usr/local/lib/android/sdk/tools/bin/sdkmanager --install "ndk;21.0.6113669" --sdk_root=${ANDROID_SDK_ROOT}
|
||||
- name: Build generic
|
||||
run: |
|
||||
mkdir -p $HOME/.gradle
|
||||
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > $HOME/.gradle/gradle.properties
|
||||
./gradlew assembleGeneric
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
name: "Validate Gradle Wrapper"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
validation:
|
||||
name: "Validation"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: gradle/wrapper-validation-action@v1
|
||||
@@ -0,0 +1,20 @@
|
||||
name: KtLint
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
ktlint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Runt ktlint
|
||||
run: ./gradlew ktlint
|
||||
@@ -29,9 +29,6 @@
|
||||
</option>
|
||||
<option name="RIGHT_MARGIN" value="120" />
|
||||
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="true" />
|
||||
<AndroidXmlCodeStyleSettings>
|
||||
<option name="ARRANGEMENT_SETTINGS_MIGRATED_TO_191" value="true" />
|
||||
</AndroidXmlCodeStyleSettings>
|
||||
<JavaCodeStyleSettings>
|
||||
<option name="IMPORT_LAYOUT_TABLE">
|
||||
<value>
|
||||
@@ -64,6 +61,7 @@
|
||||
</option>
|
||||
<option name="NAME_COUNT_TO_USE_STAR_IMPORT" value="2147483647" />
|
||||
<option name="NAME_COUNT_TO_USE_STAR_IMPORT_FOR_MEMBERS" value="2147483647" />
|
||||
<option name="CONTINUATION_INDENT_IN_PARAMETER_LISTS" value="false" />
|
||||
</JetCodeStyleSettings>
|
||||
<MarkdownNavigatorCodeStyleSettings>
|
||||
<option name="RIGHT_MARGIN" value="120" />
|
||||
@@ -73,6 +71,7 @@
|
||||
</XML>
|
||||
<codeStyleSettings language="JAVA">
|
||||
<option name="ALIGN_MULTILINE_PARAMETERS_IN_CALLS" value="true" />
|
||||
<option name="ALIGN_MULTILINE_METHOD_BRACKETS" value="true" />
|
||||
<option name="WRAP_COMMENTS" value="true" />
|
||||
<option name="IF_BRACE_FORCE" value="3" />
|
||||
<option name="DOWHILE_BRACE_FORCE" value="3" />
|
||||
@@ -80,6 +79,9 @@
|
||||
<option name="FOR_BRACE_FORCE" value="3" />
|
||||
<option name="FIELD_ANNOTATION_WRAP" value="0" />
|
||||
</codeStyleSettings>
|
||||
<codeStyleSettings language="Markdown">
|
||||
<option name="RIGHT_MARGIN" value="120" />
|
||||
</codeStyleSettings>
|
||||
<codeStyleSettings language="XML">
|
||||
<indentOptions>
|
||||
<option name="CONTINUATION_INDENT_SIZE" value="4" />
|
||||
|
||||
@@ -1,3 +1,36 @@
|
||||
## 3.12.0 (June, 10, 2020)
|
||||
|
||||
- add circle support for searching/displaying
|
||||
- if no offline editor is available, use OO/Cool/Text
|
||||
- add possibility to set expiration date on user/group shares (NC18+)
|
||||
- rich workspaces can be disabled on server side
|
||||
- improved loading view
|
||||
- requires Android 4.2 or newer
|
||||
|
||||
For a full list, please see https://github.com/nextcloud/android/milestone/42
|
||||
|
||||
## 3.11.1 (April, 23, 2020)
|
||||
|
||||
- Crash while browsing files
|
||||
- auto upload:
|
||||
- fix wrong conflict detection on custom folder
|
||||
- allow to choose default conflict strategy @fodinabor
|
||||
- fix hanging UI after saving
|
||||
- open office files online if no local app installed
|
||||
|
||||
For a full list, please see https://github.com/nextcloud/android/milestone/47
|
||||
|
||||
## 3.11.0 (March, 26, 2020)
|
||||
|
||||
- not enough space dialog @Shagequi
|
||||
- fix shared search
|
||||
- upload existing images in auto upload @koying @ArisuOngaku
|
||||
- allow deep links @Charon77
|
||||
- support for circle
|
||||
- last version supporting Android 4.1
|
||||
|
||||
For a full list, please see https://github.com/nextcloud/android/milestone/41
|
||||
|
||||
## 3.10.1 (February, 05, 2020)
|
||||
|
||||
- fix crash on self-signed certificates
|
||||
|
||||
@@ -72,6 +72,7 @@ If your issue appears to be a bug, and hasn't been reported, open a new issue.
|
||||
|
||||
|
||||
### Bug workflow
|
||||
Every bug should be triaged in approved/needs info in a given time.
|
||||
* approved: at least one other is able to reproduce it
|
||||
* needs info: something unclear, or not able to reproduce
|
||||
* if no response within 1 months, bug will be closed
|
||||
@@ -271,23 +272,27 @@ Source code of app:
|
||||
|
||||
#### UI tests
|
||||
We use [shot](https://github.com/Karumi/Shot) for taking screenshots and compare them
|
||||
- check screenshots: ```./gradlew executeScreenshotTests ```
|
||||
- check screenshots: ```./gradlew gplayDebugExecuteScreenshotTests ```
|
||||
- update/generate new screenshots: ```scripts/updateScreenshots.sh ```
|
||||
- in this script are samples how to only execute a given class/test
|
||||
- this will fire up docker & emulator to ensure that screenshots look the same
|
||||
- creating own UI comparision tests:
|
||||
- add IntentsTestRule for launching activity directly:
|
||||
|
||||
```java
|
||||
@Rule public IntentsTestRule<SettingsActivity> activityRule = new IntentsTestRule<>(SettingsActivity.class,
|
||||
@Rule public IntentsTestRule<SettingsActivity> activityRule = new IntentsTestRule<>(SettingsActivity.class,
|
||||
true,
|
||||
false);
|
||||
```
|
||||
```
|
||||
|
||||
- in test method:
|
||||
|
||||
```java
|
||||
Activity activity = activityRule.launchActivity(null);
|
||||
…do something, e.g. navigate, create folder, etc. …
|
||||
Screenshot.snapActivity(activity).record();
|
||||
```
|
||||
Activity activity = activityRule.launchActivity(null);
|
||||
…do something, e.g. navigate, create folder, etc. …
|
||||
Screenshot.snapActivity(activity).record();
|
||||
```
|
||||
|
||||
- best practise is to first create test with emulator too see behaviour and then create screenshots
|
||||
|
||||
## File naming
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
import com.github.spotbugs.snom.SpotBugsTask
|
||||
|
||||
// Gradle build file
|
||||
//
|
||||
// This project was started in Eclipse and later moved to Android Studio. In the transition, both IDEs were supported.
|
||||
// Due to this, the files layout is not the usual in new projects created with Android Studio / gradle. This file
|
||||
// merges declarations usually split in two separates build.gradle file, one for global settings of the project in
|
||||
// its root folder, another one for the app module in subfolder of root.
|
||||
import com.github.spotbugs.SpotBugsTask
|
||||
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.3.61'
|
||||
ext.kotlin_version = '1.3.72'
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
@@ -20,15 +21,13 @@ buildscript {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.5.3'
|
||||
classpath('com.dicedmelon.gradle:jacoco-android:0.1.4') {
|
||||
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
|
||||
}
|
||||
classpath 'gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:1.6.6'
|
||||
classpath 'com.android.tools.build:gradle:4.0.0'
|
||||
classpath('com.hiya:jacoco-android:0.2')
|
||||
classpath 'gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.4.4'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.5.1"
|
||||
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.10.0"
|
||||
classpath "commons-httpclient:commons-httpclient:3.1@jar" // remove after entire switch to lib v2
|
||||
classpath 'com.karumi:shot:3.1.0'
|
||||
classpath 'com.karumi:shot:4.3.0'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +38,7 @@ apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'kotlin-kapt'
|
||||
apply plugin: 'checkstyle'
|
||||
apply plugin: 'pmd'
|
||||
apply plugin: 'jacoco-android'
|
||||
apply plugin: 'com.hiya.jacoco-android'
|
||||
apply plugin: 'com.github.spotbugs'
|
||||
apply plugin: 'io.gitlab.arturbosch.detekt'
|
||||
apply plugin: 'shot'
|
||||
@@ -51,7 +50,7 @@ configurations {
|
||||
exclude group: 'com.google.firebase', module: 'firebase-core'
|
||||
exclude group: 'com.google.firebase', module: 'firebase-analytics'
|
||||
exclude group: 'com.google.firebase', module: 'firebase-measurement-connector'
|
||||
exclude group: 'org.jetbrains', module: 'annotations-java5' // via prism4j, already using annotations explicitely
|
||||
exclude group: 'org.jetbrains', module: 'annotations-java5' // via prism4j, already using annotations explicitly
|
||||
|
||||
// check for updates every build
|
||||
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
|
||||
@@ -60,15 +59,15 @@ configurations {
|
||||
|
||||
ext {
|
||||
jacocoVersion = "0.8.2"
|
||||
daggerVersion = "2.26"
|
||||
markwonVersion = "4.2.1"
|
||||
daggerVersion = "2.28.1"
|
||||
markwonVersion = "4.4.0"
|
||||
prismVersion = "2.0.0"
|
||||
androidLibraryVersion ="721c01bc369955139daf218377c081d05c82f317"
|
||||
androidLibraryVersion ="f37013d222bc868514fa74a94fa9efd8fd2db8bc"
|
||||
|
||||
travisBuild = System.getenv("TRAVIS") == "true"
|
||||
|
||||
// allows for -Dpre-dex=false to be set
|
||||
preDexEnabled = "true".equals(System.getProperty("pre-dex", "true"))
|
||||
// allows for -D pre-dex=false to be set
|
||||
preDexEnabled = "true" == System.getProperty("pre-dex", "true")
|
||||
}
|
||||
|
||||
repositories {
|
||||
@@ -84,14 +83,14 @@ repositories {
|
||||
|
||||
// semantic versioning for version code
|
||||
def versionMajor = 3
|
||||
def versionMinor = 11
|
||||
def versionMinor = 13
|
||||
def versionPatch = 0
|
||||
def versionBuild = 0 // 0-50=Alpha / 51-98=RC / 90-99=stable
|
||||
|
||||
for (TaskExecutionRequest tr : getGradle().getStartParameter().getTaskRequests()) {
|
||||
for (String arg : tr.args) {
|
||||
// any gplay, but only exact "build", as e.g. buildGeneric shall not apply gplay.grade
|
||||
if (arg.contains("Gplay") || arg.contains("lint") || arg.contains("executeScreenshot") || arg == "build") {
|
||||
if (arg.contains("Gplay") || arg.contains("lint") || arg.contains("ExecuteScreenshot") || arg == "build") {
|
||||
apply from: 'gplay.gradle'
|
||||
System.console().println("Applying gplay.gradle")
|
||||
break
|
||||
@@ -99,17 +98,11 @@ for (TaskExecutionRequest tr : getGradle().getStartParameter().getTaskRequests()
|
||||
}
|
||||
}
|
||||
|
||||
spotbugs {
|
||||
toolVersion = '3.1.12'
|
||||
}
|
||||
|
||||
shot {
|
||||
appId = 'com.nextcloud.client'
|
||||
instrumentationTestTask = 'connectedGplayDebugAndroidTest'
|
||||
}
|
||||
|
||||
android {
|
||||
lintOptions {
|
||||
checkGeneratedSources = true
|
||||
abortOnError false
|
||||
htmlReport true
|
||||
htmlOutput file("$project.buildDir/reports/lint/lint.html")
|
||||
@@ -119,7 +112,8 @@ android {
|
||||
'IconMissingDensityFolder',
|
||||
'IconDensities',
|
||||
'GoogleAppIndexingWarning',
|
||||
'MissingDefaultResource'
|
||||
'MissingDefaultResource',
|
||||
'InvalidPeriodicWorkRequestInterval' // crashes due to a bug in lint itself
|
||||
}
|
||||
|
||||
dexOptions {
|
||||
@@ -129,7 +123,7 @@ android {
|
||||
compileSdkVersion 29
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 16
|
||||
minSdkVersion 18
|
||||
targetSdkVersion 29
|
||||
|
||||
// arguments to be passed to functional tests
|
||||
@@ -177,8 +171,8 @@ android {
|
||||
versionDev {
|
||||
applicationId "com.nextcloud.android.beta"
|
||||
dimension "default"
|
||||
versionCode 20200212
|
||||
versionName "20200212"
|
||||
versionCode 20200701
|
||||
versionName "20200701"
|
||||
}
|
||||
|
||||
qa {
|
||||
@@ -191,7 +185,6 @@ android {
|
||||
|
||||
testOptions {
|
||||
unitTests.returnDefaultValues = true
|
||||
execution 'ANDROIDX_TEST_ORCHESTRATOR'
|
||||
animationsDisabled true
|
||||
}
|
||||
}
|
||||
@@ -200,7 +193,7 @@ android {
|
||||
// see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Configuring-the-Structure
|
||||
|
||||
dexOptions {
|
||||
// Skip pre-dexing when running on Travis CI or when disabled via -Dpre-dex=false.
|
||||
// Skip pre-dexing when running on Travis CI or when disabled via -D pre-dex=false.
|
||||
preDexLibraries = preDexEnabled && !travisBuild
|
||||
}
|
||||
|
||||
@@ -242,37 +235,33 @@ android {
|
||||
android.applicationVariants.all { variant ->
|
||||
String variantName = variant.name
|
||||
String capVariantName = variantName.substring(0, 1).toUpperCase() + variantName.substring(1)
|
||||
tasks.register("spotbugs${capVariantName}", SpotBugsTask) {
|
||||
tasks.register("spotbugs${capVariantName}Report", SpotBugsTask) {
|
||||
ignoreFailures = true // should continue checking
|
||||
effort = "max"
|
||||
reportLevel = "medium"
|
||||
classes = fileTree("$project.buildDir/intermediates/javac/${variantName}/classes/")
|
||||
excludeFilter = file("${project.rootDir}/spotbugs-filter.xml")
|
||||
pluginClasspath = project.configurations.spotbugsPlugins
|
||||
source = fileTree('src/main/java')
|
||||
classpath = files()
|
||||
include '**/*.java'
|
||||
exclude '**/gen/**'
|
||||
|
||||
reports {
|
||||
xml.enabled = false
|
||||
html.enabled = true
|
||||
html {
|
||||
enabled = true
|
||||
destination = file("$project.buildDir/reports/spotbugs/spotbugs.html")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
check.dependsOn 'checkstyle', 'spotbugsGplayDebug', 'pmd', 'lint', 'ktlint', 'detekt'
|
||||
check.dependsOn 'checkstyle', 'spotbugsGplayDebugReport', 'pmd', 'lint', 'ktlint', 'detekt'
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
dataBinding {
|
||||
enabled true
|
||||
buildFeatures {
|
||||
dataBinding true
|
||||
viewBinding true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -284,33 +273,42 @@ dependencies {
|
||||
gplayImplementation "com.github.nextcloud:android-library:$androidLibraryVersion"
|
||||
versionDevImplementation "com.github.nextcloud:android-library:$androidLibraryVersion"
|
||||
qaImplementation "com.github.nextcloud:android-library:$androidLibraryVersion"
|
||||
|
||||
kapt 'javax.xml.bind:jaxb-api:2.3.1'
|
||||
kapt 'org.glassfish.jaxb:jaxb-core:2.3.0.1'
|
||||
kapt 'org.glassfish.jaxb:jaxb-runtime:2.3.3'
|
||||
|
||||
annotationProcessor 'javax.xml.bind:jaxb-api:2.3.1'
|
||||
annotationProcessor 'org.glassfish.jaxb:jaxb-core:2.3.0.1'
|
||||
annotationProcessor 'org.glassfish.jaxb:jaxb-runtime:2.3.3'
|
||||
|
||||
compileOnly 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2' // 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.1' // remove after entire switch to lib v2
|
||||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||||
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
||||
implementation 'com.google.android.material:material:1.1.0-rc02'
|
||||
implementation 'com.google.android.material:material:1.1.0'
|
||||
implementation 'com.jakewharton:disklrucache:2.0.2'
|
||||
implementation 'androidx.appcompat:appcompat:1.2.0-alpha02'
|
||||
implementation 'androidx.appcompat:appcompat:1.2.0-rc01'
|
||||
implementation 'androidx.cardview:cardview:1.0.0'
|
||||
implementation 'androidx.exifinterface:exifinterface:1.1.0'
|
||||
implementation 'androidx.exifinterface:exifinterface:1.2.0'
|
||||
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
|
||||
implementation "androidx.work:work-runtime:2.3.0"
|
||||
implementation "androidx.work:work-runtime-ktx:2.3.1"
|
||||
implementation "androidx.work:work-runtime:2.3.4"
|
||||
implementation "androidx.work:work-runtime-ktx:2.3.4"
|
||||
implementation "androidx.fragment:fragment:1.2.5"
|
||||
implementation 'com.github.albfernandez:juniversalchardet:2.0.3' // need this version for Android <7
|
||||
compileOnly 'com.google.code.findbugs:annotations:2.0.1'
|
||||
implementation 'commons-io:commons-io:2.6'
|
||||
implementation 'com.github.tobiaskaminsky:android-job:v1.2.6.1' // 'com.github.evernote:android-job:v1.2.5'
|
||||
implementation 'commons-io:commons-io:2.7'
|
||||
implementation 'com.jakewharton:butterknife:10.2.1'
|
||||
kapt 'com.jakewharton:butterknife-compiler:10.2.1'
|
||||
implementation 'org.greenrobot:eventbus:3.2.0'
|
||||
implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5'
|
||||
implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.6'
|
||||
implementation 'org.lukhnos:nnio:0.2'
|
||||
implementation 'com.madgag.spongycastle:pkix:1.54.0.0'
|
||||
implementation 'org.bouncycastle:bcpkix-jdk15on:1.65'
|
||||
implementation 'com.google.code.gson:gson:2.8.6'
|
||||
implementation 'com.afollestad:sectioned-recyclerview:0.5.0'
|
||||
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
|
||||
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.15'
|
||||
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.20'
|
||||
implementation 'com.github.tobiaskaminsky:qrcodescanner:0.1.2.2' // 'com.github.blikoon:QRCodeScanner:0.1.2'
|
||||
implementation 'com.google.android:flexbox:2.0.1'
|
||||
implementation 'org.parceler:parceler-api:1.1.13'
|
||||
@@ -333,11 +331,11 @@ dependencies {
|
||||
kapt "com.google.dagger:dagger-compiler:$daggerVersion"
|
||||
kapt "com.google.dagger:dagger-android-processor:$daggerVersion"
|
||||
|
||||
compileOnly "org.projectlombok:lombok:1.18.12"
|
||||
annotationProcessor "org.projectlombok:lombok:1.18.12"
|
||||
ktlint "com.pinterest:ktlint:0.37.2"
|
||||
implementation 'org.conscrypt:conscrypt-android:2.4.0'
|
||||
|
||||
ktlint "com.pinterest:ktlint:0.36.0"
|
||||
implementation 'org.conscrypt:conscrypt-android:2.2.1'
|
||||
// Shimmer animation
|
||||
implementation 'com.elyeproj.libraries:loaderviewlibrary:2.0.0'
|
||||
|
||||
// dependencies for markdown rendering
|
||||
implementation "io.noties.markwon:core:$markwonVersion"
|
||||
@@ -352,12 +350,12 @@ dependencies {
|
||||
|
||||
// dependencies for local unit tests
|
||||
testImplementation 'junit:junit:4.13'
|
||||
testImplementation 'org.mockito:mockito-core:3.2.4'
|
||||
testImplementation 'org.mockito:mockito-core:3.3.3'
|
||||
testImplementation 'androidx.test:core:1.2.0'
|
||||
testImplementation 'org.powermock:powermock-core:2.0.5'
|
||||
testImplementation 'org.powermock:powermock-module-junit4:2.0.5'
|
||||
testImplementation 'org.powermock:powermock-api-mockito2:2.0.5'
|
||||
testImplementation 'org.json:json:20190722'
|
||||
testImplementation 'org.powermock:powermock-core:2.0.7'
|
||||
testImplementation 'org.powermock:powermock-module-junit4:2.0.7'
|
||||
testImplementation 'org.powermock:powermock-api-mockito2:2.0.7'
|
||||
testImplementation 'org.json:json:20200518'
|
||||
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
|
||||
testImplementation "androidx.arch.core:core-testing:2.1.0"
|
||||
|
||||
@@ -372,7 +370,7 @@ dependencies {
|
||||
// Espresso core
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.2.0'
|
||||
androidTestImplementation 'org.mockito:mockito-core:3.2.4'
|
||||
androidTestImplementation 'org.mockito:mockito-core:3.3.1'
|
||||
// UIAutomator - for cross-app UI tests, and to grant screen is turned on in Espresso tests
|
||||
// androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
|
||||
// fix conflict in dependencies; see http://g.co/androidstudio/app-test-app-conflict for details
|
||||
@@ -390,6 +388,13 @@ dependencies {
|
||||
// androidJacocoAnt "org.jacoco:org.jacoco.agent:${jacocoVersion}"
|
||||
|
||||
implementation "com.github.stateless4j:stateless4j:2.6.0"
|
||||
androidTestImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
|
||||
androidTestImplementation "org.mockito:mockito-android:3.3.3"
|
||||
androidTestImplementation 'net.bytebuddy:byte-buddy:1.10.13'
|
||||
}
|
||||
|
||||
spotbugs {
|
||||
toolVersion = '3.1.12'
|
||||
}
|
||||
|
||||
configurations.all {
|
||||
@@ -412,17 +417,15 @@ android.applicationVariants.all { variant ->
|
||||
tasks.register("combinedTestReport", JacocoReport) {
|
||||
|
||||
reports {
|
||||
xml.enabled = true
|
||||
html.enabled = true
|
||||
xml.enabled true
|
||||
html.enabled true
|
||||
csv.enabled false
|
||||
}
|
||||
|
||||
def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*']
|
||||
def debugTree = fileTree(dir: "$project.buildDir/intermediates/classes/gplay/debug", excludes: fileFilter)
|
||||
def mainSrc = "$project.projectDir/src/main/java"
|
||||
|
||||
sourceDirectories = files([mainSrc])
|
||||
classDirectories = files([debugTree])
|
||||
executionData = fileTree(dir: project.buildDir, includes: [
|
||||
additionalSourceDirs.setFrom files(subprojects.sourceSets.main.allSource.srcDirs)
|
||||
sourceDirectories.setFrom files(subprojects.sourceSets.main.allSource.srcDirs)
|
||||
classDirectories.setFrom files(subprojects.sourceSets.main.output)
|
||||
executionData.setFrom project.fileTree(dir: project.buildDir, includes: [
|
||||
'jacoco/testGplayDebugUnitTest.exec', 'outputs/code-coverage/connected/flavors/GPLAY/*coverage.ec'
|
||||
])
|
||||
}
|
||||
|
||||
@@ -265,6 +265,7 @@ naming:
|
||||
functionPattern: '^([a-z$][a-zA-Z$0-9]*)|(`.*`)$'
|
||||
excludeClassPattern: '$^'
|
||||
ignoreOverridden: true
|
||||
excludes: "**/*Test.kt"
|
||||
FunctionParameterNaming:
|
||||
active: true
|
||||
parameterPattern: '[a-z][A-Za-z0-9]*'
|
||||
|
||||
@@ -1 +1,11 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 16 16" width="16" version="1.1"><path fill="#dc5047" d="m2.5 1c-0.28 0-0.5 0.22-0.5 0.5v13c0 0.28 0.22 0.5 0.5 0.5h11c0.28 0 0.5-0.22 0.5-0.5v-10.5l-3-3zm5.8 3.9s0.07 0.95-0.15 2.3c0.715 2.053 1.5 2.33 1.85 2.5 0.74-0.06 1.565-0.1 2.3 0.3 0.5 0.286 0.894 1.5-0.3 1.5-0.54-0.034-1.537-0.346-2.25-0.7-1.066 0.12-2.39 0.32-3.5 0.8-1.25 2.1-1.81 2.4-2.25 2.4-1.215-0.32-0.56-1.93-0.1-2.2 0.55-0.47 1.195-0.74 1.4-0.8 0.09-0.15 1.384-2.69 1.7-3.75-0.3-1.024-0.37-2.106-0.2-2.75 0.78-1.018 1.5-0.35 1.5 0.4zm-0.7 3.1c-0.27 1.057-1.348 3.084-1.3 3 1.105-0.485 2.1-0.63 3.2-0.8-0.526-0.235-1.146-0.25-1.9-2.2z"/></svg>
|
||||
<svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m2.5 1c-0.28 0-0.5 0.22-0.5 0.5v13c0 0.28 0.22 0.5 0.5 0.5h11c0.28 0 0.5-0.22 0.5-0.5v-10.5l-3-3z"
|
||||
fill="#dc5047" />
|
||||
<g fill="#fff" aria-label="PDF">
|
||||
<path
|
||||
d="m4.9093 8.443v1.057h-0.61813v-3h1.1703q0.33791 0 0.59341 0.12363 0.25755 0.12363 0.3956 0.35234 0.13805 0.22665 0.13805 0.51717 0 0.44093-0.30288 0.69643-0.30082 0.25343-0.83448 0.25343zm0-0.50069h0.5522q0.24519 0 0.37294-0.11538 0.12981-0.11538 0.12981-0.32967 0-0.22047-0.12981-0.35646t-0.35852-0.14011h-0.56662z" />
|
||||
<path
|
||||
d="m7.011 9.5v-3h0.92308q0.3956 0 0.70673 0.17926 0.31319 0.1772 0.48832 0.50687 0.17514 0.32761 0.17514 0.74588v0.13805q0 0.41827-0.17308 0.74382-0.17102 0.32555-0.4842 0.50481-0.31319 0.17926-0.70673 0.18132zm0.61813-2.4993v2.0027h0.29876q0.36264 0 0.55426-0.23695 0.19162-0.23695 0.19574-0.67788v-0.15865q0-0.45742-0.18956-0.69231-0.18956-0.23695-0.55426-0.23695z" />
|
||||
<path d="m11.56 8.274h-1.1868v1.226h-0.61813v-3h1.9533v0.50069h-1.3352v0.77473h1.1868z" />
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 676 B After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" viewBox="0 0 57 57" width="64" height="64"
|
||||
version="1.1" id="svg10" sodipodi:docname="circles.svg" inkscape:version="0.92.4 5da689c313, 2019-01-14">
|
||||
<metadata id="metadata16">
|
||||
<rdf:RDF>
|
||||
<cc:Work rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs id="defs14" />
|
||||
<sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10"
|
||||
gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920" inkscape:window-height="1141" id="namedview12" showgrid="false"
|
||||
inkscape:zoom="7.375" inkscape:cx="33.445579" inkscape:cy="41.701636" inkscape:window-x="0"
|
||||
inkscape:window-y="0" inkscape:window-maximized="1" inkscape:current-layer="svg10" />
|
||||
<path d="M7.1 28.5A21.4 21.4 0 0 1 28.5 7.1m10.7 40A21.4 21.4 0 0 1 10 39M39.2 10A21.4 21.4 0 0 1 47 39.2"
|
||||
fill="none" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" id="path2"
|
||||
style="stroke:#000000;stroke-opacity:1;stroke-width:3.99979687;stroke-miterlimit:4;stroke-dasharray:none;fill:none;fill-opacity:1" />
|
||||
<circle cx="28.5" cy="7.1" r="6.5" fill="#fff" id="circle4" style="fill:#000000" />
|
||||
<circle cx="39.2" cy="-10" r="6.5" transform="rotate(90)" fill="#fff" id="circle6" style="fill:#000000" />
|
||||
<circle cx="39.2" cy="-47" r="6.5" transform="rotate(90)" fill="#fff" id="circle8" style="fill:#000000" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
@@ -1,5 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" version="1">
|
||||
<path
|
||||
d="M1.46 2c-.25 0-.46.21-.46.46v11.08c0 .257.203.46.46.46h13.08c.257 0 .46-.203.46-.46V4.462a.47.47 0 0 0-.46-.465H8L6 2H1.46zm7.583 3.82c.671 0 1.24.49 1.24 1.123v.014c-.007.197-.007.424-.142.969l-.012.011a.914.914 0 0 1-.156.26c-.067.086-.145.173-.22.258l-.089.104c-.013.05-.03.104-.039.154-.038.187-.019.308 0 .35.333.141.668.267.955.388.314.133.584.264.764.479a.208.208 0 0 1 .05.103c.02.155.036.417.053.684.017.267.035.54.051.66a.212.212 0 0 1-.103.207c-.566.301-1.457.434-2.352.437-.895.004-1.793-.121-2.377-.437a.212.212 0 0 1-.104-.207c.022-.171.044-.385.069-.598l-.022.002c-.614.003-1.23-.084-1.63-.3a.146.146 0 0 1-.07-.143c.033-.264.076-.656.105-.922a.111.111 0 0 1 0-.018c.03-.129.12-.173.213-.23.091-.057.204-.105.328-.158.22-.096.466-.179.664-.248a.69.69 0 0 0-.018-.248l-.035-.153-.018-.017a3.558 3.558 0 0 1-.168-.186c-.05-.059-.088-.102-.115-.178l-.01-.007v-.01a3.08 3.08 0 0 1-.097-.664c0-.435.391-.772.851-.772.46 0 .852.337.852.772v.01c-.005.135-.005.29-.098.664l-.01.01a.61.61 0 0 1-.105.175c-.045.059-.1.12-.15.178l-.063.07c-.009.036-.02.074-.027.108a.448.448 0 0 0 0 .238c.228.097.46.183.656.266.15.063.277.134.387.216.144-.051.297-.114.424-.158a1.03 1.03 0 0 0-.026-.361c-.015-.07-.036-.149-.053-.22l-.025-.026a5.503 5.503 0 0 1-.246-.272c-.074-.085-.13-.148-.168-.258l-.012-.013v-.014c-.12-.522-.138-.768-.142-.969 0-.633.569-1.123 1.24-1.123z"
|
||||
fill="#0082c9" fill-rule="evenodd" />
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.5 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 16 16" width="16" version="1.1"><path fill="#0082c9" d="m1.5 2c-0.25 0-0.5 0.25-0.5 0.5v11c0 0.26 0.24 0.5 0.5 0.5h13c0.26 0 0.5-0.241 0.5-0.5v-9c0-0.25-0.25-0.5-0.5-0.5h-6.5l-2-2h-4.5zm8.75 3.5a1.25 1.25 0 0 1 1.25 1.25 1.25 1.25 0 0 1 -1.25 1.25 1.25 1.25 0 0 1 -0.8008 -0.291l-2.4512 1.2265a1.25 1.25 0 0 1 0.002 0.0645 1.25 1.25 0 0 1 -0.0039 0.0645l2.4531 1.2265a1.25 1.25 0 0 1 0.8008 -0.291 1.25 1.25 0 0 1 1.25 1.25 1.25 1.25 0 0 1 -1.25 1.25 1.25 1.25 0 0 1 -1.25 -1.25 1.25 1.25 0 0 1 0.0039 -0.064l-2.4531-1.227a1.25 1.25 0 0 1 -0.8008 0.291 1.25 1.25 0 0 1 -1.25 -1.25 1.25 1.25 0 0 1 1.25 -1.25 1.25 1.25 0 0 1 0.8008 0.291l2.4512-1.2265a1.25 1.25 0 0 1 -0.002 -0.0645 1.25 1.25 0 0 1 1.25 -1.25z"/></svg>
|
||||
|
Before Width: | Height: | Size: 784 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 16 16" width="16" version="1.1"><path fill="#0082c9" d="m1.5 2c-0.25 0-0.5 0.25-0.5 0.5v11c0 0.26 0.24 0.5 0.5 0.5h13c0.26 0 0.5-0.241 0.5-0.5v-9c0-0.25-0.25-0.5-0.5-0.5h-6.5l-2-2h-4.5zm6.5 3.25l1.1 2.6504 2.9 0.2246-2.25 1.875 0.75 2.75-2.5-1.551-2.5 1.551 0.75-2.75-2.25-1.875 2.9-0.2246 1.1-2.6504z"/></svg>
|
||||
|
Before Width: | Height: | Size: 376 B |
@@ -1,56 +1 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
height="17.066668"
|
||||
width="17.066668"
|
||||
version="1"
|
||||
id="svg2"
|
||||
inkscape:version="0.92.2 2405546, 2018-03-11"
|
||||
sodipodi:docname="folder.svg"
|
||||
inkscape:export-filename="C:\DEV\src\Android\Nextcloud\colorFolderNew\src\main\res\drawable-xxxhdpi\ic_list_empty_folder.png"
|
||||
inkscape:export-xdpi="1620"
|
||||
inkscape:export-ydpi="1620">
|
||||
<metadata
|
||||
id="metadata10">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs8"/>
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1600"
|
||||
inkscape:window-height="871"
|
||||
id="namedview6"
|
||||
showgrid="false"
|
||||
inkscape:zoom="14.75"
|
||||
inkscape:cx="19.423729"
|
||||
inkscape:cy="8"
|
||||
inkscape:window-x="1600"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg2"/>
|
||||
<path
|
||||
d="m 1.5541333,2.1301333 c -0.2666666,0 -0.4906666,0.224 -0.4906666,0.4906667 v 11.818667 c 0,0.277333 0.2154666,0.490666 0.4906666,0.490666 H 15.506133 c 0.2752,0 0.490667,-0.213333 0.490667,-0.490666 V 4.7573333 c 0,-0.2666666 -0.224,-0.4938666 -0.490667,-0.4938666 H 8.5301333 L 6.3968,2.1301333 Z"
|
||||
id="path4"
|
||||
style="fill:#0082c9;fill-opacity:1;fill-rule:evenodd;stroke-width:1.06666672;opacity:1"
|
||||
inkscape:connector-curvature="0"/>
|
||||
</svg>
|
||||
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z" /></svg>
|
||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 388 B |
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
id="svg3738"
|
||||
sodipodi:docname="folder-group.svg"
|
||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||
<metadata
|
||||
id="metadata3744">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs3742" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="2520"
|
||||
inkscape:window-height="1481"
|
||||
id="namedview3740"
|
||||
showgrid="false"
|
||||
showguides="true"
|
||||
inkscape:guide-bbox="true"
|
||||
inkscape:zoom="27.812867"
|
||||
inkscape:cx="20.589505"
|
||||
inkscape:cy="10.4013"
|
||||
inkscape:window-x="2869"
|
||||
inkscape:window-y="-11"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg3738">
|
||||
<sodipodi:guide
|
||||
position="12.025424,12.737288"
|
||||
orientation="1,0"
|
||||
id="guide3746"
|
||||
inkscape:locked="false" />
|
||||
<sodipodi:guide
|
||||
position="1.0606602,11.020079"
|
||||
orientation="0,1"
|
||||
id="guide3748"
|
||||
inkscape:locked="false" />
|
||||
</sodipodi:namedview>
|
||||
<path
|
||||
d="M 4 4 C 2.89 4 2 4.89 2 6 L 2 18 C 2 19.104569 2.8954305 20 4 20 L 20 20 C 21.104569 20 22 19.104569 22 18 L 22 8 C 22 6.89 21.1 6 20 6 L 12 6 L 10 4 L 4 4 z M 12.025391 8.6132812 A 2.0714286 2.0714286 0 0 1 14.097656 10.685547 L 14.097656 11.513672 L 14.511719 11.513672 A 0.82857142 0.82857142 0 0 1 15.339844 12.341797 L 15.339844 16.484375 A 0.82857142 0.82857142 0 0 1 14.511719 17.314453 L 9.5390625 17.314453 A 0.82857142 0.82857142 0 0 1 8.7109375 16.484375 L 8.7109375 12.341797 C 8.7109375 11.88194 9.0833475 11.513672 9.5390625 11.513672 L 9.953125 11.513672 L 9.953125 10.685547 A 2.0714286 2.0714286 0 0 1 12.025391 8.6132812 z M 12.025391 9.4414062 A 1.2428571 1.2428571 0 0 0 10.783203 10.685547 L 10.783203 11.513672 L 13.267578 11.513672 L 13.267578 10.685547 A 1.2428571 1.2428571 0 0 0 12.025391 9.4414062 z M 12.025391 13.585938 A 0.82857142 0.82857142 0 0 0 11.197266 14.414062 A 0.82857142 0.82857142 0 0 0 12.025391 15.242188 A 0.82857142 0.82857142 0 0 0 12.853516 14.414062 C 12.853516 13.954206 12.481105 13.585937 12.025391 13.585938 z "
|
||||
id="path3736" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.9 KiB |
@@ -1,5 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" version="1">
|
||||
<path
|
||||
d="M1.46 2c-.25 0-.46.21-.46.46v11.08c0 .258.202.46.46.46h13.08c.258 0 .46-.202.46-.46V4.462c0-.25-.21-.463-.46-.463H8L6 2H1.46zm6.517 3.793h3.57v3.385L10.355 8.05 8.57 9.743l-1.19-1.13 1.786-1.69-1.19-1.13zm-2.38.564H7.38l.597.565h-2.38v4.514h4.758V9.178l.596.564v1.694c0 .312-.265.564-.595.564h-4.76c-.33 0-.595-.252-.595-.564V6.922c0-.313.266-.565.596-.565z"
|
||||
fill-rule="evenodd" fill="#0082c9"/>
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
||||
<path d="M10,4L4,4C2.89,4 2,4.89 2,6L2,18C2,19.097 2.903,20 4,20L20,20C21.097,20 22,19.097 22,18L22,8C22,6.89 21.1,6 20,6L12,6L10,4ZM8.453,9.652L10.823,9.652L11.616,10.403L8.453,10.403L8.453,16.403L14.776,16.403L14.776,13.402L15.569,14.151L15.569,16.403C15.569,16.817 15.216,17.152 14.778,17.152L8.451,17.152C8.013,17.152 7.661,16.817 7.661,16.403L7.661,10.403C7.661,9.987 8.014,9.652 8.453,9.652ZM11.616,8.903L16.361,8.903L16.361,13.402L14.776,11.902L12.404,14.152L10.823,12.651L13.196,10.405L11.616,8.903Z" style="fill-rule:nonzero;"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 508 B After Width: | Height: | Size: 992 B |
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
id="svg3738"
|
||||
sodipodi:docname="folder-group.svg"
|
||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||
<metadata
|
||||
id="metadata3744">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs3742" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="2520"
|
||||
inkscape:window-height="1481"
|
||||
id="namedview3740"
|
||||
showgrid="false"
|
||||
showguides="true"
|
||||
inkscape:guide-bbox="true"
|
||||
inkscape:zoom="39.333333"
|
||||
inkscape:cx="5.613764"
|
||||
inkscape:cy="12.065596"
|
||||
inkscape:window-x="2869"
|
||||
inkscape:window-y="-11"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg3738">
|
||||
<sodipodi:guide
|
||||
position="12.025424,12.737288"
|
||||
orientation="1,0"
|
||||
id="guide3746"
|
||||
inkscape:locked="false" />
|
||||
<sodipodi:guide
|
||||
position="1.0606602,11.020079"
|
||||
orientation="0,1"
|
||||
id="guide3748"
|
||||
inkscape:locked="false" />
|
||||
</sodipodi:namedview>
|
||||
<path
|
||||
d="M 4 4 C 2.89 4 2 4.89 2 6 L 2 18 C 2 19.104569 2.8954305 20 4 20 L 20 20 C 21.104569 20 22 19.104569 22 18 L 22 8 C 22 6.89 21.1 6 20 6 L 12 6 L 10 4 L 4 4 z M 10.224609 8.6347656 A 2.0299929 2.0299929 0 0 1 12.3125 10.664062 A 2.0299929 2.0299929 0 0 1 10.283203 12.693359 A 2.0299929 2.0299929 0 0 1 10.224609 8.6347656 z M 13.763672 8.6347656 A 2.0299932 2.0299932 0 0 1 13.763672 12.693359 A 1.9661931 1.9661931 0 0 1 12.644531 12.351562 A 2.8999899 2.8999899 0 0 0 12.644531 8.9765625 A 1.9661931 1.9661931 0 0 1 13.763672 8.6347656 z M 10.283203 13.853516 C 14.343189 13.853516 14.34375 16.173828 14.34375 16.173828 L 14.34375 17.333984 L 6.2226562 17.333984 L 6.2226562 16.173828 C 6.2226562 16.173828 6.2232172 13.853516 10.283203 13.853516 z M 14.308594 13.853516 C 17.823381 14.068115 17.822266 16.173828 17.822266 16.173828 L 17.822266 17.333984 L 15.503906 17.333984 L 15.503906 16.173828 A 3.0855892 3.0855892 0 0 0 14.308594 13.853516 z "
|
||||
id="path3736" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.8 KiB |
@@ -1,4 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 16 16" width="16" version="1.1">
|
||||
<path fill="#0082c9"
|
||||
d="m1.5 2c-0.25 0-0.5 0.25-0.5 0.5v11c0 0.26 0.24 0.5 0.5 0.5h13c0.26 0 0.5-0.241 0.5-0.5v-9c0-0.25-0.25-0.5-0.5-0.5h-6.5l-2-2h-4.5zm8.334 3.5c0.434-0.0019 0.866 0.1545 1.186 0.4746 0.64 0.6407 0.64 1.742 0 2.3828l-0.85 0.8496c0.027-0.4496-0.019-0.7497-0.3067-1.1562l0.4237-0.4258c0.275-0.2752 0.252-0.6283 0.002-0.916-0.27-0.2699-0.644-0.2702-0.916 0.0019l-1.6464 1.6465c-0.2829 0.283-0.2956 0.6223-0.002 0.916l-0.7305 0.7326c-0.2872-0.2874-0.4858-0.6731-0.5117-1.1076-0.0256-0.4344 0.1457-0.9071 0.5117-1.2734l1.6465-1.6484c0.3245-0.3147 0.7598-0.4747 1.1934-0.4766zm-0.8262 2.4902c0.2882 0.2871 0.4869 0.6743 0.5117 1.1094 0.0254 0.4352-0.1449 0.9064-0.5117 1.2734l-1.6484 1.647c-0.6396 0.639-1.7395 0.639-2.3789 0-0.6396-0.64-0.6415-1.738 0-2.3794l0.8613-0.8633c-0.0263 0.4493 0.0227 0.7505 0.3105 1.1563l-0.4394 0.4394c-0.2588 0.259-0.3242 0.59 0 0.914 0.2438 0.244 0.5557 0.307 0.916 0l1.6465-1.6464c0.2647-0.2648 0.2866-0.6331 0.0019-0.9179l0.7305-0.7325z"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
id="svg3738"
|
||||
sodipodi:docname="folder_public.svg"
|
||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||
<metadata
|
||||
id="metadata3744">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs3742" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="2520"
|
||||
inkscape:window-height="1481"
|
||||
id="namedview3740"
|
||||
showgrid="false"
|
||||
showguides="true"
|
||||
inkscape:guide-bbox="true"
|
||||
inkscape:zoom="27.812867"
|
||||
inkscape:cx="19.008573"
|
||||
inkscape:cy="7.4638855"
|
||||
inkscape:window-x="2869"
|
||||
inkscape:window-y="-11"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg3738">
|
||||
<sodipodi:guide
|
||||
position="12.025424,12.737288"
|
||||
orientation="1,0"
|
||||
id="guide3746"
|
||||
inkscape:locked="false" />
|
||||
<sodipodi:guide
|
||||
position="1.0606602,11.020079"
|
||||
orientation="0,1"
|
||||
id="guide3748"
|
||||
inkscape:locked="false" />
|
||||
</sodipodi:namedview>
|
||||
<path
|
||||
d="M 4 4 C 2.89 4 2 4.89 2 6 L 2 18 C 2 19.104569 2.8954305 20 4 20 L 20 20 C 21.104569 20 22 19.104569 22 18 L 22 8 C 22 6.89 21.1 6 20 6 L 12 6 L 10 4 L 4 4 z M 14.3125 8.7167969 C 14.834031 8.7167969 15.355444 8.9140378 15.75 9.3085938 C 16.539112 10.097706 16.539112 11.393256 15.75 12.183594 L 14.466797 13.466797 C 14.520098 12.985243 14.444634 12.498869 14.236328 12.054688 L 14.929688 11.361328 C 15.278905 11.013335 15.27768 10.480077 14.929688 10.130859 C 14.581694 9.7816405 14.04526 9.7816405 13.697266 10.130859 L 11.644531 12.183594 A 0.8577305 0.8577305 0 0 0 11.886719 13.582031 L 11.041016 14.429688 C 10.961982 14.371484 10.893336 14.308618 10.822266 14.236328 A 2.0413986 2.0413986 0 0 1 10.822266 11.361328 L 12.875 9.3085938 C 13.269556 8.9140377 13.790969 8.7167969 14.3125 8.7167969 z M 13.068359 11.580078 A 1.9151897 1.9151897 0 0 1 13.285156 11.771484 A 2.0413986 2.0413986 0 0 1 13.285156 14.646484 L 13.285156 14.648438 L 11.232422 16.701172 C 10.44331 17.491509 9.146534 17.490284 8.3574219 16.701172 C 7.5683099 15.91206 7.5683099 14.616509 8.3574219 13.826172 L 9.640625 12.542969 A 2.627106 2.627106 0 0 0 9.8730469 13.955078 L 9.1796875 14.648438 C 8.8316939 14.996431 8.8310813 15.530912 9.1796875 15.878906 C 9.5282936 16.226925 10.062891 16.228125 10.412109 15.878906 L 12.464844 13.826172 A 0.8577305 0.8577305 0 0 0 12.220703 12.427734 L 13.068359 11.580078 z "
|
||||
id="path3736" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.2 KiB |
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
id="svg3738"
|
||||
sodipodi:docname="folder-shared.svg"
|
||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||
<metadata
|
||||
id="metadata3744">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs3742" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="2520"
|
||||
inkscape:window-height="1481"
|
||||
id="namedview3740"
|
||||
showgrid="false"
|
||||
showguides="true"
|
||||
inkscape:guide-bbox="true"
|
||||
inkscape:zoom="27.812867"
|
||||
inkscape:cx="-0.64166953"
|
||||
inkscape:cy="11.271299"
|
||||
inkscape:window-x="2869"
|
||||
inkscape:window-y="-11"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg3738">
|
||||
<sodipodi:guide
|
||||
position="12.025424,12.737288"
|
||||
orientation="1,0"
|
||||
id="guide3746"
|
||||
inkscape:locked="false" />
|
||||
<sodipodi:guide
|
||||
position="1.0606602,11.020079"
|
||||
orientation="0,1"
|
||||
id="guide3748"
|
||||
inkscape:locked="false" />
|
||||
</sodipodi:namedview>
|
||||
<path
|
||||
d="M 4 4 C 2.89 4 2 4.89 2 6 L 2 18 A 2 2 0 0 0 4 20 L 20 20 A 2 2 0 0 0 22 18 L 22 8 C 22 6.89 21.1 6 20 6 L 12 6 L 10 4 L 4 4 z M 14.933594 8.1679688 A 1.449999 1.449999 0 0 1 16.382812 9.6191406 A 1.449999 1.449999 0 0 1 14.933594 11.068359 C 14.55176 11.068359 14.208265 10.9194 13.947266 10.677734 L 10.539062 12.664062 C 10.563222 12.77523 10.583984 12.885951 10.583984 13.001953 C 10.583984 13.117952 10.563223 13.228676 10.539062 13.339844 L 13.986328 15.345703 C 14.237662 15.118536 14.566259 14.974609 14.933594 14.974609 A 1.4113325 1.4113325 0 0 1 16.345703 16.384766 C 16.345703 17.162932 15.711761 17.791016 14.933594 17.791016 C 14.155428 17.791016 13.521484 17.162932 13.521484 16.384766 C 13.521484 16.273599 13.536387 16.167908 13.560547 16.066406 L 10.119141 14.060547 C 9.8581421 14.302213 9.5146455 14.451172 9.1328125 14.451172 A 1.449999 1.449999 0 0 1 7.6835938 13.001953 A 1.449999 1.449999 0 0 1 9.1328125 11.552734 C 9.5146455 11.552734 9.8581421 11.701692 10.119141 11.943359 L 13.527344 9.9570312 C 13.503184 9.8458632 13.484375 9.7351412 13.484375 9.6191406 A 1.449999 1.449999 0 0 1 14.933594 8.1679688 z "
|
||||
id="path3736" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.9 KiB |
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
||||
<path d="M10,4L4,4C2.89,4 2,4.89 2,6L2,18C2,19.097 2.903,20 4,20L20,20C21.097,20 22,19.097 22,18L22,8C22,6.89 21.1,6 20,6L12,6L10,4ZM11.988,8.52L13.26,11.583L16.611,11.843L14.011,14.01L14.878,17.188L11.988,15.395L9.099,17.188L9.966,14.01L7.365,11.843L10.717,11.583L11.988,8.52Z" style="fill-rule:nonzero;"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 762 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" version="1"><path fill-rule="evenodd" fill="#0082c9" d="m1.4609 2c-0.25 0-0.4609 0.2109-0.4609 0.4609v11.078c0 0.258 0.2029 0.461 0.4609 0.461h13.078c0.258 0 0.461-0.203 0.461-0.461v-9.0761c0-0.25-0.211-0.4649-0.461-0.4649h-6.539l-2-1.998h-4.5391zm6.5391 3.8008c0.8836 0 1.5996 0.7159 1.5996 1.5996v0.7988h0.4004v2.8008h-4v-2.8008h0.4004v-0.7988c0-0.8837 0.716-1.5996 1.5996-1.5996zm0 0.7988c-0.4419 0-0.8008 0.3589-0.8008 0.8008v0.7988h1.6016v-0.7988c0-0.4419-0.3589-0.8008-0.8008-0.8008z"/></svg>
|
||||
|
Before Width: | Height: | Size: 562 B |
@@ -1 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M3,13H15V11H3M3,6V8H21V6M3,18H9V16H3V18Z" /></svg>
|
||||
|
Before Width: | Height: | Size: 335 B |
@@ -1,20 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
height="16"
|
||||
width="16"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
sodipodi:docname="shared_via_link.svg"
|
||||
inkscape:version="0.92.2 2405546, 2018-03-11"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" inkscape:export-ydpi="384" inkscape:export-xdpi="384"
|
||||
inkscape:export-filename="C:\DEV\src\Android\Nextcloud\greySharedIndicator\res\drawable-xxxhdpi\shared_via_link.png"
|
||||
inkscape:export-xdpi="384"
|
||||
inkscape:export-ydpi="384">
|
||||
inkscape:version="1.0 (4035a4fb49, 2020-05-01)" sodipodi:docname="shared_via_link.svg" id="svg8" version="1.1"
|
||||
width="16" height="16">
|
||||
<metadata
|
||||
id="metadata14">
|
||||
<rdf:RDF>
|
||||
@@ -28,37 +19,18 @@
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs12" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1600"
|
||||
inkscape:window-height="871"
|
||||
id="namedview10"
|
||||
showgrid="false"
|
||||
inkscape:zoom="29.5"
|
||||
inkscape:cx="-1.1061145"
|
||||
inkscape:cy="7.2856262"
|
||||
inkscape:window-x="1600"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg8"/>
|
||||
<g
|
||||
color="#000"
|
||||
id="g6"
|
||||
style="fill:#000000;fill-opacity:1;stroke:#ffffff;stroke-opacity:1;stroke-width:0.2;stroke-miterlimit:4;stroke-dasharray:none;opacity:0.8">
|
||||
<path
|
||||
style="block-progression:tb;text-transform:none;text-indent:0;fill:#000000;fill-opacity:1;stroke:#ffffff;stroke-opacity:1;stroke-width:0.2;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
<sodipodi:namedview inkscape:document-rotation="0" inkscape:current-layer="g6" inkscape:window-maximized="1"
|
||||
inkscape:window-y="0" inkscape:window-x="0" inkscape:cy="8.0173062" inkscape:cx="5.9813853"
|
||||
inkscape:zoom="41.7193" showgrid="false" id="namedview10" inkscape:window-height="1141"
|
||||
inkscape:window-width="1920" inkscape:pageshadow="2" inkscape:pageopacity="0" guidetolerance="10"
|
||||
gridtolerance="10" objecttolerance="10" borderopacity="1" bordercolor="#666666" pagecolor="#ffffff" />
|
||||
<g style="fill:#000000;fill-opacity:1;stroke:#ffffff;stroke-opacity:1;stroke-width:0.2;stroke-miterlimit:4;stroke-dasharray:none;opacity:0.8"
|
||||
id="g6" color="#000">
|
||||
<path id="path2"
|
||||
d="M5.99 5.318a3.332 3.332 0 0 0 0 4.693c.116.118.226.22.355.315l1.383-1.383A1.4 1.4 0 0 1 7.33 6.66l3.352-3.352c.568-.57 1.442-.57 2.01 0s.57 1.442 0 2.01l-1.13 1.132c.34.725.464 1.518.377 2.304l2.094-2.095c1.288-1.29 1.288-3.406 0-4.694s-3.405-1.288-4.693 0L5.99 5.318z"
|
||||
id="path2"/>
|
||||
<path
|
||||
style="block-progression:tb;text-transform:none;text-indent:0;fill:#000000;fill-opacity:1;stroke:#ffffff;stroke-opacity:1;stroke-width:0.2;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
style="block-progression:tb;text-transform:none;text-indent:0;fill:#000000;fill-opacity:1;stroke:none;stroke-opacity:1;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none" />
|
||||
<path id="path4"
|
||||
d="M10.01 10.68a3.332 3.332 0 0 0 0-4.692 3.126 3.126 0 0 0-.355-.314L8.272 7.057A1.4 1.4 0 0 1 8.67 9.34l-3.35 3.35c-.57.57-1.444.57-2.013.002s-.568-1.442 0-2.01L4.44 9.55a4.288 4.288 0 0 1-.38-2.305L1.967 9.34c-1.288 1.29-1.288 3.405 0 4.693s3.405 1.29 4.693 0l3.35-3.352z"
|
||||
id="path4"/>
|
||||
style="block-progression:tb;text-transform:none;text-indent:0;fill:#000000;fill-opacity:1;stroke:none;stroke-opacity:1;stroke-width:0.2;stroke-miterlimit:4;stroke-dasharray:none" />
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.6 KiB |
@@ -1,3 +1,3 @@
|
||||
dependencies {
|
||||
implementation "com.google.firebase:firebase-messaging:17.3.0"
|
||||
implementation "com.google.firebase:firebase-messaging:20.1.3"
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
#Wed Aug 21 07:03:37 CEST 2019
|
||||
#Fri May 29 07:39:21 CEST 2020
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
|
||||
@@ -5,9 +5,9 @@
|
||||
<ignore regexp="autofillHints"/>
|
||||
</issue>
|
||||
<issue id="InvalidPackage">
|
||||
<ignore path="**/freemarker-2.3.28.jar" />
|
||||
<ignore path="**/freemarker-2.*.*.jar" />
|
||||
<ignore path="**/nnio-0.2.jar"/>
|
||||
<ignore path="**/pkix-1.54.0.0.jar"/>
|
||||
<ignore path="**/bcpkix-jdk15on-1.65.jar" />
|
||||
</issue>
|
||||
|
||||
<issue id="UnusedResources">
|
||||
@@ -44,4 +44,22 @@
|
||||
<ignore path="**/values-**/strings.xml" />
|
||||
</issue>
|
||||
|
||||
<issue id="TrustAllX509TrustManager">
|
||||
<ignore path="**/bouncycastle/est/jcajce/*.class" />
|
||||
</issue>
|
||||
|
||||
<issue id="RestrictedApi" severity="error">
|
||||
<ignore path="build" />
|
||||
</issue>
|
||||
|
||||
<issue id="NewApi" severity="error">
|
||||
<ignore path="build" />
|
||||
</issue>
|
||||
|
||||
<issue id="ObsoleteLintCustomCheck" severity="warning">
|
||||
<ignore path="**/fragment-1.2.5/**/lint.jar" />
|
||||
<ignore path="**/work-runtime-2.3.4/**/lint.jar" />
|
||||
<ignore path="**/jetified-butterknife-runtime-10.2.1/**/lint.jar" />
|
||||
<ignore path="**/jetified-dagger-lint-aar-2.28.1/**/lint.jar" />
|
||||
</issue>
|
||||
</lint>
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<full-backup-content>
|
||||
<exclude domain="sharedpref" path="evernote_jobs.xml" />
|
||||
<exclude domain="database" path="evernote_jobs.db" />
|
||||
</full-backup-content>
|
||||
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 18 KiB |
@@ -17,13 +17,6 @@ lintValue=$?
|
||||
ruby scripts/analysis/findbugs-up.rb $1 $2 $3
|
||||
findbugsValue=$?
|
||||
|
||||
|
||||
./gradlew ktlint
|
||||
ktlintValue=$?
|
||||
|
||||
./gradlew detekt
|
||||
detektValue=$?
|
||||
|
||||
# exit codes:
|
||||
# 0: count was reduced
|
||||
# 1: count was increased
|
||||
@@ -127,17 +120,6 @@ else
|
||||
findbugsMessage="<h1>SpotBugs increased!</h1>"
|
||||
fi
|
||||
|
||||
if ( [ $ktlintValue -eq 1 ] ) ; then
|
||||
sed -i ':a;N;$!ba;s#\n#<br />#g;s#^<br />##g' build/ktlint.txt
|
||||
curl -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/android-ktlint/$6.html --upload-file build/ktlint.txt
|
||||
ktlintMessage="<h1>Kotlin lint found errors</h1><a href='https://www.kaminsky.me/nc-dev/android-ktlint/$6.html'>Lint</a>"
|
||||
fi
|
||||
|
||||
if ( [ $detektValue -eq 1 ] ) ; then
|
||||
curl -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/android-detekt/$6.html --upload-file build/reports/detekt/detekt.html
|
||||
detektMessage="<h1>Detekt errors found</h1><a href='https://www.kaminsky.me/nc-dev/android-detekt/$6.html'>Lint</a>"
|
||||
fi
|
||||
|
||||
# check gplay limitation: all changelog files must only have 500 chars
|
||||
gplayLimitation=$(scripts/checkGplayLimitation.sh)
|
||||
|
||||
@@ -145,7 +127,7 @@ else
|
||||
gplayLimitation="<h1>Following files are beyond 500 char limit:</h1><br><br>"$gplayLimitation
|
||||
fi
|
||||
|
||||
curl -u $1:$2 -X POST https://api.github.com/repos/nextcloud/android/issues/$7/comments -d "{ \"body\" : \"$codacyResult $lintResult $findbugsResultNew $findbugsResultOld $checkLibraryMessage $lintMessage $findbugsMessage $ktlintMessage $detektMessage $gplayLimitation \" }"
|
||||
curl -u $1:$2 -X POST https://api.github.com/repos/nextcloud/android/issues/$7/comments -d "{ \"body\" : \"$codacyResult $lintResult $findbugsResultNew $findbugsResultOld $checkLibraryMessage $lintMessage $findbugsMessage $gplayLimitation \" }"
|
||||
|
||||
if [ ! -z "$gplayLimitation" ]; then
|
||||
exit 1
|
||||
@@ -159,15 +141,6 @@ else
|
||||
exit $lintValue
|
||||
fi
|
||||
|
||||
|
||||
if [ $ktlintValue -eq 1 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ $detektValue -eq 1 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ $findbugsValue -eq 2 ]; then
|
||||
exit 0
|
||||
else
|
||||
|
||||
@@ -1 +1 @@
|
||||
387
|
||||
335
|
||||
@@ -48,7 +48,15 @@ require 'xmlsimple'
|
||||
# run FindBugs
|
||||
puts "running FindBugs..."
|
||||
system './gradlew assembleGplayDebug'
|
||||
system './gradlew spotbugsGplayDebug'
|
||||
|
||||
# confirm that assemble ran w/out error
|
||||
result = $?.to_i
|
||||
if result != 0
|
||||
puts "FAIL: failed to run ./gradlew assembleGplayDebug"
|
||||
exit 1
|
||||
end
|
||||
|
||||
system './gradlew spotbugsGplayDebugReport'
|
||||
|
||||
# find FindBugs report file
|
||||
findbugs_reports = Dir.glob(FINDBUGS_REPORT_FILE)
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
DO NOT TOUCH; GENERATED BY DRONE
|
||||
<span class="mdl-layout-title">Lint Report: 77 warnings</span>
|
||||
<span class="mdl-layout-title">Lint Report: 83 warnings</span>
|
||||
@@ -1,10 +1,15 @@
|
||||
#!/bin/bash
|
||||
date=$(date +%Y%m%d)
|
||||
oldLibraryCommit=$(grep "androidLibraryVersion\ =" build.gradle)
|
||||
libraryCommit=$(curl https://api.github.com/repos/nextcloud/android-library/commits/master | jq .sha | sed s'/\"//g')
|
||||
|
||||
# use current date for version code/name
|
||||
sed -i "/versionDev/,/\}/ s/versionCode .*/versionCode $date/" build.gradle
|
||||
sed -i "/versionDev/,/\}/ s/versionName .*/versionName \"$date\"/" build.gradle
|
||||
|
||||
# change library
|
||||
sed -i s"#androidLibraryVersion\ =.*#androidLibraryVersion =\"$libraryCommit\"#" build.gradle
|
||||
|
||||
# build signed apk
|
||||
./gradlew assembleVersionDevRelease >> /tmp/dev.log 2>&1
|
||||
|
||||
@@ -32,17 +37,33 @@ mv latest.apk ~/apks/
|
||||
# remove all but the latest 5 apks
|
||||
/bin/ls -t ~/apks/*.apk | awk 'NR>6' | xargs rm -f
|
||||
|
||||
lastBuildTime=$(date --date="$(git log -1 --format=%ai $(git tag | grep dev | tail -n1))" +%s)
|
||||
changelog=$(git log --after=$lastBuildTime --pretty=oneline --abbrev-commit)
|
||||
lastBuildTag=$(git tag | grep dev | tail -n1)
|
||||
# Show only the commit subject in the changelog and filter out:
|
||||
# * Merges
|
||||
# * Dependabot commits
|
||||
# * Commits touching only non-user-facing stuff like tests
|
||||
# * Version bump commits
|
||||
# * Anything reachable from the previous dev edition tag
|
||||
changelog=$(git log --no-merges --invert-grep --author=dependabot --pretty='format:%s' HEAD "^$lastBuildTag" -- ':!src/androidTest' ':!.*' ':!scripts/' ':!screenshots' ':!CHANGELOG.md' | grep -vE '^daily dev [[:digit:]]{8}$')
|
||||
# Make Transifex updates have a nicer description
|
||||
if echo "$changelog" | grep -q 'tx-robot'; then
|
||||
changelog=$(echo "$changelog" | grep -v 'tx-robot')
|
||||
# This is a funky bashism - preceding a single-quote string with $ lets you put escape chars in it
|
||||
changelog="${changelog}"$'\nUpdate translations'
|
||||
fi
|
||||
|
||||
libraryCommit=$(curl https://api.github.com/repos/nextcloud/android-library/commits/master | jq .sha | sed s'/\"//g')
|
||||
# Check if the library was updated
|
||||
if ! echo $oldLibraryCommit | grep -q $libraryCommit; then
|
||||
changelog="${changelog}"$'\nUpdate Nextcloud Android library'
|
||||
fi
|
||||
|
||||
# Collapse dependency updates into a single "Update dependencies" entry
|
||||
if git log --pretty='format:%an' HEAD "^$lastBuildTag" | grep -q dependabot; then
|
||||
changelog="${changelog}"$'\nUpdate 3rd-party dependencies'
|
||||
fi
|
||||
|
||||
# changelog
|
||||
echo "$changelog" > src/versionDev/fastlane/metadata/android/en-US/changelogs/$date.txt
|
||||
echo "library commit: $libraryCommit" >> src/versionDev/fastlane/metadata/android/en-US/changelogs/$date.txt
|
||||
|
||||
# build
|
||||
sed -i s"# androidLibraryVersion.*#androidLibraryVersion =\"$libraryCommit\"#" build.gradle
|
||||
|
||||
git add .
|
||||
git commit -m "daily dev $date" -m "$changelog"
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
BRANCH=$1
|
||||
TYPE=$2
|
||||
PR=$3
|
||||
GITHUB_USER=$4
|
||||
GITHUB_PASSWORD=$5
|
||||
BRANCH_TYPE=$BRANCH-$TYPE
|
||||
|
||||
# delete all old comments, matching this type
|
||||
oldComments=$(curl 2>/dev/null -u $GITHUB_USER:$GITHUB_PASSWORD -X GET https://api.github.com/repos/nextcloud/android/issues/$PR/comments | jq --arg TYPE $BRANCH_TYPE '.[] | (.id |tostring) + "|" + (.user.login | test("nextcloud-android-bot") | tostring) + "|" + (.body | test([$TYPE]) | tostring)'| grep "true|true" | tr -d "\"" | cut -f1 -d"|")
|
||||
|
||||
echo $oldComments | while read comment ; do
|
||||
curl 2>/dev/null -u $GITHUB_USER:$GITHUB_PASSWORD -X DELETE https://api.github.com/repos/nextcloud/android/issues/comments/$comment
|
||||
done
|
||||
|
||||
exit 0
|
||||
@@ -1,21 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if ( [[ $(grep NC_TEST_SERVER_BASEURL ~/.gradle/gradle.properties | grep -v "#" -c) -gt 0 ]] ); then
|
||||
if [[ $(grep NC_TEST_SERVER_BASEURL ~/.gradle/gradle.properties | grep -v "#" -c) -gt 0 ]]; then
|
||||
echo "This will not use server in docker. Please comment in .gradle/gradle.properties. Aborting!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
## emulator
|
||||
if ( [[ $(emulator -list-avds | grep uiComparison -c) -eq 0 ]] ); then
|
||||
if [[ ! $(emulator -list-avds | grep uiComparison -c) -eq 0 ]]; then
|
||||
avdmanager delete avd -n uiComparison
|
||||
(sleep 5; echo "no") | avdmanager create avd -n uiComparison -c 100M -k "system-images;android-27;google_apis;x86" --abi "google_apis/x86"
|
||||
fi
|
||||
|
||||
emulator -avd uiComparison -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 1>/dev/null &
|
||||
PID=$(echo $!)
|
||||
if [ "$1" == "debug" ]; then
|
||||
emulator -writable-system -avd uiComparison -no-snapshot -gpu swiftshader_indirect -no-audio -skin 500x833 1>/dev/null &
|
||||
else
|
||||
emulator -writable-system -avd uiComparison -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 1>/dev/null &
|
||||
fi
|
||||
PID=$!
|
||||
|
||||
## server
|
||||
docker run --name=uiComparison nextcloudci/server 1>/dev/null &
|
||||
docker run --name=uiComparison nextcloudci/server --entrypoint '/usr/local/bin/initnc.sh' 1>/dev/null &
|
||||
sleep 5
|
||||
IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' uiComparison)
|
||||
|
||||
@@ -24,30 +28,85 @@ if [[ $IP = "" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
## run on server
|
||||
cp gradle.properties gradle.properties_
|
||||
sed -i s"/server/$IP/" gradle.properties
|
||||
scripts/wait_for_emulator.sh
|
||||
scripts/wait_for_server.sh ${IP}
|
||||
## wait for server to finish
|
||||
scripts/wait_for_server.sh "$IP"
|
||||
|
||||
## update all screenshots
|
||||
./gradlew executeScreenshotTests -Precord
|
||||
# setup test server
|
||||
docker exec uiComparison /bin/sh -c "echo $IP server >> /etc/hosts"
|
||||
docker exec uiComparison /bin/sh -c "su www-data -c \"OC_PASS=user1 php /var/www/html/occ user:add --password-from-env --display-name='User One' user1\""
|
||||
docker exec uiComparison /bin/sh -c "su www-data -c \"OC_PASS=user2 php /var/www/html/occ user:add --password-from-env --display-name='User Two' user2\""
|
||||
docker exec uiComparison /bin/sh -c "su www-data -c \"OC_PASS=user3 php /var/www/html/occ user:add --password-from-env --display-name='User Three' user3\""
|
||||
docker exec uiComparison /bin/sh -c "su www-data -c \"php /var/www/html/occ user:setting user2 files quota 1G\""
|
||||
docker exec uiComparison /bin/sh -c "su www-data -c \"php /var/www/html/occ group:add users\""
|
||||
docker exec uiComparison /bin/sh -c "su www-data -c \"php /var/www/html/occ group:adduser users user1\""
|
||||
docker exec uiComparison /bin/sh -c "su www-data -c \"php /var/www/html/occ group:adduser users user2\""
|
||||
docker exec uiComparison /bin/sh -c "su www-data -c \"git clone -b master https://github.com/nextcloud/activity.git /var/www/html/apps/activity/\""
|
||||
docker exec uiComparison /bin/sh -c "su www-data -c \"php /var/www/html/occ app:enable activity\""
|
||||
docker exec uiComparison /bin/sh -c "su www-data -c \"git clone -b master https://github.com/nextcloud/text.git /var/www/html/apps/text/\""
|
||||
docker exec uiComparison /bin/sh -c "su www-data -c \"php /var/www/html/occ app:enable text\""
|
||||
docker exec uiComparison /bin/sh -c "su www-data -c \"git clone -b master https://github.com/nextcloud/end_to_end_encryption/ /var/www/html/apps/end_to_end_encryption/\""
|
||||
docker exec uiComparison /bin/sh -c "su www-data -c \"php /var/www/html/occ app:enable end_to_end_encryption\""
|
||||
#docker exec uiComparison /bin/sh -c "su www-data -c \"git clone -b master https://github.com/nextcloud/circles.git /var/www/html/apps/circles/\""
|
||||
#docker exec uiComparison /bin/sh -c "apt-get update; apt-get -y install composer"
|
||||
#docker exec uiComparison /bin/sh -c "su www-data -c \"cd /var/www/html/apps/circles; composer install\""
|
||||
#docker exec uiComparison /bin/sh -c "su www-data -c \"php /var/www/html/occ app:enable -f circles\""
|
||||
#docker exec uiComparison /bin/sh -c "su www-data -c \"php /var/www/html/occ config:app:set circles --value 1 allow_non_ssl_links\""
|
||||
#docker exec uiComparison /bin/sh -c "su www-data -c \"php /var/www/html/occ config:app:set circles --value 1 local_is_non_ssl\""
|
||||
#docker exec uiComparison /bin/sh -c "su www-data -c \"php /var/www/html/occ config:system:set allow_local_remote_servers --value true --type bool\""
|
||||
#docker exec uiComparison /bin/sh -c "su www-data -c \"php /var/www/html/occ circles:manage:create test public publicCircle\""
|
||||
docker exec uiComparison /bin/sh -c "/usr/local/bin/run.sh"
|
||||
|
||||
## wait for server to finish
|
||||
scripts/wait_for_server.sh "$IP"
|
||||
|
||||
scripts/wait_for_emulator.sh
|
||||
|
||||
# change server to ip on emulator
|
||||
adb root
|
||||
sleep 2
|
||||
adb remount
|
||||
sleep 2
|
||||
adb shell "mount -o remount,rw /system"
|
||||
sleep 2
|
||||
adb shell "echo $IP server >> /system/etc/hosts"
|
||||
|
||||
sed -i s'#<bool name="is_beta">false</bool>#<bool name="is_beta">true</bool>#'g src/main/res/values/setup.xml
|
||||
|
||||
## update/create all screenshots
|
||||
#./gradlew gplayDebugExecuteScreenshotTests -Precord \
|
||||
#-Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest
|
||||
|
||||
## update screenshots in a class
|
||||
#./gradlew executeScreenshotTests \
|
||||
#./gradlew gplayDebugExecuteScreenshotTests \
|
||||
#-Precord \
|
||||
#-Pandroid.testInstrumentationRunnerArguments.class=\
|
||||
#com.owncloud.android.ui.dialog.SyncFileNotEnoughSpaceDialogFragmentTest
|
||||
|
||||
## update single screenshot within a class
|
||||
#./gradlew executeScreenshotTests \
|
||||
#./gradlew gplayDebugExecuteScreenshotTests \
|
||||
#-Precord \
|
||||
#-Pandroid.testInstrumentationRunnerArguments.class=\
|
||||
#com.owncloud.android.ui.dialog.SyncFileNotEnoughSpaceDialogFragmentTest#showNotEnoughSpaceDialogForFile
|
||||
#com.nextcloud.client.FileDisplayActivityIT#showShares
|
||||
|
||||
mv gradle.properties_ gradle.properties
|
||||
resultCode=-1
|
||||
retryCount=0
|
||||
until [ $resultCode -eq 0 ] || [ $retryCount -gt 2 ]
|
||||
do
|
||||
# test all screenshots
|
||||
./gradlew gplayDebugExecuteScreenshotTests \
|
||||
-Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest
|
||||
|
||||
resultCode=$?
|
||||
((retryCount++))
|
||||
done
|
||||
|
||||
sed -i s'#<bool name="is_beta">true</bool>#<bool name="is_beta">false</bool>#'g src/main/res/values/setup.xml
|
||||
|
||||
if [ "$1" == "debug" ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
# tidy up
|
||||
kill $PID
|
||||
kill "$PID"
|
||||
docker stop uiComparison
|
||||
docker rm uiComparison
|
||||
@@ -1,19 +1,54 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
deleteOldComments() {
|
||||
# delete all old comments, matching this type
|
||||
echo "Deleting old comments for $BRANCH_TYPE"
|
||||
oldComments=$(curl 2>/dev/null -u $GITHUB_USER:$GITHUB_PASSWORD -X GET https://api.github.com/repos/nextcloud/android/issues/$PR/comments | jq --arg TYPE $BRANCH_TYPE '.[] | (.id |tostring) + "|" + (.user.login | test("nextcloud-android-bot") | tostring) + "|" + (.body | test([$TYPE]) | tostring)'| grep "true|true" | tr -d "\"" | cut -f1 -d"|")
|
||||
count=$(echo $oldComments | grep true | wc -l)
|
||||
echo "Found $count old comments"
|
||||
|
||||
echo $oldComments | while read comment ; do
|
||||
echo "Deleting comment: $comment"
|
||||
curl 2>/dev/null -u $GITHUB_USER:$GITHUB_PASSWORD -X DELETE https://api.github.com/repos/nextcloud/android/issues/comments/$comment
|
||||
done
|
||||
}
|
||||
|
||||
upload() {
|
||||
deleteOldComments
|
||||
|
||||
cd $1
|
||||
|
||||
find . -type d -exec curl -u $USER:$PASS -X MKCOL $URL/$REMOTE_FOLDER/$(echo {} | sed s#\./##) \;
|
||||
find . -type f -exec curl -u $USER:$PASS -X PUT $URL/$REMOTE_FOLDER/$(echo {} | sed s#\./##) --upload-file {} \;
|
||||
|
||||
echo "Uploaded failing tests to https://www.kaminsky.me/nc-dev/android-integrationTests/$REMOTE_FOLDER"
|
||||
|
||||
curl -u $GITHUB_USER:$GITHUB_PASSWORD -X POST https://api.github.com/repos/nextcloud/android/issues/$PR/comments \
|
||||
-d "{ \"body\" : \"$BRANCH_TYPE test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/$REMOTE_FOLDER \" }"
|
||||
|
||||
exit 1
|
||||
}
|
||||
|
||||
#1: LOG_USERNAME
|
||||
#2: LOG_PASSWORD
|
||||
#3: DRONE_BUILD_NUMBER
|
||||
#4: TYPE (IT or Unit)
|
||||
#5: DRONE_PULL_REQUEST
|
||||
#6: GIT_USERNAME
|
||||
#7: GIT_TOKEN
|
||||
#4: BRANCH (stable or master)
|
||||
#5: TYPE (IT or Unit)
|
||||
#6: DRONE_PULL_REQUEST
|
||||
#7: GIT_USERNAME
|
||||
#8: GIT_TOKEN
|
||||
|
||||
URL=https://nextcloud.kaminsky.me/remote.php/webdav/android-integrationTests
|
||||
ID=$3
|
||||
USER=$1
|
||||
PASS=$2
|
||||
TYPE=$4
|
||||
REMOTE_FOLDER=$ID-$TYPE
|
||||
BRANCH=$4
|
||||
TYPE=$5
|
||||
PR=$6
|
||||
GITHUB_USER=$7
|
||||
GITHUB_PASSWORD=$8
|
||||
REMOTE_FOLDER=$ID-$TYPE-$BRANCH
|
||||
BRANCH_TYPE=$BRANCH-$TYPE
|
||||
|
||||
set -e
|
||||
|
||||
@@ -22,27 +57,34 @@ if [ $TYPE = "IT" ]; then
|
||||
elif [ $TYPE = "Unit" ]; then
|
||||
FOLDER=build/reports/tests/testGplayDebugUnitTest
|
||||
else
|
||||
FOLDER=build/reports/shot/verification/
|
||||
FOLDER=build/reports/shot/verification
|
||||
fi
|
||||
|
||||
if [ ! -e $FOLDER ]; then
|
||||
echo "$TYPE test failed, but no output was generated. Maybe a preliminary stage failed."
|
||||
if [ -e $FOLDER ]; then
|
||||
upload $FOLDER
|
||||
else
|
||||
deleteOldComments
|
||||
echo "$BRANCH_TYPE test failed, but no output was generated. Maybe a preliminary stage failed."
|
||||
|
||||
curl -u $6:$7 \
|
||||
-X POST https://api.github.com/repos/nextcloud/android/issues/$5/comments \
|
||||
-d "{ \"body\" : \"$TYPE test failed, but no output was generated. Maybe a preliminary stage failed. \" }"
|
||||
curl -u $GITHUB_USER:$GITHUB_PASSWORD \
|
||||
-X POST https://api.github.com/repos/nextcloud/android/issues/$PR/comments \
|
||||
-d "{ \"body\" : \"$BRANCH_TYPE test failed, but no output was generated. Maybe a preliminary stage failed. \" }"
|
||||
|
||||
exit 1
|
||||
if [ -e build/reports/androidTests/connected/flavors/GPLAY ] ; then
|
||||
TYPE="IT"
|
||||
BRANCH_TYPE=$BRANCH-$TYPE
|
||||
upload "build/reports/androidTests/connected/flavors/GPLAY"
|
||||
fi
|
||||
|
||||
if [ -e build/reports/tests/testGplayDebugUnitTest ] ; then
|
||||
TYPE="Unit"
|
||||
BRANCH_TYPE=$BRANCH-$TYPE
|
||||
upload "build/reports/tests/testGplayDebugUnitTest"
|
||||
fi
|
||||
|
||||
if [ -e build/reports/shot/verification ] ; then
|
||||
TYPE="Screenshot"
|
||||
BRANCH_TYPE=$BRANCH-$TYPE
|
||||
upload "build/reports/shot/verification"
|
||||
fi
|
||||
fi
|
||||
|
||||
cd $FOLDER
|
||||
|
||||
find . -type d -exec curl -u $USER:$PASS -X MKCOL $URL/$REMOTE_FOLDER/$(echo {} | sed s#\./##) \;
|
||||
find . -type f -exec curl -u $USER:$PASS -X PUT $URL/$REMOTE_FOLDER/$(echo {} | sed s#\./##) --upload-file {} \;
|
||||
|
||||
echo "Uploaded failing tests to https://www.kaminsky.me/nc-dev/android-integrationTests/$REMOTE_FOLDER"
|
||||
|
||||
curl -u $6:$7 -X POST https://api.github.com/repos/nextcloud/android/issues/$5/comments \
|
||||
-d "{ \"body\" : \"$TYPE test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/$REMOTE_FOLDER \" }"
|
||||
|
||||
exit 1
|
||||
@@ -1,18 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
counter=0
|
||||
status=""
|
||||
counter=0
|
||||
checkcounter=0
|
||||
|
||||
until [[ $status = "false" ]]; do
|
||||
status=$(curl 2>/dev/null "http://$1/status.php" | jq .maintenance)
|
||||
echo "($checkcounter) $status"
|
||||
|
||||
if [[ "$status" =~ "false" || "$status" = "" ]]; then
|
||||
let "counter += 1"
|
||||
if [[ $counter -gt 2 ]]; then
|
||||
if [[ $counter -gt 50 ]]; then
|
||||
echo "Failed to wait for server"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
let "checkcounter += 1"
|
||||
sleep 10
|
||||
done
|
||||
|
||||
echo "($checkcounter) Done"
|
||||
@@ -31,7 +31,8 @@
|
||||
<Match>
|
||||
<Or>
|
||||
<Class name="~.*BindingImpl"/>
|
||||
<Class name="~.*\.DataBinderMapperImpl"/>
|
||||
<Class name="~.*\.DataBinderMapperImpl" />
|
||||
<Class name="~.*Binding" />
|
||||
</Or>
|
||||
</Match>
|
||||
|
||||
@@ -53,6 +54,7 @@
|
||||
<Bug pattern="PATH_TRAVERSAL_IN" />
|
||||
<Bug pattern="ANDROID_EXTERNAL_FILE_ACCESS" />
|
||||
<Bug pattern="BAS_BLOATED_ASSIGNMENT_SCOPE" />
|
||||
<Bug pattern="IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID" />
|
||||
|
||||
<!-- This is unmanageable for now due to large amount of interconnected static state -->
|
||||
<Bug pattern="FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY" />
|
||||
|
||||
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 18 KiB |
@@ -23,16 +23,24 @@
|
||||
package com.nextcloud.client;
|
||||
|
||||
import android.Manifest;
|
||||
import android.view.View;
|
||||
|
||||
import com.facebook.testing.screenshot.Screenshot;
|
||||
import com.owncloud.android.AbstractIT;
|
||||
import com.owncloud.android.R;
|
||||
import com.owncloud.android.ui.activities.ActivitiesActivity;
|
||||
import com.owncloud.android.utils.ScreenshotTest;
|
||||
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
|
||||
import androidx.test.espresso.contrib.DrawerActions;
|
||||
import androidx.test.espresso.intent.rule.IntentsTestRule;
|
||||
import androidx.test.rule.GrantPermissionRule;
|
||||
|
||||
import static androidx.test.espresso.Espresso.onView;
|
||||
import static androidx.test.espresso.matcher.ViewMatchers.withId;
|
||||
|
||||
|
||||
public class ActivitiesActivityIT extends AbstractIT {
|
||||
@Rule public IntentsTestRule<ActivitiesActivity> activityRule = new IntentsTestRule<>(ActivitiesActivity.class,
|
||||
@@ -44,7 +52,24 @@ public class ActivitiesActivityIT extends AbstractIT {
|
||||
Manifest.permission.WRITE_EXTERNAL_STORAGE);
|
||||
|
||||
@Test
|
||||
public void openDrawer() throws InterruptedException {
|
||||
super.openDrawer(activityRule);
|
||||
@ScreenshotTest
|
||||
public void openDrawer() {
|
||||
ActivitiesActivity sut = activityRule.launchActivity(null);
|
||||
|
||||
shortSleep();
|
||||
|
||||
onView(withId(R.id.drawer_layout)).perform(DrawerActions.open());
|
||||
|
||||
sut.runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
sut.emptyContentContainer.setVisibility(View.VISIBLE);
|
||||
sut.recyclerView.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
});
|
||||
|
||||
waitForIdleSync();
|
||||
|
||||
Screenshot.snapActivity(sut).record();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,398 @@
|
||||
/*
|
||||
*
|
||||
* Nextcloud Android client application
|
||||
*
|
||||
* @author Tobias Kaminsky
|
||||
* Copyright (C) 2020 Tobias Kaminsky
|
||||
* Copyright (C) 2020 Nextcloud GmbH
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.nextcloud.client;
|
||||
|
||||
import android.accounts.AccountManager;
|
||||
|
||||
import com.owncloud.android.AbstractIT;
|
||||
import com.owncloud.android.datamodel.ArbitraryDataProvider;
|
||||
import com.owncloud.android.datamodel.OCFile;
|
||||
import com.owncloud.android.db.OCUpload;
|
||||
import com.owncloud.android.lib.common.accounts.AccountUtils;
|
||||
import com.owncloud.android.lib.common.operations.RemoteOperationResult;
|
||||
import com.owncloud.android.lib.common.utils.Log_OC;
|
||||
import com.owncloud.android.lib.resources.e2ee.ToggleEncryptionRemoteOperation;
|
||||
import com.owncloud.android.lib.resources.users.GetPrivateKeyOperation;
|
||||
import com.owncloud.android.lib.resources.users.GetPublicKeyOperation;
|
||||
import com.owncloud.android.lib.resources.users.SendCSROperation;
|
||||
import com.owncloud.android.lib.resources.users.StorePrivateKeyOperation;
|
||||
import com.owncloud.android.operations.RemoveFileOperation;
|
||||
import com.owncloud.android.utils.CsrHelper;
|
||||
import com.owncloud.android.utils.EncryptionUtils;
|
||||
import com.owncloud.android.utils.FileStorageUtils;
|
||||
|
||||
import net.bytebuddy.utility.RandomString;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.security.KeyPair;
|
||||
import java.security.PrivateKey;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Random;
|
||||
|
||||
import static com.owncloud.android.lib.resources.status.OwnCloudVersion.nextcloud_19;
|
||||
import static junit.framework.TestCase.assertNotNull;
|
||||
import static junit.framework.TestCase.assertTrue;
|
||||
import static org.junit.Assume.assumeTrue;
|
||||
|
||||
public class EndToEndRandomIT extends AbstractIT {
|
||||
public enum Action {
|
||||
CREATE_FOLDER,
|
||||
GO_INTO_FOLDER,
|
||||
GO_UP,
|
||||
UPLOAD_FILE
|
||||
}
|
||||
|
||||
private static ArbitraryDataProvider arbitraryDataProvider;
|
||||
|
||||
private OCFile currentFolder;
|
||||
private int actionCount = 20;
|
||||
private String rootEncFolder = "/e/";
|
||||
|
||||
@BeforeClass
|
||||
public static void initClass() {
|
||||
arbitraryDataProvider = new ArbitraryDataProvider(targetContext.getContentResolver());
|
||||
}
|
||||
|
||||
@Before
|
||||
public void before() {
|
||||
// tests only for NC19+
|
||||
assumeTrue(getStorageManager()
|
||||
.getCapability(account.name)
|
||||
.getVersion()
|
||||
.isNewerOrEqual(nextcloud_19)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void run() throws Exception {
|
||||
init();
|
||||
|
||||
for (int i = 0; i < actionCount; i++) {
|
||||
Action nextAction = Action.values()[new Random().nextInt(Action.values().length)];
|
||||
|
||||
switch (nextAction) {
|
||||
case CREATE_FOLDER:
|
||||
createFolder(i);
|
||||
break;
|
||||
|
||||
case GO_INTO_FOLDER:
|
||||
goIntoFolder(i);
|
||||
break;
|
||||
|
||||
case GO_UP:
|
||||
goUp(i);
|
||||
break;
|
||||
|
||||
case UPLOAD_FILE:
|
||||
uploadFile(i);
|
||||
break;
|
||||
|
||||
default:
|
||||
Log_OC.d(this, "[" + i + "/" + actionCount + "]" + " Unknown action: " + nextAction);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void uploadOneFile() throws Exception {
|
||||
init();
|
||||
|
||||
uploadFile(0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createFolder() throws Exception {
|
||||
init();
|
||||
|
||||
currentFolder = createFolder(0);
|
||||
assertNotNull(currentFolder);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createSubFolders() throws Exception {
|
||||
init();
|
||||
|
||||
currentFolder = createFolder(0);
|
||||
assertNotNull(currentFolder);
|
||||
|
||||
currentFolder = createFolder(1);
|
||||
assertNotNull(currentFolder);
|
||||
|
||||
currentFolder = createFolder(2);
|
||||
assertNotNull(currentFolder);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createSubFoldersWithFiles() throws Exception {
|
||||
init();
|
||||
|
||||
currentFolder = createFolder(0);
|
||||
assertNotNull(currentFolder);
|
||||
|
||||
uploadFile(1);
|
||||
uploadFile(1);
|
||||
uploadFile(2);
|
||||
|
||||
currentFolder = createFolder(1);
|
||||
assertNotNull(currentFolder);
|
||||
uploadFile(11);
|
||||
uploadFile(12);
|
||||
uploadFile(13);
|
||||
|
||||
currentFolder = createFolder(2);
|
||||
assertNotNull(currentFolder);
|
||||
|
||||
uploadFile(21);
|
||||
uploadFile(22);
|
||||
uploadFile(23);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void pseudoRandom() throws Exception {
|
||||
init();
|
||||
|
||||
uploadFile(1);
|
||||
createFolder(2);
|
||||
goIntoFolder(3);
|
||||
goUp(4);
|
||||
createFolder(5);
|
||||
uploadFile(6);
|
||||
goUp(7);
|
||||
goIntoFolder(8);
|
||||
goIntoFolder(9);
|
||||
uploadFile(10);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void deleteFile() throws Exception {
|
||||
init();
|
||||
|
||||
uploadFile(1);
|
||||
deleteFile(1);
|
||||
}
|
||||
|
||||
private void init() throws Exception {
|
||||
// create folder
|
||||
createFolder(rootEncFolder);
|
||||
OCFile encFolder = createFolder(rootEncFolder + RandomString.make(5) + "/");
|
||||
|
||||
// encrypt it
|
||||
assertTrue(new ToggleEncryptionRemoteOperation(encFolder.getLocalId(),
|
||||
encFolder.getRemotePath(),
|
||||
true)
|
||||
.execute(client).isSuccess());
|
||||
encFolder.setEncrypted(true);
|
||||
getStorageManager().saveFolder(encFolder, new ArrayList<>(), new ArrayList<>());
|
||||
|
||||
useExistingKeys();
|
||||
|
||||
rootEncFolder = encFolder.getDecryptedRemotePath();
|
||||
currentFolder = encFolder;
|
||||
}
|
||||
|
||||
private OCFile createFolder(int i) {
|
||||
String path = currentFolder.getDecryptedRemotePath() + RandomString.make(5) + "/";
|
||||
Log_OC.d(this, "[" + i + "/" + actionCount + "] " + "Create folder: " + path);
|
||||
|
||||
return createFolder(path);
|
||||
}
|
||||
|
||||
private void goIntoFolder(int i) {
|
||||
ArrayList<OCFile> folders = new ArrayList<>();
|
||||
for (OCFile file : getStorageManager().getFolderContent(currentFolder, false)) {
|
||||
if (file.isFolder()) {
|
||||
folders.add(file);
|
||||
}
|
||||
}
|
||||
|
||||
if (folders.isEmpty()) {
|
||||
Log_OC.d(this, "[" + i + "/" + actionCount + "] " + "Go into folder: No folders");
|
||||
return;
|
||||
}
|
||||
|
||||
currentFolder = folders.get(new Random().nextInt(folders.size()));
|
||||
Log_OC.d(this,
|
||||
"[" + i + "/" + actionCount + "] " + "Go into folder: " + currentFolder.getDecryptedRemotePath());
|
||||
}
|
||||
|
||||
private void goUp(int i) {
|
||||
if (currentFolder.getRemotePath().equals(rootEncFolder)) {
|
||||
Log_OC.d(this,
|
||||
"[" + i + "/" + actionCount + "] " + "Go up to folder: " + currentFolder.getDecryptedRemotePath());
|
||||
return;
|
||||
}
|
||||
|
||||
currentFolder = getStorageManager().getFileById(currentFolder.getParentId());
|
||||
if (currentFolder == null) {
|
||||
throw new RuntimeException("Current folder is null");
|
||||
}
|
||||
|
||||
Log_OC.d(this,
|
||||
"[" + i + "/" + actionCount + "] " + "Go up to folder: " + currentFolder.getDecryptedRemotePath());
|
||||
}
|
||||
|
||||
private void uploadFile(int i) throws IOException {
|
||||
String fileName = RandomString.make(5) + ".txt";
|
||||
createFile(fileName, new Random().nextInt(50000));
|
||||
String path = currentFolder.getRemotePath() + fileName;
|
||||
|
||||
Log_OC.d(this,
|
||||
"[" + i + "/" + actionCount + "] " +
|
||||
"Upload file to: " + currentFolder.getDecryptedRemotePath() + fileName);
|
||||
|
||||
OCUpload ocUpload = new OCUpload(FileStorageUtils.getSavePath(account.name) + File.separator + fileName,
|
||||
path,
|
||||
account.name);
|
||||
uploadOCUpload(ocUpload);
|
||||
}
|
||||
|
||||
private void deleteFile(int i) {
|
||||
ArrayList<OCFile> files = new ArrayList<>();
|
||||
for (OCFile file : getStorageManager().getFolderContent(currentFolder, false)) {
|
||||
if (!file.isFolder()) {
|
||||
files.add(file);
|
||||
}
|
||||
}
|
||||
|
||||
OCFile fileToDelete = files.get(new Random().nextInt(files.size()));
|
||||
|
||||
Log_OC.d(this,
|
||||
"[" + i + "/" + actionCount + "] " +
|
||||
"Delete file: " + currentFolder.getDecryptedRemotePath() + fileToDelete.getDecryptedFileName());
|
||||
|
||||
assertTrue(new RemoveFileOperation(fileToDelete,
|
||||
false,
|
||||
account,
|
||||
false,
|
||||
targetContext)
|
||||
.execute(client, getStorageManager())
|
||||
.isSuccess());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void reInit() throws Exception {
|
||||
// create folder
|
||||
OCFile encFolder = createFolder(rootEncFolder);
|
||||
|
||||
// encrypt it
|
||||
assertTrue(new ToggleEncryptionRemoteOperation(encFolder.getLocalId(),
|
||||
encFolder.getRemotePath(),
|
||||
true)
|
||||
.execute(client).isSuccess());
|
||||
encFolder.setEncrypted(true);
|
||||
getStorageManager().saveFolder(encFolder, new ArrayList<>(), new ArrayList<>());
|
||||
|
||||
createKeys();
|
||||
|
||||
// delete keys
|
||||
arbitraryDataProvider.deleteKeyForAccount(account.name, EncryptionUtils.PRIVATE_KEY);
|
||||
arbitraryDataProvider.deleteKeyForAccount(account.name, EncryptionUtils.PUBLIC_KEY);
|
||||
arbitraryDataProvider.deleteKeyForAccount(account.name, EncryptionUtils.MNEMONIC);
|
||||
|
||||
useExistingKeys();
|
||||
}
|
||||
|
||||
private void useExistingKeys() throws Exception {
|
||||
// download them from server
|
||||
GetPublicKeyOperation publicKeyOperation = new GetPublicKeyOperation();
|
||||
RemoteOperationResult publicKeyResult = publicKeyOperation.execute(account, targetContext);
|
||||
|
||||
assertTrue(publicKeyResult.isSuccess());
|
||||
|
||||
String publicKeyFromServer = (String) publicKeyResult.getData().get(0);
|
||||
arbitraryDataProvider.storeOrUpdateKeyValue(account.name,
|
||||
EncryptionUtils.PUBLIC_KEY,
|
||||
publicKeyFromServer);
|
||||
|
||||
GetPrivateKeyOperation privateKeyOperation = new GetPrivateKeyOperation();
|
||||
RemoteOperationResult privateKeyResult = privateKeyOperation.execute(account, targetContext);
|
||||
assertTrue(privateKeyResult.isSuccess());
|
||||
|
||||
String privateKey = (String) privateKeyResult.getData().get(0);
|
||||
|
||||
String mnemonic = generateMnemonicString();
|
||||
String decryptedPrivateKey = EncryptionUtils.decryptPrivateKey(privateKey, mnemonic);
|
||||
|
||||
arbitraryDataProvider.storeOrUpdateKeyValue(account.name,
|
||||
EncryptionUtils.PRIVATE_KEY, decryptedPrivateKey);
|
||||
|
||||
Log_OC.d(this, "Private key successfully decrypted and stored");
|
||||
|
||||
arbitraryDataProvider.storeOrUpdateKeyValue(account.name, EncryptionUtils.MNEMONIC, mnemonic);
|
||||
}
|
||||
|
||||
/*
|
||||
TODO do not c&p code
|
||||
*/
|
||||
private void createKeys() throws Exception {
|
||||
String publicKey;
|
||||
|
||||
// Create public/private key pair
|
||||
KeyPair keyPair = EncryptionUtils.generateKeyPair();
|
||||
|
||||
// create CSR
|
||||
AccountManager accountManager = AccountManager.get(targetContext);
|
||||
String userId = accountManager.getUserData(account, AccountUtils.Constants.KEY_USER_ID);
|
||||
String urlEncoded = CsrHelper.generateCsrPemEncodedString(keyPair, userId);
|
||||
|
||||
SendCSROperation operation = new SendCSROperation(urlEncoded);
|
||||
RemoteOperationResult result = operation.execute(account, targetContext);
|
||||
|
||||
if (result.isSuccess()) {
|
||||
publicKey = (String) result.getData().get(0);
|
||||
} else {
|
||||
throw new Exception("failed to send CSR", result.getException());
|
||||
}
|
||||
|
||||
PrivateKey privateKey = keyPair.getPrivate();
|
||||
String privateKeyString = EncryptionUtils.encodeBytesToBase64String(privateKey.getEncoded());
|
||||
String privatePemKeyString = EncryptionUtils.privateKeyToPEM(privateKey);
|
||||
String encryptedPrivateKey = EncryptionUtils.encryptPrivateKey(privatePemKeyString,
|
||||
generateMnemonicString());
|
||||
|
||||
// upload encryptedPrivateKey
|
||||
StorePrivateKeyOperation storePrivateKeyOperation = new StorePrivateKeyOperation(encryptedPrivateKey);
|
||||
RemoteOperationResult storePrivateKeyResult = storePrivateKeyOperation.execute(account, targetContext);
|
||||
|
||||
if (storePrivateKeyResult.isSuccess()) {
|
||||
arbitraryDataProvider.storeOrUpdateKeyValue(account.name, EncryptionUtils.PRIVATE_KEY,
|
||||
privateKeyString);
|
||||
arbitraryDataProvider.storeOrUpdateKeyValue(account.name, EncryptionUtils.PUBLIC_KEY, publicKey);
|
||||
arbitraryDataProvider.storeOrUpdateKeyValue(account.name, EncryptionUtils.MNEMONIC,
|
||||
generateMnemonicString());
|
||||
} else {
|
||||
throw new RuntimeException("Error uploading private key!");
|
||||
}
|
||||
}
|
||||
|
||||
private String generateMnemonicString() {
|
||||
return "1 2 3 4 5 6";
|
||||
}
|
||||
}
|
||||
@@ -28,19 +28,33 @@ import android.app.Activity;
|
||||
import com.facebook.testing.screenshot.Screenshot;
|
||||
import com.owncloud.android.AbstractIT;
|
||||
import com.owncloud.android.R;
|
||||
import com.owncloud.android.datamodel.OCFile;
|
||||
import com.owncloud.android.lib.resources.files.CreateFolderRemoteOperation;
|
||||
import com.owncloud.android.lib.resources.files.ExistenceCheckRemoteOperation;
|
||||
import com.owncloud.android.lib.resources.files.SearchRemoteOperation;
|
||||
import com.owncloud.android.lib.resources.shares.CreateShareRemoteOperation;
|
||||
import com.owncloud.android.lib.resources.shares.OCShare;
|
||||
import com.owncloud.android.lib.resources.shares.ShareType;
|
||||
import com.owncloud.android.operations.CreateFolderOperation;
|
||||
import com.owncloud.android.ui.activity.FileDisplayActivity;
|
||||
import com.owncloud.android.ui.events.SearchEvent;
|
||||
import com.owncloud.android.utils.ScreenshotTest;
|
||||
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
|
||||
import androidx.test.espresso.contrib.DrawerActions;
|
||||
import androidx.test.espresso.contrib.NavigationViewActions;
|
||||
import androidx.test.espresso.intent.rule.IntentsTestRule;
|
||||
import androidx.test.rule.GrantPermissionRule;
|
||||
|
||||
import static androidx.test.espresso.Espresso.onView;
|
||||
import static androidx.test.espresso.action.ViewActions.click;
|
||||
import static androidx.test.espresso.matcher.ViewMatchers.withId;
|
||||
|
||||
import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentation;
|
||||
import static junit.framework.TestCase.assertEquals;
|
||||
import static junit.framework.TestCase.assertTrue;
|
||||
|
||||
public class FileDisplayActivityIT extends AbstractIT {
|
||||
@Rule public IntentsTestRule<FileDisplayActivity> activityRule = new IntentsTestRule<>(FileDisplayActivity.class,
|
||||
@@ -52,30 +66,119 @@ public class FileDisplayActivityIT extends AbstractIT {
|
||||
Manifest.permission.WRITE_EXTERNAL_STORAGE);
|
||||
|
||||
@Test
|
||||
public void open() throws InterruptedException {
|
||||
@ScreenshotTest
|
||||
public void open() {
|
||||
Activity sut = activityRule.launchActivity(null);
|
||||
|
||||
Thread.sleep(3000);
|
||||
shortSleep();
|
||||
|
||||
Screenshot.snapActivity(sut).record();
|
||||
}
|
||||
|
||||
@Test
|
||||
@ScreenshotTest
|
||||
public void drawer() {
|
||||
Activity sut = activityRule.launchActivity(null);
|
||||
FileDisplayActivity sut = activityRule.launchActivity(null);
|
||||
|
||||
onView(withId(R.id.drawer_layout)).perform(DrawerActions.open());
|
||||
|
||||
waitForIdleSync();
|
||||
shortSleep();
|
||||
sut.getListOfFilesFragment().setFabEnabled(false);
|
||||
|
||||
Screenshot.snapActivity(sut).record();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void showAccounts() {
|
||||
@ScreenshotTest
|
||||
public void showShares() {
|
||||
assertTrue(new ExistenceCheckRemoteOperation("/shareToAdmin/", true).execute(client).isSuccess());
|
||||
assertTrue(new CreateFolderRemoteOperation("/shareToAdmin/", true).execute(client).isSuccess());
|
||||
assertTrue(new CreateFolderRemoteOperation("/shareToGroup/", true).execute(client).isSuccess());
|
||||
assertTrue(new CreateFolderRemoteOperation("/shareViaLink/", true).execute(client).isSuccess());
|
||||
assertTrue(new CreateFolderRemoteOperation("/noShare/", true).execute(client).isSuccess());
|
||||
// assertTrue(new CreateFolderRemoteOperation("/shareToCircle/", true).execute(client).isSuccess());
|
||||
|
||||
// share folder to user "admin"
|
||||
assertTrue(new CreateShareRemoteOperation("/shareToAdmin/",
|
||||
ShareType.USER,
|
||||
"admin",
|
||||
false,
|
||||
"",
|
||||
OCShare.MAXIMUM_PERMISSIONS_FOR_FOLDER)
|
||||
.execute(client).isSuccess());
|
||||
|
||||
// share folder via public link
|
||||
assertTrue(new CreateShareRemoteOperation("/shareViaLink/",
|
||||
ShareType.PUBLIC_LINK,
|
||||
"",
|
||||
true,
|
||||
"",
|
||||
OCShare.READ_PERMISSION_FLAG)
|
||||
.execute(client).isSuccess());
|
||||
|
||||
// share folder to group
|
||||
Assert.assertTrue(new CreateShareRemoteOperation("/shareToGroup/",
|
||||
ShareType.GROUP,
|
||||
"users",
|
||||
false,
|
||||
"",
|
||||
OCShare.DEFAULT_PERMISSION)
|
||||
.execute(client).isSuccess());
|
||||
|
||||
// share folder to circle
|
||||
// get share
|
||||
// RemoteOperationResult searchResult = new GetShareesRemoteOperation("publicCircle", 1, 50).execute(client);
|
||||
// assertTrue(searchResult.getLogMessage(), searchResult.isSuccess());
|
||||
//
|
||||
// JSONObject resultJson = (JSONObject) searchResult.getData().get(0);
|
||||
// String circleId = resultJson.getJSONObject("value").getString("shareWith");
|
||||
//
|
||||
// assertTrue(new CreateShareRemoteOperation("/shareToCircle/",
|
||||
// ShareType.CIRCLE,
|
||||
// circleId,
|
||||
// false,
|
||||
// "",
|
||||
// OCShare.DEFAULT_PERMISSION)
|
||||
// .execute(client).isSuccess());
|
||||
|
||||
Activity sut = activityRule.launchActivity(null);
|
||||
|
||||
onView(withId(R.id.drawer_layout)).perform(DrawerActions.open());
|
||||
onView(withId(R.id.drawer_active_user)).perform(click());
|
||||
getInstrumentation().waitForIdleSync();
|
||||
|
||||
EventBus.getDefault().post(new SearchEvent("", SearchRemoteOperation.SearchType.SHARED_FILTER));
|
||||
|
||||
shortSleep();
|
||||
shortSleep();
|
||||
|
||||
Screenshot.snapActivity(sut).record();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void allFiles() {
|
||||
FileDisplayActivity sut = activityRule.launchActivity(null);
|
||||
|
||||
// given test folder
|
||||
assertTrue(new CreateFolderOperation("/test/", account, targetContext)
|
||||
.execute(client, getStorageManager())
|
||||
.isSuccess());
|
||||
|
||||
// navigate into it
|
||||
OCFile test = getStorageManager().getFileByPath("/test/");
|
||||
sut.setFile(test);
|
||||
sut.startSyncFolderOperation(test, false);
|
||||
|
||||
assertEquals(getStorageManager().getFileByPath("/test/"), sut.getCurrentDir());
|
||||
|
||||
// open drawer
|
||||
onView(withId(R.id.drawer_layout)).perform(DrawerActions.open());
|
||||
|
||||
// click "all files"
|
||||
onView(withId(R.id.nav_view))
|
||||
.perform(NavigationViewActions.navigateTo(R.id.nav_all_files));
|
||||
|
||||
// then should be in root again
|
||||
shortSleep();
|
||||
assertEquals(getStorageManager().getFileByPath("/"), sut.getCurrentDir());
|
||||
}
|
||||
}
|
||||
@@ -28,6 +28,7 @@ import android.app.Activity;
|
||||
import com.facebook.testing.screenshot.Screenshot;
|
||||
import com.nextcloud.client.onboarding.FirstRunActivity;
|
||||
import com.owncloud.android.AbstractIT;
|
||||
import com.owncloud.android.utils.ScreenshotTest;
|
||||
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
@@ -46,6 +47,7 @@ public class FirstRunActivityIT extends AbstractIT {
|
||||
Manifest.permission.WRITE_EXTERNAL_STORAGE);
|
||||
|
||||
@Test
|
||||
@ScreenshotTest
|
||||
public void open() {
|
||||
Activity sut = activityRule.launchActivity(null);
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ import android.Manifest;
|
||||
|
||||
import com.owncloud.android.AbstractIT;
|
||||
import com.owncloud.android.ui.activity.NotificationsActivity;
|
||||
import com.owncloud.android.utils.ScreenshotTest;
|
||||
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
@@ -44,7 +45,8 @@ public class NotificationsActivityIT extends AbstractIT {
|
||||
Manifest.permission.WRITE_EXTERNAL_STORAGE);
|
||||
|
||||
@Test
|
||||
public void openDrawer() throws InterruptedException {
|
||||
@ScreenshotTest
|
||||
public void openDrawer() {
|
||||
super.openDrawer(activityRule);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
*
|
||||
* Nextcloud Android client application
|
||||
*
|
||||
* @author Tobias Kaminsky
|
||||
* Copyright (C) 2020 Tobias Kaminsky
|
||||
* Copyright (C) 2020 Nextcloud GmbH
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.nextcloud.client
|
||||
|
||||
import android.util.Log
|
||||
import org.junit.rules.TestRule
|
||||
import org.junit.runner.Description
|
||||
import org.junit.runners.model.Statement
|
||||
|
||||
/**
|
||||
* C&p from https://stackoverflow.com/questions/45635833/how-can-i-use-flakytest-annotation-now on 18.03.2020
|
||||
*/
|
||||
class RetryTestRule(val retryCount: Int = 5) : TestRule {
|
||||
|
||||
companion object {
|
||||
private val TAG = RetryTestRule::class.java.simpleName
|
||||
}
|
||||
|
||||
override fun apply(base: Statement, description: Description): Statement {
|
||||
return statement(base, description)
|
||||
}
|
||||
|
||||
@Suppress("TooGenericExceptionCaught") // and this exactly what we want here
|
||||
private fun statement(base: Statement, description: Description): Statement {
|
||||
return object : Statement() {
|
||||
|
||||
override fun evaluate() {
|
||||
Log.e(TAG, "Evaluating ${description.methodName}")
|
||||
|
||||
var caughtThrowable: Throwable? = null
|
||||
|
||||
for (i in 0 until retryCount) {
|
||||
try {
|
||||
base.evaluate()
|
||||
return
|
||||
} catch (t: Throwable) {
|
||||
caughtThrowable = t
|
||||
Log.e(TAG, description.methodName + ": run " + (i + 1) + " failed")
|
||||
}
|
||||
}
|
||||
|
||||
Log.e(TAG, description.methodName + ": giving up after " + retryCount + " failures")
|
||||
if (caughtThrowable != null)
|
||||
throw caughtThrowable
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -28,6 +28,7 @@ import android.app.Activity;
|
||||
import com.facebook.testing.screenshot.Screenshot;
|
||||
import com.owncloud.android.AbstractIT;
|
||||
import com.owncloud.android.ui.activity.SettingsActivity;
|
||||
import com.owncloud.android.utils.ScreenshotTest;
|
||||
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
@@ -46,6 +47,7 @@ public class SettingsActivityIT extends AbstractIT {
|
||||
Manifest.permission.WRITE_EXTERNAL_STORAGE);
|
||||
|
||||
@Test
|
||||
@ScreenshotTest
|
||||
public void open() {
|
||||
Activity test = activityRule.launchActivity(null);
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ import android.Manifest;
|
||||
|
||||
import com.owncloud.android.AbstractIT;
|
||||
import com.owncloud.android.ui.activity.SyncedFoldersActivity;
|
||||
import com.owncloud.android.utils.ScreenshotTest;
|
||||
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
@@ -44,7 +45,8 @@ public class SyncedFoldersActivityIT extends AbstractIT {
|
||||
Manifest.permission.WRITE_EXTERNAL_STORAGE);
|
||||
|
||||
@Test
|
||||
public void openDrawer() throws InterruptedException {
|
||||
@ScreenshotTest
|
||||
public void openDrawer() {
|
||||
super.openDrawer(activityRule);
|
||||
}
|
||||
}
|
||||
@@ -26,6 +26,7 @@ import android.Manifest;
|
||||
|
||||
import com.owncloud.android.AbstractIT;
|
||||
import com.owncloud.android.ui.activity.UploadListActivity;
|
||||
import com.owncloud.android.utils.ScreenshotTest;
|
||||
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
@@ -44,7 +45,8 @@ public class UploadListActivityActivityIT extends AbstractIT {
|
||||
Manifest.permission.WRITE_EXTERNAL_STORAGE);
|
||||
|
||||
@Test
|
||||
public void openDrawer() throws InterruptedException {
|
||||
@ScreenshotTest
|
||||
public void openDrawer() {
|
||||
super.openDrawer(activityRule);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
*
|
||||
* Nextcloud Android client application
|
||||
*
|
||||
* @author Tobias Kaminsky
|
||||
* Copyright (C) 2020 Tobias Kaminsky
|
||||
* Copyright (C) 2020 Nextcloud GmbH
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.nextcloud.client.etm
|
||||
|
||||
import android.app.Activity
|
||||
import androidx.test.espresso.intent.rule.IntentsTestRule
|
||||
import androidx.test.internal.runner.junit4.statement.UiThreadStatement
|
||||
import com.facebook.testing.screenshot.Screenshot
|
||||
import com.owncloud.android.AbstractIT
|
||||
import com.owncloud.android.lib.resources.status.OwnCloudVersion
|
||||
import com.owncloud.android.utils.ScreenshotTest
|
||||
import org.junit.Assume
|
||||
import org.junit.Before
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
|
||||
class EtmActivityTest : AbstractIT() {
|
||||
@get:Rule
|
||||
var activityRule = IntentsTestRule(EtmActivity::class.java, true, false)
|
||||
|
||||
@Before
|
||||
fun before() {
|
||||
// tests only on NC 18
|
||||
Assume.assumeTrue(
|
||||
storageManager
|
||||
.getCapability(account.name)
|
||||
.version.compareTo(OwnCloudVersion.nextcloud_18) == 0
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
@ScreenshotTest
|
||||
fun overview() {
|
||||
val sut: Activity = activityRule.launchActivity(null)
|
||||
|
||||
waitForIdleSync()
|
||||
|
||||
Screenshot.snapActivity(sut).record()
|
||||
}
|
||||
|
||||
@Test
|
||||
@ScreenshotTest
|
||||
fun preferences() {
|
||||
val sut: EtmActivity = activityRule.launchActivity(null)
|
||||
|
||||
UiThreadStatement.runOnUiThread { sut.vm.onPageSelected(0) }
|
||||
|
||||
Screenshot.snapActivity(sut).record()
|
||||
}
|
||||
|
||||
@Test
|
||||
@ScreenshotTest
|
||||
fun accounts() {
|
||||
val sut: EtmActivity = activityRule.launchActivity(null)
|
||||
|
||||
UiThreadStatement.runOnUiThread { sut.vm.onPageSelected(1) }
|
||||
|
||||
Screenshot.snapActivity(sut).record()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,235 @@
|
||||
/**
|
||||
* Nextcloud Android client application
|
||||
*
|
||||
* @author Chris Narkiewicz
|
||||
* Copyright (C) 2020 Chris Narkiewicz <[email protected]>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.nextcloud.client.files
|
||||
|
||||
import android.net.Uri
|
||||
import com.nextcloud.client.account.Server
|
||||
import com.nextcloud.client.account.User
|
||||
import com.nextcloud.client.account.UserAccountManager
|
||||
import com.nhaarman.mockitokotlin2.mock
|
||||
import com.nhaarman.mockitokotlin2.whenever
|
||||
import com.owncloud.android.lib.resources.status.OwnCloudVersion
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertNotNull
|
||||
import org.junit.Assert.assertNull
|
||||
import org.junit.Assert.assertSame
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.junit.runners.Parameterized
|
||||
import org.junit.runners.Suite
|
||||
import org.mockito.Mock
|
||||
import org.mockito.MockitoAnnotations
|
||||
import java.net.URI
|
||||
|
||||
@RunWith(Suite::class)
|
||||
@Suite.SuiteClasses(
|
||||
DeepLinkHandlerTest.DeepLinkPattern::class,
|
||||
DeepLinkHandlerTest.FileDeepLink::class
|
||||
)
|
||||
class DeepLinkHandlerTest {
|
||||
|
||||
@RunWith(Parameterized::class)
|
||||
class DeepLinkPattern {
|
||||
|
||||
companion object {
|
||||
val FILE_ID = 1234
|
||||
val SERVER_BASE_URLS = listOf(
|
||||
"http://hostname.net",
|
||||
"https://hostname.net",
|
||||
"http://hostname.net/subdir1",
|
||||
"https://hostname.net/subdir1",
|
||||
"http://hostname.net/subdir1/subdir2",
|
||||
"https://hostname.net/subdir1/subdir2",
|
||||
"http://hostname.net/subdir1/subdir2/subdir3",
|
||||
"https://hostname.net/subdir1/subdir2/subdir3"
|
||||
)
|
||||
val INDEX_PHP_PATH = listOf(
|
||||
"",
|
||||
"/index.php"
|
||||
)
|
||||
|
||||
@Parameterized.Parameters
|
||||
@JvmStatic
|
||||
fun urls(): Array<Array<Any>> {
|
||||
val testInput = mutableListOf<Array<Any>>()
|
||||
SERVER_BASE_URLS.forEach { baseUrl ->
|
||||
INDEX_PHP_PATH.forEach { indexPath ->
|
||||
val url = "$baseUrl$indexPath/f/$FILE_ID"
|
||||
testInput.add(arrayOf(baseUrl, indexPath, "$FILE_ID", url))
|
||||
}
|
||||
}
|
||||
return testInput.toTypedArray()
|
||||
}
|
||||
}
|
||||
|
||||
@Parameterized.Parameter(0)
|
||||
lateinit var baseUrl: String
|
||||
|
||||
@Parameterized.Parameter(1)
|
||||
lateinit var indexPath: String
|
||||
|
||||
@Parameterized.Parameter(2)
|
||||
lateinit var fileId: String
|
||||
|
||||
@Parameterized.Parameter(3)
|
||||
lateinit var url: String
|
||||
|
||||
@Test
|
||||
fun matches_deep_link_patterns() {
|
||||
val match = DeepLinkHandler.DEEP_LINK_PATTERN.matchEntire(url)
|
||||
assertNotNull("Url [$url] does not match pattern", match)
|
||||
assertEquals(baseUrl, match?.groupValues?.get(DeepLinkHandler.BASE_URL_GROUP_INDEX))
|
||||
assertEquals(indexPath, match?.groupValues?.get(DeepLinkHandler.INDEX_PATH_GROUP_INDEX))
|
||||
assertEquals(fileId, match?.groupValues?.get(DeepLinkHandler.FILE_ID_GROUP_INDEX))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun no_trailing_path_allowed_after_file_id() {
|
||||
val invalidUrl = "$url/"
|
||||
val match = DeepLinkHandler.DEEP_LINK_PATTERN.matchEntire(invalidUrl)
|
||||
assertNull(match)
|
||||
}
|
||||
}
|
||||
|
||||
class FileDeepLink {
|
||||
|
||||
companion object {
|
||||
const val OTHER_SERVER_BASE_URL = "https://someotherserver.net"
|
||||
const val SERVER_BASE_URL = "https://server.net"
|
||||
const val FILE_ID = "1234567890"
|
||||
val DEEP_LINK = Uri.parse("$SERVER_BASE_URL/index.php/f/$FILE_ID")
|
||||
|
||||
fun createMockUser(serverBaseUrl: String): User {
|
||||
val user = mock<User>()
|
||||
val uri = URI.create(serverBaseUrl)
|
||||
val server = Server(uri = uri, version = OwnCloudVersion.nextcloud_19)
|
||||
whenever(user.server).thenReturn(server)
|
||||
return user
|
||||
}
|
||||
}
|
||||
|
||||
@Mock
|
||||
lateinit var userAccountManager: UserAccountManager
|
||||
lateinit var allUsers: List<User>
|
||||
lateinit var handler: DeepLinkHandler
|
||||
|
||||
@Before
|
||||
fun setUp() {
|
||||
MockitoAnnotations.initMocks(this)
|
||||
whenever(userAccountManager.allUsers).thenAnswer { allUsers }
|
||||
allUsers = emptyList()
|
||||
handler = DeepLinkHandler(userAccountManager)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun no_user_can_open_file() {
|
||||
// GIVEN
|
||||
// no user capable of opening the file
|
||||
allUsers = listOf(
|
||||
createMockUser(OTHER_SERVER_BASE_URL),
|
||||
createMockUser(OTHER_SERVER_BASE_URL)
|
||||
)
|
||||
|
||||
// WHEN
|
||||
// deep link is parsed
|
||||
val match = handler.parseDeepLink(DEEP_LINK)
|
||||
|
||||
// THEN
|
||||
// link is valid
|
||||
// no user can open the file
|
||||
assertNotNull(match)
|
||||
assertEquals(0, match?.users?.size)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun single_user_can_open_file() {
|
||||
// GIVEN
|
||||
// multiple users registered
|
||||
// one user capable of opening the link
|
||||
val matchingUser = createMockUser(SERVER_BASE_URL)
|
||||
allUsers = listOf(
|
||||
createMockUser(OTHER_SERVER_BASE_URL),
|
||||
matchingUser,
|
||||
createMockUser(OTHER_SERVER_BASE_URL)
|
||||
)
|
||||
|
||||
// WHEN
|
||||
// deep link is parsed
|
||||
val match = handler.parseDeepLink(DEEP_LINK)
|
||||
|
||||
// THEN
|
||||
// link can be opened by single user
|
||||
assertNotNull(match)
|
||||
assertSame(matchingUser, match?.users?.get(0))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun multiple_users_can_open_file() {
|
||||
// GIVEN
|
||||
// mutltiple users registered
|
||||
// multiple users capable of opening the link
|
||||
val matchingUsers = setOf(
|
||||
createMockUser(SERVER_BASE_URL),
|
||||
createMockUser(SERVER_BASE_URL)
|
||||
)
|
||||
val otherUsers = setOf(
|
||||
createMockUser(OTHER_SERVER_BASE_URL),
|
||||
createMockUser(OTHER_SERVER_BASE_URL)
|
||||
)
|
||||
allUsers = listOf(matchingUsers, otherUsers).flatten()
|
||||
|
||||
// WHEN
|
||||
// deep link is parsed
|
||||
val match = handler.parseDeepLink(DEEP_LINK)
|
||||
|
||||
// THEN
|
||||
// link can be opened by multiple matching users
|
||||
assertNotNull(match)
|
||||
assertEquals(matchingUsers, match?.users?.toSet())
|
||||
}
|
||||
|
||||
@Test
|
||||
fun match_contains_extracted_file_id() {
|
||||
// WHEN
|
||||
// valid deep file link is parsed
|
||||
val match = handler.parseDeepLink(DEEP_LINK)
|
||||
|
||||
// THEN
|
||||
// file id is returned
|
||||
assertEquals(FILE_ID, match?.fileId)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun no_match_for_invalid_link() {
|
||||
// GIVEN
|
||||
// invalid deep link
|
||||
val invalidLink = Uri.parse("http://www.dodgylink.com/index.php")
|
||||
|
||||
// WHEN
|
||||
// deep link is parsed
|
||||
val match = handler.parseDeepLink(invalidLink)
|
||||
|
||||
// THEN
|
||||
// no match
|
||||
assertNull(match)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,177 @@
|
||||
/*
|
||||
* Nextcloud Android client application
|
||||
*
|
||||
* @author Chris Narkiewicz
|
||||
* Copyright (C) 2020 Chris Narkiewicz <[email protected]>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.nextcloud.client.integrations.deck
|
||||
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.content.pm.PackageManager
|
||||
import android.content.pm.ResolveInfo
|
||||
import androidx.test.platform.app.InstrumentationRegistry
|
||||
import com.nextcloud.client.account.User
|
||||
import com.nhaarman.mockitokotlin2.any
|
||||
import com.nhaarman.mockitokotlin2.anyOrNull
|
||||
import com.nhaarman.mockitokotlin2.never
|
||||
import com.nhaarman.mockitokotlin2.times
|
||||
import com.nhaarman.mockitokotlin2.verify
|
||||
import com.nhaarman.mockitokotlin2.whenever
|
||||
import com.owncloud.android.lib.resources.notifications.models.Notification
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.junit.runners.Parameterized
|
||||
import org.junit.runners.Suite
|
||||
import org.mockito.Mock
|
||||
import org.mockito.MockitoAnnotations
|
||||
|
||||
@RunWith(Suite::class)
|
||||
@Suite.SuiteClasses(
|
||||
DeckApiTest.DeckIsInstalled::class,
|
||||
DeckApiTest.DeckIsNotInstalled::class
|
||||
)
|
||||
class DeckApiTest {
|
||||
|
||||
abstract class Fixture {
|
||||
@Mock
|
||||
lateinit var packageManager: PackageManager
|
||||
|
||||
lateinit var context: Context
|
||||
|
||||
@Mock
|
||||
lateinit var user: User
|
||||
|
||||
lateinit var deck: DeckApiImpl
|
||||
|
||||
@Before
|
||||
fun setUpFixture() {
|
||||
MockitoAnnotations.initMocks(this)
|
||||
context = InstrumentationRegistry.getInstrumentation().targetContext
|
||||
deck = DeckApiImpl(context, packageManager)
|
||||
}
|
||||
}
|
||||
|
||||
@RunWith(Parameterized::class)
|
||||
class DeckIsInstalled : Fixture() {
|
||||
|
||||
@Parameterized.Parameter(0)
|
||||
lateinit var installedDeckPackage: String
|
||||
|
||||
companion object {
|
||||
@Parameterized.Parameters
|
||||
@JvmStatic
|
||||
fun initParametrs(): Array<String> {
|
||||
return DeckApiImpl.DECK_APP_PACKAGES
|
||||
}
|
||||
}
|
||||
|
||||
@Before
|
||||
fun setUp() {
|
||||
whenever(packageManager.resolveActivity(any(), any())).thenAnswer {
|
||||
val intent = it.getArgument<Intent>(0)
|
||||
return@thenAnswer if (intent.component?.packageName == installedDeckPackage) {
|
||||
ResolveInfo()
|
||||
} else {
|
||||
null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun can_forward_deck_notification() {
|
||||
// GIVEN
|
||||
// notification to deck arrives
|
||||
val notification = Notification().apply { app = "deck" }
|
||||
|
||||
// WHEN
|
||||
// deck action is created
|
||||
val forwardActionIntent = deck.createForwardToDeckActionIntent(notification, user)
|
||||
|
||||
// THEN
|
||||
// open action is created
|
||||
assertTrue("Failed for $installedDeckPackage", forwardActionIntent.isPresent)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun notifications_from_other_apps_are_ignored() {
|
||||
// GIVEN
|
||||
// notification from other app arrives
|
||||
val deckNotification = Notification().apply {
|
||||
app = "some_other_app"
|
||||
}
|
||||
|
||||
// WHEN
|
||||
// deck action is created
|
||||
val openDeckActionIntent = deck.createForwardToDeckActionIntent(deckNotification, user)
|
||||
|
||||
// THEN
|
||||
// deck application is not being resolved
|
||||
// open action is not created
|
||||
verify(packageManager, never()).resolveActivity(anyOrNull(), anyOrNull())
|
||||
assertFalse(openDeckActionIntent.isPresent)
|
||||
}
|
||||
}
|
||||
|
||||
class DeckIsNotInstalled : Fixture() {
|
||||
|
||||
@Before
|
||||
fun setUp() {
|
||||
whenever(packageManager.resolveActivity(any(), any())).thenReturn(null)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun cannot_forward_deck_notification() {
|
||||
// GIVEN
|
||||
// notification is coming from deck app
|
||||
val notification = Notification().apply {
|
||||
app = DeckApiImpl.APP_NAME
|
||||
}
|
||||
|
||||
// WHEN
|
||||
// creating open in deck action
|
||||
val openDeckActionIntent = deck.createForwardToDeckActionIntent(notification, user)
|
||||
|
||||
// THEN
|
||||
// deck application is being resolved using all known packages
|
||||
// open action is not created
|
||||
verify(packageManager, times(DeckApiImpl.DECK_APP_PACKAGES.size)).resolveActivity(anyOrNull(), anyOrNull())
|
||||
assertFalse(openDeckActionIntent.isPresent)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun notifications_from_other_apps_are_ignored() {
|
||||
// GIVEN
|
||||
// notification is coming from other app
|
||||
val notification = Notification().apply {
|
||||
app = "some_other_app"
|
||||
}
|
||||
|
||||
// WHEN
|
||||
// creating open in deck action
|
||||
val openDeckActionIntent = deck.createForwardToDeckActionIntent(notification, user)
|
||||
|
||||
// THEN
|
||||
// deck application is not being resolved
|
||||
// open action is not created
|
||||
verify(packageManager, never()).resolveActivity(anyOrNull(), anyOrNull())
|
||||
assertFalse(openDeckActionIntent.isPresent)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,430 @@
|
||||
/*
|
||||
* Nextcloud Android client application
|
||||
*
|
||||
* @author Chris Narkiewicz
|
||||
* Copyright (C) 2020 Chris Narkiewicz <[email protected]>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.nextcloud.client.jobs
|
||||
|
||||
import androidx.lifecycle.LiveData
|
||||
import androidx.lifecycle.MutableLiveData
|
||||
import androidx.lifecycle.Observer
|
||||
import androidx.test.annotation.UiThreadTest
|
||||
import androidx.work.Data
|
||||
import androidx.work.ExistingPeriodicWorkPolicy
|
||||
import androidx.work.ExistingWorkPolicy
|
||||
import androidx.work.OneTimeWorkRequest
|
||||
import androidx.work.PeriodicWorkRequest
|
||||
import androidx.work.WorkInfo
|
||||
import androidx.work.WorkManager
|
||||
import com.nextcloud.client.account.User
|
||||
import com.nextcloud.client.core.Clock
|
||||
import com.nhaarman.mockitokotlin2.KArgumentCaptor
|
||||
import com.nhaarman.mockitokotlin2.any
|
||||
import com.nhaarman.mockitokotlin2.argThat
|
||||
import com.nhaarman.mockitokotlin2.argumentCaptor
|
||||
import com.nhaarman.mockitokotlin2.eq
|
||||
import com.nhaarman.mockitokotlin2.mock
|
||||
import com.nhaarman.mockitokotlin2.verify
|
||||
import com.nhaarman.mockitokotlin2.whenever
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertNotNull
|
||||
import org.junit.Assert.assertNull
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.junit.runners.Suite
|
||||
import org.mockito.ArgumentMatcher
|
||||
import java.util.Date
|
||||
import java.util.UUID
|
||||
import java.util.concurrent.CountDownLatch
|
||||
import java.util.concurrent.TimeUnit
|
||||
import java.util.concurrent.TimeoutException
|
||||
|
||||
/**
|
||||
* When using IDE to run enire Suite, make sure tests are run using Android Instrumentation Test
|
||||
* runner. By default IDE runs normal JUnit - this is AS problem. One must configure the
|
||||
* test run manually.
|
||||
*/
|
||||
@RunWith(Suite::class)
|
||||
@Suite.SuiteClasses(
|
||||
BackgroundJobManagerTest.Manager::class,
|
||||
BackgroundJobManagerTest.ContentObserver::class,
|
||||
BackgroundJobManagerTest.PeriodicContactsBackup::class,
|
||||
BackgroundJobManagerTest.ImmediateContactsBackup::class,
|
||||
BackgroundJobManagerTest.ImmediateContactsImport::class,
|
||||
BackgroundJobManagerTest.Tags::class
|
||||
)
|
||||
class BackgroundJobManagerTest {
|
||||
|
||||
/**
|
||||
* Used to help with ambiguous type inference
|
||||
*/
|
||||
class IsOneTimeWorkRequest : ArgumentMatcher<OneTimeWorkRequest> {
|
||||
override fun matches(argument: OneTimeWorkRequest?): Boolean = true
|
||||
}
|
||||
|
||||
/**
|
||||
* Used to help with ambiguous type inference
|
||||
*/
|
||||
class IsPeriodicWorkRequest : ArgumentMatcher<PeriodicWorkRequest> {
|
||||
override fun matches(argument: PeriodicWorkRequest?): Boolean = true
|
||||
}
|
||||
|
||||
abstract class Fixture {
|
||||
companion object {
|
||||
internal const val USER_ACCOUNT_NAME = "user@nextcloud"
|
||||
internal val TIMESTAMP = System.currentTimeMillis()
|
||||
}
|
||||
internal lateinit var user: User
|
||||
internal lateinit var workManager: WorkManager
|
||||
internal lateinit var clock: Clock
|
||||
internal lateinit var backgroundJobManager: BackgroundJobManagerImpl
|
||||
|
||||
@Before
|
||||
fun setUpFixture() {
|
||||
user = mock()
|
||||
whenever(user.accountName).thenReturn(USER_ACCOUNT_NAME)
|
||||
workManager = mock()
|
||||
clock = mock()
|
||||
whenever(clock.currentTime).thenReturn(TIMESTAMP)
|
||||
whenever(clock.currentDate).thenReturn(Date(TIMESTAMP))
|
||||
backgroundJobManager = BackgroundJobManagerImpl(workManager, clock)
|
||||
}
|
||||
|
||||
fun assertHasRequiredTags(tags: Set<String>, jobName: String, user: User? = null) {
|
||||
assertTrue("""'all' tag is mandatory""", tags.contains("*"))
|
||||
assertTrue("name tag is mandatory", tags.contains(BackgroundJobManagerImpl.formatNameTag(jobName, user)))
|
||||
assertTrue("timestamp tag is mandatory", tags.contains(BackgroundJobManagerImpl.formatTimeTag(TIMESTAMP)))
|
||||
if (user != null) {
|
||||
assertTrue("user tag is mandatory", tags.contains(BackgroundJobManagerImpl.formatUserTag(user)))
|
||||
}
|
||||
}
|
||||
|
||||
fun buildWorkInfo(index: Long): WorkInfo = WorkInfo(
|
||||
UUID.randomUUID(),
|
||||
WorkInfo.State.RUNNING,
|
||||
Data.Builder().build(),
|
||||
listOf(BackgroundJobManagerImpl.formatTimeTag(1581820284000)),
|
||||
Data.Builder().build(),
|
||||
1
|
||||
)
|
||||
}
|
||||
|
||||
class Manager : Fixture() {
|
||||
|
||||
class SyncObserver<T> : Observer<T> {
|
||||
val latch = CountDownLatch(1)
|
||||
var value: T? = null
|
||||
override fun onChanged(t: T) {
|
||||
value = t
|
||||
latch.countDown()
|
||||
}
|
||||
|
||||
fun getValue(timeout: Long = 3, timeUnit: TimeUnit = TimeUnit.SECONDS): T? {
|
||||
val result = latch.await(timeout, timeUnit)
|
||||
if (!result) {
|
||||
throw TimeoutException()
|
||||
}
|
||||
return value
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
@UiThreadTest
|
||||
fun get_all_job_info() {
|
||||
// GIVEN
|
||||
// work manager has 2 registered workers
|
||||
val platformWorkInfo = listOf(
|
||||
buildWorkInfo(0),
|
||||
buildWorkInfo(1),
|
||||
buildWorkInfo(2)
|
||||
)
|
||||
val lv = MutableLiveData<List<WorkInfo>>()
|
||||
lv.value = platformWorkInfo
|
||||
whenever(workManager.getWorkInfosByTagLiveData(eq("*"))).thenReturn(lv)
|
||||
|
||||
// WHEN
|
||||
// job info for all jobs is requested
|
||||
val jobs = backgroundJobManager.jobs
|
||||
|
||||
// THEN
|
||||
// live data with job info is returned
|
||||
// live data contains 2 job info instances
|
||||
// job info is sorted by timestamp from newest to oldest
|
||||
assertNotNull(jobs)
|
||||
val observer = SyncObserver<List<JobInfo>>()
|
||||
jobs.observeForever(observer)
|
||||
val jobInfo = observer.getValue()
|
||||
assertNotNull(jobInfo)
|
||||
assertEquals(platformWorkInfo.size, jobInfo?.size)
|
||||
jobInfo?.let {
|
||||
assertEquals(platformWorkInfo[2].id, it[0].id)
|
||||
assertEquals(platformWorkInfo[1].id, it[1].id)
|
||||
assertEquals(platformWorkInfo[0].id, it[2].id)
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun cancel_all_jobs() {
|
||||
// WHEN
|
||||
// all jobs are cancelled
|
||||
backgroundJobManager.cancelAllJobs()
|
||||
|
||||
// THEN
|
||||
// all jobs with * tag are cancelled
|
||||
verify(workManager).cancelAllWorkByTag(BackgroundJobManagerImpl.TAG_ALL)
|
||||
}
|
||||
}
|
||||
|
||||
class ContentObserver : Fixture() {
|
||||
|
||||
private lateinit var request: OneTimeWorkRequest
|
||||
|
||||
@Before
|
||||
fun setUp() {
|
||||
val requestCaptor: KArgumentCaptor<OneTimeWorkRequest> = argumentCaptor()
|
||||
backgroundJobManager.scheduleContentObserverJob()
|
||||
verify(workManager).enqueueUniqueWork(
|
||||
any(),
|
||||
any(),
|
||||
requestCaptor.capture()
|
||||
)
|
||||
assertEquals(1, requestCaptor.allValues.size)
|
||||
request = requestCaptor.firstValue
|
||||
}
|
||||
|
||||
@Test
|
||||
fun job_is_unique_and_replaces_previous_job() {
|
||||
verify(workManager).enqueueUniqueWork(
|
||||
eq(BackgroundJobManagerImpl.JOB_CONTENT_OBSERVER),
|
||||
eq(ExistingWorkPolicy.REPLACE),
|
||||
argThat(IsOneTimeWorkRequest())
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun job_request_has_mandatory_tags() {
|
||||
assertHasRequiredTags(request.tags, BackgroundJobManagerImpl.JOB_CONTENT_OBSERVER)
|
||||
}
|
||||
}
|
||||
|
||||
class PeriodicContactsBackup : Fixture() {
|
||||
private lateinit var request: PeriodicWorkRequest
|
||||
|
||||
@Before
|
||||
fun setUp() {
|
||||
val requestCaptor: KArgumentCaptor<PeriodicWorkRequest> = argumentCaptor()
|
||||
backgroundJobManager.schedulePeriodicContactsBackup(user)
|
||||
verify(workManager).enqueueUniquePeriodicWork(
|
||||
any(),
|
||||
any(),
|
||||
requestCaptor.capture()
|
||||
)
|
||||
assertEquals(1, requestCaptor.allValues.size)
|
||||
request = requestCaptor.firstValue
|
||||
}
|
||||
|
||||
@Test
|
||||
fun job_is_unique_for_user() {
|
||||
verify(workManager).enqueueUniquePeriodicWork(
|
||||
eq(BackgroundJobManagerImpl.JOB_PERIODIC_CONTACTS_BACKUP),
|
||||
eq(ExistingPeriodicWorkPolicy.KEEP),
|
||||
argThat(IsPeriodicWorkRequest())
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun job_request_has_mandatory_tags() {
|
||||
assertHasRequiredTags(request.tags, BackgroundJobManagerImpl.JOB_PERIODIC_CONTACTS_BACKUP, user)
|
||||
}
|
||||
}
|
||||
|
||||
class ImmediateContactsBackup : Fixture() {
|
||||
|
||||
private lateinit var workInfo: MutableLiveData<WorkInfo>
|
||||
private lateinit var jobInfo: LiveData<JobInfo?>
|
||||
private lateinit var request: OneTimeWorkRequest
|
||||
|
||||
@Before
|
||||
fun setUp() {
|
||||
val requestCaptor: KArgumentCaptor<OneTimeWorkRequest> = argumentCaptor()
|
||||
workInfo = MutableLiveData()
|
||||
whenever(workManager.getWorkInfoByIdLiveData(any())).thenReturn(workInfo)
|
||||
jobInfo = backgroundJobManager.startImmediateContactsBackup(user)
|
||||
verify(workManager).enqueueUniqueWork(
|
||||
any(),
|
||||
any(),
|
||||
requestCaptor.capture()
|
||||
)
|
||||
assertEquals(1, requestCaptor.allValues.size)
|
||||
request = requestCaptor.firstValue
|
||||
}
|
||||
|
||||
@Test
|
||||
fun job_is_unique_for_user() {
|
||||
verify(workManager).enqueueUniqueWork(
|
||||
eq(BackgroundJobManagerImpl.JOB_IMMEDIATE_CONTACTS_BACKUP),
|
||||
eq(ExistingWorkPolicy.KEEP),
|
||||
argThat(IsOneTimeWorkRequest())
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun job_request_has_mandatory_tags() {
|
||||
assertHasRequiredTags(request.tags, BackgroundJobManagerImpl.JOB_IMMEDIATE_CONTACTS_BACKUP, user)
|
||||
}
|
||||
|
||||
@Test
|
||||
@UiThreadTest
|
||||
fun job_info_is_obtained_from_work_info() {
|
||||
// GIVEN
|
||||
// work info is available
|
||||
workInfo.value = buildWorkInfo(0)
|
||||
|
||||
// WHEN
|
||||
// job info has listener
|
||||
jobInfo.observeForever {}
|
||||
|
||||
// THEN
|
||||
// converted value is available
|
||||
assertNotNull(jobInfo.value)
|
||||
assertEquals(workInfo.value?.id, jobInfo.value?.id)
|
||||
}
|
||||
}
|
||||
|
||||
class ImmediateContactsImport : Fixture() {
|
||||
|
||||
private lateinit var workInfo: MutableLiveData<WorkInfo>
|
||||
private lateinit var jobInfo: LiveData<JobInfo?>
|
||||
private lateinit var request: OneTimeWorkRequest
|
||||
|
||||
@Before
|
||||
fun setUp() {
|
||||
val requestCaptor: KArgumentCaptor<OneTimeWorkRequest> = argumentCaptor()
|
||||
workInfo = MutableLiveData()
|
||||
whenever(workManager.getWorkInfoByIdLiveData(any())).thenReturn(workInfo)
|
||||
jobInfo = backgroundJobManager.startImmediateContactsImport(
|
||||
contactsAccountName = "name",
|
||||
contactsAccountType = "type",
|
||||
vCardFilePath = "/path/to/vcard/file",
|
||||
selectedContacts = intArrayOf(1, 2, 3)
|
||||
)
|
||||
verify(workManager).enqueueUniqueWork(
|
||||
any(),
|
||||
any(),
|
||||
requestCaptor.capture()
|
||||
)
|
||||
assertEquals(1, requestCaptor.allValues.size)
|
||||
request = requestCaptor.firstValue
|
||||
}
|
||||
|
||||
@Test
|
||||
fun job_is_unique() {
|
||||
verify(workManager).enqueueUniqueWork(
|
||||
eq(BackgroundJobManagerImpl.JOB_IMMEDIATE_CONTACTS_IMPORT),
|
||||
eq(ExistingWorkPolicy.KEEP),
|
||||
argThat(IsOneTimeWorkRequest())
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun job_request_has_mandatory_tags() {
|
||||
assertHasRequiredTags(request.tags, BackgroundJobManagerImpl.JOB_IMMEDIATE_CONTACTS_IMPORT)
|
||||
}
|
||||
|
||||
@Test
|
||||
@UiThreadTest
|
||||
fun job_info_is_obtained_from_work_info() {
|
||||
// GIVEN
|
||||
// work info is available
|
||||
workInfo.value = buildWorkInfo(0)
|
||||
|
||||
// WHEN
|
||||
// job info has listener
|
||||
jobInfo.observeForever {}
|
||||
|
||||
// THEN
|
||||
// converted value is available
|
||||
assertNotNull(jobInfo.value)
|
||||
assertEquals(workInfo.value?.id, jobInfo.value?.id)
|
||||
}
|
||||
}
|
||||
|
||||
class Tags {
|
||||
@Test
|
||||
fun split_tag_key_and_value() {
|
||||
// GIVEN
|
||||
// valid tag
|
||||
// tag has colons in value part
|
||||
val tag = "${BackgroundJobManagerImpl.TAG_PREFIX_NAME}:value:with:colons and spaces"
|
||||
|
||||
// WHEN
|
||||
// tag is parsed
|
||||
val parsedTag = BackgroundJobManagerImpl.parseTag(tag)
|
||||
|
||||
// THEN
|
||||
// key-value pair is returned
|
||||
// key is first
|
||||
// value with colons is second
|
||||
assertNotNull(parsedTag)
|
||||
assertEquals(BackgroundJobManagerImpl.TAG_PREFIX_NAME, parsedTag?.first)
|
||||
assertEquals("value:with:colons and spaces", parsedTag?.second)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun tags_with_invalid_prefixes_are_rejected() {
|
||||
// GIVEN
|
||||
// tag prefix is not on allowed prefixes list
|
||||
val tag = "invalidprefix:value"
|
||||
BackgroundJobManagerImpl.PREFIXES.forEach {
|
||||
assertFalse(tag.startsWith(it))
|
||||
}
|
||||
|
||||
// WHEN
|
||||
// tag is parsed
|
||||
val parsedTag = BackgroundJobManagerImpl.parseTag(tag)
|
||||
|
||||
// THEN
|
||||
// tag is rejected
|
||||
assertNull(parsedTag)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun strings_without_colon_are_rejected() {
|
||||
// GIVEN
|
||||
// strings that are not tags
|
||||
val tags = listOf(
|
||||
BackgroundJobManagerImpl.TAG_ALL,
|
||||
BackgroundJobManagerImpl.TAG_PREFIX_NAME,
|
||||
"simplestring",
|
||||
""
|
||||
)
|
||||
|
||||
tags.forEach {
|
||||
// WHEN
|
||||
// string is parsed
|
||||
val parsedTag = BackgroundJobManagerImpl.parseTag(it)
|
||||
|
||||
// THEN
|
||||
// tag is rejected
|
||||
assertNull(parsedTag)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
* Nextcloud Android client application
|
||||
*
|
||||
* @author Chris Narkiewicz
|
||||
* Copyright (C) 2020 Chris Narkiewicz <[email protected]>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.nextcloud.client.migrations
|
||||
|
||||
import android.content.Context
|
||||
import android.content.SharedPreferences
|
||||
import androidx.test.platform.app.InstrumentationRegistry
|
||||
import com.nhaarman.mockitokotlin2.any
|
||||
import com.nhaarman.mockitokotlin2.eq
|
||||
import com.nhaarman.mockitokotlin2.mock
|
||||
import com.nhaarman.mockitokotlin2.whenever
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
|
||||
class MigrationsDbTest {
|
||||
|
||||
private lateinit var context: Context
|
||||
private lateinit var store: MockSharedPreferences
|
||||
private lateinit var db: MigrationsDb
|
||||
|
||||
@Before
|
||||
fun setUp() {
|
||||
context = InstrumentationRegistry.getInstrumentation().context
|
||||
store = MockSharedPreferences()
|
||||
assertTrue("State from previous test run found?", store.all.isEmpty())
|
||||
db = MigrationsDb(store)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun applied_migrations_are_returned_in_order() {
|
||||
// GIVEN
|
||||
// some migrations are marked as applied
|
||||
// migration ids are stored in random order
|
||||
val mockStore: SharedPreferences = mock()
|
||||
val storedMigrationIds = LinkedHashSet<String>()
|
||||
storedMigrationIds.apply {
|
||||
add("3")
|
||||
add("0")
|
||||
add("2")
|
||||
add("1")
|
||||
}
|
||||
whenever(mockStore.getStringSet(eq(MigrationsDb.DB_KEY_APPLIED_MIGRATIONS), any()))
|
||||
.thenReturn(storedMigrationIds)
|
||||
|
||||
// WHEN
|
||||
// applied migration ids are retrieved
|
||||
val db = MigrationsDb(mockStore)
|
||||
val ids = db.getAppliedMigrations()
|
||||
|
||||
// THEN
|
||||
// returned list is sorted
|
||||
assertEquals(ids, ids.sorted())
|
||||
}
|
||||
|
||||
@Test
|
||||
@Suppress("MagicNumber")
|
||||
fun registering_new_applied_migration_preserves_old_ids() {
|
||||
// WHEN
|
||||
// some applied migrations are registered
|
||||
val appliedMigrationIds = setOf("0", "1", "2")
|
||||
store.edit().putStringSet(MigrationsDb.DB_KEY_APPLIED_MIGRATIONS, appliedMigrationIds).apply()
|
||||
|
||||
// WHEN
|
||||
// new set of migration ids are registered
|
||||
// some ids are added again
|
||||
db.addAppliedMigration(2, 3, 4)
|
||||
|
||||
// THEN
|
||||
// new ids are appended to set of existing ids
|
||||
val expectedIds = setOf("0", "1", "2", "3", "4")
|
||||
val storedIds = store.getStringSet(MigrationsDb.DB_KEY_APPLIED_MIGRATIONS, mutableSetOf())
|
||||
assertEquals(expectedIds, storedIds)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun failed_status_sets_status_flag_and_error_message() {
|
||||
// GIVEN
|
||||
// failure flag is not set
|
||||
assertFalse(db.isFailed)
|
||||
|
||||
// WHEN
|
||||
// failure status is set
|
||||
val failureReason = "error message"
|
||||
db.setFailed(0, failureReason)
|
||||
|
||||
// THEN
|
||||
// failed flag is set
|
||||
// error message is set
|
||||
assertTrue(db.isFailed)
|
||||
assertEquals(failureReason, db.failureReason)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun last_migrated_version_is_set() {
|
||||
// GIVEN
|
||||
// last migrated version is not set
|
||||
val oldVersion = db.lastMigratedVersion
|
||||
assertEquals(MigrationsDb.NO_LAST_MIGRATED_VERSION, oldVersion)
|
||||
|
||||
// WHEN
|
||||
// migrated version is set to a new value
|
||||
val newVersion = 200
|
||||
db.lastMigratedVersion = newVersion
|
||||
|
||||
// THEN
|
||||
// new value is stored
|
||||
assertEquals(newVersion, db.lastMigratedVersion)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,268 @@
|
||||
/*
|
||||
* Nextcloud Android client application
|
||||
*
|
||||
* @author Chris Narkiewicz
|
||||
* Copyright (C) 2020 Chris Narkiewicz <[email protected]>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.nextcloud.client.migrations
|
||||
|
||||
import androidx.test.annotation.UiThreadTest
|
||||
import com.nextcloud.client.appinfo.AppInfo
|
||||
import com.nextcloud.client.core.ManualAsyncRunner
|
||||
import com.nhaarman.mockitokotlin2.inOrder
|
||||
import com.nhaarman.mockitokotlin2.mock
|
||||
import com.nhaarman.mockitokotlin2.never
|
||||
import com.nhaarman.mockitokotlin2.verify
|
||||
import com.nhaarman.mockitokotlin2.whenever
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
import org.mockito.Mock
|
||||
import org.mockito.MockitoAnnotations
|
||||
|
||||
class MigrationsManagerTest {
|
||||
|
||||
companion object {
|
||||
const val OLD_APP_VERSION = 41
|
||||
const val NEW_APP_VERSION = 42
|
||||
}
|
||||
|
||||
lateinit var migrationStep1: Runnable
|
||||
lateinit var migrationStep2: Runnable
|
||||
lateinit var migrationStep3: Runnable
|
||||
lateinit var migrations: List<Migrations.Step>
|
||||
|
||||
@Mock
|
||||
lateinit var appInfo: AppInfo
|
||||
|
||||
lateinit var migrationsDbStore: MockSharedPreferences
|
||||
lateinit var migrationsDb: MigrationsDb
|
||||
|
||||
lateinit var asyncRunner: ManualAsyncRunner
|
||||
|
||||
internal lateinit var migrationsManager: MigrationsManagerImpl
|
||||
|
||||
@Before
|
||||
fun setUp() {
|
||||
MockitoAnnotations.initMocks(this)
|
||||
migrationStep1 = mock()
|
||||
migrationStep2 = mock()
|
||||
migrationStep3 = mock()
|
||||
migrations = listOf(
|
||||
object : Migrations.Step(0, "first migration", true) {
|
||||
override fun run() {
|
||||
migrationStep1.run()
|
||||
}
|
||||
},
|
||||
object : Migrations.Step(1, "second optional migration", false) {
|
||||
override fun run() {
|
||||
migrationStep2.run()
|
||||
}
|
||||
},
|
||||
object : Migrations.Step(2, "third migration", true) {
|
||||
override fun run() {
|
||||
migrationStep3.run()
|
||||
}
|
||||
}
|
||||
)
|
||||
asyncRunner = ManualAsyncRunner()
|
||||
migrationsDbStore = MockSharedPreferences()
|
||||
migrationsDb = MigrationsDb(migrationsDbStore)
|
||||
|
||||
whenever(appInfo.versionCode).thenReturn(NEW_APP_VERSION)
|
||||
migrationsManager = MigrationsManagerImpl(
|
||||
appInfo = appInfo,
|
||||
migrationsDb = migrationsDb,
|
||||
asyncRunner = asyncRunner,
|
||||
migrations = migrations
|
||||
)
|
||||
}
|
||||
|
||||
private fun assertMigrationsRun(vararg migrationSteps: Runnable) {
|
||||
inOrder(migrationSteps).apply {
|
||||
migrationSteps.forEach {
|
||||
verify(it.run())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun inital_status_is_unknown() {
|
||||
// GIVEN
|
||||
// migration manager has not been used yets
|
||||
|
||||
// THEN
|
||||
// status is not set
|
||||
assertEquals(MigrationsManager.Status.UNKNOWN, migrationsManager.status.value)
|
||||
}
|
||||
|
||||
@Test
|
||||
@UiThreadTest
|
||||
fun migrations_are_scheduled_on_background_thread() {
|
||||
// GIVEN
|
||||
// migrations can be applied
|
||||
assertEquals(0, migrationsDb.getAppliedMigrations().size)
|
||||
|
||||
// WHEN
|
||||
// migration is started
|
||||
val count = migrationsManager.startMigration()
|
||||
|
||||
// THEN
|
||||
// all migrations are scheduled on background thread
|
||||
// single task is scheduled
|
||||
assertEquals(migrations.size, count)
|
||||
assertEquals(1, asyncRunner.size)
|
||||
assertEquals(MigrationsManager.Status.RUNNING, migrationsManager.status.value)
|
||||
}
|
||||
|
||||
@Test
|
||||
@UiThreadTest
|
||||
fun applied_migrations_are_recorded() {
|
||||
// GIVEN
|
||||
// no migrations are applied yet
|
||||
// current app version is newer then last recorded migrated version
|
||||
whenever(appInfo.versionCode).thenReturn(NEW_APP_VERSION)
|
||||
migrationsDb.lastMigratedVersion = OLD_APP_VERSION
|
||||
|
||||
// WHEN
|
||||
// migration is run
|
||||
val count = migrationsManager.startMigration()
|
||||
assertTrue(asyncRunner.runOne())
|
||||
|
||||
// THEN
|
||||
// total migrations count is returned
|
||||
// migration functions are called
|
||||
// applied migrations are recorded
|
||||
// new app version code is recorded
|
||||
assertEquals(migrations.size, count)
|
||||
inOrder(migrationStep1, migrationStep2, migrationStep3).apply {
|
||||
verify(migrationStep1).run()
|
||||
verify(migrationStep2).run()
|
||||
verify(migrationStep3).run()
|
||||
}
|
||||
val allAppliedIds = migrations.map { it.id }
|
||||
assertEquals(allAppliedIds, migrationsDb.getAppliedMigrations())
|
||||
assertEquals(NEW_APP_VERSION, migrationsDb.lastMigratedVersion)
|
||||
}
|
||||
|
||||
@Test
|
||||
@UiThreadTest
|
||||
fun migration_error_is_recorded() {
|
||||
// GIVEN
|
||||
// no migrations applied yet
|
||||
// no prior failed migrations
|
||||
assertFalse(migrationsDb.isFailed)
|
||||
assertEquals(MigrationsDb.NO_FAILED_MIGRATION_ID, migrationsDb.failedMigrationId)
|
||||
|
||||
// WHEN
|
||||
// migrations are applied
|
||||
// one migration throws
|
||||
val lastMigration = migrations.findLast { it.mandatory } ?: throw IllegalStateException("Test fixture error")
|
||||
val errorMessage = "error message"
|
||||
whenever(lastMigration.run()).thenThrow(RuntimeException(errorMessage))
|
||||
migrationsManager.startMigration()
|
||||
assertTrue(asyncRunner.runOne())
|
||||
|
||||
// THEN
|
||||
// failure is marked in the migration db
|
||||
// failure message is recorded
|
||||
// failed migration id is recorded
|
||||
assertEquals(MigrationsManager.Status.FAILED, migrationsManager.status.value)
|
||||
assertTrue(migrationsDb.isFailed)
|
||||
assertEquals(errorMessage, migrationsDb.failureReason)
|
||||
assertEquals(lastMigration.id, migrationsDb.failedMigrationId)
|
||||
}
|
||||
|
||||
@Test
|
||||
@UiThreadTest
|
||||
fun migrations_are_not_run_if_already_run_for_an_app_version() {
|
||||
// GIVEN
|
||||
// migrations were already run for the current app version
|
||||
whenever(appInfo.versionCode).thenReturn(NEW_APP_VERSION)
|
||||
migrationsDb.lastMigratedVersion = NEW_APP_VERSION
|
||||
|
||||
// WHEN
|
||||
// app is migrated again
|
||||
val migrationCount = migrationsManager.startMigration()
|
||||
|
||||
// THEN
|
||||
// migration processing is skipped entirely
|
||||
// status is set to applied
|
||||
assertEquals(0, migrationCount)
|
||||
listOf(migrationStep1, migrationStep2, migrationStep3).forEach {
|
||||
verify(it, never()).run()
|
||||
}
|
||||
assertEquals(MigrationsManager.Status.APPLIED, migrationsManager.status.value)
|
||||
}
|
||||
|
||||
@Test
|
||||
@UiThreadTest
|
||||
fun new_app_version_is_marked_as_migrated_if_no_new_migrations_are_available() {
|
||||
// GIVEN
|
||||
// migrations were applied in previous version
|
||||
// new version has no new migrations
|
||||
whenever(appInfo.versionCode).thenReturn(NEW_APP_VERSION)
|
||||
migrationsDb.lastMigratedVersion = OLD_APP_VERSION
|
||||
migrations.forEach {
|
||||
migrationsDb.addAppliedMigration(it.id)
|
||||
}
|
||||
|
||||
// WHEN
|
||||
// migration is started
|
||||
val startedCount = migrationsManager.startMigration()
|
||||
|
||||
// THEN
|
||||
// no new migrations are run
|
||||
// new version is marked as migrated
|
||||
assertEquals(0, startedCount)
|
||||
assertEquals(
|
||||
NEW_APP_VERSION,
|
||||
migrationsDb.lastMigratedVersion
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
@UiThreadTest
|
||||
fun optional_migration_failure_does_not_trigger_a_migration_failure() {
|
||||
// GIVEN
|
||||
// pending migrations
|
||||
// mandatory migrations are passing
|
||||
// one migration is optional and fails
|
||||
assertEquals("Fixture should provide 1 optional, failing migration", 1, migrations.count { !it.mandatory })
|
||||
val optionalFailingMigration = migrations.first { !it.mandatory }
|
||||
whenever(optionalFailingMigration.run()).thenThrow(RuntimeException())
|
||||
|
||||
// WHEN
|
||||
// migration is started
|
||||
val startedCount = migrationsManager.startMigration()
|
||||
asyncRunner.runOne()
|
||||
assertEquals(migrations.size, startedCount)
|
||||
|
||||
// THEN
|
||||
// mandatory migrations are marked as applied
|
||||
// optional failed migration is not marked
|
||||
// no error
|
||||
// status is applied
|
||||
// failed migration is available during next migration
|
||||
val appliedMigrations = migrations.filter { it.mandatory }.map { it.id }
|
||||
assertTrue("Fixture error", appliedMigrations.isNotEmpty())
|
||||
assertEquals(appliedMigrations, migrationsDb.getAppliedMigrations())
|
||||
assertFalse(migrationsDb.isFailed)
|
||||
assertEquals(MigrationsManager.Status.APPLIED, migrationsManager.status.value)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* Nextcloud Android client application
|
||||
*
|
||||
* @author Chris Narkiewicz
|
||||
* Copyright (C) 2020 Chris Narkiewicz <[email protected]>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.nextcloud.client.migrations
|
||||
|
||||
import android.content.SharedPreferences
|
||||
import java.lang.UnsupportedOperationException
|
||||
import java.util.TreeMap
|
||||
|
||||
/**
|
||||
* This shared preferences implementation uses in-memory value store
|
||||
* and it can be used in tests without using global, file-backed storage,
|
||||
* improving test isolation.
|
||||
*
|
||||
* The implementation is not thread-safe.
|
||||
*/
|
||||
@Suppress("TooManyFunctions")
|
||||
class MockSharedPreferences : SharedPreferences {
|
||||
|
||||
class MockEditor(val store: MutableMap<String?, Any?>) : SharedPreferences.Editor {
|
||||
|
||||
val editorStore: MutableMap<String?, Any?> = TreeMap()
|
||||
|
||||
override fun clear(): SharedPreferences.Editor = throw UnsupportedOperationException()
|
||||
|
||||
override fun putLong(key: String?, value: Long): SharedPreferences.Editor =
|
||||
throw UnsupportedOperationException("Implement as needed")
|
||||
|
||||
override fun putInt(key: String?, value: Int): SharedPreferences.Editor {
|
||||
editorStore.put(key, value)
|
||||
return this
|
||||
}
|
||||
|
||||
override fun remove(key: String?): SharedPreferences.Editor = throw UnsupportedOperationException()
|
||||
|
||||
override fun putBoolean(key: String?, value: Boolean): SharedPreferences.Editor {
|
||||
editorStore.put(key, value)
|
||||
return this
|
||||
}
|
||||
|
||||
override fun putStringSet(key: String?, values: MutableSet<String>?): SharedPreferences.Editor {
|
||||
editorStore.put(key, values?.toMutableSet())
|
||||
return this
|
||||
}
|
||||
|
||||
override fun commit(): Boolean = true
|
||||
|
||||
override fun putFloat(key: String?, value: Float): SharedPreferences.Editor =
|
||||
throw UnsupportedOperationException("Implement as needed")
|
||||
|
||||
override fun apply() = store.putAll(editorStore)
|
||||
|
||||
override fun putString(key: String?, value: String?): SharedPreferences.Editor {
|
||||
editorStore.put(key, value)
|
||||
return this
|
||||
}
|
||||
}
|
||||
|
||||
val store: MutableMap<String?, Any?> = TreeMap()
|
||||
|
||||
override fun contains(key: String?): Boolean = store.containsKey(key)
|
||||
override fun getBoolean(key: String?, defValue: Boolean): Boolean = store.getOrDefault(key, defValue) as Boolean
|
||||
|
||||
override fun unregisterOnSharedPreferenceChangeListener(
|
||||
listener: SharedPreferences.OnSharedPreferenceChangeListener?
|
||||
) = throw UnsupportedOperationException()
|
||||
|
||||
override fun getInt(key: String?, defValue: Int): Int = store.getOrDefault(key, defValue) as Int
|
||||
|
||||
override fun getAll(): MutableMap<String?, Any?> {
|
||||
return HashMap(store)
|
||||
}
|
||||
|
||||
override fun edit(): SharedPreferences.Editor {
|
||||
return MockEditor(store)
|
||||
}
|
||||
|
||||
override fun getLong(key: String?, defValue: Long): Long {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
override fun getFloat(key: String?, defValue: Float): Float {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
override fun getStringSet(key: String?, defValues: MutableSet<String>?): MutableSet<String>? {
|
||||
return store.getOrDefault(key, defValues) as MutableSet<String>?
|
||||
}
|
||||
|
||||
override fun registerOnSharedPreferenceChangeListener(
|
||||
listener: SharedPreferences.OnSharedPreferenceChangeListener?
|
||||
) = throw UnsupportedOperationException()
|
||||
|
||||
override fun getString(key: String?, defValue: String?): String? = store.getOrDefault(key, defValue) as String?
|
||||
}
|
||||