Compare commits

...

2512 Commits

Author SHA1 Message Date
rebel onion
53807ff68d New translations strings.xml (Portuguese, Brazilian) 2025-03-20 08:29:47 -05:00
rebel onion
902bf96a29 New translations strings.xml (Assamese) 2025-03-07 08:30:44 -06:00
rebel onion
91743dc0b7 New translations strings.xml (Assamese) 2025-03-07 07:08:23 -06:00
rebel onion
384f8603b5 New translations strings.xml (Greek) 2025-01-19 10:46:15 -06:00
rebel onion
6c4edda017 New translations strings.xml (Greek) 2025-01-19 09:50:01 -06:00
rebel onion
2f4f7345e4 New translations strings.xml (Portuguese, Brazilian) 2025-01-06 12:17:24 -06:00
rebel onion
8847d37a7d New translations strings.xml (Portuguese, Brazilian) 2025-01-06 10:50:53 -06:00
rebel onion
4e1f82aada New translations strings.xml (Portuguese, Brazilian) 2025-01-06 07:35:08 -06:00
rebel onion
2395a57271 New translations strings.xml (Assamese) 2025-01-04 05:54:27 -06:00
rebel onion
43cbf35761 New translations strings.xml (Hindi) 2025-01-04 05:54:26 -06:00
rebel onion
d095f87a1a New translations strings.xml (Bengali) 2025-01-04 05:54:25 -06:00
rebel onion
6be5fbd0c8 New translations strings.xml (Spanish, Mexico) 2025-01-04 05:54:23 -06:00
rebel onion
5450d331b8 New translations strings.xml (Portuguese, Brazilian) 2025-01-04 05:54:22 -06:00
rebel onion
d53cdce2e2 New translations strings.xml (Urdu (Pakistan)) 2025-01-04 05:54:21 -06:00
rebel onion
bb8d03f776 New translations strings.xml (Chinese Simplified) 2025-01-04 05:54:20 -06:00
rebel onion
df65eec0d3 New translations strings.xml (Turkish) 2025-01-04 05:54:19 -06:00
rebel onion
b112db7803 New translations strings.xml (Albanian) 2025-01-04 05:54:18 -06:00
rebel onion
178d7f7820 New translations strings.xml (Russian) 2025-01-04 05:54:17 -06:00
rebel onion
afaa162907 New translations strings.xml (Polish) 2025-01-04 05:54:16 -06:00
rebel onion
1c4a7ff8af New translations strings.xml (Dutch) 2025-01-04 05:54:15 -06:00
rebel onion
19c14d81c3 New translations strings.xml (Korean) 2025-01-04 05:54:13 -06:00
rebel onion
a794550969 New translations strings.xml (Japanese) 2025-01-04 05:54:12 -06:00
rebel onion
dfa55741cf New translations strings.xml (Italian) 2025-01-04 05:54:11 -06:00
rebel onion
2a32c92cfc New translations strings.xml (Greek) 2025-01-04 05:54:10 -06:00
rebel onion
eaaf0f355a New translations strings.xml (German) 2025-01-04 05:54:09 -06:00
rebel onion
7262795cb0 New translations strings.xml (Arabic) 2025-01-04 05:54:08 -06:00
rebel onion
4c7a644e0a New translations strings.xml (Spanish) 2025-01-04 05:54:06 -06:00
rebel onion
b802338fdf New translations strings.xml (French) 2025-01-04 05:54:05 -06:00
rebel onion
d4346d292a New translations strings.xml (Assamese) 2025-01-03 09:14:18 -06:00
rebel onion
ba3e5b8ae2 New translations strings.xml (Hindi) 2025-01-03 09:14:16 -06:00
rebel onion
08b9820ff6 New translations strings.xml (Bengali) 2025-01-03 09:14:15 -06:00
rebel onion
65cd62a94a New translations strings.xml (Spanish, Mexico) 2025-01-03 09:14:13 -06:00
rebel onion
0154eeace4 New translations strings.xml (Portuguese, Brazilian) 2025-01-03 09:14:11 -06:00
rebel onion
bb8db3cc67 New translations strings.xml (Urdu (Pakistan)) 2025-01-03 09:14:06 -06:00
rebel onion
b03908ca5c New translations strings.xml (Chinese Simplified) 2025-01-03 09:14:03 -06:00
rebel onion
67b8e51fdb New translations strings.xml (Turkish) 2025-01-03 09:14:01 -06:00
rebel onion
3bf67b1997 New translations strings.xml (Albanian) 2025-01-03 09:14:00 -06:00
rebel onion
486b3fbaa9 New translations strings.xml (Russian) 2025-01-03 09:13:59 -06:00
rebel onion
7d5264760d New translations strings.xml (Polish) 2025-01-03 09:13:58 -06:00
rebel onion
2707e461e7 New translations strings.xml (Dutch) 2025-01-03 09:13:56 -06:00
rebel onion
d82f4b633a New translations strings.xml (Korean) 2025-01-03 09:13:55 -06:00
rebel onion
17ab29dc03 New translations strings.xml (Japanese) 2025-01-03 09:13:54 -06:00
rebel onion
b66e625a53 New translations strings.xml (Italian) 2025-01-03 09:13:52 -06:00
rebel onion
b54384fe33 New translations strings.xml (Greek) 2025-01-03 09:13:50 -06:00
rebel onion
edfa6f0ed0 New translations strings.xml (German) 2025-01-03 09:13:47 -06:00
rebel onion
53e5f86ae2 New translations strings.xml (Arabic) 2025-01-03 09:13:46 -06:00
rebel onion
a6531ac9cc New translations strings.xml (Spanish) 2025-01-03 09:13:44 -06:00
rebel onion
7b9e4d4870 New translations strings.xml (French) 2025-01-03 09:13:39 -06:00
rebel onion
aa2e0cd5e0 New translations strings.xml (Assamese) 2025-01-02 03:17:52 -06:00
rebel onion
4d0e777401 New translations strings.xml (Hindi) 2025-01-02 03:17:50 -06:00
rebel onion
9f6882888f New translations strings.xml (Bengali) 2025-01-02 03:17:49 -06:00
rebel onion
2044681859 New translations strings.xml (Spanish, Mexico) 2025-01-02 03:17:48 -06:00
rebel onion
7b17f9a29c New translations strings.xml (Portuguese, Brazilian) 2025-01-02 03:17:47 -06:00
rebel onion
46e094bdf8 New translations strings.xml (Urdu (Pakistan)) 2025-01-02 03:17:46 -06:00
rebel onion
a60e371b0f New translations strings.xml (Chinese Simplified) 2025-01-02 03:17:44 -06:00
rebel onion
aa5f94cd14 New translations strings.xml (Turkish) 2025-01-02 03:17:43 -06:00
rebel onion
baf6f59f8a New translations strings.xml (Albanian) 2025-01-02 03:17:42 -06:00
rebel onion
fa0c69aecf New translations strings.xml (Russian) 2025-01-02 03:17:41 -06:00
rebel onion
ebd1a22c75 New translations strings.xml (Polish) 2025-01-02 03:17:39 -06:00
rebel onion
16cce05bbd New translations strings.xml (Dutch) 2025-01-02 03:17:38 -06:00
rebel onion
0daf2cf26f New translations strings.xml (Korean) 2025-01-02 03:17:37 -06:00
rebel onion
8bbfa6166b New translations strings.xml (Japanese) 2025-01-02 03:17:35 -06:00
rebel onion
dbc3884b1c New translations strings.xml (Italian) 2025-01-02 03:17:34 -06:00
rebel onion
f2b5b5ef62 New translations strings.xml (Greek) 2025-01-02 03:17:33 -06:00
rebel onion
a5c57ab6c2 New translations strings.xml (German) 2025-01-02 03:17:32 -06:00
rebel onion
6ac7978d7c New translations strings.xml (Arabic) 2025-01-02 03:17:31 -06:00
rebel onion
b26c764999 New translations strings.xml (Spanish) 2025-01-02 03:17:30 -06:00
rebel onion
de3012692f New translations strings.xml (French) 2025-01-02 03:17:28 -06:00
rebel onion
0ca0474920 New translations strings.xml (Assamese) 2024-12-31 09:15:54 -06:00
rebel onion
8328759f95 New translations strings.xml (Arabic) 2024-12-31 09:15:53 -06:00
rebel onion
393afa4159 New translations strings.xml (Arabic) 2024-12-31 07:59:29 -06:00
rebel onion
a25f701e8f New translations strings.xml (Assamese) 2024-12-30 21:39:07 -06:00
rebel onion
903a77bd6d New translations strings.xml (Hindi) 2024-12-30 21:39:05 -06:00
rebel onion
353f7023a8 New translations strings.xml (Bengali) 2024-12-30 21:39:04 -06:00
rebel onion
4b8d96849f New translations strings.xml (Spanish, Mexico) 2024-12-30 21:39:03 -06:00
rebel onion
090fcf8e10 New translations strings.xml (Portuguese, Brazilian) 2024-12-30 21:39:01 -06:00
rebel onion
8df7cb9dd2 New translations strings.xml (Urdu (Pakistan)) 2024-12-30 21:39:00 -06:00
rebel onion
c6188c45dc New translations strings.xml (Chinese Simplified) 2024-12-30 21:38:59 -06:00
rebel onion
25b5ea1474 New translations strings.xml (Turkish) 2024-12-30 21:38:56 -06:00
rebel onion
35bdfe3999 New translations strings.xml (Albanian) 2024-12-30 21:38:55 -06:00
rebel onion
bd70ee1031 New translations strings.xml (Russian) 2024-12-30 21:38:53 -06:00
rebel onion
640fff73f5 New translations strings.xml (Polish) 2024-12-30 21:38:52 -06:00
rebel onion
a271c5740f New translations strings.xml (Dutch) 2024-12-30 21:38:51 -06:00
rebel onion
31b8d7c7f9 New translations strings.xml (Korean) 2024-12-30 21:38:50 -06:00
rebel onion
983afff3f7 New translations strings.xml (Japanese) 2024-12-30 21:38:49 -06:00
rebel onion
e89c180f09 New translations strings.xml (Italian) 2024-12-30 21:38:47 -06:00
rebel onion
aac0246fd6 New translations strings.xml (Greek) 2024-12-30 21:38:46 -06:00
rebel onion
aa10bd8000 New translations strings.xml (German) 2024-12-30 21:38:45 -06:00
rebel onion
ebd0cca6b6 New translations strings.xml (Arabic) 2024-12-30 21:38:44 -06:00
rebel onion
4b21582059 New translations strings.xml (Spanish) 2024-12-30 21:38:43 -06:00
rebel onion
1ca92afb65 New translations strings.xml (French) 2024-12-30 21:38:42 -06:00
rebel onion
49d92e1867 New translations strings.xml (Assamese) 2024-12-30 19:40:50 -06:00
rebel onion
120a91b591 New translations strings.xml (Hindi) 2024-12-30 19:40:48 -06:00
rebel onion
bf74fbfd15 New translations strings.xml (Bengali) 2024-12-30 19:40:47 -06:00
rebel onion
a564a2f48b New translations strings.xml (Spanish, Mexico) 2024-12-30 19:40:46 -06:00
rebel onion
2687769c64 New translations strings.xml (Portuguese, Brazilian) 2024-12-30 19:40:45 -06:00
rebel onion
a17991be84 New translations strings.xml (Urdu (Pakistan)) 2024-12-30 19:40:44 -06:00
rebel onion
700cdf4a93 New translations strings.xml (Chinese Simplified) 2024-12-30 19:40:43 -06:00
rebel onion
773c1d17c4 New translations strings.xml (Turkish) 2024-12-30 19:40:41 -06:00
rebel onion
3222931be6 New translations strings.xml (Albanian) 2024-12-30 19:40:40 -06:00
rebel onion
fd63096466 New translations strings.xml (Russian) 2024-12-30 19:40:39 -06:00
rebel onion
f4a799d514 New translations strings.xml (Polish) 2024-12-30 19:40:38 -06:00
rebel onion
9f65441677 New translations strings.xml (Dutch) 2024-12-30 19:40:37 -06:00
rebel onion
ceb10ba179 New translations strings.xml (Korean) 2024-12-30 19:40:35 -06:00
rebel onion
17547ad7b6 New translations strings.xml (Japanese) 2024-12-30 19:40:34 -06:00
rebel onion
02a6c85575 New translations strings.xml (Italian) 2024-12-30 19:40:33 -06:00
rebel onion
963ab68f83 New translations strings.xml (Greek) 2024-12-30 19:40:32 -06:00
rebel onion
e85425ede8 New translations strings.xml (German) 2024-12-30 19:40:30 -06:00
rebel onion
7835a90aed New translations strings.xml (Arabic) 2024-12-30 19:40:29 -06:00
rebel onion
2ac94487ac New translations strings.xml (Spanish) 2024-12-30 19:40:28 -06:00
rebel onion
7ec12e5ee1 New translations strings.xml (French) 2024-12-30 19:40:26 -06:00
rebel onion
840c5635d2 New translations strings.xml (Assamese) 2024-12-18 22:49:25 -06:00
rebel onion
bc7c46b3e8 New translations strings.xml (Hindi) 2024-12-18 22:49:23 -06:00
rebel onion
2136181d2c New translations strings.xml (Bengali) 2024-12-18 22:49:22 -06:00
rebel onion
783eb588b1 New translations strings.xml (Spanish, Mexico) 2024-12-18 22:49:21 -06:00
rebel onion
9345295270 New translations strings.xml (Portuguese, Brazilian) 2024-12-18 22:49:19 -06:00
rebel onion
e257a8ca99 New translations strings.xml (Urdu (Pakistan)) 2024-12-18 22:49:18 -06:00
rebel onion
c062780519 New translations strings.xml (Chinese Simplified) 2024-12-18 22:49:17 -06:00
rebel onion
8fa3a995db New translations strings.xml (Turkish) 2024-12-18 22:49:15 -06:00
rebel onion
7e0ade4a38 New translations strings.xml (Albanian) 2024-12-18 22:49:14 -06:00
rebel onion
e0fb5530f6 New translations strings.xml (Russian) 2024-12-18 22:49:13 -06:00
rebel onion
d94e8be220 New translations strings.xml (Polish) 2024-12-18 22:49:12 -06:00
rebel onion
472e4a788c New translations strings.xml (Dutch) 2024-12-18 22:49:11 -06:00
rebel onion
300d0600af New translations strings.xml (Korean) 2024-12-18 22:49:09 -06:00
rebel onion
87ae95dffc New translations strings.xml (Japanese) 2024-12-18 22:49:08 -06:00
rebel onion
4873b8b6ee New translations strings.xml (Italian) 2024-12-18 22:49:07 -06:00
rebel onion
26ed3bacc5 New translations strings.xml (Greek) 2024-12-18 22:49:06 -06:00
rebel onion
5fbf9fdb26 New translations strings.xml (German) 2024-12-18 22:49:04 -06:00
rebel onion
f0bcbb5fee New translations strings.xml (Arabic) 2024-12-18 22:49:03 -06:00
rebel onion
b494b60251 New translations strings.xml (Spanish) 2024-12-18 22:49:02 -06:00
rebel onion
e621306f6d New translations strings.xml (French) 2024-12-18 22:48:58 -06:00
rebel onion
94d69d530e New translations strings.xml (Assamese) 2024-12-15 09:25:44 -06:00
rebel onion
5fb343972a New translations strings.xml (Hindi) 2024-12-15 09:25:43 -06:00
rebel onion
edbe16959d New translations strings.xml (Bengali) 2024-12-15 09:25:42 -06:00
rebel onion
8d77450384 New translations strings.xml (Spanish, Mexico) 2024-12-15 09:25:40 -06:00
rebel onion
6a69567cdc New translations strings.xml (Portuguese, Brazilian) 2024-12-15 09:25:39 -06:00
rebel onion
645972c451 New translations strings.xml (Urdu (Pakistan)) 2024-12-15 09:25:38 -06:00
rebel onion
114504cfa2 New translations strings.xml (Chinese Simplified) 2024-12-15 09:25:37 -06:00
rebel onion
0a1d9090c0 New translations strings.xml (Turkish) 2024-12-15 09:25:35 -06:00
rebel onion
12cb670af4 New translations strings.xml (Albanian) 2024-12-15 09:25:34 -06:00
rebel onion
3ff66d7792 New translations strings.xml (Russian) 2024-12-15 09:25:33 -06:00
rebel onion
b34d6c1cb0 New translations strings.xml (Polish) 2024-12-15 09:25:32 -06:00
rebel onion
1fe5e5f0c0 New translations strings.xml (Dutch) 2024-12-15 09:25:31 -06:00
rebel onion
58251d19ef New translations strings.xml (Korean) 2024-12-15 09:25:30 -06:00
rebel onion
1715cebaea New translations strings.xml (Japanese) 2024-12-15 09:25:29 -06:00
rebel onion
ba6c162e1f New translations strings.xml (Italian) 2024-12-15 09:25:28 -06:00
rebel onion
8137ef0acc New translations strings.xml (Greek) 2024-12-15 09:25:26 -06:00
rebel onion
836cdde7fb New translations strings.xml (German) 2024-12-15 09:25:25 -06:00
rebel onion
dc3d48edd6 New translations strings.xml (Arabic) 2024-12-15 09:25:24 -06:00
rebel onion
2dffa1c4ac New translations strings.xml (Spanish) 2024-12-15 09:25:23 -06:00
rebel onion
f829fd29e0 New translations strings.xml (French) 2024-12-15 09:25:21 -06:00
rebel onion
d47e0bf6af New translations strings.xml (Portuguese, Brazilian) 2024-11-30 11:53:04 -06:00
rebel onion
cb495dffbd New translations strings.xml (Portuguese, Brazilian) 2024-11-30 10:50:37 -06:00
rebel onion
3d109b1ff0 New translations strings.xml (Portuguese, Brazilian) 2024-11-30 09:38:57 -06:00
rebel onion
b8d6b097fe New translations strings.xml (Portuguese, Brazilian) 2024-11-30 08:16:50 -06:00
rebel onion
999b6f8f4c New translations strings.xml (Portuguese, Brazilian) 2024-11-30 07:12:23 -06:00
rebel onion
71d85838c7 New translations strings.xml (Portuguese, Brazilian) 2024-11-30 00:30:25 -06:00
rebel onion
9d509c581f New translations strings.xml (Portuguese, Brazilian) 2024-11-29 22:45:22 -06:00
rebel onion
7c8b8b17a2 New translations strings.xml (Portuguese, Brazilian) 2024-11-29 21:07:51 -06:00
rebel onion
126ed7a2fb New translations strings.xml (Assamese) 2024-11-22 12:53:03 -06:00
rebel onion
93ac9b1e81 New translations strings.xml (Hindi) 2024-11-22 12:53:01 -06:00
rebel onion
840190bd1d New translations strings.xml (Bengali) 2024-11-22 12:53:00 -06:00
rebel onion
113e156900 New translations strings.xml (Spanish, Mexico) 2024-11-22 12:52:59 -06:00
rebel onion
e1a07c7c3b New translations strings.xml (Urdu (Pakistan)) 2024-11-22 12:52:58 -06:00
rebel onion
c1e657d63a New translations strings.xml (Chinese Simplified) 2024-11-22 12:52:56 -06:00
rebel onion
019b4e3389 New translations strings.xml (Turkish) 2024-11-22 12:52:55 -06:00
rebel onion
44b904ac81 New translations strings.xml (Albanian) 2024-11-22 12:52:54 -06:00
rebel onion
22223af035 New translations strings.xml (Russian) 2024-11-22 12:52:53 -06:00
rebel onion
90f7256edc New translations strings.xml (Polish) 2024-11-22 12:52:51 -06:00
rebel onion
927435a1c6 New translations strings.xml (Dutch) 2024-11-22 12:52:50 -06:00
rebel onion
47b9e8cc3b New translations strings.xml (Korean) 2024-11-22 12:52:49 -06:00
rebel onion
f5a03146ea New translations strings.xml (Japanese) 2024-11-22 12:52:48 -06:00
rebel onion
2c8bff7b78 New translations strings.xml (Italian) 2024-11-22 12:52:46 -06:00
rebel onion
00084bd87d New translations strings.xml (Greek) 2024-11-22 12:52:45 -06:00
rebel onion
b46de0bd62 New translations strings.xml (German) 2024-11-22 12:52:44 -06:00
rebel onion
d317f9bf36 New translations strings.xml (Portuguese, Brazilian) 2024-11-22 12:52:43 -06:00
rebel onion
6226f933ff New translations strings.xml (Arabic) 2024-11-22 12:52:41 -06:00
rebel onion
bbc0d97d2a New translations strings.xml (Spanish) 2024-11-22 12:52:40 -06:00
rebel onion
7fa74c755b New translations strings.xml (French) 2024-11-22 12:52:39 -06:00
rebel onion
9d0708f2ff New translations strings.xml (Portuguese, Brazilian) 2024-11-22 11:18:29 -06:00
rebel onion
ab9ad65e5b New translations strings.xml (Portuguese, Brazilian) 2024-11-22 09:58:54 -06:00
rebel onion
81bb2586ea New translations strings.xml (Assamese) 2024-11-20 12:02:44 -06:00
rebel onion
51c9d1c3b9 New translations strings.xml (Hindi) 2024-11-20 12:02:42 -06:00
rebel onion
4e568a1d82 New translations strings.xml (Bengali) 2024-11-20 12:02:41 -06:00
rebel onion
f892fab256 New translations strings.xml (Spanish, Mexico) 2024-11-20 12:02:39 -06:00
rebel onion
f8e98da62f New translations strings.xml (Urdu (Pakistan)) 2024-11-20 12:02:37 -06:00
rebel onion
18664fb239 New translations strings.xml (Chinese Simplified) 2024-11-20 12:02:34 -06:00
rebel onion
7f2edc4b63 New translations strings.xml (Turkish) 2024-11-20 12:02:32 -06:00
rebel onion
96fa35f0a9 New translations strings.xml (Albanian) 2024-11-20 12:02:31 -06:00
rebel onion
916c585c38 New translations strings.xml (Russian) 2024-11-20 12:02:29 -06:00
rebel onion
e13f001379 New translations strings.xml (Polish) 2024-11-20 12:02:28 -06:00
rebel onion
f4e5bf8927 New translations strings.xml (Dutch) 2024-11-20 12:02:26 -06:00
rebel onion
327b843f8a New translations strings.xml (Korean) 2024-11-20 12:02:24 -06:00
rebel onion
cab38e8bff New translations strings.xml (Japanese) 2024-11-20 12:02:23 -06:00
rebel onion
bcdf515f95 New translations strings.xml (Italian) 2024-11-20 12:02:21 -06:00
rebel onion
2f1dbceb6c New translations strings.xml (Greek) 2024-11-20 12:02:20 -06:00
rebel onion
652bb76bdf New translations strings.xml (German) 2024-11-20 12:02:18 -06:00
rebel onion
ee9c9e0134 New translations strings.xml (Arabic) 2024-11-20 12:02:17 -06:00
rebel onion
3763363199 New translations strings.xml (Spanish) 2024-11-20 12:02:15 -06:00
rebel onion
9197f163e3 New translations strings.xml (French) 2024-11-20 12:02:14 -06:00
rebel onion
08c8e83d15 New translations strings.xml (Portuguese, Brazilian) 2024-11-20 12:02:13 -06:00
rebel onion
7fab2e8cb5 New translations strings.xml (Assamese) 2024-11-19 11:46:16 -06:00
rebel onion
4f0056e0dc New translations strings.xml (Hindi) 2024-11-19 11:46:14 -06:00
rebel onion
5aa78c739f New translations strings.xml (Bengali) 2024-11-19 11:46:13 -06:00
rebel onion
ac747dfcc1 New translations strings.xml (Spanish, Mexico) 2024-11-19 11:46:11 -06:00
rebel onion
a7a07de396 New translations strings.xml (Urdu (Pakistan)) 2024-11-19 11:46:10 -06:00
rebel onion
526670ff6d New translations strings.xml (Chinese Simplified) 2024-11-19 11:46:09 -06:00
rebel onion
60b6254167 New translations strings.xml (Turkish) 2024-11-19 11:46:08 -06:00
rebel onion
8329ed0ce8 New translations strings.xml (Albanian) 2024-11-19 11:46:07 -06:00
rebel onion
952beb75b3 New translations strings.xml (Russian) 2024-11-19 11:46:05 -06:00
rebel onion
e2729c3274 New translations strings.xml (Polish) 2024-11-19 11:46:04 -06:00
rebel onion
1e2dac074c New translations strings.xml (Dutch) 2024-11-19 11:46:02 -06:00
rebel onion
ee59b5aea1 New translations strings.xml (Korean) 2024-11-19 11:46:01 -06:00
rebel onion
f3ba74f46a New translations strings.xml (Japanese) 2024-11-19 11:46:00 -06:00
rebel onion
f74c32e4b8 New translations strings.xml (Italian) 2024-11-19 11:45:59 -06:00
rebel onion
d1860831e3 New translations strings.xml (Greek) 2024-11-19 11:45:57 -06:00
rebel onion
c89ca91f4a New translations strings.xml (German) 2024-11-19 11:45:56 -06:00
rebel onion
50f375f187 New translations strings.xml (Arabic) 2024-11-19 11:45:54 -06:00
rebel onion
2cb26442d3 New translations strings.xml (Spanish) 2024-11-19 11:45:53 -06:00
rebel onion
07f161baf9 New translations strings.xml (French) 2024-11-19 10:31:13 -06:00
rebel onion
b2ceaa01fa New translations strings.xml (Portuguese, Brazilian) 2024-11-19 10:31:02 -06:00
rebel onion
dfbf849691 New translations strings.xml (Assamese) 2024-11-18 12:31:57 -06:00
rebel onion
ddc8cbf6fa New translations strings.xml (Hindi) 2024-11-18 12:31:56 -06:00
rebel onion
bc2e05c75b New translations strings.xml (Bengali) 2024-11-18 12:31:54 -06:00
rebel onion
2bd1f9affb New translations strings.xml (Spanish, Mexico) 2024-11-18 12:31:53 -06:00
rebel onion
b376ab2f5d New translations strings.xml (Urdu (Pakistan)) 2024-11-18 12:31:52 -06:00
rebel onion
494280b4aa New translations strings.xml (Chinese Simplified) 2024-11-18 12:31:50 -06:00
rebel onion
93154eef9e New translations strings.xml (Turkish) 2024-11-18 12:31:49 -06:00
rebel onion
007bbd3154 New translations strings.xml (Albanian) 2024-11-18 12:31:48 -06:00
rebel onion
a54af8d312 New translations strings.xml (Russian) 2024-11-18 12:31:46 -06:00
rebel onion
294b6b0aa6 New translations strings.xml (Polish) 2024-11-18 12:31:44 -06:00
rebel onion
713fa77a0b New translations strings.xml (Dutch) 2024-11-18 12:31:43 -06:00
rebel onion
8004a5e194 New translations strings.xml (Korean) 2024-11-18 12:31:41 -06:00
rebel onion
ac470df370 New translations strings.xml (Japanese) 2024-11-18 12:31:40 -06:00
rebel onion
0eef242112 New translations strings.xml (Italian) 2024-11-18 12:31:39 -06:00
rebel onion
286db2e1a9 New translations strings.xml (Greek) 2024-11-18 12:31:37 -06:00
rebel onion
aeb00cc790 New translations strings.xml (German) 2024-11-18 12:31:36 -06:00
rebel onion
555554d3fd New translations strings.xml (Arabic) 2024-11-18 12:31:34 -06:00
rebel onion
e148ac132d New translations strings.xml (Spanish) 2024-11-18 12:31:33 -06:00
rebel onion
ae2f19709a New translations strings.xml (French) 2024-11-18 12:31:31 -06:00
rebel onion
f2a0897f1e New translations strings.xml (Portuguese, Brazilian) 2024-11-18 12:31:30 -06:00
rebel onion
97eb752000 New translations strings.xml (Assamese) 2024-11-17 01:12:47 -06:00
rebel onion
a92d41398d New translations strings.xml (Hindi) 2024-11-17 01:12:45 -06:00
rebel onion
4c360d306a New translations strings.xml (Bengali) 2024-11-17 01:12:44 -06:00
rebel onion
aaa4751c17 New translations strings.xml (Spanish, Mexico) 2024-11-17 01:12:43 -06:00
rebel onion
20498bc429 New translations strings.xml (Urdu (Pakistan)) 2024-11-17 01:12:41 -06:00
rebel onion
c4062af91a New translations strings.xml (Chinese Simplified) 2024-11-17 01:12:40 -06:00
rebel onion
2d7fb67ad5 New translations strings.xml (Turkish) 2024-11-17 01:12:38 -06:00
rebel onion
8eae6906d8 New translations strings.xml (Albanian) 2024-11-17 01:12:37 -06:00
rebel onion
54d60c9603 New translations strings.xml (Russian) 2024-11-17 01:12:36 -06:00
rebel onion
a577970705 New translations strings.xml (Polish) 2024-11-17 01:12:35 -06:00
rebel onion
2e97a62365 New translations strings.xml (Dutch) 2024-11-17 01:12:33 -06:00
rebel onion
abe4a1e394 New translations strings.xml (Korean) 2024-11-17 01:12:32 -06:00
rebel onion
b42ec620df New translations strings.xml (Japanese) 2024-11-17 01:12:31 -06:00
rebel onion
58a68271fc New translations strings.xml (Italian) 2024-11-17 01:12:30 -06:00
rebel onion
c58eb14c59 New translations strings.xml (Greek) 2024-11-17 01:12:28 -06:00
rebel onion
7726abcf00 New translations strings.xml (German) 2024-11-17 01:12:27 -06:00
rebel onion
93f9547e3e New translations strings.xml (Arabic) 2024-11-17 01:12:25 -06:00
rebel onion
4f72028284 New translations strings.xml (Spanish) 2024-11-17 01:12:24 -06:00
rebel onion
caa4ff6d7a New translations strings.xml (French) 2024-11-17 01:12:22 -06:00
rebel onion
92655c62c4 New translations strings.xml (Portuguese, Brazilian) 2024-11-17 01:12:21 -06:00
rebel onion
671565b80c New translations strings.xml (Portuguese, Brazilian) 2024-11-11 09:25:33 -06:00
rebel onion
020e0e385e New translations strings.xml (Greek) 2024-11-09 03:57:22 -06:00
rebel onion
aa271aa26d New translations strings.xml (Portuguese, Brazilian) 2024-11-07 14:01:05 -06:00
rebel onion
ccae92a605 New translations strings.xml (Assamese) 2024-11-07 11:28:50 -06:00
rebel onion
ca3057326d New translations strings.xml (Hindi) 2024-11-07 11:28:48 -06:00
rebel onion
417acee7da New translations strings.xml (Bengali) 2024-11-07 11:28:47 -06:00
rebel onion
b95da94f7f New translations strings.xml (Spanish, Mexico) 2024-11-07 11:28:46 -06:00
rebel onion
2cbb78f804 New translations strings.xml (Urdu (Pakistan)) 2024-11-07 11:28:45 -06:00
rebel onion
a2903ec1bf New translations strings.xml (Chinese Simplified) 2024-11-07 11:28:43 -06:00
rebel onion
48fae1cc73 New translations strings.xml (Turkish) 2024-11-07 11:28:42 -06:00
rebel onion
cc5faa8f9a New translations strings.xml (Albanian) 2024-11-07 11:28:41 -06:00
rebel onion
5dfa5001fa New translations strings.xml (Russian) 2024-11-07 11:28:39 -06:00
rebel onion
4859fa2532 New translations strings.xml (Polish) 2024-11-07 11:28:38 -06:00
rebel onion
d6b3cd3e4f New translations strings.xml (Dutch) 2024-11-07 11:28:37 -06:00
rebel onion
9ab29af5af New translations strings.xml (Korean) 2024-11-07 11:28:35 -06:00
rebel onion
a4a82d6a56 New translations strings.xml (Japanese) 2024-11-07 11:28:34 -06:00
rebel onion
2aa742aaf0 New translations strings.xml (Italian) 2024-11-07 11:28:33 -06:00
rebel onion
1e951baeb4 New translations strings.xml (Greek) 2024-11-07 11:28:32 -06:00
rebel onion
1a0d912083 New translations strings.xml (German) 2024-11-07 11:28:30 -06:00
rebel onion
0071286153 New translations strings.xml (Arabic) 2024-11-07 11:28:29 -06:00
rebel onion
6a966e7166 New translations strings.xml (Spanish) 2024-11-07 11:28:28 -06:00
rebel onion
734805458d New translations strings.xml (French) 2024-11-07 11:28:27 -06:00
rebel onion
8de9831954 New translations strings.xml (Portuguese, Brazilian) 2024-11-07 11:28:25 -06:00
rebel onion
04a2cea6fe New translations strings.xml (Portuguese, Brazilian) 2024-10-27 13:40:20 -05:00
rebel onion
2f34669301 New translations strings.xml (Assamese) 2024-10-05 15:05:06 -05:00
rebel onion
4f6ab17ea1 New translations strings.xml (Assamese) 2024-10-05 13:47:55 -05:00
rebel onion
ccbb50bc3a New translations strings.xml (Hindi) 2024-10-05 13:47:54 -05:00
rebel onion
a3bf2bc18e New translations strings.xml (Bengali) 2024-10-05 13:47:53 -05:00
rebel onion
b616850895 New translations strings.xml (Spanish, Mexico) 2024-10-05 13:47:51 -05:00
rebel onion
ed2c8902fd New translations strings.xml (Urdu (Pakistan)) 2024-10-05 13:47:50 -05:00
rebel onion
d59c96fad9 New translations strings.xml (Chinese Simplified) 2024-10-05 13:47:49 -05:00
rebel onion
1ad544d0df New translations strings.xml (Turkish) 2024-10-05 13:47:48 -05:00
rebel onion
942bf83d24 New translations strings.xml (Albanian) 2024-10-05 13:47:47 -05:00
rebel onion
408d1abe16 New translations strings.xml (Russian) 2024-10-05 13:47:45 -05:00
rebel onion
0e198b3423 New translations strings.xml (Polish) 2024-10-05 13:47:44 -05:00
rebel onion
d1b0cf65b0 New translations strings.xml (Dutch) 2024-10-05 13:47:43 -05:00
rebel onion
323ab1d4ab New translations strings.xml (Korean) 2024-10-05 13:47:42 -05:00
rebel onion
7950982bfc New translations strings.xml (Japanese) 2024-10-05 13:47:41 -05:00
rebel onion
d70b3fd541 New translations strings.xml (Italian) 2024-10-05 13:47:39 -05:00
rebel onion
6877c82315 New translations strings.xml (Greek) 2024-10-05 13:47:38 -05:00
rebel onion
860d108f82 New translations strings.xml (German) 2024-10-05 13:47:37 -05:00
rebel onion
bacc7708c0 New translations strings.xml (Arabic) 2024-10-05 13:47:36 -05:00
rebel onion
d4766e27be New translations strings.xml (Spanish) 2024-10-05 13:47:35 -05:00
rebel onion
bf130bfc72 New translations strings.xml (French) 2024-10-05 13:47:34 -05:00
rebel onion
09aa955299 New translations strings.xml (Portuguese, Brazilian) 2024-10-05 13:47:33 -05:00
rebel onion
4efbdd0554 New translations strings.xml (Portuguese, Brazilian) 2024-09-30 19:19:55 -05:00
rebel onion
12f0a83c7d New translations strings.xml (Portuguese, Brazilian) 2024-09-30 18:17:38 -05:00
rebel onion
26c345d130 New translations strings.xml (Portuguese, Brazilian) 2024-09-30 17:11:22 -05:00
rebel onion
660a40ce23 New translations strings.xml (Greek) 2024-09-15 13:26:26 -05:00
rebel onion
2fda4d62b7 New translations strings.xml (Arabic) 2024-08-26 04:32:36 -05:00
rebel onion
e00942001a New translations strings.xml (Arabic) 2024-08-26 02:04:00 -05:00
rebel onion
13d9084456 New translations strings.xml (Arabic) 2024-08-26 00:46:34 -05:00
rebel onion
5ee1d2d5b7 New translations strings.xml (Italian) 2024-08-11 13:10:03 -05:00
rebel onion
87e31ff7f7 New translations strings.xml (Italian) 2024-08-11 12:12:59 -05:00
rebel onion
842f24af91 New translations strings.xml (Italian) 2024-08-11 11:03:30 -05:00
rebel onion
fb2373c385 New translations strings.xml (Italian) 2024-08-10 12:00:52 -05:00
rebel onion
ca50c3c1d4 New translations strings.xml (Italian) 2024-08-10 10:49:34 -05:00
rebel onion
ad7f452b8e New translations strings.xml (Italian) 2024-08-09 17:18:50 -05:00
rebel onion
a7e6773428 New translations strings.xml (Italian) 2024-08-09 16:02:03 -05:00
rebel onion
aa1c46caf3 New translations strings.xml (Italian) 2024-08-09 14:45:57 -05:00
rebel onion
0ef412d5f3 New translations strings.xml (Italian) 2024-08-09 12:38:14 -05:00
rebel onion
ba8772b54d New translations strings.xml (Italian) 2024-08-09 10:36:43 -05:00
rebel onion
13595fe1b9 New translations strings.xml (Italian) 2024-08-09 08:56:12 -05:00
rebel onion
59d3d4f816 New translations strings.xml (Italian) 2024-08-08 16:24:29 -05:00
rebel onion
b0618733a3 New translations strings.xml (Italian) 2024-08-08 14:57:55 -05:00
rebel onion
1d5dc80d43 New translations strings.xml (Italian) 2024-08-08 13:47:06 -05:00
rebel onion
1b4e675c68 New translations strings.xml (Italian) 2024-08-08 12:16:38 -05:00
rebel onion
d883a30a75 New translations strings.xml (Italian) 2024-08-08 10:58:29 -05:00
rebel onion
4bc900c74b New translations strings.xml (Italian) 2024-08-08 09:54:52 -05:00
rebel onion
303965ea97 New translations strings.xml (Italian) 2024-08-08 06:07:12 -05:00
rebel onion
b50241a123 New translations strings.xml (Italian) 2024-08-08 04:19:15 -05:00
rebel onion
728a02a034 New translations strings.xml (Italian) 2024-08-07 18:05:54 -05:00
rebel onion
005601ab53 New translations strings.xml (Assamese) 2024-07-11 05:27:08 -05:00
rebel onion
649cab0bcc New translations strings.xml (Assamese) 2024-07-11 03:31:51 -05:00
rebel onion
00728d1fed New translations strings.xml (Polish) 2024-07-09 05:35:06 -05:00
rebel onion
a398674276 New translations strings.xml (Arabic) 2024-07-09 03:10:46 -05:00
rebel onion
bcf10dd11a New translations strings.xml (Portuguese, Brazilian) 2024-07-08 21:46:54 -05:00
rebel onion
1f2d7899ca New translations strings.xml (Turkish) 2024-07-08 21:46:51 -05:00
rebel onion
c60dc58173 New translations strings.xml (Polish) 2024-07-08 21:46:50 -05:00
rebel onion
5fa1e8d863 New translations strings.xml (Albanian) 2024-07-08 21:46:49 -05:00
rebel onion
441e296afa New translations strings.xml (Urdu (Pakistan)) 2024-07-08 21:46:47 -05:00
rebel onion
e7763b97e3 New translations strings.xml (Dutch) 2024-07-08 21:46:46 -05:00
rebel onion
9f9076844e New translations strings.xml (Italian) 2024-07-08 21:46:45 -05:00
rebel onion
097ab3915e New translations strings.xml (Bengali) 2024-07-08 21:46:44 -05:00
rebel onion
891a5e6264 New translations strings.xml (Korean) 2024-07-08 21:46:43 -05:00
rebel onion
3c32490d38 New translations strings.xml (Greek) 2024-07-08 21:46:42 -05:00
rebel onion
0964d1f531 New translations strings.xml (Assamese) 2024-07-08 21:46:40 -05:00
rebel onion
9ffa3c4176 New translations strings.xml (Hindi) 2024-07-08 21:46:39 -05:00
rebel onion
f8861d7a61 New translations strings.xml (Spanish, Mexico) 2024-07-08 21:46:38 -05:00
rebel onion
368a166b5c New translations strings.xml (Chinese Simplified) 2024-07-08 21:46:37 -05:00
rebel onion
5d1dc0e70a New translations strings.xml (Russian) 2024-07-08 21:46:36 -05:00
rebel onion
75dd72b5d6 New translations strings.xml (Japanese) 2024-07-08 21:46:34 -05:00
rebel onion
12d76ead3c New translations strings.xml (German) 2024-07-08 21:46:33 -05:00
rebel onion
edb24815ff New translations strings.xml (Arabic) 2024-07-08 21:46:32 -05:00
rebel onion
c5bf3886a4 New translations strings.xml (Spanish) 2024-07-08 21:46:31 -05:00
rebel onion
1a692e7779 New translations strings.xml (French) 2024-07-08 21:46:30 -05:00
rebel onion
4f80667943 New translations strings.xml (Portuguese, Brazilian) 2024-07-08 13:30:38 -05:00
rebel onion
e583701755 New translations strings.xml (Turkish) 2024-07-08 13:30:37 -05:00
rebel onion
0f0d3e577a New translations strings.xml (Polish) 2024-07-08 13:30:36 -05:00
rebel onion
c655a04c41 New translations strings.xml (Albanian) 2024-07-08 13:30:34 -05:00
rebel onion
869da4b0d8 New translations strings.xml (Urdu (Pakistan)) 2024-07-08 13:30:33 -05:00
rebel onion
323e725c74 New translations strings.xml (Dutch) 2024-07-08 13:30:31 -05:00
rebel onion
965e8dc1b8 New translations strings.xml (Italian) 2024-07-08 13:30:30 -05:00
rebel onion
917902a695 New translations strings.xml (Bengali) 2024-07-08 13:30:28 -05:00
rebel onion
64fb8b06ee New translations strings.xml (Korean) 2024-07-08 13:30:26 -05:00
rebel onion
7bf2b9cc8f New translations strings.xml (Greek) 2024-07-08 13:30:24 -05:00
rebel onion
f03ed32617 New translations strings.xml (Assamese) 2024-07-08 13:30:22 -05:00
rebel onion
c7d01058e5 New translations strings.xml (Hindi) 2024-07-08 13:30:19 -05:00
rebel onion
a039f73f4e New translations strings.xml (Spanish, Mexico) 2024-07-08 13:30:17 -05:00
rebel onion
5bd6ce8f1a New translations strings.xml (Chinese Simplified) 2024-07-08 13:30:15 -05:00
rebel onion
5c3ad3f7a0 New translations strings.xml (Russian) 2024-07-08 13:30:14 -05:00
rebel onion
d297215db2 New translations strings.xml (Japanese) 2024-07-08 13:30:12 -05:00
rebel onion
cabafc02fd New translations strings.xml (German) 2024-07-08 13:30:10 -05:00
rebel onion
becfda37a2 New translations strings.xml (Arabic) 2024-07-08 13:30:08 -05:00
rebel onion
97882ffea7 New translations strings.xml (Spanish) 2024-07-08 13:30:07 -05:00
rebel onion
ac4a0bb214 New translations strings.xml (French) 2024-07-08 13:30:06 -05:00
rebel onion
677dca710b New translations strings.xml (Portuguese, Brazilian) 2024-07-08 08:17:19 -05:00
rebel onion
1bd821edb8 New translations strings.xml (Turkish) 2024-07-08 08:17:17 -05:00
rebel onion
4714d6b0e7 New translations strings.xml (Polish) 2024-07-08 08:17:16 -05:00
rebel onion
979dd05298 New translations strings.xml (Albanian) 2024-07-08 08:17:15 -05:00
rebel onion
ac39785d4a New translations strings.xml (Urdu (Pakistan)) 2024-07-08 08:17:13 -05:00
rebel onion
15e900d51b New translations strings.xml (Dutch) 2024-07-08 08:17:12 -05:00
rebel onion
2e7da05f0e New translations strings.xml (Italian) 2024-07-08 08:17:10 -05:00
rebel onion
5c882d43c7 New translations strings.xml (Bengali) 2024-07-08 08:17:08 -05:00
rebel onion
5be0c6bd89 New translations strings.xml (Korean) 2024-07-08 08:17:07 -05:00
rebel onion
748d2f8ba1 New translations strings.xml (Greek) 2024-07-08 08:17:05 -05:00
rebel onion
b0ae50eabb New translations strings.xml (Assamese) 2024-07-08 08:17:02 -05:00
rebel onion
bcf3c0f2a1 New translations strings.xml (Hindi) 2024-07-08 08:17:01 -05:00
rebel onion
a6cee5586a New translations strings.xml (Spanish, Mexico) 2024-07-08 08:17:00 -05:00
rebel onion
2222cfe991 New translations strings.xml (Chinese Simplified) 2024-07-08 08:16:58 -05:00
rebel onion
9f9a97998e New translations strings.xml (Russian) 2024-07-08 08:16:57 -05:00
rebel onion
e95181958a New translations strings.xml (Japanese) 2024-07-08 08:16:55 -05:00
rebel onion
7777f87ab4 New translations strings.xml (German) 2024-07-08 08:16:54 -05:00
rebel onion
1b821b1524 New translations strings.xml (Arabic) 2024-07-08 08:16:53 -05:00
rebel onion
6c83fd97c8 New translations strings.xml (Spanish) 2024-07-08 08:16:51 -05:00
rebel onion
4046539610 New translations strings.xml (French) 2024-07-08 08:16:49 -05:00
rebel onion
63d50a73d2 New translations strings.xml (Arabic) 2024-07-07 08:41:51 -05:00
rebel onion
b2a789d882 New translations strings.xml (Arabic) 2024-07-07 07:11:25 -05:00
rebel onion
4222e587c5 New translations strings.xml (Polish) 2024-06-30 16:30:20 -05:00
rebel onion
3cc3618782 New translations strings.xml (Portuguese, Brazilian) 2024-06-29 11:11:35 -05:00
rebel onion
c371639aee New translations strings.xml (Turkish) 2024-06-29 11:11:34 -05:00
rebel onion
c1db16262e New translations strings.xml (Polish) 2024-06-29 11:11:33 -05:00
rebel onion
0d0c5cea05 New translations strings.xml (Albanian) 2024-06-29 11:11:32 -05:00
rebel onion
92c2e40e12 New translations strings.xml (Urdu (Pakistan)) 2024-06-29 11:11:31 -05:00
rebel onion
a64865603f New translations strings.xml (Dutch) 2024-06-29 11:11:30 -05:00
rebel onion
323dc38918 New translations strings.xml (Italian) 2024-06-29 11:11:29 -05:00
rebel onion
6d44ac01e5 New translations strings.xml (Bengali) 2024-06-29 11:11:27 -05:00
rebel onion
01a0288cf8 New translations strings.xml (Korean) 2024-06-29 11:11:26 -05:00
rebel onion
db1d66e3fd New translations strings.xml (Greek) 2024-06-29 11:11:25 -05:00
rebel onion
b1d821451c New translations strings.xml (Assamese) 2024-06-29 11:11:24 -05:00
rebel onion
a0ce7464a5 New translations strings.xml (Hindi) 2024-06-29 11:11:23 -05:00
rebel onion
91f1546d10 New translations strings.xml (Spanish, Mexico) 2024-06-29 11:11:22 -05:00
rebel onion
89a5b7812b New translations strings.xml (Chinese Simplified) 2024-06-29 11:11:21 -05:00
rebel onion
4315c09d2e New translations strings.xml (Russian) 2024-06-29 11:11:19 -05:00
rebel onion
0bb02a50c1 New translations strings.xml (Japanese) 2024-06-29 11:11:18 -05:00
rebel onion
27b3a28c8b New translations strings.xml (German) 2024-06-29 11:11:17 -05:00
rebel onion
97edd35840 New translations strings.xml (Arabic) 2024-06-29 11:11:16 -05:00
rebel onion
3913e4f27a New translations strings.xml (Spanish) 2024-06-29 11:11:15 -05:00
rebel onion
ce4f7f1884 New translations strings.xml (French) 2024-06-29 11:11:14 -05:00
rebel onion
6c68b48e89 New translations strings.xml (Portuguese, Brazilian) 2024-06-29 04:41:00 -05:00
rebel onion
de5f238b64 New translations strings.xml (Italian) 2024-06-29 04:40:59 -05:00
rebel onion
2d698d2a62 New translations strings.xml (Korean) 2024-06-29 04:40:58 -05:00
rebel onion
6db124b4cc New translations strings.xml (Assamese) 2024-06-29 04:40:56 -05:00
rebel onion
549a34e153 New translations strings.xml (Hindi) 2024-06-29 04:40:55 -05:00
rebel onion
9eaf959a5a New translations strings.xml (Spanish, Mexico) 2024-06-29 04:40:54 -05:00
rebel onion
ee62edcc7e New translations strings.xml (Russian) 2024-06-29 04:40:53 -05:00
rebel onion
2968d91535 New translations strings.xml (Japanese) 2024-06-29 04:40:52 -05:00
rebel onion
2fb95c6099 New translations strings.xml (German) 2024-06-29 04:40:51 -05:00
rebel onion
a7825297ed New translations strings.xml (Spanish) 2024-06-29 04:40:49 -05:00
rebel onion
e72c235078 New translations strings.xml (Albanian) 2024-06-29 03:28:15 -05:00
rebel onion
89a4847c9f New translations strings.xml (Dutch) 2024-06-29 03:28:13 -05:00
rebel onion
15719ad29b New translations strings.xml (Bengali) 2024-06-29 03:28:12 -05:00
rebel onion
cc0f7113e9 New translations strings.xml (Chinese Simplified) 2024-06-29 03:28:11 -05:00
rebel onion
004290c5fe New translations strings.xml (French) 2024-06-29 03:28:10 -05:00
rebel onion
83b28e40db New translations strings.xml (Polish) 2024-06-28 05:49:38 -05:00
rebel onion
737fce70fb New translations strings.xml (Greek) 2024-06-26 11:40:05 -05:00
rebel onion
8759c336dc New translations strings.xml (Portuguese, Brazilian) 2024-06-26 09:19:08 -05:00
rebel onion
d85f99e32a New translations strings.xml (Turkish) 2024-06-26 09:19:06 -05:00
rebel onion
b2740a8b21 New translations strings.xml (Polish) 2024-06-26 09:19:04 -05:00
rebel onion
30fc3ff713 New translations strings.xml (Albanian) 2024-06-26 09:19:03 -05:00
rebel onion
406007f4ed New translations strings.xml (Urdu (Pakistan)) 2024-06-26 09:19:01 -05:00
rebel onion
7c5e42f941 New translations strings.xml (Dutch) 2024-06-26 09:19:00 -05:00
rebel onion
e890c417a0 New translations strings.xml (Italian) 2024-06-26 09:18:59 -05:00
rebel onion
0c01f435d8 New translations strings.xml (Bengali) 2024-06-26 09:18:57 -05:00
rebel onion
dbb7759b0f New translations strings.xml (Korean) 2024-06-26 09:18:56 -05:00
rebel onion
905f72b965 New translations strings.xml (Greek) 2024-06-26 09:18:55 -05:00
rebel onion
77ee082809 New translations strings.xml (Assamese) 2024-06-26 09:18:53 -05:00
rebel onion
3a19684dcb New translations strings.xml (Hindi) 2024-06-26 09:18:52 -05:00
rebel onion
2890ca1c4a New translations strings.xml (Spanish, Mexico) 2024-06-26 09:18:51 -05:00
rebel onion
3b00572b91 New translations strings.xml (Chinese Simplified) 2024-06-26 09:18:49 -05:00
rebel onion
ed89ddb2ba New translations strings.xml (Russian) 2024-06-26 09:18:48 -05:00
rebel onion
4de630b08a New translations strings.xml (Japanese) 2024-06-26 09:18:47 -05:00
rebel onion
6bc26e3144 New translations strings.xml (German) 2024-06-26 09:18:45 -05:00
rebel onion
579411aefb New translations strings.xml (Arabic) 2024-06-26 09:18:44 -05:00
rebel onion
7c9f52d986 New translations strings.xml (Spanish) 2024-06-26 09:18:43 -05:00
rebel onion
2a55c7a846 New translations strings.xml (French) 2024-06-26 09:18:42 -05:00
rebel onion
1268763d99 New translations strings.xml (Arabic) 2024-06-25 16:38:46 -05:00
rebel onion
1338bc0ebb New translations strings.xml (Arabic) 2024-06-25 15:15:05 -05:00
rebel onion
423a657da7 New translations strings.xml (Turkish) 2024-06-25 05:36:13 -05:00
rebel onion
d36d818bfa New translations strings.xml (Assamese) 2024-06-25 03:25:20 -05:00
rebel onion
4a851ade4f New translations strings.xml (Portuguese, Brazilian) 2024-06-25 01:30:54 -05:00
rebel onion
8dba9243a4 New translations strings.xml (Albanian) 2024-06-25 01:30:53 -05:00
rebel onion
b4013d1d28 New translations strings.xml (Dutch) 2024-06-25 01:30:51 -05:00
rebel onion
6bc23ba8e1 New translations strings.xml (Italian) 2024-06-25 01:30:50 -05:00
rebel onion
4d6aaf6f36 New translations strings.xml (Bengali) 2024-06-25 01:30:49 -05:00
rebel onion
291f516e6f New translations strings.xml (Korean) 2024-06-25 01:30:47 -05:00
rebel onion
5fb0fb14e7 New translations strings.xml (Greek) 2024-06-25 01:30:46 -05:00
rebel onion
c40d61f471 New translations strings.xml (Hindi) 2024-06-25 01:30:45 -05:00
rebel onion
80da5e3480 New translations strings.xml (Spanish, Mexico) 2024-06-25 01:30:42 -05:00
rebel onion
cfd5790589 New translations strings.xml (Chinese Simplified) 2024-06-25 01:30:41 -05:00
rebel onion
98e700ab11 New translations strings.xml (Russian) 2024-06-25 01:30:40 -05:00
rebel onion
5c55a9a597 New translations strings.xml (Japanese) 2024-06-25 01:30:38 -05:00
rebel onion
2833c58856 New translations strings.xml (German) 2024-06-25 01:30:37 -05:00
rebel onion
38ccb8926d New translations strings.xml (Spanish) 2024-06-25 01:30:36 -05:00
rebel onion
76b5e2f3c2 New translations strings.xml (French) 2024-06-25 01:30:34 -05:00
rebel onion
da02ee2706 New translations strings.xml (Portuguese, Brazilian) 2024-06-25 00:33:03 -05:00
rebel onion
92cae18d53 New translations strings.xml (Turkish) 2024-06-25 00:33:01 -05:00
rebel onion
2e70f13a42 New translations strings.xml (Polish) 2024-06-25 00:33:00 -05:00
rebel onion
0358341e42 New translations strings.xml (Albanian) 2024-06-25 00:32:59 -05:00
rebel onion
5a65d2ef5f New translations strings.xml (Urdu (Pakistan)) 2024-06-25 00:32:58 -05:00
rebel onion
ad713a357a New translations strings.xml (Dutch) 2024-06-25 00:32:57 -05:00
rebel onion
d8776b6ab0 New translations strings.xml (Italian) 2024-06-25 00:32:56 -05:00
rebel onion
d2de96f486 New translations strings.xml (Bengali) 2024-06-25 00:32:54 -05:00
rebel onion
acf1a4ea32 New translations strings.xml (Korean) 2024-06-25 00:32:53 -05:00
rebel onion
2fdafedc2f New translations strings.xml (Greek) 2024-06-25 00:32:52 -05:00
rebel onion
d04fa0eaa7 New translations strings.xml (Assamese) 2024-06-25 00:32:51 -05:00
rebel onion
9d23caab12 New translations strings.xml (Hindi) 2024-06-25 00:32:49 -05:00
rebel onion
2121400e78 New translations strings.xml (Spanish, Mexico) 2024-06-25 00:32:48 -05:00
rebel onion
e02da10e23 New translations strings.xml (Chinese Simplified) 2024-06-25 00:32:47 -05:00
rebel onion
3bada69085 New translations strings.xml (Russian) 2024-06-25 00:32:46 -05:00
rebel onion
7845d3059f New translations strings.xml (Japanese) 2024-06-25 00:32:45 -05:00
rebel onion
5921dd8e9b New translations strings.xml (German) 2024-06-25 00:32:44 -05:00
rebel onion
43e0aff3ab New translations strings.xml (Arabic) 2024-06-25 00:32:42 -05:00
rebel onion
ed5a4cb9be New translations strings.xml (Spanish) 2024-06-25 00:32:41 -05:00
rebel onion
824b13cf6e New translations strings.xml (French) 2024-06-25 00:32:39 -05:00
rebel onion
6e1f5c7993 New translations strings.xml (Albanian) 2024-06-22 07:26:47 -05:00
rebel onion
05eceec6ce New translations strings.xml (Dutch) 2024-06-22 07:26:46 -05:00
rebel onion
35d3e35004 New translations strings.xml (Bengali) 2024-06-22 07:26:44 -05:00
rebel onion
3a4dec04df New translations strings.xml (Korean) 2024-06-22 07:26:43 -05:00
rebel onion
dd3f5e74f8 New translations strings.xml (Hindi) 2024-06-22 07:26:42 -05:00
rebel onion
6c434bbbce New translations strings.xml (Spanish, Mexico) 2024-06-22 07:26:40 -05:00
rebel onion
8f5416080c New translations strings.xml (Chinese Simplified) 2024-06-22 07:26:39 -05:00
rebel onion
c633c62c4c New translations strings.xml (Russian) 2024-06-22 07:26:38 -05:00
rebel onion
7e5622ba0a New translations strings.xml (Italian) 2024-06-22 07:26:36 -05:00
rebel onion
9f1253274c New translations strings.xml (Greek) 2024-06-22 07:26:35 -05:00
rebel onion
2c7a43b32f New translations strings.xml (Japanese) 2024-06-22 07:26:34 -05:00
rebel onion
a1c5d5d818 New translations strings.xml (German) 2024-06-22 07:26:33 -05:00
rebel onion
851f137723 New translations strings.xml (Spanish) 2024-06-22 07:26:31 -05:00
rebel onion
706af34e90 New translations strings.xml (French) 2024-06-22 07:26:30 -05:00
rebel onion
9d650bf3c7 New translations strings.xml (Albanian) 2024-06-22 06:20:25 -05:00
rebel onion
f575cc8a70 New translations strings.xml (Polish) 2024-06-22 05:14:23 -05:00
rebel onion
ad44e77934 New translations strings.xml (Polish) 2024-06-22 04:16:16 -05:00
rebel onion
788bd4dd0b New translations strings.xml (Turkish) 2024-06-22 03:15:40 -05:00
rebel onion
911e7432e4 New translations strings.xml (Turkish) 2024-06-22 02:16:36 -05:00
rebel onion
d62b26813a New translations strings.xml (Portuguese, Brazilian) 2024-06-21 14:15:18 -05:00
rebel onion
32be2cf617 New translations strings.xml (Turkish) 2024-06-21 14:15:17 -05:00
rebel onion
bbd6e7ec45 New translations strings.xml (Polish) 2024-06-21 14:15:15 -05:00
rebel onion
8655a53519 New translations strings.xml (Albanian) 2024-06-21 14:15:14 -05:00
rebel onion
0b9fbe31b9 New translations strings.xml (Urdu (Pakistan)) 2024-06-21 14:15:13 -05:00
rebel onion
c95ee7ce82 New translations strings.xml (Dutch) 2024-06-21 14:15:12 -05:00
rebel onion
a25dff9106 New translations strings.xml (Italian) 2024-06-21 14:15:11 -05:00
rebel onion
0835f879b3 New translations strings.xml (Bengali) 2024-06-21 14:15:09 -05:00
rebel onion
b336ce3915 New translations strings.xml (Korean) 2024-06-21 14:15:08 -05:00
rebel onion
271f71fe21 New translations strings.xml (Greek) 2024-06-21 14:15:07 -05:00
rebel onion
afec155692 New translations strings.xml (Assamese) 2024-06-21 14:15:06 -05:00
rebel onion
b08497d7cb New translations strings.xml (Hindi) 2024-06-21 14:15:05 -05:00
rebel onion
9600fb2efb New translations strings.xml (Spanish, Mexico) 2024-06-21 14:15:03 -05:00
rebel onion
6540fb511b New translations strings.xml (Chinese Simplified) 2024-06-21 14:15:02 -05:00
rebel onion
55689edc6e New translations strings.xml (Russian) 2024-06-21 14:15:01 -05:00
rebel onion
5adae74ad8 New translations strings.xml (Japanese) 2024-06-21 14:15:00 -05:00
rebel onion
7187e681e8 New translations strings.xml (German) 2024-06-21 14:14:58 -05:00
rebel onion
b106f4e66b New translations strings.xml (Arabic) 2024-06-21 14:14:57 -05:00
rebel onion
869d982bfb New translations strings.xml (Spanish) 2024-06-21 14:14:56 -05:00
rebel onion
11b7de55ca New translations strings.xml (French) 2024-06-21 14:14:55 -05:00
rebel onion
11912ddff3 New translations strings.xml (Portuguese, Brazilian) 2024-06-20 21:11:43 -05:00
rebel onion
ba7fc2cf6d New translations strings.xml (Portuguese, Brazilian) 2024-06-20 19:57:17 -05:00
rebel onion
114f34feed New translations strings.xml (Portuguese, Brazilian) 2024-06-20 10:32:49 -05:00
rebel onion
a611265534 New translations strings.xml (Turkish) 2024-06-20 10:32:48 -05:00
rebel onion
ceaa5d6445 New translations strings.xml (Polish) 2024-06-20 10:32:46 -05:00
rebel onion
08b858a28f New translations strings.xml (Albanian) 2024-06-20 10:32:45 -05:00
rebel onion
da24a8e348 New translations strings.xml (Urdu (Pakistan)) 2024-06-20 10:32:44 -05:00
rebel onion
2db010d4b7 New translations strings.xml (Dutch) 2024-06-20 10:32:43 -05:00
rebel onion
35cc7a6374 New translations strings.xml (Italian) 2024-06-20 10:32:41 -05:00
rebel onion
0b2b7f3769 New translations strings.xml (Bengali) 2024-06-20 10:32:40 -05:00
rebel onion
4fa97d8abc New translations strings.xml (Korean) 2024-06-20 10:32:39 -05:00
rebel onion
fc9fe84744 New translations strings.xml (Greek) 2024-06-20 10:32:37 -05:00
rebel onion
fc27b92ef8 New translations strings.xml (Assamese) 2024-06-20 10:32:36 -05:00
rebel onion
7d508ba843 New translations strings.xml (Hindi) 2024-06-20 10:32:35 -05:00
rebel onion
b312535e83 New translations strings.xml (Spanish, Mexico) 2024-06-20 10:32:33 -05:00
rebel onion
319cfc7542 New translations strings.xml (Chinese Simplified) 2024-06-20 10:32:32 -05:00
rebel onion
7a81f941c1 New translations strings.xml (Russian) 2024-06-20 10:32:30 -05:00
rebel onion
b5e2d5c2e9 New translations strings.xml (Japanese) 2024-06-20 10:32:29 -05:00
rebel onion
60872f9095 New translations strings.xml (German) 2024-06-20 10:32:27 -05:00
rebel onion
ded8525d23 New translations strings.xml (Arabic) 2024-06-20 10:32:26 -05:00
rebel onion
1c9799cdab New translations strings.xml (Spanish) 2024-06-20 10:32:25 -05:00
rebel onion
204747fc94 New translations strings.xml (French) 2024-06-20 10:32:23 -05:00
rebel onion
13444a2176 New translations strings.xml (Portuguese, Brazilian) 2024-06-16 08:09:37 -05:00
rebel onion
5f7cc092c7 New translations strings.xml (Portuguese, Brazilian) 2024-06-16 00:21:15 -05:00
rebel onion
b026d8ffef New translations strings.xml (Turkish) 2024-06-16 00:21:14 -05:00
rebel onion
035344677f New translations strings.xml (Polish) 2024-06-16 00:21:13 -05:00
rebel onion
76756bed4a New translations strings.xml (Albanian) 2024-06-16 00:21:12 -05:00
rebel onion
78d49f7ad1 New translations strings.xml (Urdu (Pakistan)) 2024-06-16 00:21:11 -05:00
rebel onion
d35c9d3ea9 New translations strings.xml (Dutch) 2024-06-16 00:21:09 -05:00
rebel onion
dbf25344a9 New translations strings.xml (Italian) 2024-06-16 00:21:08 -05:00
rebel onion
e83edad329 New translations strings.xml (Bengali) 2024-06-16 00:21:07 -05:00
rebel onion
656e03f799 New translations strings.xml (Korean) 2024-06-16 00:21:06 -05:00
rebel onion
72d5f555ca New translations strings.xml (Greek) 2024-06-16 00:21:05 -05:00
rebel onion
36f52612dc New translations strings.xml (Assamese) 2024-06-16 00:21:04 -05:00
rebel onion
dac5ee262a New translations strings.xml (Hindi) 2024-06-16 00:21:03 -05:00
rebel onion
f693c8288d New translations strings.xml (Spanish, Mexico) 2024-06-16 00:21:02 -05:00
rebel onion
40a3a192a7 New translations strings.xml (Chinese Simplified) 2024-06-16 00:21:01 -05:00
rebel onion
814da6172e New translations strings.xml (Russian) 2024-06-16 00:20:59 -05:00
rebel onion
e729b096bb New translations strings.xml (Japanese) 2024-06-16 00:20:58 -05:00
rebel onion
5d888d6dac New translations strings.xml (German) 2024-06-16 00:20:57 -05:00
rebel onion
f7fe4d09f9 New translations strings.xml (Arabic) 2024-06-16 00:20:56 -05:00
rebel onion
ce50b9d241 New translations strings.xml (Spanish) 2024-06-16 00:20:55 -05:00
rebel onion
a4a53a3e0e New translations strings.xml (French) 2024-06-16 00:20:54 -05:00
rebel onion
a20c8477d7 New translations strings.xml (Portuguese, Brazilian) 2024-06-14 06:21:03 -05:00
rebel onion
0d73819d17 New translations strings.xml (Turkish) 2024-06-14 06:21:02 -05:00
rebel onion
ee9e2ad4a3 New translations strings.xml (Polish) 2024-06-14 06:21:01 -05:00
rebel onion
9664cdc72a New translations strings.xml (Albanian) 2024-06-14 06:21:00 -05:00
rebel onion
b2caa71f23 New translations strings.xml (Urdu (Pakistan)) 2024-06-14 06:20:59 -05:00
rebel onion
b31424b529 New translations strings.xml (Dutch) 2024-06-14 06:20:58 -05:00
rebel onion
b1446f87d7 New translations strings.xml (Italian) 2024-06-14 06:20:57 -05:00
rebel onion
fce0b9279b New translations strings.xml (Bengali) 2024-06-14 06:20:55 -05:00
rebel onion
cc7d7cfb22 New translations strings.xml (Korean) 2024-06-14 06:20:54 -05:00
rebel onion
01aa52caa1 New translations strings.xml (Greek) 2024-06-14 06:20:53 -05:00
rebel onion
82cb690138 New translations strings.xml (Assamese) 2024-06-14 06:20:52 -05:00
rebel onion
194b1b1428 New translations strings.xml (Hindi) 2024-06-14 06:20:50 -05:00
rebel onion
55bdf10282 New translations strings.xml (Spanish, Mexico) 2024-06-14 06:20:49 -05:00
rebel onion
c87034ff39 New translations strings.xml (Chinese Simplified) 2024-06-14 06:20:48 -05:00
rebel onion
53e6509db6 New translations strings.xml (Russian) 2024-06-14 06:20:47 -05:00
rebel onion
d81ab5abbe New translations strings.xml (Japanese) 2024-06-14 06:20:46 -05:00
rebel onion
50268e609e New translations strings.xml (German) 2024-06-14 06:20:45 -05:00
rebel onion
46db6182b3 New translations strings.xml (Arabic) 2024-06-14 06:20:44 -05:00
rebel onion
321cc097e8 New translations strings.xml (Spanish) 2024-06-14 06:20:42 -05:00
rebel onion
97fde6a5c1 New translations strings.xml (French) 2024-06-14 06:20:41 -05:00
rebel onion
b92a2999a6 New translations strings.xml (Arabic) 2024-06-04 14:02:27 -05:00
rebel onion
736801ef1f New translations strings.xml (Arabic) 2024-06-04 12:49:39 -05:00
rebel onion
e774678ce8 New translations strings.xml (Portuguese, Brazilian) 2024-06-02 01:20:26 -05:00
rebel onion
28a0e09b64 New translations strings.xml (Polish) 2024-06-02 01:20:25 -05:00
rebel onion
57c5d332b0 New translations strings.xml (Albanian) 2024-06-02 01:20:24 -05:00
rebel onion
96bc7bfc53 New translations strings.xml (Dutch) 2024-06-02 01:20:23 -05:00
rebel onion
0b2082763b New translations strings.xml (Italian) 2024-06-02 01:20:22 -05:00
rebel onion
9975f76f3f New translations strings.xml (Bengali) 2024-06-02 01:20:21 -05:00
rebel onion
8de08bd0e0 New translations strings.xml (Korean) 2024-06-02 01:20:20 -05:00
rebel onion
9289674ff2 New translations strings.xml (Greek) 2024-06-02 01:20:19 -05:00
rebel onion
bde36d85dc New translations strings.xml (Assamese) 2024-06-02 01:20:18 -05:00
rebel onion
15ece3d939 New translations strings.xml (Hindi) 2024-06-02 01:20:17 -05:00
rebel onion
3cd60c004c New translations strings.xml (Spanish, Mexico) 2024-06-02 01:20:16 -05:00
rebel onion
cd9a64f4b7 New translations strings.xml (Chinese Simplified) 2024-06-02 01:20:15 -05:00
rebel onion
989d3dbb77 New translations strings.xml (Russian) 2024-06-02 01:20:13 -05:00
rebel onion
8b9e4eca77 New translations strings.xml (Japanese) 2024-06-02 01:20:12 -05:00
rebel onion
91207627ba New translations strings.xml (German) 2024-06-02 01:20:11 -05:00
rebel onion
d458d30e6e New translations strings.xml (Spanish) 2024-06-02 01:20:10 -05:00
rebel onion
75b382f53c New translations strings.xml (French) 2024-06-02 01:20:09 -05:00
rebel onion
650ab0a9ac New translations strings.xml (Portuguese, Brazilian) 2024-06-01 16:01:35 -05:00
rebel onion
a07bef0613 New translations strings.xml (Turkish) 2024-06-01 16:01:34 -05:00
rebel onion
01b061890c New translations strings.xml (Polish) 2024-06-01 16:01:33 -05:00
rebel onion
a970337ef7 New translations strings.xml (Albanian) 2024-06-01 16:01:32 -05:00
rebel onion
878b8af0b3 New translations strings.xml (Urdu (Pakistan)) 2024-06-01 16:01:30 -05:00
rebel onion
bde4e73cd1 New translations strings.xml (Dutch) 2024-06-01 16:01:29 -05:00
rebel onion
b13a6e0943 New translations strings.xml (Italian) 2024-06-01 16:01:28 -05:00
rebel onion
0be9ee6c49 New translations strings.xml (Bengali) 2024-06-01 16:01:27 -05:00
rebel onion
c19d15dbf6 New translations strings.xml (Korean) 2024-06-01 16:01:26 -05:00
rebel onion
27bab50e57 New translations strings.xml (Greek) 2024-06-01 16:01:25 -05:00
rebel onion
3ea85878c9 New translations strings.xml (Assamese) 2024-06-01 16:01:24 -05:00
rebel onion
1ff415900a New translations strings.xml (Hindi) 2024-06-01 16:01:23 -05:00
rebel onion
19cd0596a5 New translations strings.xml (Spanish, Mexico) 2024-06-01 16:01:22 -05:00
rebel onion
603fbf6254 New translations strings.xml (Chinese Simplified) 2024-06-01 16:01:21 -05:00
rebel onion
317958257c New translations strings.xml (Russian) 2024-06-01 16:01:20 -05:00
rebel onion
51cc16013a New translations strings.xml (Japanese) 2024-06-01 16:01:18 -05:00
rebel onion
6b565ba0ab New translations strings.xml (German) 2024-06-01 16:01:17 -05:00
rebel onion
c1bbd34f51 New translations strings.xml (Arabic) 2024-06-01 16:01:16 -05:00
rebel onion
795ceb9f5b New translations strings.xml (Spanish) 2024-06-01 16:01:15 -05:00
rebel onion
74e73a663b New translations strings.xml (French) 2024-06-01 16:01:14 -05:00
rebel onion
d3f34f0bae New translations strings.xml (Turkish) 2024-06-01 10:27:08 -05:00
rebel onion
1e1cd929c9 New translations strings.xml (Polish) 2024-06-01 10:27:07 -05:00
rebel onion
b19f9326d1 New translations strings.xml (Portuguese, Brazilian) 2024-06-01 08:30:25 -05:00
rebel onion
cbe3e556ca New translations strings.xml (Turkish) 2024-06-01 08:30:24 -05:00
rebel onion
ea2a3fb56d New translations strings.xml (Polish) 2024-06-01 08:30:22 -05:00
rebel onion
3f5eb4b858 New translations strings.xml (Albanian) 2024-06-01 08:30:22 -05:00
rebel onion
898bba3827 New translations strings.xml (Urdu (Pakistan)) 2024-06-01 08:30:20 -05:00
rebel onion
63c3b1b5e8 New translations strings.xml (Dutch) 2024-06-01 08:30:19 -05:00
rebel onion
a19a896da3 New translations strings.xml (Italian) 2024-06-01 08:30:18 -05:00
rebel onion
ac5f810a12 New translations strings.xml (Bengali) 2024-06-01 08:30:17 -05:00
rebel onion
b03ad95e4c New translations strings.xml (Korean) 2024-06-01 08:30:16 -05:00
rebel onion
ed7d49644b New translations strings.xml (Greek) 2024-06-01 08:30:15 -05:00
rebel onion
73a7143ea3 New translations strings.xml (Assamese) 2024-06-01 08:30:14 -05:00
rebel onion
80de313a26 New translations strings.xml (Hindi) 2024-06-01 08:30:12 -05:00
rebel onion
fe2d89f6a3 New translations strings.xml (Spanish, Mexico) 2024-06-01 08:30:11 -05:00
rebel onion
e53ad65049 New translations strings.xml (Chinese Simplified) 2024-06-01 08:30:10 -05:00
rebel onion
fcda0eae62 New translations strings.xml (Russian) 2024-06-01 08:30:09 -05:00
rebel onion
01323c4d2c New translations strings.xml (Japanese) 2024-06-01 08:30:08 -05:00
rebel onion
d62705f509 New translations strings.xml (German) 2024-06-01 08:30:07 -05:00
rebel onion
3f26e78de1 New translations strings.xml (Arabic) 2024-06-01 08:30:06 -05:00
rebel onion
b47f231701 New translations strings.xml (Spanish) 2024-06-01 08:30:05 -05:00
rebel onion
ec8bb5634a New translations strings.xml (French) 2024-06-01 08:30:04 -05:00
rebel onion
bc39551fb1 New translations strings.xml (Portuguese, Brazilian) 2024-06-01 01:37:49 -05:00
rebel onion
a3e84ce41a New translations strings.xml (Bengali) 2024-06-01 01:37:48 -05:00
rebel onion
11ffca8650 New translations strings.xml (Spanish, Mexico) 2024-06-01 00:08:28 -05:00
rebel onion
4584b1b74d New translations strings.xml (Portuguese, Brazilian) 2024-05-31 12:20:30 -05:00
rebel onion
1afee8c9ee New translations strings.xml (Italian) 2024-05-31 12:20:29 -05:00
rebel onion
5012c4efa6 New translations strings.xml (Korean) 2024-05-31 12:20:28 -05:00
rebel onion
83af384e80 New translations strings.xml (Greek) 2024-05-31 12:20:27 -05:00
rebel onion
6b32ea4acb New translations strings.xml (Hindi) 2024-05-31 12:20:25 -05:00
rebel onion
f677121794 New translations strings.xml (Spanish, Mexico) 2024-05-31 12:20:24 -05:00
rebel onion
7118dfc74a New translations strings.xml (Russian) 2024-05-31 12:20:23 -05:00
rebel onion
55f400c205 New translations strings.xml (Japanese) 2024-05-31 12:20:22 -05:00
rebel onion
9ba281f552 New translations strings.xml (Spanish) 2024-05-31 12:20:20 -05:00
rebel onion
beece59947 New translations strings.xml (Albanian) 2024-05-31 11:06:42 -05:00
rebel onion
0d43fc0781 New translations strings.xml (Dutch) 2024-05-31 11:06:41 -05:00
rebel onion
e14142b4f6 New translations strings.xml (Assamese) 2024-05-31 11:06:40 -05:00
rebel onion
765b6d2452 New translations strings.xml (Chinese Simplified) 2024-05-31 11:06:39 -05:00
rebel onion
076d821e8c New translations strings.xml (German) 2024-05-31 11:06:37 -05:00
rebel onion
17985bf61f New translations strings.xml (French) 2024-05-31 11:06:36 -05:00
rebel onion
03dbeddabb New translations strings.xml (Arabic) 2024-05-30 17:50:45 -05:00
rebel onion
ae372998f0 New translations strings.xml (Turkish) 2024-05-29 10:31:36 -05:00
rebel onion
262ce571ba New translations strings.xml (Polish) 2024-05-29 07:34:57 -05:00
rebel onion
c0eb96f3cd New translations strings.xml (Portuguese, Brazilian) 2024-05-28 15:42:22 -05:00
rebel onion
cfbf4e109d New translations strings.xml (Turkish) 2024-05-28 15:42:21 -05:00
rebel onion
e05af0dfcc New translations strings.xml (Polish) 2024-05-28 15:42:20 -05:00
rebel onion
64f078263f New translations strings.xml (Albanian) 2024-05-28 15:42:19 -05:00
rebel onion
c4aa8c91f8 New translations strings.xml (Urdu (Pakistan)) 2024-05-28 15:42:18 -05:00
rebel onion
a91285a40f New translations strings.xml (Dutch) 2024-05-28 15:42:17 -05:00
rebel onion
d56578b8be New translations strings.xml (Italian) 2024-05-28 15:42:16 -05:00
rebel onion
b05c14e880 New translations strings.xml (Bengali) 2024-05-28 15:42:14 -05:00
rebel onion
60644590f4 New translations strings.xml (Korean) 2024-05-28 15:42:13 -05:00
rebel onion
a8b1dc11a5 New translations strings.xml (Greek) 2024-05-28 15:42:12 -05:00
rebel onion
2cbeb28cd7 New translations strings.xml (Assamese) 2024-05-28 15:42:11 -05:00
rebel onion
579c23907f New translations strings.xml (Hindi) 2024-05-28 15:42:10 -05:00
rebel onion
a16ae62fb3 New translations strings.xml (Spanish, Mexico) 2024-05-28 15:42:09 -05:00
rebel onion
0bf623c9d4 New translations strings.xml (Chinese Simplified) 2024-05-28 15:42:08 -05:00
rebel onion
67dd9b8e01 New translations strings.xml (Russian) 2024-05-28 15:42:06 -05:00
rebel onion
7b1824cf36 New translations strings.xml (Japanese) 2024-05-28 15:42:05 -05:00
rebel onion
085adbfdaa New translations strings.xml (German) 2024-05-28 15:42:04 -05:00
rebel onion
7fb70627f9 New translations strings.xml (Arabic) 2024-05-28 15:42:03 -05:00
rebel onion
ea12e5a054 New translations strings.xml (Spanish) 2024-05-28 15:42:02 -05:00
rebel onion
a5b24ac8b7 New translations strings.xml (French) 2024-05-28 15:42:01 -05:00
rebel onion
830ca60883 New translations strings.xml (Arabic) 2024-05-28 04:26:12 -05:00
rebel onion
f0c1bc88a5 New translations strings.xml (Polish) 2024-05-27 13:11:17 -05:00
rebel onion
cea67261d5 New translations strings.xml (Turkish) 2024-05-27 10:23:04 -05:00
rebel onion
c33934c211 New translations strings.xml (Portuguese, Brazilian) 2024-05-27 07:25:36 -05:00
rebel onion
3ec0b9aba2 New translations strings.xml (Turkish) 2024-05-27 07:25:35 -05:00
rebel onion
748b359615 New translations strings.xml (Polish) 2024-05-27 07:25:33 -05:00
rebel onion
e22734dd54 New translations strings.xml (Albanian) 2024-05-27 07:25:32 -05:00
rebel onion
6dc6f801a8 New translations strings.xml (Urdu (Pakistan)) 2024-05-27 07:25:31 -05:00
rebel onion
c6c95cdde7 New translations strings.xml (Dutch) 2024-05-27 07:25:29 -05:00
rebel onion
c0d0d931b0 New translations strings.xml (Italian) 2024-05-27 07:25:28 -05:00
rebel onion
991a040f3f New translations strings.xml (Bengali) 2024-05-27 07:25:27 -05:00
rebel onion
29b9e57bd8 New translations strings.xml (Korean) 2024-05-27 07:25:25 -05:00
rebel onion
f52bd0e51c New translations strings.xml (Greek) 2024-05-27 07:25:24 -05:00
rebel onion
b8c03ecc10 New translations strings.xml (Assamese) 2024-05-27 07:25:22 -05:00
rebel onion
7c09419fae New translations strings.xml (Hindi) 2024-05-27 07:25:21 -05:00
rebel onion
576c99d702 New translations strings.xml (Spanish, Mexico) 2024-05-27 07:25:19 -05:00
rebel onion
a7c2f60307 New translations strings.xml (Chinese Simplified) 2024-05-27 07:25:18 -05:00
rebel onion
2a2101d926 New translations strings.xml (Russian) 2024-05-27 07:25:17 -05:00
rebel onion
1379617f23 New translations strings.xml (Japanese) 2024-05-27 07:25:15 -05:00
rebel onion
85fba27644 New translations strings.xml (German) 2024-05-27 07:25:14 -05:00
rebel onion
17084b4ec3 New translations strings.xml (Arabic) 2024-05-27 07:25:12 -05:00
rebel onion
b77d6076ab New translations strings.xml (Spanish) 2024-05-27 07:25:11 -05:00
rebel onion
2997aa9784 New translations strings.xml (French) 2024-05-27 07:25:09 -05:00
rebel onion
df77ec6ee1 New translations strings.xml (Albanian) 2024-05-26 00:38:08 -05:00
rebel onion
d5409a80a3 New translations strings.xml (Dutch) 2024-05-26 00:38:07 -05:00
rebel onion
c42c0b49f9 New translations strings.xml (Italian) 2024-05-26 00:38:05 -05:00
rebel onion
23893f88d5 New translations strings.xml (Korean) 2024-05-26 00:38:04 -05:00
rebel onion
240d4faf09 New translations strings.xml (Greek) 2024-05-26 00:38:03 -05:00
rebel onion
0e8eb5eb16 New translations strings.xml (Assamese) 2024-05-26 00:38:02 -05:00
rebel onion
827dae53a5 New translations strings.xml (Hindi) 2024-05-26 00:38:01 -05:00
rebel onion
6d49928a11 New translations strings.xml (Chinese Simplified) 2024-05-26 00:38:00 -05:00
rebel onion
f63028c98c New translations strings.xml (Russian) 2024-05-26 00:37:59 -05:00
rebel onion
a4d8100b73 New translations strings.xml (Japanese) 2024-05-26 00:37:58 -05:00
rebel onion
34d328507d New translations strings.xml (German) 2024-05-26 00:37:56 -05:00
rebel onion
245384c720 New translations strings.xml (Spanish) 2024-05-26 00:37:55 -05:00
rebel onion
fb7a6e57b2 New translations strings.xml (French) 2024-05-26 00:37:54 -05:00
rebel onion
5af59582df New translations strings.xml (Polish) 2024-05-25 17:04:53 -05:00
rebel onion
8e7647a3b5 New translations strings.xml (Polish) 2024-05-25 15:59:51 -05:00
rebel onion
c57e1ad0e9 New translations strings.xml (Polish) 2024-05-25 15:04:44 -05:00
rebel onion
953183a956 New translations strings.xml (Turkish) 2024-05-25 14:04:31 -05:00
rebel onion
29ab73e5c9 New translations strings.xml (Polish) 2024-05-25 14:04:30 -05:00
rebel onion
eced8e1ea6 New translations strings.xml (Polish) 2024-05-25 12:51:42 -05:00
rebel onion
600a6898f1 New translations strings.xml (Polish) 2024-05-25 11:55:31 -05:00
rebel onion
9e14c03322 New translations strings.xml (Portuguese, Brazilian) 2024-05-25 10:54:04 -05:00
rebel onion
0125d075b2 New translations strings.xml (Turkish) 2024-05-25 10:54:03 -05:00
rebel onion
5e68906a22 New translations strings.xml (Polish) 2024-05-25 10:54:02 -05:00
rebel onion
a0618d1b5d New translations strings.xml (Albanian) 2024-05-25 10:54:01 -05:00
rebel onion
e5a0a2fa34 New translations strings.xml (Urdu (Pakistan)) 2024-05-25 10:54:00 -05:00
rebel onion
25cc16c408 New translations strings.xml (Dutch) 2024-05-25 10:53:59 -05:00
rebel onion
3f430fc8e0 New translations strings.xml (Italian) 2024-05-25 10:53:58 -05:00
rebel onion
5a3bb27566 New translations strings.xml (Bengali) 2024-05-25 10:53:57 -05:00
rebel onion
31fed55966 New translations strings.xml (Korean) 2024-05-25 10:53:56 -05:00
rebel onion
d056cd2f13 New translations strings.xml (Greek) 2024-05-25 10:53:54 -05:00
rebel onion
06029f2827 New translations strings.xml (Assamese) 2024-05-25 10:53:53 -05:00
rebel onion
c07efc1595 New translations strings.xml (Hindi) 2024-05-25 10:53:52 -05:00
rebel onion
93a320ded2 New translations strings.xml (Spanish, Mexico) 2024-05-25 10:53:51 -05:00
rebel onion
b14778c7ac New translations strings.xml (Chinese Simplified) 2024-05-25 10:53:50 -05:00
rebel onion
73544c3fc1 New translations strings.xml (Russian) 2024-05-25 10:53:49 -05:00
rebel onion
bfaf4f6f96 New translations strings.xml (Japanese) 2024-05-25 10:53:47 -05:00
rebel onion
84c0fe7100 New translations strings.xml (German) 2024-05-25 10:53:46 -05:00
rebel onion
a541161bd0 New translations strings.xml (Arabic) 2024-05-25 10:53:45 -05:00
rebel onion
d6496ba028 New translations strings.xml (Spanish) 2024-05-25 10:53:44 -05:00
rebel onion
3d6d0c70a0 New translations strings.xml (French) 2024-05-25 10:53:43 -05:00
rebel onion
7461de1292 New translations strings.xml (Polish) 2024-05-25 09:40:16 -05:00
rebel onion
4a3deb30b8 New translations strings.xml (Polish) 2024-05-25 07:03:46 -05:00
rebel onion
bba3cbfb47 New translations strings.xml (Polish) 2024-05-25 05:46:04 -05:00
rebel onion
bba915b898 New translations strings.xml (Albanian) 2024-05-25 04:12:28 -05:00
rebel onion
f8934ef315 New translations strings.xml (Dutch) 2024-05-25 04:12:26 -05:00
rebel onion
4e84e5d32c New translations strings.xml (Italian) 2024-05-25 04:12:25 -05:00
rebel onion
536ccfd38f New translations strings.xml (Korean) 2024-05-25 04:12:24 -05:00
rebel onion
514c24fefa New translations strings.xml (Greek) 2024-05-25 04:12:23 -05:00
rebel onion
e3b556bdd0 New translations strings.xml (Assamese) 2024-05-25 04:12:22 -05:00
rebel onion
dea15469c1 New translations strings.xml (Hindi) 2024-05-25 04:12:21 -05:00
rebel onion
442fdec098 New translations strings.xml (Chinese Simplified) 2024-05-25 04:12:19 -05:00
rebel onion
3b65bfa2d5 New translations strings.xml (Russian) 2024-05-25 04:12:18 -05:00
rebel onion
ae5b47db1e New translations strings.xml (Japanese) 2024-05-25 04:12:17 -05:00
rebel onion
cb4accec08 New translations strings.xml (German) 2024-05-25 04:12:16 -05:00
rebel onion
1349640272 New translations strings.xml (Spanish) 2024-05-25 04:12:15 -05:00
rebel onion
f65e1f6e55 New translations strings.xml (French) 2024-05-25 04:12:14 -05:00
rebel onion
6eb7cd0f26 New translations strings.xml (Portuguese, Brazilian) 2024-05-24 17:55:30 -05:00
rebel onion
bff337ac03 New translations strings.xml (Portuguese, Brazilian) 2024-05-24 16:13:53 -05:00
rebel onion
11a6cdd2e5 New translations strings.xml (Portuguese, Brazilian) 2024-05-24 12:41:01 -05:00
rebel onion
d6a72097c0 New translations strings.xml (Polish) 2024-05-24 07:19:31 -05:00
rebel onion
d166294de6 New translations strings.xml (Polish) 2024-05-24 05:30:59 -05:00
rebel onion
35cd54a7d9 New translations strings.xml (Turkish) 2024-05-22 16:35:42 -05:00
rebel onion
4a12d8e9b3 New translations strings.xml (Portuguese, Brazilian) 2024-05-22 05:18:08 -05:00
rebel onion
0a4164431f New translations strings.xml (Turkish) 2024-05-22 05:18:07 -05:00
rebel onion
d04673204e New translations strings.xml (Polish) 2024-05-22 05:18:06 -05:00
rebel onion
8a56ca74a5 New translations strings.xml (Albanian) 2024-05-22 05:18:05 -05:00
rebel onion
b1a2f89693 New translations strings.xml (Urdu (Pakistan)) 2024-05-22 05:18:03 -05:00
rebel onion
3c3eb138e0 New translations strings.xml (Dutch) 2024-05-22 05:18:02 -05:00
rebel onion
01599086f7 New translations strings.xml (Italian) 2024-05-22 05:18:01 -05:00
rebel onion
744dc3082b New translations strings.xml (Bengali) 2024-05-22 05:17:59 -05:00
rebel onion
7363a7c2d4 New translations strings.xml (Korean) 2024-05-22 05:17:58 -05:00
rebel onion
79136ba5b7 New translations strings.xml (Greek) 2024-05-22 05:17:57 -05:00
rebel onion
c951eefdd4 New translations strings.xml (Assamese) 2024-05-22 05:17:56 -05:00
rebel onion
f44cb5e57d New translations strings.xml (Hindi) 2024-05-22 05:17:54 -05:00
rebel onion
e5cbb6afeb New translations strings.xml (Spanish, Mexico) 2024-05-22 05:17:53 -05:00
rebel onion
18722a45ba New translations strings.xml (Chinese Simplified) 2024-05-22 05:17:52 -05:00
rebel onion
88f6fb61c9 New translations strings.xml (Russian) 2024-05-22 05:17:51 -05:00
rebel onion
68802999ce New translations strings.xml (Japanese) 2024-05-22 05:17:49 -05:00
rebel onion
fd8c84d3c0 New translations strings.xml (German) 2024-05-22 05:17:47 -05:00
rebel onion
25e7496927 New translations strings.xml (Arabic) 2024-05-22 05:17:46 -05:00
rebel onion
72a24df665 New translations strings.xml (Spanish) 2024-05-22 05:17:45 -05:00
rebel onion
d832ce6410 New translations strings.xml (French) 2024-05-22 05:17:44 -05:00
rebel onion
5d4d91c737 New translations strings.xml (Polish) 2024-05-21 00:32:46 -05:00
rebel onion
c617b72483 New translations strings.xml (Dutch) 2024-05-21 00:32:45 -05:00
rebel onion
83dc58cc82 New translations strings.xml (Italian) 2024-05-21 00:32:44 -05:00
rebel onion
79b9a4a649 New translations strings.xml (Korean) 2024-05-21 00:32:43 -05:00
rebel onion
4794037b2b New translations strings.xml (Greek) 2024-05-21 00:32:41 -05:00
rebel onion
f7a4853e78 New translations strings.xml (Assamese) 2024-05-21 00:32:40 -05:00
rebel onion
27fef48103 New translations strings.xml (Hindi) 2024-05-21 00:32:39 -05:00
rebel onion
6ec9ab7c81 New translations strings.xml (Chinese Simplified) 2024-05-21 00:32:38 -05:00
rebel onion
332d607f42 New translations strings.xml (Russian) 2024-05-21 00:32:37 -05:00
rebel onion
95da8c4197 New translations strings.xml (Japanese) 2024-05-21 00:32:36 -05:00
rebel onion
a4cb07eb3b New translations strings.xml (Spanish) 2024-05-21 00:32:35 -05:00
rebel onion
9dcc7b7a25 New translations strings.xml (French) 2024-05-21 00:32:34 -05:00
rebel onion
4ea399a6e4 New translations strings.xml (Albanian) 2024-05-20 23:30:00 -05:00
rebel onion
ec3366bcce New translations strings.xml (Turkish) 2024-05-20 18:45:28 -05:00
rebel onion
35a217ae6e New translations strings.xml (German) 2024-05-20 17:35:47 -05:00
rebel onion
3ef634693d New translations strings.xml (Portuguese, Brazilian) 2024-05-20 12:33:53 -05:00
rebel onion
3a925edd63 New translations strings.xml (Turkish) 2024-05-20 12:33:52 -05:00
rebel onion
e7e85e0c2f New translations strings.xml (Polish) 2024-05-20 12:33:51 -05:00
rebel onion
aec6d40af8 New translations strings.xml (Albanian) 2024-05-20 12:33:49 -05:00
rebel onion
128ba28da8 New translations strings.xml (Urdu (Pakistan)) 2024-05-20 12:33:48 -05:00
rebel onion
297f21a9dd New translations strings.xml (Dutch) 2024-05-20 12:33:47 -05:00
rebel onion
77a0371c4b New translations strings.xml (Italian) 2024-05-20 12:33:46 -05:00
rebel onion
7d1528ca1e New translations strings.xml (Bengali) 2024-05-20 12:33:45 -05:00
rebel onion
b82b0c6167 New translations strings.xml (Korean) 2024-05-20 12:33:44 -05:00
rebel onion
bd59707f61 New translations strings.xml (Greek) 2024-05-20 12:33:42 -05:00
rebel onion
4130ea2dd3 New translations strings.xml (Assamese) 2024-05-20 12:33:41 -05:00
rebel onion
86db993344 New translations strings.xml (Hindi) 2024-05-20 12:33:40 -05:00
rebel onion
accf7e117b New translations strings.xml (Spanish, Mexico) 2024-05-20 12:33:39 -05:00
rebel onion
63fe89f064 New translations strings.xml (Chinese Simplified) 2024-05-20 12:33:38 -05:00
rebel onion
8ce0b64fe3 New translations strings.xml (Russian) 2024-05-20 12:33:37 -05:00
rebel onion
5a2610fd9e New translations strings.xml (Japanese) 2024-05-20 12:33:36 -05:00
rebel onion
f3977f54d5 New translations strings.xml (German) 2024-05-20 12:33:35 -05:00
rebel onion
e82e6200b0 New translations strings.xml (Arabic) 2024-05-20 12:33:33 -05:00
rebel onion
4b9036a4ce New translations strings.xml (Spanish) 2024-05-20 12:33:32 -05:00
rebel onion
33c4d9c244 New translations strings.xml (French) 2024-05-20 12:33:31 -05:00
rebel onion
14115678ef New translations strings.xml (Portuguese, Brazilian) 2024-05-20 11:34:11 -05:00
rebel onion
d5fb143f28 New translations strings.xml (Turkish) 2024-05-20 11:34:10 -05:00
rebel onion
6ab5eb31ca New translations strings.xml (Polish) 2024-05-20 11:34:09 -05:00
rebel onion
3e75bc405c New translations strings.xml (Albanian) 2024-05-20 11:34:07 -05:00
rebel onion
8405c38557 New translations strings.xml (Urdu (Pakistan)) 2024-05-20 11:34:06 -05:00
rebel onion
9818eb699e New translations strings.xml (Dutch) 2024-05-20 11:34:05 -05:00
rebel onion
21a378e078 New translations strings.xml (Italian) 2024-05-20 11:34:04 -05:00
rebel onion
9a3a96ed19 New translations strings.xml (Bengali) 2024-05-20 11:34:02 -05:00
rebel onion
bd30cc4b0f New translations strings.xml (Korean) 2024-05-20 11:34:01 -05:00
rebel onion
02d04ecb57 New translations strings.xml (Greek) 2024-05-20 11:34:00 -05:00
rebel onion
e23311e817 New translations strings.xml (Assamese) 2024-05-20 11:33:59 -05:00
rebel onion
60fe855813 New translations strings.xml (Hindi) 2024-05-20 11:33:58 -05:00
rebel onion
5c0bd7bf90 New translations strings.xml (Spanish, Mexico) 2024-05-20 11:33:57 -05:00
rebel onion
d4d6e8c5a0 New translations strings.xml (Chinese Simplified) 2024-05-20 11:33:56 -05:00
rebel onion
e779dfbe9d New translations strings.xml (Russian) 2024-05-20 11:33:54 -05:00
rebel onion
9e39a3cc64 New translations strings.xml (Japanese) 2024-05-20 11:33:53 -05:00
rebel onion
7e02a7d928 New translations strings.xml (German) 2024-05-20 11:33:52 -05:00
rebel onion
8c3fe1bd80 New translations strings.xml (Arabic) 2024-05-20 11:33:51 -05:00
rebel onion
0b72160c93 New translations strings.xml (Spanish) 2024-05-20 11:33:50 -05:00
rebel onion
f529a0cc3f New translations strings.xml (French) 2024-05-20 11:33:49 -05:00
rebel onion
b4520d91b5 New translations strings.xml (Polish) 2024-05-20 01:10:10 -05:00
rebel onion
771985d063 New translations strings.xml (Korean) 2024-05-20 01:10:09 -05:00
rebel onion
feba28f55d New translations strings.xml (Russian) 2024-05-20 01:10:08 -05:00
rebel onion
32d3376d44 New translations strings.xml (Spanish) 2024-05-20 01:10:07 -05:00
rebel onion
7ae51daf39 New translations strings.xml (Albanian) 2024-05-19 23:53:53 -05:00
rebel onion
b5a7e69040 New translations strings.xml (Dutch) 2024-05-19 23:53:52 -05:00
rebel onion
7f431a1e7b New translations strings.xml (Italian) 2024-05-19 23:53:51 -05:00
rebel onion
c2a7aae848 New translations strings.xml (Greek) 2024-05-19 23:53:50 -05:00
rebel onion
9a3fff9c09 New translations strings.xml (Assamese) 2024-05-19 23:53:49 -05:00
rebel onion
90ad8b016e New translations strings.xml (Hindi) 2024-05-19 23:53:47 -05:00
rebel onion
ed6fc25507 New translations strings.xml (Chinese Simplified) 2024-05-19 23:53:46 -05:00
rebel onion
1b13ef9f34 New translations strings.xml (Japanese) 2024-05-19 23:53:45 -05:00
rebel onion
7f7e7e2e82 New translations strings.xml (German) 2024-05-19 23:53:44 -05:00
rebel onion
dfdc866dfc New translations strings.xml (French) 2024-05-19 23:53:43 -05:00
rebel onion
58021c5813 New translations strings.xml (Portuguese, Brazilian) 2024-05-19 15:29:25 -05:00
rebel onion
aa1fb1d921 New translations strings.xml (Turkish) 2024-05-19 15:29:24 -05:00
rebel onion
25cb70e766 New translations strings.xml (Polish) 2024-05-19 15:29:23 -05:00
rebel onion
48dd69fbf6 New translations strings.xml (Albanian) 2024-05-19 15:29:22 -05:00
rebel onion
bfa2bcb3e4 New translations strings.xml (Urdu (Pakistan)) 2024-05-19 15:29:21 -05:00
rebel onion
ebad32f0d3 New translations strings.xml (Dutch) 2024-05-19 15:29:20 -05:00
rebel onion
167dd4dff0 New translations strings.xml (Italian) 2024-05-19 15:29:19 -05:00
rebel onion
f9cf7365fd New translations strings.xml (Bengali) 2024-05-19 15:29:18 -05:00
rebel onion
c03b5100d3 New translations strings.xml (Korean) 2024-05-19 15:29:17 -05:00
rebel onion
745a605052 New translations strings.xml (Greek) 2024-05-19 15:29:16 -05:00
rebel onion
f6e63144fc New translations strings.xml (Assamese) 2024-05-19 15:29:15 -05:00
rebel onion
65b6ff90c3 New translations strings.xml (Hindi) 2024-05-19 15:29:14 -05:00
rebel onion
0261a20572 New translations strings.xml (Spanish, Mexico) 2024-05-19 15:29:12 -05:00
rebel onion
878d0b7e42 New translations strings.xml (Chinese Simplified) 2024-05-19 15:29:11 -05:00
rebel onion
1705f29cbf New translations strings.xml (Russian) 2024-05-19 15:29:10 -05:00
rebel onion
22abc94065 New translations strings.xml (Japanese) 2024-05-19 15:29:09 -05:00
rebel onion
5ad1ee917e New translations strings.xml (German) 2024-05-19 15:29:08 -05:00
rebel onion
37dcf7e9a4 New translations strings.xml (Arabic) 2024-05-19 15:29:07 -05:00
rebel onion
bf270794e9 New translations strings.xml (Spanish) 2024-05-19 15:29:06 -05:00
rebel onion
e8c43da0c9 New translations strings.xml (French) 2024-05-19 15:29:05 -05:00
rebel onion
f910c6da18 New translations strings.xml (Bengali) 2024-05-19 13:51:22 -05:00
rebel onion
8a76fd33a9 New translations strings.xml (Bengali) 2024-05-19 12:35:37 -05:00
rebel onion
5c4153cb6b New translations strings.xml (Turkish) 2024-05-19 06:00:22 -05:00
rebel onion
7f0ee95236 New translations strings.xml (Polish) 2024-05-19 01:52:47 -05:00
rebel onion
c3e47fc417 New translations strings.xml (Dutch) 2024-05-19 01:52:46 -05:00
rebel onion
555490129c New translations strings.xml (Italian) 2024-05-19 01:52:45 -05:00
rebel onion
2dcc49c6a9 New translations strings.xml (Korean) 2024-05-19 01:52:44 -05:00
rebel onion
0d294990c5 New translations strings.xml (Greek) 2024-05-19 01:52:43 -05:00
rebel onion
9924aa4e93 New translations strings.xml (Assamese) 2024-05-19 01:52:42 -05:00
rebel onion
4f44cf6840 New translations strings.xml (Hindi) 2024-05-19 01:52:41 -05:00
rebel onion
d9e4d2da95 New translations strings.xml (Chinese Simplified) 2024-05-19 01:52:40 -05:00
rebel onion
fdc46093c6 New translations strings.xml (Russian) 2024-05-19 01:52:39 -05:00
rebel onion
0cff00c426 New translations strings.xml (Japanese) 2024-05-19 01:52:38 -05:00
rebel onion
5f22941164 New translations strings.xml (German) 2024-05-19 01:52:37 -05:00
rebel onion
4f6c587388 New translations strings.xml (Spanish) 2024-05-19 01:52:36 -05:00
rebel onion
b2349c9757 New translations strings.xml (French) 2024-05-19 01:52:35 -05:00
rebel onion
47cd0648ac New translations strings.xml (Albanian) 2024-05-19 00:14:41 -05:00
rebel onion
70746f8786 New translations strings.xml (Portuguese, Brazilian) 2024-05-18 11:49:24 -05:00
rebel onion
919fd87bbc New translations strings.xml (Turkish) 2024-05-18 11:49:23 -05:00
rebel onion
a80c0a6a3b New translations strings.xml (Polish) 2024-05-18 11:49:22 -05:00
rebel onion
7f78515dd0 New translations strings.xml (Albanian) 2024-05-18 11:49:21 -05:00
rebel onion
d466d47751 New translations strings.xml (Urdu (Pakistan)) 2024-05-18 11:49:20 -05:00
rebel onion
a834620606 New translations strings.xml (Dutch) 2024-05-18 11:49:19 -05:00
rebel onion
b898001fa3 New translations strings.xml (Italian) 2024-05-18 11:49:18 -05:00
rebel onion
c9eb224aaa New translations strings.xml (Bengali) 2024-05-18 11:49:17 -05:00
rebel onion
885c764c87 New translations strings.xml (Korean) 2024-05-18 11:49:16 -05:00
rebel onion
99996bb82f New translations strings.xml (Greek) 2024-05-18 11:49:15 -05:00
rebel onion
9b42b21d44 New translations strings.xml (Assamese) 2024-05-18 11:49:14 -05:00
rebel onion
d1fcd3394c New translations strings.xml (Hindi) 2024-05-18 11:49:12 -05:00
rebel onion
e54cab033b New translations strings.xml (Spanish, Mexico) 2024-05-18 11:49:11 -05:00
rebel onion
9a01ae279c New translations strings.xml (Chinese Simplified) 2024-05-18 11:49:10 -05:00
rebel onion
cfc67e2700 New translations strings.xml (Russian) 2024-05-18 11:49:09 -05:00
rebel onion
996d35408a New translations strings.xml (Japanese) 2024-05-18 11:49:08 -05:00
rebel onion
333af057f4 New translations strings.xml (German) 2024-05-18 11:49:07 -05:00
rebel onion
45d7d06e0f New translations strings.xml (Arabic) 2024-05-18 11:49:06 -05:00
rebel onion
acce63ce24 New translations strings.xml (Spanish) 2024-05-18 11:49:05 -05:00
rebel onion
80c9ce35cb New translations strings.xml (French) 2024-05-18 11:49:04 -05:00
rebel onion
e51a64c242 New translations strings.xml (Albanian) 2024-05-17 12:20:36 -05:00
rebel onion
59cf2e4d79 New translations strings.xml (Arabic) 2024-05-17 12:20:35 -05:00
rebel onion
7edfc676f1 New translations strings.xml (Portuguese, Brazilian) 2024-05-17 10:24:10 -05:00
rebel onion
f197b71950 New translations strings.xml (Turkish) 2024-05-17 10:24:09 -05:00
rebel onion
c61404545c New translations strings.xml (Polish) 2024-05-17 10:24:07 -05:00
rebel onion
9d349dae5b New translations strings.xml (Albanian) 2024-05-17 10:24:06 -05:00
rebel onion
779ee45b20 New translations strings.xml (Urdu (Pakistan)) 2024-05-17 10:24:05 -05:00
rebel onion
f0c5802471 New translations strings.xml (Dutch) 2024-05-17 10:24:04 -05:00
rebel onion
4b7dc3921c New translations strings.xml (Italian) 2024-05-17 10:24:02 -05:00
rebel onion
100e96f843 New translations strings.xml (Bengali) 2024-05-17 10:24:01 -05:00
rebel onion
30391805dc New translations strings.xml (Korean) 2024-05-17 10:24:00 -05:00
rebel onion
49f0424956 New translations strings.xml (Greek) 2024-05-17 10:23:59 -05:00
rebel onion
eea76dde54 New translations strings.xml (Assamese) 2024-05-17 10:23:58 -05:00
rebel onion
74be4a8e7f New translations strings.xml (Hindi) 2024-05-17 10:23:56 -05:00
rebel onion
4452839d76 New translations strings.xml (Spanish, Mexico) 2024-05-17 10:23:55 -05:00
rebel onion
eae3785c21 New translations strings.xml (Chinese Simplified) 2024-05-17 10:23:54 -05:00
rebel onion
d818abc578 New translations strings.xml (Russian) 2024-05-17 10:23:53 -05:00
rebel onion
80f8024ae8 New translations strings.xml (Japanese) 2024-05-17 10:23:52 -05:00
rebel onion
294a3a168a New translations strings.xml (German) 2024-05-17 10:23:51 -05:00
rebel onion
59b1e4203a New translations strings.xml (Arabic) 2024-05-17 10:23:50 -05:00
rebel onion
598613e189 New translations strings.xml (Spanish) 2024-05-17 10:23:48 -05:00
rebel onion
2e69f2f967 New translations strings.xml (French) 2024-05-17 10:23:47 -05:00
rebel onion
ee60f5e59b New translations strings.xml (Arabic) 2024-05-17 05:11:30 -05:00
rebel onion
c652792404 New translations strings.xml (Arabic) 2024-05-17 04:02:12 -05:00
rebel onion
af04890cd9 New translations strings.xml (German) 2024-05-16 18:34:04 -05:00
rebel onion
6bdae9f53e New translations strings.xml (Turkish) 2024-05-16 16:15:52 -05:00
rebel onion
10657bfd78 New translations strings.xml (Portuguese, Brazilian) 2024-05-16 15:19:38 -05:00
rebel onion
400570f4b9 New translations strings.xml (Turkish) 2024-05-16 15:19:37 -05:00
rebel onion
48eacbc5cc New translations strings.xml (Polish) 2024-05-16 15:19:36 -05:00
rebel onion
787d2a4456 New translations strings.xml (Albanian) 2024-05-16 15:19:35 -05:00
rebel onion
a8088cdae7 New translations strings.xml (Urdu (Pakistan)) 2024-05-16 15:19:34 -05:00
rebel onion
29f3ce0278 New translations strings.xml (Dutch) 2024-05-16 15:19:32 -05:00
rebel onion
b787d9a27d New translations strings.xml (Italian) 2024-05-16 15:19:31 -05:00
rebel onion
8f72a4d6eb New translations strings.xml (Bengali) 2024-05-16 15:19:30 -05:00
rebel onion
b4faf8a0a5 New translations strings.xml (Korean) 2024-05-16 15:19:29 -05:00
rebel onion
f8042d2e99 New translations strings.xml (Greek) 2024-05-16 15:19:28 -05:00
rebel onion
f3a3707b95 New translations strings.xml (Assamese) 2024-05-16 15:19:26 -05:00
rebel onion
82e5f6b50f New translations strings.xml (Hindi) 2024-05-16 15:19:25 -05:00
rebel onion
b06784d9c1 New translations strings.xml (Spanish, Mexico) 2024-05-16 15:19:24 -05:00
rebel onion
6910fde9a2 New translations strings.xml (Chinese Simplified) 2024-05-16 15:19:22 -05:00
rebel onion
d70f82b26e New translations strings.xml (Russian) 2024-05-16 15:19:21 -05:00
rebel onion
0279b837ee New translations strings.xml (Japanese) 2024-05-16 15:19:20 -05:00
rebel onion
510d02c7cf New translations strings.xml (German) 2024-05-16 15:19:19 -05:00
rebel onion
cc5cd9f21a New translations strings.xml (Arabic) 2024-05-16 15:19:18 -05:00
rebel onion
8bdf09b71b New translations strings.xml (Spanish) 2024-05-16 15:19:17 -05:00
rebel onion
ffa8a19eca New translations strings.xml (French) 2024-05-16 15:19:16 -05:00
rebel onion
dcfdb48dc2 New translations strings.xml (Portuguese, Brazilian) 2024-05-15 15:34:57 -05:00
rebel onion
a418295ece New translations strings.xml (Portuguese, Brazilian) 2024-05-15 11:36:09 -05:00
rebel onion
fda5cf70fc New translations strings.xml (Portuguese, Brazilian) 2024-05-15 10:40:01 -05:00
rebel onion
40d3602f55 New translations strings.xml (Portuguese, Brazilian) 2024-05-15 03:45:42 -05:00
rebel onion
3e6382a051 New translations strings.xml (Turkish) 2024-05-14 16:37:42 -05:00
rebel onion
3dbd4f9cfc New translations strings.xml (Arabic) 2024-05-14 16:37:41 -05:00
rebel onion
a807c251d1 New translations strings.xml (Turkish) 2024-05-14 15:30:43 -05:00
rebel onion
9ec5532ea6 New translations strings.xml (Portuguese, Brazilian) 2024-05-14 10:01:59 -05:00
rebel onion
eb5f3045f4 New translations strings.xml (Portuguese, Brazilian) 2024-05-14 08:39:46 -05:00
rebel onion
3e72fa3430 New translations strings.xml (Polish) 2024-05-14 04:57:52 -05:00
rebel onion
59c6bc6e96 New translations strings.xml (Albanian) 2024-05-14 04:57:50 -05:00
rebel onion
28fc390837 New translations strings.xml (Dutch) 2024-05-14 04:57:49 -05:00
rebel onion
1a32f5d161 New translations strings.xml (Italian) 2024-05-14 04:57:48 -05:00
rebel onion
05642967a7 New translations strings.xml (Korean) 2024-05-14 04:57:47 -05:00
rebel onion
a6ac55f9f2 New translations strings.xml (Greek) 2024-05-14 04:57:45 -05:00
rebel onion
d83061b2bb New translations strings.xml (Assamese) 2024-05-14 04:57:44 -05:00
rebel onion
cb9a4960d2 New translations strings.xml (Hindi) 2024-05-14 04:57:43 -05:00
rebel onion
96ed8f2867 New translations strings.xml (Chinese Simplified) 2024-05-14 04:57:41 -05:00
rebel onion
743b73f0bf New translations strings.xml (Russian) 2024-05-14 04:57:40 -05:00
rebel onion
7ad26fe339 New translations strings.xml (Japanese) 2024-05-14 04:57:39 -05:00
rebel onion
359b6e8d28 New translations strings.xml (German) 2024-05-14 04:57:38 -05:00
rebel onion
f0051fcc22 New translations strings.xml (Spanish) 2024-05-14 04:57:36 -05:00
rebel onion
2dca6fe24c New translations strings.xml (French) 2024-05-14 04:57:35 -05:00
rebel onion
ce662ee561 New translations strings.xml (Arabic) 2024-05-13 14:18:12 -05:00
rebel onion
fb06244e1d New translations strings.xml (Arabic) 2024-05-13 13:11:33 -05:00
rebel onion
ee2d700298 New translations strings.xml (Turkish) 2024-05-13 03:40:26 -05:00
rebel onion
adcdadd0f1 New translations strings.xml (Portuguese, Brazilian) 2024-05-12 21:55:27 -05:00
rebel onion
1d5b752c42 New translations strings.xml (Turkish) 2024-05-12 21:55:25 -05:00
rebel onion
b70629c592 New translations strings.xml (Polish) 2024-05-12 21:55:24 -05:00
rebel onion
3fb72e39d4 New translations strings.xml (Albanian) 2024-05-12 21:55:22 -05:00
rebel onion
69275c7fc7 New translations strings.xml (Urdu (Pakistan)) 2024-05-12 21:55:20 -05:00
rebel onion
b747f9fc62 New translations strings.xml (Dutch) 2024-05-12 21:55:19 -05:00
rebel onion
a66237d108 New translations strings.xml (Italian) 2024-05-12 21:55:17 -05:00
rebel onion
97d53b7850 New translations strings.xml (Bengali) 2024-05-12 21:55:16 -05:00
rebel onion
c9a2a93908 New translations strings.xml (Korean) 2024-05-12 21:55:15 -05:00
rebel onion
7509e117c7 New translations strings.xml (Greek) 2024-05-12 21:55:14 -05:00
rebel onion
899dd5cb52 New translations strings.xml (Assamese) 2024-05-12 21:55:13 -05:00
rebel onion
751c020935 New translations strings.xml (Hindi) 2024-05-12 21:55:12 -05:00
rebel onion
6a751a66cd New translations strings.xml (Spanish, Mexico) 2024-05-12 21:55:11 -05:00
rebel onion
c21355e1af New translations strings.xml (Chinese Simplified) 2024-05-12 21:55:09 -05:00
rebel onion
ba90993038 New translations strings.xml (Russian) 2024-05-12 21:55:08 -05:00
rebel onion
c3841e14e0 New translations strings.xml (Japanese) 2024-05-12 21:55:07 -05:00
rebel onion
4e20be58a1 New translations strings.xml (German) 2024-05-12 21:55:06 -05:00
rebel onion
418fd2565d New translations strings.xml (Arabic) 2024-05-12 21:55:05 -05:00
rebel onion
464578bdb8 New translations strings.xml (Spanish) 2024-05-12 21:55:04 -05:00
rebel onion
f4712ed3d6 New translations strings.xml (French) 2024-05-12 21:55:03 -05:00
rebel onion
b48b335afb New translations strings.xml (Arabic) 2024-05-12 19:10:23 -05:00
rebel onion
c77710fa95 New translations strings.xml (Turkish) 2024-05-12 11:50:15 -05:00
rebel onion
402116ff4c New translations strings.xml (Portuguese, Brazilian) 2024-05-12 09:29:36 -05:00
rebel onion
c362239d15 New translations strings.xml (Turkish) 2024-05-12 09:29:35 -05:00
rebel onion
bed2816fb8 New translations strings.xml (Polish) 2024-05-12 09:29:34 -05:00
rebel onion
fd5bdecf88 New translations strings.xml (Albanian) 2024-05-12 09:29:33 -05:00
rebel onion
a96a1ec7e2 New translations strings.xml (Urdu (Pakistan)) 2024-05-12 09:29:32 -05:00
rebel onion
4e588cd59a New translations strings.xml (Dutch) 2024-05-12 09:29:30 -05:00
rebel onion
354f223d7e New translations strings.xml (Italian) 2024-05-12 09:29:29 -05:00
rebel onion
eacd16331c New translations strings.xml (Bengali) 2024-05-12 09:29:28 -05:00
rebel onion
5b215fe72a New translations strings.xml (Korean) 2024-05-12 09:29:27 -05:00
rebel onion
7ba70f4d44 New translations strings.xml (Greek) 2024-05-12 09:29:26 -05:00
rebel onion
732b61c160 New translations strings.xml (Assamese) 2024-05-12 09:29:25 -05:00
rebel onion
19f23f4ea1 New translations strings.xml (Hindi) 2024-05-12 09:29:24 -05:00
rebel onion
8c8641c1a8 New translations strings.xml (Spanish, Mexico) 2024-05-12 09:29:23 -05:00
rebel onion
495157a5c3 New translations strings.xml (Chinese Simplified) 2024-05-12 09:29:22 -05:00
rebel onion
d0b1eb44b5 New translations strings.xml (Russian) 2024-05-12 09:29:21 -05:00
rebel onion
aea4081784 New translations strings.xml (Japanese) 2024-05-12 09:29:20 -05:00
rebel onion
a2b70003ec New translations strings.xml (German) 2024-05-12 09:29:19 -05:00
rebel onion
e4b37dde33 New translations strings.xml (Arabic) 2024-05-12 09:29:17 -05:00
rebel onion
8236c18239 New translations strings.xml (Spanish) 2024-05-12 09:29:16 -05:00
rebel onion
aefff852bc New translations strings.xml (French) 2024-05-12 09:29:15 -05:00
rebel onion
f23187ba10 New translations strings.xml (Portuguese, Brazilian) 2024-05-12 08:30:10 -05:00
rebel onion
bf6c35388f New translations strings.xml (Turkish) 2024-05-12 08:30:09 -05:00
rebel onion
99fe7170f8 New translations strings.xml (Polish) 2024-05-12 08:30:08 -05:00
rebel onion
488822e454 New translations strings.xml (Albanian) 2024-05-12 08:30:07 -05:00
rebel onion
a9dc432786 New translations strings.xml (Urdu (Pakistan)) 2024-05-12 08:30:06 -05:00
rebel onion
a9632a9024 New translations strings.xml (Dutch) 2024-05-12 08:30:05 -05:00
rebel onion
e26ada0623 New translations strings.xml (Italian) 2024-05-12 08:30:04 -05:00
rebel onion
05f5548747 New translations strings.xml (Bengali) 2024-05-12 08:30:03 -05:00
rebel onion
cb95978428 New translations strings.xml (Korean) 2024-05-12 08:30:01 -05:00
rebel onion
f3371acb3b New translations strings.xml (Greek) 2024-05-12 08:30:00 -05:00
rebel onion
7f930cf0c9 New translations strings.xml (Assamese) 2024-05-12 08:29:59 -05:00
rebel onion
3136511af3 New translations strings.xml (Hindi) 2024-05-12 08:29:58 -05:00
rebel onion
aff8fd93db New translations strings.xml (Spanish, Mexico) 2024-05-12 08:29:57 -05:00
rebel onion
f6a4181658 New translations strings.xml (Chinese Simplified) 2024-05-12 08:29:56 -05:00
rebel onion
760489f6f9 New translations strings.xml (Russian) 2024-05-12 08:29:55 -05:00
rebel onion
3407301b98 New translations strings.xml (Japanese) 2024-05-12 08:29:54 -05:00
rebel onion
399c6c877c New translations strings.xml (German) 2024-05-12 08:29:53 -05:00
rebel onion
df98acdc9a New translations strings.xml (Arabic) 2024-05-12 08:29:52 -05:00
rebel onion
ca9f976241 New translations strings.xml (Spanish) 2024-05-12 08:29:51 -05:00
rebel onion
1d715cf631 New translations strings.xml (French) 2024-05-12 08:29:50 -05:00
rebel onion
704c604ee4 New translations strings.xml (Portuguese, Brazilian) 2024-05-12 06:35:16 -05:00
rebel onion
8c8d9f15d2 New translations strings.xml (Turkish) 2024-05-12 06:35:15 -05:00
rebel onion
94c53a0d33 New translations strings.xml (Polish) 2024-05-12 06:35:14 -05:00
rebel onion
5e48094d77 New translations strings.xml (Albanian) 2024-05-12 06:35:13 -05:00
rebel onion
57042c593a New translations strings.xml (Urdu (Pakistan)) 2024-05-12 06:35:12 -05:00
rebel onion
e930a24f48 New translations strings.xml (Dutch) 2024-05-12 06:35:11 -05:00
rebel onion
7052c19af4 New translations strings.xml (Italian) 2024-05-12 06:35:10 -05:00
rebel onion
59bb4270fb New translations strings.xml (Bengali) 2024-05-12 06:35:09 -05:00
rebel onion
8906a9b93e New translations strings.xml (Korean) 2024-05-12 06:35:08 -05:00
rebel onion
201007a46a New translations strings.xml (Greek) 2024-05-12 06:35:07 -05:00
rebel onion
41aa4edb91 New translations strings.xml (Assamese) 2024-05-12 06:35:06 -05:00
rebel onion
5635dfd447 New translations strings.xml (Hindi) 2024-05-12 06:35:05 -05:00
rebel onion
f48ca609e5 New translations strings.xml (Spanish, Mexico) 2024-05-12 06:35:04 -05:00
rebel onion
2df8d8690b New translations strings.xml (Chinese Simplified) 2024-05-12 06:35:02 -05:00
rebel onion
2782f89a21 New translations strings.xml (Russian) 2024-05-12 06:35:01 -05:00
rebel onion
6e1a831f69 New translations strings.xml (Japanese) 2024-05-12 06:35:00 -05:00
rebel onion
08f189753a New translations strings.xml (German) 2024-05-12 06:34:59 -05:00
rebel onion
048c1b0cc7 New translations strings.xml (Arabic) 2024-05-12 06:34:58 -05:00
rebel onion
946ce1873b New translations strings.xml (Spanish) 2024-05-12 06:34:57 -05:00
rebel onion
01d4dc7c2e New translations strings.xml (French) 2024-05-12 06:34:56 -05:00
rebel onion
705abf68be New translations strings.xml (Greek) 2024-05-12 05:33:59 -05:00
rebel onion
13eeaf5321 New translations strings.xml (Portuguese, Brazilian) 2024-05-12 04:37:50 -05:00
rebel onion
0a160bfba5 New translations strings.xml (Turkish) 2024-05-12 04:37:49 -05:00
rebel onion
ee70ab63b6 New translations strings.xml (Polish) 2024-05-12 04:37:48 -05:00
rebel onion
6b6e49efd3 New translations strings.xml (Albanian) 2024-05-12 04:37:47 -05:00
rebel onion
949d88736c New translations strings.xml (Urdu (Pakistan)) 2024-05-12 04:37:46 -05:00
rebel onion
22c2bf33c0 New translations strings.xml (Dutch) 2024-05-12 04:37:45 -05:00
rebel onion
39a62977fe New translations strings.xml (Italian) 2024-05-12 04:37:44 -05:00
rebel onion
6aea176253 New translations strings.xml (Bengali) 2024-05-12 04:37:43 -05:00
rebel onion
45e088a635 New translations strings.xml (Korean) 2024-05-12 04:37:42 -05:00
rebel onion
113db63e2d New translations strings.xml (Greek) 2024-05-12 04:37:41 -05:00
rebel onion
8fa9d696b1 New translations strings.xml (Assamese) 2024-05-12 04:37:40 -05:00
rebel onion
f64e68beb7 New translations strings.xml (Hindi) 2024-05-12 04:37:39 -05:00
rebel onion
a19ee36bf8 New translations strings.xml (Spanish, Mexico) 2024-05-12 04:37:38 -05:00
rebel onion
f6cab9cc54 New translations strings.xml (Chinese Simplified) 2024-05-12 04:37:36 -05:00
rebel onion
8beebf67e2 New translations strings.xml (Russian) 2024-05-12 04:37:35 -05:00
rebel onion
ab9a7cfa5a New translations strings.xml (Japanese) 2024-05-12 04:37:35 -05:00
rebel onion
45277ecfef New translations strings.xml (German) 2024-05-12 04:37:33 -05:00
rebel onion
dcb08b00f9 New translations strings.xml (Arabic) 2024-05-12 04:37:32 -05:00
rebel onion
126f526f9f New translations strings.xml (Spanish) 2024-05-12 04:37:31 -05:00
rebel onion
c750cf78a4 New translations strings.xml (French) 2024-05-12 04:37:30 -05:00
rebel onion
4e369e372b New translations strings.xml (Arabic) 2024-05-12 03:35:12 -05:00
rebel onion
150010839d New translations strings.xml (Arabic) 2024-05-12 02:39:24 -05:00
rebel onion
1dc4dfdef8 New translations strings.xml (Turkish) 2024-05-11 13:23:35 -05:00
rebel onion
2175796c6d New translations strings.xml (Portuguese, Brazilian) 2024-05-11 12:19:36 -05:00
rebel onion
42ad2e5a3d New translations strings.xml (Polish) 2024-05-11 11:21:14 -05:00
rebel onion
ebe4ad6b96 New translations strings.xml (Dutch) 2024-05-11 11:21:13 -05:00
rebel onion
9f70c63544 New translations strings.xml (Korean) 2024-05-11 11:21:12 -05:00
rebel onion
afb7c6cd7f New translations strings.xml (Greek) 2024-05-11 11:21:11 -05:00
rebel onion
9114c2a8c2 New translations strings.xml (Hindi) 2024-05-11 11:21:10 -05:00
rebel onion
33e29746b7 New translations strings.xml (Russian) 2024-05-11 11:21:09 -05:00
rebel onion
b2900c5751 New translations strings.xml (Japanese) 2024-05-11 11:21:08 -05:00
rebel onion
f368c066d6 New translations strings.xml (German) 2024-05-11 11:21:07 -05:00
rebel onion
5129d6a698 New translations strings.xml (Spanish) 2024-05-11 11:21:06 -05:00
rebel onion
65f7b25668 New translations strings.xml (French) 2024-05-11 11:21:05 -05:00
rebel onion
b7b05be5af New translations strings.xml (Dutch) 2024-05-11 10:13:00 -05:00
rebel onion
863de3bfa4 New translations strings.xml (Italian) 2024-05-11 10:12:59 -05:00
rebel onion
e4a925969d New translations strings.xml (Assamese) 2024-05-11 10:12:58 -05:00
rebel onion
6be81dfbea New translations strings.xml (Chinese Simplified) 2024-05-11 10:12:57 -05:00
rebel onion
72709618b0 New translations strings.xml (Arabic) 2024-05-11 10:12:56 -05:00
rebel onion
28e968cad4 New translations strings.xml (Portuguese, Brazilian) 2024-05-11 08:29:53 -05:00
rebel onion
3ba5e319a5 New translations strings.xml (Turkish) 2024-05-11 08:29:51 -05:00
rebel onion
45ce1ce649 New translations strings.xml (Polish) 2024-05-11 08:29:50 -05:00
rebel onion
67998c5535 New translations strings.xml (Albanian) 2024-05-11 08:29:49 -05:00
rebel onion
3dfe673b93 New translations strings.xml (Urdu (Pakistan)) 2024-05-11 08:29:48 -05:00
rebel onion
1ebfea677b New translations strings.xml (Dutch) 2024-05-11 08:29:47 -05:00
rebel onion
ac8bb3a9cf New translations strings.xml (Italian) 2024-05-11 08:29:46 -05:00
rebel onion
30b0c06eb3 New translations strings.xml (Bengali) 2024-05-11 08:29:45 -05:00
rebel onion
1e3a5892e9 New translations strings.xml (Korean) 2024-05-11 08:29:44 -05:00
rebel onion
db94c1e5ee New translations strings.xml (Greek) 2024-05-11 08:29:43 -05:00
rebel onion
7a043abc64 New translations strings.xml (Assamese) 2024-05-11 08:29:42 -05:00
rebel onion
651684c8e4 New translations strings.xml (Hindi) 2024-05-11 08:29:40 -05:00
rebel onion
b50eebca22 New translations strings.xml (Spanish, Mexico) 2024-05-11 08:29:39 -05:00
rebel onion
8f8d293439 New translations strings.xml (Chinese Simplified) 2024-05-11 08:29:38 -05:00
rebel onion
3a6b97aed1 New translations strings.xml (Russian) 2024-05-11 08:29:37 -05:00
rebel onion
35bd0ab3bc New translations strings.xml (Japanese) 2024-05-11 08:29:36 -05:00
rebel onion
0a85ffb366 New translations strings.xml (German) 2024-05-11 08:29:35 -05:00
rebel onion
7bfbad11a0 New translations strings.xml (Arabic) 2024-05-11 08:29:34 -05:00
rebel onion
3b1339b60a New translations strings.xml (Spanish) 2024-05-11 08:29:33 -05:00
rebel onion
726db46420 New translations strings.xml (French) 2024-05-11 08:29:32 -05:00
rebel onion
45c9d3495f New translations strings.xml (Arabic) 2024-05-10 13:59:30 -05:00
rebel onion
0258c235d5 New translations strings.xml (Arabic) 2024-05-10 12:08:36 -05:00
rebel onion
c2f9d7abfe New translations strings.xml (Portuguese, Brazilian) 2024-05-09 08:01:30 -05:00
rebel onion
e53758abd9 New translations strings.xml (Portuguese, Brazilian) 2024-05-08 12:48:25 -05:00
rebel onion
4e6e61b736 New translations strings.xml (Portuguese, Brazilian) 2024-05-08 11:45:34 -05:00
rebel onion
7ac82a64c1 New translations strings.xml (Portuguese, Brazilian) 2024-05-08 10:31:20 -05:00
rebel onion
aef0d31d98 New translations strings.xml (Portuguese, Brazilian) 2024-05-07 20:28:58 -05:00
rebel onion
e521032291 New translations strings.xml (Portuguese, Brazilian) 2024-05-07 19:13:57 -05:00
rebel onion
6d34e1f594 New translations strings.xml (Portuguese, Brazilian) 2024-05-07 17:57:53 -05:00
rebel onion
a8bcc48530 New translations strings.xml (Portuguese, Brazilian) 2024-05-07 16:53:31 -05:00
rebel onion
52332fe578 New translations strings.xml (Portuguese, Brazilian) 2024-05-07 15:21:57 -05:00
rebel onion
9b42bdba7b New translations strings.xml (Portuguese, Brazilian) 2024-05-07 12:00:09 -05:00
rebel onion
73e073b5fe New translations strings.xml (Portuguese, Brazilian) 2024-05-07 11:04:47 -05:00
rebel onion
506b6383e2 New translations strings.xml (Portuguese, Brazilian) 2024-05-07 09:57:52 -05:00
rebel onion
fd4f675615 New translations strings.xml (Portuguese, Brazilian) 2024-05-07 06:31:31 -05:00
rebel onion
280e9cce25 New translations strings.xml (Portuguese, Brazilian) 2024-05-06 20:55:35 -05:00
rebel onion
498e857d07 New translations strings.xml (Portuguese, Brazilian) 2024-05-06 19:17:10 -05:00
rebel onion
46c80e8a37 New translations strings.xml (Portuguese, Brazilian) 2024-05-06 18:16:57 -05:00
rebel onion
8923a9dcc1 New translations strings.xml (Portuguese, Brazilian) 2024-05-06 17:19:03 -05:00
rebel onion
167a56c962 New translations strings.xml (Portuguese, Brazilian) 2024-05-06 16:16:08 -05:00
rebel onion
bd6bca881d New translations strings.xml (Portuguese, Brazilian) 2024-05-06 15:07:01 -05:00
rebel onion
60109beab1 New translations strings.xml (Portuguese, Brazilian) 2024-05-06 14:04:05 -05:00
rebel onion
b3026581d8 New translations strings.xml (Portuguese, Brazilian) 2024-05-06 13:00:46 -05:00
rebel onion
4705e9fd0f New translations strings.xml (Portuguese, Brazilian) 2024-05-06 12:02:32 -05:00
rebel onion
6a6514365d New translations strings.xml (Portuguese, Brazilian) 2024-05-06 10:49:07 -05:00
rebel onion
7679753b51 New translations strings.xml (Portuguese, Brazilian) 2024-05-06 09:50:30 -05:00
rebel onion
c27a009d02 New translations strings.xml (Portuguese, Brazilian) 2024-05-06 07:47:02 -05:00
rebel onion
3974dac2ee New translations strings.xml (Polish) 2024-05-06 03:12:06 -05:00
rebel onion
c8bb46178a New translations strings.xml (Albanian) 2024-05-06 03:12:05 -05:00
rebel onion
2c92d4afec New translations strings.xml (Dutch) 2024-05-06 03:12:04 -05:00
rebel onion
356c83eb5a New translations strings.xml (Italian) 2024-05-06 03:12:03 -05:00
rebel onion
425f8e4758 New translations strings.xml (Korean) 2024-05-06 03:12:02 -05:00
rebel onion
d389b54a40 New translations strings.xml (Greek) 2024-05-06 03:12:01 -05:00
rebel onion
9ec9867bf5 New translations strings.xml (Chinese Simplified) 2024-05-06 03:11:59 -05:00
rebel onion
73f7552f28 New translations strings.xml (Russian) 2024-05-06 03:11:58 -05:00
rebel onion
8349936447 New translations strings.xml (Japanese) 2024-05-06 03:11:57 -05:00
rebel onion
4b98ddcf21 New translations strings.xml (French) 2024-05-06 03:11:56 -05:00
rebel onion
f1b041dd47 New translations strings.xml (Spanish) 2024-05-06 01:39:29 -05:00
rebel onion
766c77f32b New translations strings.xml (Portuguese, Brazilian) 2024-05-05 20:12:47 -05:00
rebel onion
1f051b2ef0 New translations strings.xml (Turkish) 2024-05-05 16:37:46 -05:00
rebel onion
3676e52899 New translations strings.xml (Assamese) 2024-05-05 14:08:45 -05:00
rebel onion
4ad70054ae New translations strings.xml (Hindi) 2024-05-05 14:08:44 -05:00
rebel onion
dbd1ef9ff8 New translations strings.xml (German) 2024-05-05 12:11:59 -05:00
rebel onion
803a9843ea New translations strings.xml (Turkish) 2024-05-04 16:35:23 -05:00
rebel onion
ae1a98211a New translations strings.xml (Turkish) 2024-05-04 15:39:13 -05:00
rebel onion
6a3e0dabbd New translations strings.xml (Polish) 2024-05-04 15:39:12 -05:00
rebel onion
7900b7b44e New translations strings.xml (Albanian) 2024-05-04 15:39:10 -05:00
rebel onion
16a8a37bd4 New translations strings.xml (Urdu (Pakistan)) 2024-05-04 15:39:09 -05:00
rebel onion
dee2b68a8a New translations strings.xml (Dutch) 2024-05-04 15:39:08 -05:00
rebel onion
4182f7ca04 New translations strings.xml (Italian) 2024-05-04 15:39:07 -05:00
rebel onion
d29d3c6e2a New translations strings.xml (Bengali) 2024-05-04 15:39:06 -05:00
rebel onion
3522f3e7fd New translations strings.xml (Korean) 2024-05-04 15:39:05 -05:00
rebel onion
1f46ac6e32 New translations strings.xml (Greek) 2024-05-04 15:39:04 -05:00
rebel onion
7de46bd778 New translations strings.xml (Assamese) 2024-05-04 15:39:03 -05:00
rebel onion
40a4c23839 New translations strings.xml (Hindi) 2024-05-04 15:39:02 -05:00
rebel onion
c32b3312ea New translations strings.xml (Spanish, Mexico) 2024-05-04 15:39:01 -05:00
rebel onion
8fa0a10103 New translations strings.xml (Chinese Simplified) 2024-05-04 15:39:00 -05:00
rebel onion
6b4028a456 New translations strings.xml (Russian) 2024-05-04 15:38:59 -05:00
rebel onion
2f780447b6 New translations strings.xml (Japanese) 2024-05-04 15:38:58 -05:00
rebel onion
ed4164d03e New translations strings.xml (German) 2024-05-04 15:38:57 -05:00
rebel onion
fef05061b4 New translations strings.xml (Arabic) 2024-05-04 15:38:56 -05:00
rebel onion
8fb0d9ffa1 New translations strings.xml (Spanish) 2024-05-04 15:38:55 -05:00
rebel onion
2c17e80367 New translations strings.xml (French) 2024-05-04 15:38:54 -05:00
rebel onion
dcdcc3432b New translations strings.xml (Turkish) 2024-05-04 14:33:40 -05:00
rebel onion
42d719d3b5 New translations strings.xml (Polish) 2024-05-04 14:33:39 -05:00
rebel onion
8e019e8ff9 New translations strings.xml (Albanian) 2024-05-04 14:33:38 -05:00
rebel onion
2720887870 New translations strings.xml (Urdu (Pakistan)) 2024-05-04 14:33:37 -05:00
rebel onion
69fe1670c3 New translations strings.xml (Dutch) 2024-05-04 14:33:36 -05:00
rebel onion
1fcf0bf3e6 New translations strings.xml (Italian) 2024-05-04 14:33:35 -05:00
rebel onion
86c0d671e4 New translations strings.xml (Bengali) 2024-05-04 14:33:34 -05:00
rebel onion
338a450746 New translations strings.xml (Korean) 2024-05-04 14:33:33 -05:00
rebel onion
c84b1effba New translations strings.xml (Greek) 2024-05-04 14:33:32 -05:00
rebel onion
8be2d6a7d0 New translations strings.xml (Assamese) 2024-05-04 14:33:31 -05:00
rebel onion
8830b2b08a New translations strings.xml (Hindi) 2024-05-04 14:33:29 -05:00
rebel onion
f4cd9b78b4 New translations strings.xml (Spanish, Mexico) 2024-05-04 14:33:28 -05:00
rebel onion
179c77f09c New translations strings.xml (Chinese Simplified) 2024-05-04 14:33:27 -05:00
rebel onion
911fd058a6 New translations strings.xml (Russian) 2024-05-04 14:33:26 -05:00
rebel onion
8d8def030a New translations strings.xml (Japanese) 2024-05-04 14:33:25 -05:00
rebel onion
ac89630e11 New translations strings.xml (German) 2024-05-04 14:33:24 -05:00
rebel onion
f05e1f1693 New translations strings.xml (Arabic) 2024-05-04 14:33:23 -05:00
rebel onion
e59ab24424 New translations strings.xml (Spanish) 2024-05-04 14:33:22 -05:00
rebel onion
4254320fc9 New translations strings.xml (French) 2024-05-04 14:33:21 -05:00
rebel onion
f5ff73d87d New translations strings.xml (Polish) 2024-05-04 04:48:07 -05:00
rebel onion
ed5ffbd813 New translations strings.xml (Turkish) 2024-05-04 03:45:22 -05:00
rebel onion
afc8a2f76d New translations strings.xml (Albanian) 2024-05-04 03:45:20 -05:00
rebel onion
8f8561d175 New translations strings.xml (Dutch) 2024-05-04 03:45:19 -05:00
rebel onion
36b54ad384 New translations strings.xml (Korean) 2024-05-04 03:45:18 -05:00
rebel onion
668b7ca1b2 New translations strings.xml (Greek) 2024-05-04 03:45:17 -05:00
rebel onion
9bc48c16c7 New translations strings.xml (Chinese Simplified) 2024-05-04 03:45:16 -05:00
rebel onion
a980793630 New translations strings.xml (Russian) 2024-05-04 03:45:15 -05:00
rebel onion
94a2f544d5 New translations strings.xml (Japanese) 2024-05-04 03:45:14 -05:00
rebel onion
3ad3c163ed New translations strings.xml (German) 2024-05-04 03:45:13 -05:00
rebel onion
714a92af06 New translations strings.xml (French) 2024-05-04 03:45:11 -05:00
rebel onion
c7b1879ba9 New translations strings.xml (Assamese) 2024-05-04 02:11:30 -05:00
rebel onion
64a53dccd1 New translations strings.xml (Hindi) 2024-05-04 02:11:29 -05:00
rebel onion
15d0e3d702 New translations strings.xml (Turkish) 2024-05-03 15:03:19 -05:00
rebel onion
d3ded0c897 New translations strings.xml (Polish) 2024-05-03 15:03:18 -05:00
rebel onion
d473d3fe95 New translations strings.xml (Albanian) 2024-05-03 15:03:17 -05:00
rebel onion
9688633de9 New translations strings.xml (Urdu (Pakistan)) 2024-05-03 15:03:16 -05:00
rebel onion
b4f860990d New translations strings.xml (Dutch) 2024-05-03 15:03:14 -05:00
rebel onion
e7771046d3 New translations strings.xml (Italian) 2024-05-03 15:03:13 -05:00
rebel onion
ce86b82eed New translations strings.xml (Bengali) 2024-05-03 15:03:12 -05:00
rebel onion
3a3e470ac8 New translations strings.xml (Korean) 2024-05-03 15:03:11 -05:00
rebel onion
029807ec6b New translations strings.xml (Greek) 2024-05-03 15:03:10 -05:00
rebel onion
affdd0454a New translations strings.xml (Assamese) 2024-05-03 15:03:08 -05:00
rebel onion
fd3172e5a9 New translations strings.xml (Hindi) 2024-05-03 15:03:07 -05:00
rebel onion
2db8f8f3ff New translations strings.xml (Spanish, Mexico) 2024-05-03 15:03:06 -05:00
rebel onion
78c2a92949 New translations strings.xml (Chinese Simplified) 2024-05-03 15:03:05 -05:00
rebel onion
75cd2e1422 New translations strings.xml (Russian) 2024-05-03 15:03:04 -05:00
rebel onion
1231089989 New translations strings.xml (Japanese) 2024-05-03 15:03:03 -05:00
rebel onion
86f14fc006 New translations strings.xml (German) 2024-05-03 15:03:01 -05:00
rebel onion
f9966694b8 New translations strings.xml (Arabic) 2024-05-03 15:03:00 -05:00
rebel onion
737012db0f New translations strings.xml (Spanish) 2024-05-03 15:02:59 -05:00
rebel onion
f3d4bdcc3a New translations strings.xml (French) 2024-05-03 15:02:58 -05:00
rebel onion
5863d697be New translations strings.xml (Turkish) 2024-05-03 07:15:26 -05:00
rebel onion
29627a396b New translations strings.xml (Turkish) 2024-05-03 05:27:06 -05:00
rebel onion
ab72d6c3ef New translations strings.xml (Korean) 2024-05-03 05:27:05 -05:00
rebel onion
77f2e7f756 New translations strings.xml (Assamese) 2024-05-03 05:27:04 -05:00
rebel onion
83cbc23e71 New translations strings.xml (Hindi) 2024-05-03 05:27:02 -05:00
rebel onion
01d1453453 New translations strings.xml (Chinese Simplified) 2024-05-03 05:27:01 -05:00
rebel onion
0b733a7743 New translations strings.xml (Russian) 2024-05-03 05:27:00 -05:00
rebel onion
afa99d3034 New translations strings.xml (Japanese) 2024-05-03 05:26:59 -05:00
rebel onion
67f63f6afe New translations strings.xml (Turkish) 2024-05-03 03:35:25 -05:00
rebel onion
257a3ecb40 New translations strings.xml (Turkish) 2024-05-03 02:05:39 -05:00
rebel onion
69283ec1e5 New translations strings.xml (Turkish) 2024-05-03 00:55:28 -05:00
rebel onion
3fa5e0c105 New translations strings.xml (Turkish) 2024-05-02 16:41:14 -05:00
rebel onion
45fa72005b New translations strings.xml (French) 2024-05-02 15:30:51 -05:00
rebel onion
7f1681944e New translations strings.xml (Turkish) 2024-05-02 11:34:49 -05:00
rebel onion
7a8c0ba119 New translations strings.xml (Turkish) 2024-05-02 09:14:45 -05:00
rebel onion
bc0b86652f New translations strings.xml (Turkish) 2024-05-02 07:34:20 -05:00
rebel onion
6174cdabde New translations strings.xml (Turkish) 2024-05-02 06:31:48 -05:00
rebel onion
83b002cb91 New translations strings.xml (Turkish) 2024-05-02 05:28:48 -05:00
rebel onion
80f06334aa New translations strings.xml (Turkish) 2024-05-02 03:25:50 -05:00
rebel onion
9125cc3af1 New translations strings.xml (Assamese) 2024-05-02 00:29:49 -05:00
rebel onion
308bba8ca2 New translations strings.xml (Turkish) 2024-05-01 22:07:13 -05:00
rebel onion
5659a33a7c New translations strings.xml (Polish) 2024-05-01 22:07:12 -05:00
rebel onion
7d8144a1c3 New translations strings.xml (Albanian) 2024-05-01 22:07:11 -05:00
rebel onion
fbec5ec038 New translations strings.xml (Urdu (Pakistan)) 2024-05-01 22:07:10 -05:00
rebel onion
bc2f283ea8 New translations strings.xml (Dutch) 2024-05-01 22:07:08 -05:00
rebel onion
3f822ae3eb New translations strings.xml (Italian) 2024-05-01 22:07:07 -05:00
rebel onion
bc9ab7c639 New translations strings.xml (Bengali) 2024-05-01 22:07:05 -05:00
rebel onion
fa153e57ce New translations strings.xml (Korean) 2024-05-01 22:07:04 -05:00
rebel onion
0516c4fb9a New translations strings.xml (Greek) 2024-05-01 22:07:03 -05:00
rebel onion
3e9253a78e New translations strings.xml (Assamese) 2024-05-01 22:07:01 -05:00
rebel onion
9dbb221082 New translations strings.xml (Hindi) 2024-05-01 22:07:00 -05:00
rebel onion
fd3f0a22e2 New translations strings.xml (Spanish, Mexico) 2024-05-01 22:06:59 -05:00
rebel onion
2d05133150 New translations strings.xml (Chinese Simplified) 2024-05-01 22:06:58 -05:00
rebel onion
4fb65c7090 New translations strings.xml (Russian) 2024-05-01 22:06:57 -05:00
rebel onion
e7c8d17097 New translations strings.xml (Japanese) 2024-05-01 22:06:55 -05:00
rebel onion
ddacc4ff4b New translations strings.xml (German) 2024-05-01 22:06:54 -05:00
rebel onion
011ccf495e New translations strings.xml (Arabic) 2024-05-01 22:06:53 -05:00
rebel onion
460b430fa3 New translations strings.xml (Spanish) 2024-05-01 22:06:52 -05:00
rebel onion
fef54c8599 New translations strings.xml (French) 2024-05-01 22:06:51 -05:00
rebel onion
f2535a4b0c New translations strings.xml (Turkish) 2024-05-01 21:03:49 -05:00
rebel onion
a876d967b7 New translations strings.xml (Turkish) 2024-05-01 19:35:04 -05:00
rebel onion
8a3c448712 New translations strings.xml (Turkish) 2024-05-01 18:34:26 -05:00
rebel onion
ac199cf65a New translations strings.xml (Turkish) 2024-05-01 17:35:43 -05:00
rebel onion
e272c8b7f3 New translations strings.xml (Turkish) 2024-05-01 16:23:14 -05:00
rebel onion
b86b4ff67f New translations strings.xml (Turkish) 2024-05-01 15:15:24 -05:00
rebel onion
15233b73b6 New translations strings.xml (Polish) 2024-05-01 15:15:23 -05:00
rebel onion
75deddff97 New translations strings.xml (Albanian) 2024-05-01 15:15:22 -05:00
rebel onion
7817706d73 New translations strings.xml (Urdu (Pakistan)) 2024-05-01 15:15:21 -05:00
rebel onion
15baf7f5dc New translations strings.xml (Dutch) 2024-05-01 15:15:20 -05:00
rebel onion
b4b5228d00 New translations strings.xml (Italian) 2024-05-01 15:15:18 -05:00
rebel onion
52312c5450 New translations strings.xml (Bengali) 2024-05-01 15:15:17 -05:00
rebel onion
ec837e3877 New translations strings.xml (Korean) 2024-05-01 15:15:16 -05:00
rebel onion
b5bfd0831d New translations strings.xml (Greek) 2024-05-01 15:15:14 -05:00
rebel onion
3bc80163e3 New translations strings.xml (Assamese) 2024-05-01 15:15:13 -05:00
rebel onion
6879a16b8c New translations strings.xml (Hindi) 2024-05-01 15:15:12 -05:00
rebel onion
ea18684ccd New translations strings.xml (Spanish, Mexico) 2024-05-01 15:15:11 -05:00
rebel onion
9ccaf2c7e5 New translations strings.xml (Chinese Simplified) 2024-05-01 15:15:10 -05:00
rebel onion
329c3b1320 New translations strings.xml (Russian) 2024-05-01 15:15:08 -05:00
rebel onion
1ca8af3c4a New translations strings.xml (Japanese) 2024-05-01 15:15:07 -05:00
rebel onion
a9e5167ccd New translations strings.xml (German) 2024-05-01 15:15:05 -05:00
rebel onion
46b3567fc9 New translations strings.xml (Arabic) 2024-05-01 15:15:04 -05:00
rebel onion
724ce1e509 New translations strings.xml (Spanish) 2024-05-01 15:15:03 -05:00
rebel onion
afc91edbb2 New translations strings.xml (French) 2024-05-01 15:15:02 -05:00
rebel onion
850921b289 New translations strings.xml (Albanian) 2024-05-01 13:29:55 -05:00
rebel onion
133af98ad1 New translations strings.xml (Urdu (Pakistan)) 2024-05-01 13:29:54 -05:00
rebel onion
4b6a88ac32 New translations strings.xml (Dutch) 2024-05-01 13:29:53 -05:00
rebel onion
22afe4d49f New translations strings.xml (Italian) 2024-05-01 13:29:52 -05:00
rebel onion
21b1e0d7f5 New translations strings.xml (Bengali) 2024-05-01 13:29:50 -05:00
rebel onion
6ae813378c New translations strings.xml (Korean) 2024-05-01 13:29:49 -05:00
rebel onion
99c1902c1e New translations strings.xml (Greek) 2024-05-01 13:29:48 -05:00
rebel onion
883d8efe9b New translations strings.xml (Assamese) 2024-05-01 13:29:47 -05:00
rebel onion
dc72e1d18f New translations strings.xml (Hindi) 2024-05-01 13:29:46 -05:00
rebel onion
55a9290c44 New translations strings.xml (Spanish, Mexico) 2024-05-01 13:29:45 -05:00
rebel onion
b25d072dab New translations strings.xml (Chinese Simplified) 2024-05-01 13:29:44 -05:00
rebel onion
72af12b41e New translations strings.xml (Russian) 2024-05-01 13:29:42 -05:00
rebel onion
66919726ca New translations strings.xml (Japanese) 2024-05-01 13:29:41 -05:00
rebel onion
f91ea98d7e New translations strings.xml (German) 2024-05-01 13:29:40 -05:00
rebel onion
f37444d50a New translations strings.xml (Arabic) 2024-05-01 13:29:39 -05:00
rebel onion
43580be7e8 New translations strings.xml (Spanish) 2024-05-01 13:29:38 -05:00
rebel onion
a6dd46d129 New translations strings.xml (French) 2024-05-01 13:29:36 -05:00
rebel onion
757bd5aa9f New translations strings.xml (Arabic) 2024-05-01 01:00:37 -05:00
rebel onion
e16ea086a6 New translations strings.xml (Albanian) 2024-04-30 10:23:47 -05:00
rebel onion
4c876ac6c7 New translations strings.xml (Urdu (Pakistan)) 2024-04-30 10:23:46 -05:00
rebel onion
cbff202864 New translations strings.xml (Dutch) 2024-04-30 10:23:44 -05:00
rebel onion
3ab3f9bb1b New translations strings.xml (Italian) 2024-04-30 10:23:43 -05:00
rebel onion
7a382c24af New translations strings.xml (Bengali) 2024-04-30 10:23:42 -05:00
rebel onion
94ac5f6689 New translations strings.xml (Korean) 2024-04-30 10:23:41 -05:00
rebel onion
f35fa44c8b New translations strings.xml (Greek) 2024-04-30 10:23:40 -05:00
rebel onion
2acb388bdd New translations strings.xml (Assamese) 2024-04-30 10:23:39 -05:00
rebel onion
4f79cf0b8c New translations strings.xml (Hindi) 2024-04-30 10:23:38 -05:00
rebel onion
e593341696 New translations strings.xml (Spanish, Mexico) 2024-04-30 10:23:36 -05:00
rebel onion
a48e5a6ea0 New translations strings.xml (Chinese Simplified) 2024-04-30 10:23:35 -05:00
rebel onion
f8a78d1604 New translations strings.xml (Russian) 2024-04-30 10:23:34 -05:00
rebel onion
2f889a8704 New translations strings.xml (Japanese) 2024-04-30 10:23:33 -05:00
rebel onion
4e4766497d New translations strings.xml (German) 2024-04-30 10:23:32 -05:00
rebel onion
032bf88d55 New translations strings.xml (Arabic) 2024-04-30 10:23:30 -05:00
rebel onion
8ea84f7d96 New translations strings.xml (Spanish) 2024-04-30 10:23:29 -05:00
rebel onion
a00cf15fa4 New translations strings.xml (French) 2024-04-30 10:23:28 -05:00
rebel onion
155f570f17 New translations strings.xml (Assamese) 2024-04-29 03:35:57 -05:00
rebel onion
d7485623be New translations strings.xml (Hindi) 2024-04-29 03:35:56 -05:00
rebel onion
c4ef64472d New translations strings.xml (Spanish, Mexico) 2024-04-28 22:59:58 -05:00
rebel onion
8b986f76fa New translations strings.xml (Arabic) 2024-04-28 11:21:50 -05:00
rebel onion
66ea2ff9d7 New translations strings.xml (Arabic) 2024-04-28 09:57:13 -05:00
rebel onion
34f6de4efd New translations strings.xml (Albanian) 2024-04-27 15:59:43 -05:00
rebel onion
cf58724481 New translations strings.xml (Urdu (Pakistan)) 2024-04-27 15:59:42 -05:00
rebel onion
1db981ae20 New translations strings.xml (Dutch) 2024-04-27 15:59:41 -05:00
rebel onion
22d98b8991 New translations strings.xml (Italian) 2024-04-27 15:59:40 -05:00
rebel onion
ce77a63ed8 New translations strings.xml (Bengali) 2024-04-27 15:59:39 -05:00
rebel onion
b307f0aa00 New translations strings.xml (Korean) 2024-04-27 15:59:38 -05:00
rebel onion
94ac7c8bf2 New translations strings.xml (Greek) 2024-04-27 15:59:37 -05:00
rebel onion
3de880dd3a New translations strings.xml (Assamese) 2024-04-27 15:59:36 -05:00
rebel onion
5443d7c61a New translations strings.xml (Hindi) 2024-04-27 15:59:35 -05:00
rebel onion
8ec7a8139f New translations strings.xml (Spanish, Mexico) 2024-04-27 15:59:34 -05:00
rebel onion
efa6d077c1 New translations strings.xml (Chinese Simplified) 2024-04-27 15:59:33 -05:00
rebel onion
fa71c538c5 New translations strings.xml (Russian) 2024-04-27 15:59:32 -05:00
rebel onion
a983b3c318 New translations strings.xml (Japanese) 2024-04-27 15:59:31 -05:00
rebel onion
1e9922a62e New translations strings.xml (German) 2024-04-27 15:59:30 -05:00
rebel onion
3e24113e1b New translations strings.xml (Arabic) 2024-04-27 15:59:29 -05:00
rebel onion
d02b9cfab5 New translations strings.xml (Spanish) 2024-04-27 15:59:28 -05:00
rebel onion
8c33ac660d New translations strings.xml (French) 2024-04-27 15:59:27 -05:00
rebel onion
22f6f2d7b5 New translations strings.xml (Italian) 2024-04-27 14:56:24 -05:00
rebel onion
bf1e35bba0 New translations strings.xml (Arabic) 2024-04-27 13:52:43 -05:00
rebel onion
df48a08fe8 New translations strings.xml (Arabic) 2024-04-27 12:54:29 -05:00
rebel onion
c6258a6174 New translations strings.xml (Arabic) 2024-04-26 21:26:04 -05:00
rebel onion
a38c2086d0 New translations strings.xml (Arabic) 2024-04-26 19:49:18 -05:00
rebel onion
4db3876129 New translations strings.xml (French) 2024-04-26 15:51:41 -05:00
rebel onion
1c5782ebec New translations strings.xml (French) 2024-04-26 14:56:12 -05:00
rebel onion
03856c1827 New translations strings.xml (Assamese) 2024-04-26 12:27:53 -05:00
rebel onion
bcda9d7a9b New translations strings.xml (Hindi) 2024-04-26 12:27:52 -05:00
rebel onion
c401b1bde7 New translations strings.xml (Albanian) 2024-04-26 10:46:05 -05:00
rebel onion
31b0cfe1b6 New translations strings.xml (Urdu (Pakistan)) 2024-04-26 10:46:04 -05:00
rebel onion
f4f411ab75 New translations strings.xml (Dutch) 2024-04-26 10:46:03 -05:00
rebel onion
7856855de5 New translations strings.xml (Italian) 2024-04-26 10:46:02 -05:00
rebel onion
ee55ca3e37 New translations strings.xml (Bengali) 2024-04-26 10:46:00 -05:00
rebel onion
a40a9e9be6 New translations strings.xml (Korean) 2024-04-26 10:45:59 -05:00
rebel onion
e45f0ab83f New translations strings.xml (Greek) 2024-04-26 10:45:58 -05:00
rebel onion
fff90c3904 New translations strings.xml (Assamese) 2024-04-26 10:45:57 -05:00
rebel onion
d06effc960 New translations strings.xml (Hindi) 2024-04-26 10:45:56 -05:00
rebel onion
8d08743360 New translations strings.xml (Spanish, Mexico) 2024-04-26 10:45:54 -05:00
rebel onion
7c77c8a229 New translations strings.xml (Chinese Simplified) 2024-04-26 10:45:53 -05:00
rebel onion
9b683dbb6a New translations strings.xml (Russian) 2024-04-26 10:45:52 -05:00
rebel onion
4328f0f58e New translations strings.xml (Japanese) 2024-04-26 10:45:51 -05:00
rebel onion
062da007a8 New translations strings.xml (German) 2024-04-26 10:45:50 -05:00
rebel onion
e31b4a603d New translations strings.xml (Arabic) 2024-04-26 10:45:48 -05:00
rebel onion
196b7497e4 New translations strings.xml (Spanish) 2024-04-26 10:45:47 -05:00
rebel onion
8cfdce6e1b New translations strings.xml (French) 2024-04-26 10:45:46 -05:00
rebel onion
8ed6d69da1 New translations strings.xml (Korean) 2024-04-26 09:16:37 -05:00
rebel onion
1d62aa80a0 New translations strings.xml (Japanese) 2024-04-26 09:16:36 -05:00
rebel onion
b81dea93ab New translations strings.xml (German) 2024-04-26 09:16:34 -05:00
rebel onion
364a1588a2 New translations strings.xml (Hindi) 2024-04-26 02:27:53 -05:00
rebel onion
9a88f0b09a New translations strings.xml (Arabic) 2024-04-25 16:16:13 -05:00
rebel onion
92a614b4b5 New translations strings.xml (Italian) 2024-04-25 13:32:56 -05:00
rebel onion
f4262f39c4 New translations strings.xml (Italian) 2024-04-25 12:01:03 -05:00
rebel onion
f17af3ca50 New translations strings.xml (Arabic) 2024-04-25 10:48:07 -05:00
rebel onion
261ef768de New translations strings.xml (Arabic) 2024-04-25 08:55:46 -05:00
rebel onion
7fba2bdcba New translations strings.xml (German) 2024-04-24 18:37:14 -05:00
rebel onion
7d760b9f42 New translations strings.xml (German) 2024-04-24 17:22:24 -05:00
rebel onion
a3a65d7a3b New translations strings.xml (Hindi) 2024-04-24 14:21:37 -05:00
rebel onion
24fc2c2ce1 New translations strings.xml (Bengali) 2024-04-24 11:17:10 -05:00
rebel onion
796003063f New translations strings.xml (Arabic) 2024-04-24 07:51:27 -05:00
rebel onion
53412c31b6 New translations strings.xml (Arabic) 2024-04-24 06:19:17 -05:00
rebel onion
023c19ee7c New translations strings.xml (Spanish, Mexico) 2024-04-23 19:53:01 -05:00
rebel onion
532da69263 New translations strings.xml (Chinese Simplified) 2024-04-23 19:53:00 -05:00
rebel onion
ec63af57e6 New translations strings.xml (Chinese Simplified) 2024-04-23 18:11:35 -05:00
rebel onion
56ca158f29 New translations strings.xml (Urdu (Pakistan)) 2024-04-23 13:13:46 -05:00
rebel onion
e143c87bfd New translations strings.xml (Urdu (Pakistan)) 2024-04-23 11:32:35 -05:00
rebel onion
3a03e5040e New translations strings.xml (Assamese) 2024-04-23 03:53:59 -05:00
rebel onion
c147658497 New translations strings.xml (Spanish, Mexico) 2024-04-22 18:45:56 -05:00
rebel onion
bc4b354421 New translations strings.xml (French) 2024-04-22 16:33:04 -05:00
rebel onion
dd60a6ea88 New translations strings.xml (Greek) 2024-04-22 15:22:44 -05:00
rebel onion
cab18a8347 New translations strings.xml (Albanian) 2024-04-22 14:10:31 -05:00
rebel onion
7a7aaba633 New translations strings.xml (Urdu (Pakistan)) 2024-04-22 14:10:30 -05:00
rebel onion
2cfa16f328 New translations strings.xml (Dutch) 2024-04-22 14:10:29 -05:00
rebel onion
a73db6b36d New translations strings.xml (Italian) 2024-04-22 14:10:27 -05:00
rebel onion
2c859734a3 New translations strings.xml (Bengali) 2024-04-22 14:10:26 -05:00
rebel onion
4dac190cbd New translations strings.xml (Korean) 2024-04-22 14:10:25 -05:00
rebel onion
8136f8eff6 New translations strings.xml (Greek) 2024-04-22 14:10:24 -05:00
rebel onion
13959496e8 New translations strings.xml (Assamese) 2024-04-22 14:10:23 -05:00
rebel onion
e079a06796 New translations strings.xml (Hindi) 2024-04-22 14:10:22 -05:00
rebel onion
1ece2bd8e2 New translations strings.xml (Spanish, Mexico) 2024-04-22 14:10:20 -05:00
rebel onion
93e9f0cc1c New translations strings.xml (Chinese Simplified) 2024-04-22 14:10:19 -05:00
rebel onion
962f065410 New translations strings.xml (Russian) 2024-04-22 14:10:18 -05:00
rebel onion
ffd609ae8e New translations strings.xml (Japanese) 2024-04-22 14:10:17 -05:00
rebel onion
f047ae115c New translations strings.xml (German) 2024-04-22 14:10:16 -05:00
rebel onion
036dae1f5f New translations strings.xml (Arabic) 2024-04-22 14:10:15 -05:00
rebel onion
cff63e6469 New translations strings.xml (Spanish) 2024-04-22 14:10:14 -05:00
rebel onion
f9be2d1bec New translations strings.xml (French) 2024-04-22 14:10:13 -05:00
rebel onion
7046766386 New translations strings.xml (Arabic) 2024-04-22 10:46:37 -05:00
rebel onion
8b4c5498b9 New translations strings.xml (Assamese) 2024-04-22 02:12:57 -05:00
rebel onion
af62fab676 New translations strings.xml (Hindi) 2024-04-22 02:12:56 -05:00
rebel onion
defe4749f0 New translations strings.xml (Spanish, Mexico) 2024-04-22 00:35:15 -05:00
rebel onion
ff2086e4c9 New translations strings.xml (Spanish, Mexico) 2024-04-21 22:16:46 -05:00
rebel onion
a3ccf78bf7 New translations strings.xml (Arabic) 2024-04-21 20:16:54 -05:00
rebel onion
b1285b61ef New translations strings.xml (Arabic) 2024-04-21 19:13:33 -05:00
rebel onion
9cc80f0dda New translations strings.xml (French) 2024-04-21 16:50:29 -05:00
rebel onion
1f38eed471 New translations strings.xml (Italian) 2024-04-21 15:52:31 -05:00
rebel onion
d8c7856966 New translations strings.xml (Spanish, Mexico) 2024-04-21 15:52:30 -05:00
rebel onion
420c16ad8c New translations strings.xml (French) 2024-04-21 15:52:29 -05:00
rebel onion
a07e5eeddb New translations strings.xml (Spanish, Mexico) 2024-04-21 14:14:24 -05:00
rebel onion
250179ee59 New translations strings.xml (French) 2024-04-21 14:14:23 -05:00
rebel onion
d2279aa36b New translations strings.xml (Spanish, Mexico) 2024-04-21 13:17:21 -05:00
rebel onion
fbd98588f2 New translations strings.xml (Arabic) 2024-04-21 13:17:20 -05:00
rebel onion
877c321664 New translations strings.xml (French) 2024-04-21 13:17:19 -05:00
rebel onion
c6efa74d23 New translations strings.xml (Greek) 2024-04-21 12:13:02 -05:00
rebel onion
9f196828ef New translations strings.xml (Arabic) 2024-04-21 12:13:01 -05:00
rebel onion
2eb72ad756 New translations strings.xml (French) 2024-04-21 12:13:00 -05:00
rebel onion
590be6b406 New translations strings.xml (Greek) 2024-04-21 11:02:32 -05:00
rebel onion
5201752c8e New translations strings.xml (Arabic) 2024-04-21 11:02:31 -05:00
rebel onion
92691578dd New translations strings.xml (Greek) 2024-04-21 08:37:19 -05:00
rebel onion
cbc3172627 New translations strings.xml (Albanian) 2024-04-21 07:39:35 -05:00
rebel onion
fac4729dfe New translations strings.xml (Urdu (Pakistan)) 2024-04-21 07:39:34 -05:00
rebel onion
ca6fcb5441 New translations strings.xml (Dutch) 2024-04-21 07:39:33 -05:00
rebel onion
3b12d31f1b New translations strings.xml (Italian) 2024-04-21 07:39:32 -05:00
rebel onion
d93daf50fd New translations strings.xml (Bengali) 2024-04-21 07:39:31 -05:00
rebel onion
8ec35f5d5f New translations strings.xml (Korean) 2024-04-21 07:39:30 -05:00
rebel onion
d61e1ca97e New translations strings.xml (Greek) 2024-04-21 07:39:29 -05:00
rebel onion
b284d9cb74 New translations strings.xml (Assamese) 2024-04-21 07:39:28 -05:00
rebel onion
ef9e6e9e6c New translations strings.xml (Hindi) 2024-04-21 07:39:27 -05:00
rebel onion
f558dc5a5b New translations strings.xml (Spanish, Mexico) 2024-04-21 07:39:26 -05:00
rebel onion
544e5cd964 New translations strings.xml (Chinese Simplified) 2024-04-21 07:39:25 -05:00
rebel onion
3dfb48c7d7 New translations strings.xml (Russian) 2024-04-21 07:39:24 -05:00
rebel onion
ecd7f2fefd New translations strings.xml (Japanese) 2024-04-21 07:39:23 -05:00
rebel onion
73a7fe09f3 New translations strings.xml (German) 2024-04-21 07:39:22 -05:00
rebel onion
fec8eb3ae2 New translations strings.xml (Arabic) 2024-04-21 07:39:20 -05:00
rebel onion
db84a65931 New translations strings.xml (Spanish) 2024-04-21 07:39:19 -05:00
rebel onion
c9a8625199 New translations strings.xml (French) 2024-04-21 07:39:18 -05:00
rebel onion
0c316a7ea3 New translations strings.xml (Albanian) 2024-04-21 06:42:05 -05:00
rebel onion
0ff1db33bd New translations strings.xml (Urdu (Pakistan)) 2024-04-21 06:42:04 -05:00
rebel onion
b2283db2dc New translations strings.xml (Dutch) 2024-04-21 06:42:03 -05:00
rebel onion
1d90e47ef2 New translations strings.xml (Italian) 2024-04-21 06:42:02 -05:00
rebel onion
461ee0b583 New translations strings.xml (Bengali) 2024-04-21 06:42:01 -05:00
rebel onion
4b47ad45d4 New translations strings.xml (Korean) 2024-04-21 06:42:00 -05:00
rebel onion
8a15f32b00 New translations strings.xml (Greek) 2024-04-21 06:41:59 -05:00
rebel onion
cc1ee25cd3 New translations strings.xml (Assamese) 2024-04-21 06:41:58 -05:00
rebel onion
f482b18147 New translations strings.xml (Hindi) 2024-04-21 06:41:57 -05:00
rebel onion
c1329578f9 New translations strings.xml (Spanish, Mexico) 2024-04-21 06:41:56 -05:00
rebel onion
4d92dafb4f New translations strings.xml (Chinese Simplified) 2024-04-21 06:41:55 -05:00
rebel onion
2516a1c3f3 New translations strings.xml (Russian) 2024-04-21 06:41:54 -05:00
rebel onion
dc01193951 New translations strings.xml (Japanese) 2024-04-21 06:41:53 -05:00
rebel onion
12eae5a462 New translations strings.xml (German) 2024-04-21 06:41:52 -05:00
rebel onion
078cfba980 New translations strings.xml (Arabic) 2024-04-21 06:41:51 -05:00
rebel onion
34d1f12ae2 New translations strings.xml (Spanish) 2024-04-21 06:41:50 -05:00
rebel onion
96c205bf0d New translations strings.xml (French) 2024-04-21 06:41:49 -05:00
rebel onion
5005d77666 New translations strings.xml (Albanian) 2024-04-21 05:21:36 -05:00
rebel onion
f4d0274899 New translations strings.xml (Arabic) 2024-04-21 05:21:35 -05:00
rebel onion
c9f23aeee1 New translations strings.xml (Urdu (Pakistan)) 2024-04-21 04:16:38 -05:00
rebel onion
589b28532b New translations strings.xml (Hindi) 2024-04-21 04:16:37 -05:00
rebel onion
9e462acb32 New translations strings.xml (Arabic) 2024-04-21 04:16:36 -05:00
rebel onion
7c80270673 New translations strings.xml (Urdu (Pakistan)) 2024-04-21 02:33:26 -05:00
rebel onion
59c2ed2459 New translations strings.xml (Assamese) 2024-04-21 02:33:25 -05:00
rebel onion
d14d0734e8 New translations strings.xml (Arabic) 2024-04-21 02:33:24 -05:00
rebel onion
e10a09fc61 New translations strings.xml (Arabic) 2024-04-21 01:33:49 -05:00
rebel onion
8ed44ada20 New translations strings.xml (Arabic) 2024-04-20 23:12:58 -05:00
rebel onion
54e83ed342 New translations strings.xml (Arabic) 2024-04-20 22:51:27 -05:00
rebel onion
fe423d1e68 New translations strings.xml (Arabic) 2024-04-20 21:53:41 -05:00
rebel onion
559ae7592c New translations strings.xml (Arabic) 2024-04-20 20:43:48 -05:00
rebel onion
ab5f6817cf New translations strings.xml (Arabic) 2024-04-20 19:46:47 -05:00
rebel onion
54b080695e New translations strings.xml (French) 2024-04-20 19:46:46 -05:00
rebel onion
4e66e4e8e1 New translations strings.xml (Arabic) 2024-04-20 18:42:05 -05:00
rebel onion
ab29f07c13 New translations strings.xml (Italian) 2024-04-20 17:42:47 -05:00
rebel onion
82150eca62 New translations strings.xml (Dutch) 2024-04-20 16:11:39 -05:00
rebel onion
64c0045ad6 New translations strings.xml (Italian) 2024-04-20 16:11:38 -05:00
rebel onion
04ee4c5a0f New translations strings.xml (Greek) 2024-04-20 13:29:22 -05:00
rebel onion
6afeab4fad New translations strings.xml (Greek) 2024-04-20 12:32:52 -05:00
rebel onion
e49e1a1eea New translations strings.xml (Arabic) 2024-04-20 09:17:49 -05:00
rebel onion
105d7f9e1d New translations strings.xml (Greek) 2024-04-20 07:36:35 -05:00
rebel onion
a4c6ae7fe4 New translations strings.xml (Bengali) 2024-04-20 06:22:16 -05:00
rebel onion
2279ab984e New translations strings.xml (Assamese) 2024-04-20 06:22:15 -05:00
rebel onion
0b8e0fa179 New translations strings.xml (Arabic) 2024-04-20 06:22:14 -05:00
rebel onion
4c34730904 New translations strings.xml (Arabic) 2024-04-20 05:07:29 -05:00
rebel onion
0e0b991fa2 New translations strings.xml (Bengali) 2024-04-20 04:11:47 -05:00
rebel onion
9d6950d80c New translations strings.xml (Arabic) 2024-04-20 04:11:45 -05:00
rebel onion
07db1871a6 New translations strings.xml (Hindi) 2024-04-20 03:07:38 -05:00
rebel onion
f87f2f7058 New translations strings.xml (Assamese) 2024-04-20 01:54:22 -05:00
rebel onion
3e253a0978 New translations strings.xml (Hindi) 2024-04-20 01:54:21 -05:00
rebel onion
d44bb97e2b New translations strings.xml (Assamese) 2024-04-20 00:44:41 -05:00
rebel onion
1c52a960c7 New translations strings.xml (Hindi) 2024-04-20 00:44:40 -05:00
rebel onion
bfa4e6941a New translations strings.xml (Spanish, Mexico) 2024-04-19 22:29:13 -05:00
rebel onion
7452eee4a3 New translations strings.xml (Japanese) 2024-04-19 22:29:12 -05:00
rebel onion
119a701d60 New translations strings.xml (German) 2024-04-19 22:29:11 -05:00
rebel onion
f2de9a4b3b New translations strings.xml (Spanish) 2024-04-19 22:29:10 -05:00
rebel onion
896304e6fb New translations strings.xml (Spanish) 2024-04-19 21:21:58 -05:00
rebel onion
71c5e456e3 New translations strings.xml (Spanish) 2024-04-19 18:27:52 -05:00
rebel onion
a5047813f0 New translations strings.xml (Bengali) 2024-04-19 14:45:57 -05:00
rebel onion
8dd78abe91 New translations strings.xml (Bengali) 2024-04-19 13:33:58 -05:00
rebel onion
7e5f7389a5 New translations strings.xml (Hindi) 2024-04-19 13:33:57 -05:00
rebel onion
414a98b879 New translations strings.xml (Russian) 2024-04-19 13:33:56 -05:00
rebel onion
ca2343a2f4 New translations strings.xml (Arabic) 2024-04-19 13:33:55 -05:00
rebel onion
ac836e2011 New translations strings.xml (Bengali) 2024-04-19 11:55:28 -05:00
rebel onion
f7c47e3a8b New translations strings.xml (Korean) 2024-04-19 11:55:27 -05:00
rebel onion
92dc364364 New translations strings.xml (Greek) 2024-04-19 11:55:26 -05:00
rebel onion
1a1919971a New translations strings.xml (Assamese) 2024-04-19 11:55:24 -05:00
rebel onion
595055073c New translations strings.xml (Hindi) 2024-04-19 11:55:23 -05:00
rebel onion
832befc9a7 New translations strings.xml (Spanish, Mexico) 2024-04-19 11:55:22 -05:00
rebel onion
3ef4a6388d New translations strings.xml (Chinese Simplified) 2024-04-19 11:55:21 -05:00
rebel onion
63a5800025 New translations strings.xml (Russian) 2024-04-19 11:55:19 -05:00
rebel onion
11c875c4a3 New translations strings.xml (Japanese) 2024-04-19 11:55:18 -05:00
rebel onion
0f57f83093 New translations strings.xml (German) 2024-04-19 11:55:16 -05:00
rebel onion
33276a1724 New translations strings.xml (Arabic) 2024-04-19 11:55:15 -05:00
rebel onion
adeb627556 New translations strings.xml (Spanish) 2024-04-19 11:55:14 -05:00
rebel onion
d45a5c0b46 New translations strings.xml (French) 2024-04-19 11:55:12 -05:00
rebelonion
3c46c21a25 feat: downloading extensions 2024-04-19 11:24:03 -05:00
Sadwhy
44178b2de2 Why use decapitated actions? (#373) 2024-04-19 10:52:12 -05:00
rebel onion
13f5d0978d Update Crowdin configuration file 2024-04-19 10:22:05 -05:00
rebelonion
70a50ece43 chore: cleanup pt2 2024-04-19 06:13:14 -05:00
rebelonion
24147e746a chore: code cleanup 2024-04-19 06:03:40 -05:00
rebelonion
386e02a564 fix: exoplayer initialization 2024-04-19 05:40:43 -05:00
rebelonion
865b96a219 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-04-19 05:25:01 -05:00
rebel onion
dd38bb156b Update Crowdin configuration file 2024-04-19 05:07:19 -05:00
rebelonion
72c07b7d7a fix: app updater single apk 2024-04-19 04:33:36 -05:00
rebelonion
3f19cadffc fix: workflow universal 2024-04-19 04:16:54 -05:00
rebel onion
670d16bd8e Addons (#368)
* feat: (wip) torrent

credit to kuukiyomi

* fix: extensions -> addons

* fix: unified loader

* feat: (wip) modularity

* fix: addon ui

* feat: addon install/uninstall

---------

Co-authored-by: aayush262 <aayushthakur262006@gmail.com>
2024-04-19 04:08:20 -05:00
aayush262
3d1040b280 [skip ci] feat: theme crash fix 2024-04-18 01:55:15 +05:30
aayush262
cd3bb20afd [skip ci] feat: new settings UI 2024-04-17 14:35:53 +05:30
aayush262
91d1d2cf1d feat: WIP new settings UI 2024-04-17 01:51:56 +05:30
Sadwhy
f8a6fad513 fix(settings): Center icons (again) 😔 (#361) 2024-04-16 00:28:41 -05:00
aayush262
9d3d394c7d feat: hide a12 theme settings for unsupported devices 2024-04-15 22:10:38 +05:30
aayush262
820a09b28f feat: settings to recycler view 2024-04-15 22:04:15 +05:30
aayush262
108285021e fix: custom theme dialog not working 2024-04-15 21:54:01 +05:30
aayush262
1d005585c8 feat: sort forks by stars 2024-04-15 21:52:45 +05:30
rebelonion
714591dd2e fix: infinite loop 2024-04-15 01:51:33 -05:00
rebelonion
6e399b32e1 feat: embedded tracks
modified #338
2024-04-15 01:02:28 -05:00
rebelonion
4b413b78fe fix: alpha update message 2024-04-14 23:30:52 -05:00
rebelonion
126bc6134e chore: update extension api 2024-04-14 23:30:37 -05:00
rebelonion
bf33f5d9c8 fix: activity opening twice 2024-04-14 22:39:30 -05:00
rebelonion
a8ff4fdc26 feat: nomedia file 2024-04-14 22:35:11 -05:00
rebelonion
7ca44480a9 fix: offline mode failing 2024-04-14 22:24:58 -05:00
Sadwhy
ea29449413 fix(settings): Centre icons 2024-04-14 23:54:12 +05:30
Sadwhy
9ec448e503 Feet(Settings): Revamped UI (#352)
Feet(Settings): Revamped UI
2024-04-13 01:22:10 +05:30
aayush262
70be4e92fb fix: Disclaimer dialog crash 2024-04-12 13:40:28 +05:30
Sadwhy
c0e3243ee6 Feet(Settings): UI changes (#351)
* Account

* Theme

* Extension, common, notification and anime

* manga and about

* fix(Settings): icon colours
2024-04-12 12:45:53 +05:30
aayush262
b961701189 fix: settings scrolling 2024-04-11 21:37:25 +05:30
aayush262
3619355cb4 fix: idr 2024-04-11 17:26:20 +05:30
aayush262
674a512630 feat: split all settings 2024-04-11 17:25:41 +05:30
aayush262
5e5277404e feat: toggle for icon in rpc 2024-04-10 14:05:24 +05:30
aayush262
c242d9dd99 fix: no more 13 arifs 2024-04-08 22:52:13 +05:30
aayush262
a5a94e5003 fix: no 13 arifs 2024-04-08 21:08:49 +05:30
aayush262
9b6dc1318d fix: idr 2024-04-08 17:45:18 +05:30
TwistedUmbrellaX
87535a9239 fix: got lost in the cherry-picking (#337) 2024-04-07 21:48:26 -05:00
tutel
6be589618c Added Skip Recap Feature (#336)
* Added Skip Recap Feature

* Reverted gradle.properties to default
2024-04-07 21:30:49 -05:00
TwistedUmbrellaX
a51e025c03 fix: address possible format issues (#331)
* fix: address possible format issued

* fix: improve results and logging

* fix: not everything is a title

Fixed the book title style of capitalization

Toast and Snackbar messages appear for less than 3 seconds. Why are they paragraphs?

* Fix: the other half of the file

Probably missed a few, but this fixes the rest of the obvious ones (including a double negative)
2024-04-07 21:28:34 -05:00
TwistedUmbrellaX
29e115ce41 feat: repo editor in extension window (#332)
* fix: error checking in repo editor

* feat: edit repos from extension page
2024-04-07 21:27:27 -05:00
TwistedUmbrellaX
f96d2ffaa5 feat: add per-widget configuration (#333)
* feat: add per-widget configuration

* fix: no need to overengineer it

* feat: add cache to bitmap download

dfgdfg

* fix: elvis has left the operation
2024-04-07 21:21:24 -05:00
TwistedUmbrellaX
47d05e737d fix: exo / subtitle improvements (#335) 2024-04-07 21:19:50 -05:00
aayush262
3666758e6e feat(socials): ratings and progress 2024-04-07 21:31:15 +05:30
aayush262
e49f0dbf32 feat: socials in media 2024-04-07 00:51:50 +05:30
aayush262
abe3f883ae fix: telegram changelogs (again) 2024-04-06 16:47:31 +05:30
aayush262
e5cb7c7fdf fix: Voice artists not showing media 2024-04-06 16:23:58 +05:30
rebelonion
79337b5e7f Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-04-06 00:58:16 -05:00
rebelonion
ae5907e6b3 fix: correct updater for alpha 2024-04-06 00:57:33 -05:00
aayush262
04fb31eff9 fix: changelogs for telegram 2024-04-06 11:12:00 +05:30
rebelonion
9f7e01a1fb fix: only show count on releasing/hiatus manga 2024-04-05 21:59:44 -05:00
TwistedUmbrellaX
9ace8e5235 fix: it was only an int for convenience (#330)
Probably would have saved a lot of elaborate attempts to fix the issue by simply going the other way.
2024-04-05 21:53:25 -05:00
rebelonion
771cdcc163 fix: MangaExtensionRepos where AnimeExtensionRepos should be 2024-04-05 21:43:32 -05:00
rebelonion
58d5b5bc41 fix: fix the fix for the fix for MangaUpdates
null is better than a crash
2024-04-05 21:21:33 -05:00
TwistedUmbrellaX
04538c52f2 fix: fix the fix for MangaUpdates (#327)
Further filtering prevents the bad records from cancelling the whole operation
2024-04-05 20:04:03 -05:00
rebelonion
dd994dcfab fix: request storage permission for novels 2024-04-05 20:02:36 -05:00
rebelonion
594b71dc16 fix: cache upcoming widget data 2024-04-05 19:50:59 -05:00
rebelonion
cf7ccaebd1 feat: AppUpdater can handle splits 2024-04-05 19:21:00 -05:00
rebelonion
8bde831794 fix: default SearchSources to false
many people thought this was a bug. defaulting off max users more aware of what's going on
2024-04-05 18:54:56 -05:00
rebelonion
2f30bdb6a8 fix: case for empty headers 2024-04-05 18:34:25 -05:00
rebelonion
4d28ae2e3e fix: handle last manga chapter check being null 2024-04-05 18:00:24 -05:00
rebelonion
5fcbfeb3db fix: download name comparison 2024-04-05 17:44:59 -05:00
TwistedUmbrellaX
f6c7b09d9b fix: remove duplicate extension code (#322)
* fix: remove duplicate extension code

* fix: allow Material You icons to load

* fix: remove unused preference item

* fix: load mono on square setups
2024-04-05 16:50:40 -05:00
TwistedUmbrellaX
72c69e7c79 ExoPlayer improvements (#325)
* fix: add declarations for BT headsets

* fix: stop overriding user settings

* fix: offload cache to external storage
2024-04-05 16:49:15 -05:00
aayush262
13a65c2bfa Merge remote-tracking branch 'origin/dev' into dev 2024-04-06 01:21:12 +05:30
aayush262
d2f118a86c feat: more media in recommendations 2024-04-06 01:20:29 +05:30
Sadwhy
ce11c71e95 Fixed artifact upload (#326) 2024-04-05 13:43:22 -05:00
rebel onion
e4574d6c03 feat: send all apks to telegram 2024-04-05 11:40:11 -05:00
Sadwhy
d8c311fbd7 Include all Splits for discord (#324) 2024-04-05 11:36:27 -05:00
aayush262
d6e6c6f8fb Merge remote-tracking branch 'origin/dev' into dev 2024-04-05 13:20:57 +05:30
aayush262
63c3058f5b feat: voiceActor's characters info 2024-04-05 13:20:24 +05:30
aayush262
0d5815d3c9 fix: workflow 2024-04-05 01:22:33 +05:30
aayush262
dec4996760 feat: voiceActors (not info for now) 2024-04-05 01:09:56 +05:30
aayush262
e0df092a70 fix: some tweaks in settings 2024-04-04 22:59:58 +05:30
rebelonion
da56aecd5e fix: return jsdeliver 2024-04-04 05:23:11 -05:00
rebelonion
7688ffa39f Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-04-04 04:49:08 -05:00
rebelonion
d08e89bb63 Merge branch 'pr/299' into dev 2024-04-04 04:48:51 -05:00
TwistedUmbrellaX
5979479619 Two intents enter, one intent leaves (#317)
* feat: add a profile exit button

* fix: prevent leaving landscape behind

This prevents landscape being left out of changes and potentially causing a crash by adding a shared item for the identical portion of the views.
2024-04-04 04:46:23 -05:00
TwistedUmbrellaX
e1b968bfe0 feat: add a time since chapter item (#316)
* feat: add a time since chapter item

* fix: this is the song that never ends
2024-04-04 04:45:03 -05:00
rebelonion
36c476bc36 fix: remove armeabi 2024-04-04 04:40:46 -05:00
rebel onion
6bfadfa962 Update beta.yml 2024-04-04 04:11:52 -05:00
rebel onion
720b40afa7 feat: custom downloader and downloader location (#313)
* feat: custom downloader (novel broken)

* fix: send headers to ffmpeg

ffmpeg can be a real bitch to work with

* fix: offline page for new download system

* feat: novel to new system | load freezing

* chore: clean manifest

* fix: notification incrementing

* feat: changing the downloads dir
2024-04-04 04:03:45 -05:00
TwistedUmbrellaX
75e90541c9 fix: make bottom to top work properly (#320)
* fix: make bottom to top work properly

Fixes navigating to the wrong chapter, despite the UI being correct. Makes bottom to top its own setting that functions as expected, not just top to bottom with a RTL slider bar.

* fix: allow inversion to pick sides
2024-04-04 03:26:21 -05:00
aayush262
47b1940ace feat: Some comment design tweaks 2024-04-03 22:21:27 +05:30
TwistedUmbrellaX
012b1cd79d fix: make settings great again
auto and time stamps are intertwined already and the dividers should serve a purpose
2024-04-03 10:49:50 -04:00
TwistedUmbrellaX
ff3131d988 feat: manual repository entries
Closes Dantotsu#298
2024-04-03 10:49:50 -04:00
TwistedUmbrellaX
ba1725224a fix: automate getting contributions (#314)
* fix: automate getting contributions

It shouldn't need to be a conscious decision. It would be nice if the site_admin  flag worked for the repo owner, but it's a known value

* fix: also populate the forks page

This hardcodes this repo, since downstream builds should still display the upstream forks
2024-04-02 18:08:44 -05:00
Sadwhy
55bc2add85 Updated icons (#311)
* Branch

* Updated Icons (#13)

* update

* update beta.yml

* nicer icons

* update view_list_24.xml

* revert changes

* Missed one
2024-04-02 18:04:18 -05:00
ibo
9e96fd1e20 feat(accounts): redirect on avatar click (#310)
* feat(discord): custom buttons

* feat(discord): added haptics

* fine...

* fix(strings): my genius is frightening

* feat: add option to only show the first button

* feat: discord rpc menu

* feat(link): add button preview back

* feat(accounts): redirect on avatar click

---------

Co-authored-by: aayush262 <aayushthakur262006@gmail.com>
2024-04-02 18:04:08 -05:00
aayush262
79d20b0b63 feat: ibo happy now? 2024-04-02 19:11:20 +05:30
aayush262
b2a44cfe09 Merge remote-tracking branch 'origin/dev' into dev 2024-04-02 17:02:56 +05:30
ibo
146805af49 feat(filter): revamping search for anime and manga (#272)
* feat: revamping search filter part1

* fix: sortBy dropdown now also calls search instead of only updating image

* feat: added longclick listener to reset and apply + cleaned up code

* feat: status filter fully functional

* chore: upgrade AGP to 8.3.1

* fix: splitted status list and cleaned up

* fix(search): underscore

* feat: attempt to add backend for countryOfOrigin filter

* fix: countryOfOrigin query and gradle

* feat: source filter fully functional

* fix(source): underscore

* feat: swap source with status

* fix: add searchSource to reset fun

* fix: clear underline after reopening bottom sheet

* chore: remove unnecessary declaration

* feat: add global to countryOfOrigin dropdown

* feat: floating cancel and apply button

* fix: added searchStatus and searchYear back to manga filter

* feat: desperate attempt for manga year filter

* feat(sortBy): added new releases item

* fix: year filter

---------

Co-authored-by: aayush262 <aayushthakur262006@gmail.com>
2024-04-01 22:13:41 -05:00
ibo
aabbe9198a feat(discord): custom buttons (#295)
* feat(discord): custom buttons

* feat(discord): added haptics

* fine...

* fix(strings): my genius is frightening

* feat: add option to only show the first button

* feat: discord rpc menu

* feat(link): add button preview back

---------

Co-authored-by: aayush262 <aayushthakur262006@gmail.com>
2024-04-01 22:09:52 -05:00
aayush262
a815bac15d feat: 18+ media on infinite scroll too 2024-04-01 19:31:32 +05:30
Sadwhy
86427a4c3c Add CommitHash to Version Name :prayge: (#307) 2024-04-01 00:15:24 -05:00
aayush262
0d8a82568a feat: Download subs 2024-03-31 18:23:29 +05:30
aayush262
95b2939532 fix: hide recent if its empty 2024-03-31 16:44:27 +05:30
aayush262
76e11e5a3e fix: removed unused banners 2024-03-31 16:43:55 +05:30
aayush262
2d5d02fd67 fix: adult only in recent too 2024-03-31 16:18:38 +05:30
aayush262
f30e6b7809 fix: banner animation 2024-03-31 12:23:17 +05:30
aayush262
04f2034dd1 fix: duplicate media 2024-03-31 09:08:54 +05:30
aayush262
99b3bbaaad feat: adult only media option 2024-03-30 15:44:29 +05:30
aayush262
c0bccc027f feat: combined queries 2024-03-30 15:43:37 +05:30
TwistedUmbrellaX
51beac2d03 Revert (some of) "Just some quality of life garbage (#304)" (#306)
This reverts (some of) commit c29147a681.
2024-03-29 21:53:49 -05:00
rebelonion
63a5150cea fix: home screen number spacing 2024-03-29 18:10:41 -05:00
rebelonion
e34a20bce6 fix: comment scrolling freezing 2024-03-29 18:04:19 -05:00
rebelonion
ca482ea9d4 fix: navbar breaking on return to comments fragment 2024-03-29 17:53:50 -05:00
rebelonion
e31d2ada4f fix: logout of comments when log out of anilist 2024-03-29 17:18:20 -05:00
TwistedUmbrellaX
c29147a681 Just some quality of life garbage (#304)
* fix: statistics widget min sizes

* fix: offset for split TextView values

Due to format and color changes, the text is split between two separate items and this space avoids multiple insertions in code

* feat: extension launch from notice

* fix: wait for the UI to post stuff to it
2024-03-29 17:11:37 -05:00
aayush262
92be9bf626 fix: removed onlist for now 2024-03-30 03:11:05 +05:30
aayush262
a02b8b7b0a fix: text in manga side not disappearing 2024-03-30 03:04:27 +05:30
aayush262
1c1d14fff1 fix: "popular manga" text missing 2024-03-30 02:54:44 +05:30
aayush262
eff0a34c54 Merge remote-tracking branch 'origin/dev' into dev 2024-03-30 02:40:04 +05:30
aayush262
2dc3035a7c feat: more options in anime and manga side 2024-03-30 02:39:47 +05:30
TwistedUmbrellaX
78f6ec27b3 feat: add watch title search button (#303) 2024-03-28 17:46:13 -05:00
TwistedUmbrellaX
6b868fa824 fix: not meant to be quoted (#300)
* fix not meant to be quoted

* fix: thought he was slick

hiding in plain sight

* fix: it's not THAT important

* fix: flexible day / night borders
2024-03-28 17:39:04 -05:00
rebelonion
7951c2cf37 fix: some widget sting newlines 2024-03-27 19:02:42 -05:00
rebelonion
ea678ef55e feat: visual representation of selected widget colors 2024-03-27 18:41:48 -05:00
rebelonion
fbbbf41595 feat: custom theming for stats widget 2024-03-27 18:23:13 -05:00
TwistedUmbrellaX
f83d1d8d84 Profile Stats Widget (#292)
* feat: create a statistics widget

* feat: mirror app color option

* fix: the minimum size cut off

* feat: make the stat widget decent

* fix: prevent bleeding edges

* fix: PREVENT BLEEDING EDGES!

* fix: we didn't really need an overlay
2024-03-27 17:45:26 -05:00
TwistedUmbrellaX
7bcc01b94e Merging stuff. Cleaning up code. The usual (#297)
* chore: merge core extension view

* fix: clean up a sloppy fix

* chore: merge name adapters

* fix: offset the indentation of example
2024-03-27 17:45:01 -05:00
aayush262
ff72f9dbdf fix: activity crash 2024-03-27 14:22:04 +05:30
aayush262
b1210570d1 Merge remote-tracking branch 'origin/dev' into dev 2024-03-27 13:52:13 +05:30
aayush262
ef97b5679e feat(widget): use app color 2024-03-27 13:52:00 +05:30
TwistedUmbrellaX
6dfe0269bf Manga reader quirks (#294)
* fix: resolve showing next on previous

* fix: make your last words succinct
2024-03-26 16:10:27 -05:00
TwistedUmbrellaX
77c57846ed fix: add padding to last item in recycler (#293)
* fix: add padding to last item in recycler

Stop guessing numbers to compensate for a view we can measure. by adding a method to measure them.

* fix: avoid scrolling artifacts in nested
2024-03-26 16:10:02 -05:00
aayush262
19b5b11b07 fix(profile): something 2024-03-26 16:06:53 +05:30
aayush262
27d4ce3c5b fix(profile): info card padding 2024-03-26 15:46:38 +05:30
aayush262
859aa01ec2 fix(profile): info is hidden 2024-03-26 15:11:48 +05:30
aayush262
6d102f7be3 fix(media): comment bar padding 2024-03-26 14:48:18 +05:30
rebelonion
5ae1ead2c9 fix: default bitmap width/height 2024-03-26 00:07:48 -05:00
rebelonion
b1982013dc fix: auto curve edges on resize 2024-03-25 23:36:51 -05:00
rebelonion
954fdde1c4 feat: rounded corners compat 2024-03-25 23:07:45 -05:00
rebelonion
f177e2cf7c chore: clean package location 2024-03-25 22:48:26 -05:00
rebelonion
845ebb4868 feat: widget transparency 2024-03-25 22:18:49 -05:00
rebelonion
b43171bb31 fix: remove unnecessary v26 file 2024-03-25 22:12:23 -05:00
rebelonion
be07fad8f1 fix: layout tweaks for upcoming widget 2024-03-25 22:08:51 -05:00
rebelonion
3375496ef2 fix: auto scale title font size 2024-03-25 21:26:25 -05:00
rebelonion
df23b2f62f feat: currently airing widget 2024-03-25 21:20:17 -05:00
TwistedUmbrellaX
95cddbd409 feat: suppress ime for search in progress (#287) 2024-03-25 15:25:58 -05:00
TwistedUmbrellaX
d46f1b25eb feat: option to disable trending scroll (#288) 2024-03-25 15:24:55 -05:00
TwistedUmbrellaX
378abe73c9 feat: add haptics to long click event (#290)
Please, someone. Anyone. Tell me it's OK to let go....
2024-03-25 15:23:44 -05:00
rebelonion
b5eda797b5 fix: context being lost in settings 2024-03-24 18:47:53 -05:00
TwistedUmbrellaX
f704e322af fix: data loading glitches (#284)
* fix: the obnoxious loading glitch

* chore: some quick build warnings
2024-03-24 16:09:26 -05:00
rebelonion
dc21d28b83 Merge branch 'pr/282' into dev 2024-03-23 22:04:55 -05:00
rebelonion
eb17862177 fix: remove unnecessary InefficientWeight 2024-03-23 22:03:09 -05:00
TwistedUmbrellaX
fc023f307a fix: weights reflect other views (#285) 2024-03-23 22:01:44 -05:00
rebelonion
ad1905c8fe fix: adapter continuous loading on media page 2024-03-23 21:50:24 -05:00
rebelonion
85d54e8f5e Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-03-23 21:12:57 -05:00
rebelonion
ba09f7533c fix: anime page searching manga 2024-03-23 21:12:55 -05:00
TwistedUmbrellaX
fa6e3a34b5 fix: prefer caching the final version (#283)
While caching the original and the final seems like an ideal way to reduce overhead, you cache an original copy of the image and the modified copy of the image to only ever load the modified copy. The size is set, meaning you are not reusing the original image. There is no reason to cache it.
2024-03-23 20:07:02 -05:00
TwistedUmbrellaX
85ef4b3c12 Add transparency options to subtitle (#281)
* feat: add state llistener to Xpandable

* feat: improve app restart process

* feat: support subtitle transparency
2024-03-23 19:12:22 -05:00
rebel onion
89e18b0e2f Merge pull request #280 from RepoDevil/semi-auto
Automatically search through sources
2024-03-23 19:06:56 -05:00
rebelonion
1b50ffcf11 fix: clean up some warnings 2024-03-23 18:05:43 -05:00
TwistedUmbrellaX
b3f83816c5 feat: support exporting magnets 2024-03-23 18:45:23 -04:00
TwistedUmbrellaX
75b78886ae fix: clarify deceptive descriptions 2024-03-23 18:30:54 -04:00
TwistedUmbrellaX
26d97da066 feat: automatically check sources 2024-03-23 18:30:31 -04:00
rebelonion
ab7bc15573 fix: missing string/imports 2024-03-23 17:07:02 -05:00
rebel onion
d43d643bbd Merge pull request #271 from RepoDevil/cleanup
The motherload
2024-03-23 16:56:18 -05:00
TwistedUmbrellaX
3ca5efc177 chore: update androidx.mediarouter
No additional code changes required
2024-03-23 09:39:36 -04:00
TwistedUmbrellaX
04c858e6fd chore: kotlinOptions is deprecated 2024-03-23 09:32:27 -04:00
TwistedUmbrellaX
25046e4c11 chore: add notes for context view
This will allow the details to be seen when highlighting these items in Android Studio
2024-03-23 08:56:15 -04:00
rebelonion
5134776e2f fix: remove unnecessary setExpedited 2024-03-22 23:08:20 -05:00
rebelonion
cc29ebd75b fix: subscription default importance 2024-03-22 22:57:26 -05:00
TwistedUmbrellaX
2233f1ce44 fix: restore a workaround?
The layout this originally used no longer exists and the new layout is a different type, but maybe this will still work.
2024-03-22 23:47:40 -04:00
rebelonion
a189802061 fix: notification check on app launch 2024-03-22 22:34:21 -05:00
rebelonion
dca6ffdbbe Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-03-22 21:48:01 -05:00
rebelonion
859946a751 chore: version bump 2024-03-22 21:47:58 -05:00
TwistedUmbrellaX
08bf1a2336 chore: eliminate overlap layouts 2024-03-22 19:12:58 -04:00
TwistedUmbrellaX
27743e3427 fix: padding / margin optimization 2024-03-22 14:35:07 -04:00
TwistedUmbrellaX
52b0cc4129 fix: hardcoded text in profile page 2024-03-22 14:26:12 -04:00
TwistedUmbrellaX
22abc2e21d fix: expanded views while editing
This sets the Editor state of the expanded windows. This is NOT reflected at runtime.
2024-03-22 14:18:16 -04:00
TwistedUmbrellaX
fc8425b12a fix: padding / margin optimization 2024-03-22 14:18:16 -04:00
TwistedUmbrellaX
60fc1fa74b fix: tone down the logging a bit 2024-03-22 14:18:16 -04:00
TwistedUmbrellaX
190e3ce7bb fix: someone liked the paste hotkey 2024-03-22 14:18:16 -04:00
TwistedUmbrellaX
012024ab77 fix: disable auto with time stamps 2024-03-22 14:18:16 -04:00
TwistedUmbrellaX
529bdd74c8 chore: flag ites for no translation 2024-03-22 14:18:15 -04:00
TwistedUmbrellaX
6e349b84c0 chore: extract strings from settings 2024-03-22 14:18:15 -04:00
TwistedUmbrellaX
ab9b92035e fix: merge bindings by category 2024-03-22 14:18:15 -04:00
TwistedUmbrellaX
37ec165319 chore: lint performance optimization
This includes shadowed variables, unnecessary parameters, layouts with string literals, items that cause performance bottlenecks, and the merge of extension types into only the necessary separate classes.
2024-03-22 14:18:15 -04:00
TwistedUmbrellaX
958aa634b1 feat: commit to the prank... 2024-03-22 14:18:14 -04:00
TwistedUmbrellaX
125a95285d chore: addressing SetTextI18n 2024-03-22 14:18:14 -04:00
TwistedUmbrellaX
bbaae2e776 fix: settings has over 80 views
One really long layout is bad for performance, but this design also requires being aware of where an item is being placed.
2024-03-22 14:18:14 -04:00
TwistedUmbrellaX
f9090f59b7 fix: support for round vertical 2024-03-22 14:18:14 -04:00
TwistedUmbrellaX
1d740d33a0 fix: putting out 100 little fires
... before they become an inferno
2024-03-22 14:18:14 -04:00
TwistedUmbrellaX
633ec19c90 fix: don't load selected until intent 2024-03-22 14:18:13 -04:00
TwistedUmbrellaX
9b2015f4cf fix: simplify boolean view logic
This is a pretty basic conversion from `if (true) View.VISIBLE else View.GONE` to `isVisible` which is exactly that, but easier to track.
2024-03-22 14:18:13 -04:00
TwistedUmbrellaX
e65e7a79a5 feat: vertical navigation for profile 2024-03-22 14:18:13 -04:00
TwistedUmbrellaX
0996639cac fix: vertical AnimatedBottomBar 2024-03-22 14:18:13 -04:00
TwistedUmbrellaX
e5f58f20c7 fix: undo all of the margin hacks
Using 72dp as the height appears to have been a bit of a hack to appear beyond the navigation bar. In cases where the bar is not present, such as landscape, this left a gap between the bottom of the screen and bar. On API 23, the result was the opposite. All of this can be addressed by simply relying on the actual measurements and not compensating for compensation.
2024-03-22 14:18:13 -04:00
aayush262
d1e03b8237 feat(media): fav and popularity count 2024-03-22 23:44:51 +05:30
aayush262
917ffe644f feat: something 2024-03-22 20:38:34 +05:30
aayush262
02efc01a10 feat(profile): round chips 2024-03-22 12:50:04 +05:30
aayush262
3016792f95 fix(activity): blur banner 2024-03-22 11:24:36 +05:30
Sadwhy
e1b50c86f3 feet(watch): Fixed one inconsistent switch (#273)
* feet(watch): Fixed one inconsistent switch
2024-03-21 11:41:16 +05:30
aayush262
42f23e4345 dix: many small changes 2024-03-21 01:18:36 +05:30
rebelonion
adb304f138 fix: manga/anime page noti icon updating 2024-03-20 14:29:52 -05:00
rebelonion
3bbf9efe63 dix: comment scroll deadspace 2024-03-20 13:54:25 -05:00
rebelonion
b454a2e3d9 fix: comment notification at bottom 2024-03-20 13:08:46 -05:00
rebelonion
23e6323f92 fix: comment reply dead scrolling space 2024-03-20 04:29:14 -05:00
rebelonion
b0dbd7a348 fix: add a check for minimum poll time 2024-03-20 04:10:12 -05:00
rebelonion
f707f8cc33 fix: activity color tweaks 2024-03-20 01:23:48 -05:00
aayush262
fa7126d80d fix: better gradiant color 2024-03-20 11:13:09 +05:30
aayush262
7d5f69888a fix(profile): double usernames 2024-03-20 10:57:50 +05:30
rebelonion
51841cf05f feat: error message snack -> toast 2024-03-20 00:23:42 -05:00
rebelonion
6d2c01ff2b chore: version bump 2024-03-20 00:19:39 -05:00
rebelonion
0bd4755814 fix: remove snack spam 2024-03-20 00:17:27 -05:00
rebelonion
927ba5ac86 fix: AAChartCore library not found tempfix 2024-03-19 20:18:39 -05:00
rebelonion
808d4e6bf5 feat: move subscriptions to new notification method 2024-03-19 19:30:12 -05:00
rebelonion
a39db5ea93 fix: cleaner spoiler text in comments 2024-03-19 17:09:34 -05:00
rebelonion
ca2409ef91 fix: fav workaround for broken anilist api 2024-03-19 16:50:52 -05:00
rebelonion
7b1f1a1357 fix: more robust notification loading 2024-03-19 16:02:52 -05:00
rebelonion
9471683501 feat: AlarmManager option for notifications 2024-03-18 23:51:00 -05:00
rebelonion
deeefb8e35 fix: don't show 500 error code 2024-03-18 17:55:12 -05:00
rebelonion
c777888fdb Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-03-18 17:45:36 -05:00
rebelonion
ce50627989 fix: add missing ui SharedPreference 2024-03-18 17:45:17 -05:00
TwistedUmbrellaX
9f84845ada fix: login and navigation < API 23 (#258)
* fix: compensate for old nav (48dp)

* fix: allow login to complete < API 23
2024-03-18 17:42:33 -05:00
rebelonion
6a8e422a30 fix: webview loading crash 2024-03-18 17:27:32 -05:00
rebelonion
39d6f0fbd6 fix: don't open links in webview 2024-03-18 10:40:39 -05:00
rebelonion
c240664fda fix: links in apps always open externally 2024-03-18 10:38:19 -05:00
rebelonion
a0f6320eee fix: what file links dantotsu opens 2024-03-18 10:12:32 -05:00
rebelonion
3434aa9744 fix: sticky profile fragment 2024-03-18 09:53:54 -05:00
rebelonion
3e84cfe09a fix: profile fragment scrolling 2024-03-18 00:23:40 -05:00
aayush262
22dccaa24b Merge remote-tracking branch 'origin/dev' into dev 2024-03-18 10:39:42 +05:30
rebelonion
ffe921a223 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-03-17 23:14:07 -05:00
rebelonion
1fd91b9ec6 Merge branch 'pr/257' into dev 2024-03-17 23:12:40 -05:00
TwistedUmbrellaX
cf10229574 fix: address deprecated code (#256)
* fix: address deprecated code

Build.RADIO has been deprecated since API 15, which means it hasn't worked since before the lowest target API of the app, and versioncode is deprecated in API 28.

* fix: use the convenience method

This takes the unused convenience method and the individually declared uses and merges them.

* fix: simplify compat switch
2024-03-17 23:10:38 -05:00
rebelonion
5c2ae57d77 feat: open user links in dantotsu 2024-03-17 23:05:05 -05:00
rebelonion
353452dd21 feat: open settings files directly 2024-03-17 22:15:20 -05:00
rebelonion
92fa0c117d fix: stats hardware acceleration glitch 2024-03-17 21:59:21 -05:00
rebelonion
9f4cd0ba0d fix: z fighting in viewpager2 potential? 2024-03-17 21:21:17 -05:00
rebelonion
385198e69a fix: text | reply bar not hiding 2024-03-17 21:07:54 -05:00
TwistedUmbrellaX
89fe3b82a3 fix: excess scope and redundancy 2024-03-17 22:05:14 -04:00
rebelonion
af1bc944d8 feat: sort comments in api 2024-03-17 20:52:39 -05:00
rebelonion
a0b22e8d56 fix: setdub out of bounds 2024-03-17 20:15:21 -05:00
rebelonion
c47d1afa1a feat: comment notifications in notification section 2024-03-17 20:05:38 -05:00
TwistedUmbrellaX
12a5b602e9 feat: getColor compatibility changes 2024-03-17 20:03:21 -04:00
rebelonion
25b85569fe fix: fragment IllegalStateException 2024-03-17 18:25:38 -05:00
rebelonion
b373a52218 fix: search for Spanish "episode" 2024-03-17 18:14:00 -05:00
rebelonion
b0e46cd904 fix: all notifications going to the same activity 2024-03-17 17:56:53 -05:00
rebelonion
89a54b4509 fix: recycled stat item 2024-03-17 17:35:59 -05:00
TwistedUmbrellaX
56aefef693 feat: move theme to API 23 res 2024-03-17 18:06:28 -04:00
TwistedUmbrellaX
a8ad018c44 feat: support API 21 with compat 2024-03-17 14:36:07 -04:00
aayush262
726f461ff6 fix(profile): Buggy animation 2024-03-17 21:06:20 +05:30
rebelonion
9c0861a8e4 feat: character fav 2024-03-17 01:39:21 -05:00
rebelonion
ca0162fb9c Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-03-17 01:01:09 -05:00
rebelonion
cfb8c3c733 feat: toggle fav 2024-03-17 01:00:08 -05:00
aayush262
fea448f850 feat: fav character (WIP) 2024-03-17 11:29:58 +05:30
rebelonion
c033bb0445 fix: use hardware acceleration for bio 2024-03-17 00:35:51 -05:00
rebelonion
bb110be9ab fix: bio color cleanup 2024-03-17 00:10:39 -05:00
rebelonion
fd39c4f391 fix: some color logging 2024-03-16 23:22:37 -05:00
rebelonion
9a3f9c6de2 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-03-16 23:11:42 -05:00
rebelonion
cf9799da7c chore: kotlin version bump 2024-03-16 23:11:30 -05:00
TwistedUmbrellaX
c054e2f2ac feat: progress for starting manga (#245)
The caveat is that the user must have disabled updating each title individually, along with the other standard checks. This will only apply when a chapter has not been completed.
2024-03-16 23:00:58 -05:00
TwistedUmbrellaX
8177dfdcef feat: delete item from context menu (#251)
* feat: delete item from context menu

* fix: follow the naming convention
2024-03-16 22:56:38 -05:00
rebelonion
813b64980d Merge branch 'pr/247' into dev 2024-03-16 22:53:25 -05:00
rebelonion
fda809bc8a fix: more strategic refresh in comments 2024-03-16 22:44:45 -05:00
rebelonion
5d1b220105 version bump 2024-03-16 19:58:17 -05:00
rebelonion
de21365c90 feat: tell user if not logged in 2024-03-16 19:51:40 -05:00
rebelonion
a24d1515b3 fix: more descriptive string 2024-03-16 19:24:38 -05:00
rebelonion
a3d6f841c6 feat: use markwon builder 2024-03-16 19:10:37 -05:00
rebelonion
b770bca6ba fix: RPC image 2024-03-16 18:56:56 -05:00
rebelonion
eaefbc13f9 feat: logout check 2024-03-16 17:04:39 -05:00
rebelonion
7fcc23c5bf fix: refresh stats every page load 2024-03-16 16:56:24 -05:00
rebelonion
29364bf30a fix: chart load | background of bio? 2024-03-16 16:50:58 -05:00
rebelonion
a9b4916dd8 fix: combine profile query 2024-03-16 15:43:09 -05:00
TwistedUmbrellaX
d4ab0ad57d fix: hide the skip button if hidden (#252)
If using the option to hide the skip button after a delay, setting 0 results in a generic +85 button with no click action.
2024-03-16 11:54:29 -05:00
aayush262
e3f8096749 feat: better profile page 2024-03-16 22:04:57 +05:30
rebelonion
94aae33d10 feat: animations for comment/activity/notification 2024-03-15 21:21:14 -05:00
rebelonion
96e29a8c59 fix: dismiss after extractors loaded 2024-03-15 21:13:03 -05:00
rebelonion
34a9a55d4f fix: comment bar not visible (solution is so cursed) 2024-03-15 20:57:36 -05:00
rebelonion
cf93f6d657 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-03-15 18:05:31 -05:00
rebelonion
91bcacc978 feat: swipe refresh activity/notifications 2024-03-15 18:05:23 -05:00
TwistedUmbrellaX
e79a824a04 fix: remove landscape buffer (#250)
Portrait compensates for system navigation, which bleeds into landscape (where system nav is on the side) and places the bar 1/3 into the screen.
2024-03-15 17:53:52 -05:00
rebelonion
e00bbb2d8e fix: notification list blank on click 2024-03-15 17:38:02 -05:00
rebelonion
12c77604f1 fix: typo 2024-03-15 17:16:27 -05:00
TwistedUmbrellaX
9a1ec8567c fix: error when streams are empty (#249)
The current design simply presents an empty server list and leaves the user to click away. No action can be taken without leaving the dialog.
2024-03-15 17:15:43 -05:00
aayush262
5dbc01dba3 feat: long tap like button to see users 2024-03-15 18:32:51 +05:30
rebelonion
c5abfa15e0 feat: activity clicking 2024-03-15 05:55:46 -05:00
rebelonion
b69e466853 feat: notification to activity click 2024-03-14 16:25:59 -05:00
rebelonion
9e371778b7 feat: filter lists by genre 2024-03-14 15:51:40 -05:00
rebelonion
ff036165df fix: don't delete global 2024-03-14 15:09:07 -05:00
rebelonion
4ed74b664b feat: notification clicking 2024-03-14 14:40:48 -05:00
rebelonion
ddd59643c5 fix: stop re-sending anilist notifications 2024-03-14 14:17:15 -05:00
rebelonion
6122eb3669 feat: global notification 2024-03-14 14:16:25 -05:00
TwistedUmbrellaX
1b5149f143 fix: update gradle dependancies 2024-03-14 10:35:20 -04:00
rebelonion
b654824eb7 fix: home page not loading 2024-03-14 06:30:04 -05:00
rebelonion
4d2a08c258 feat: anilist notifications (real) 2024-03-14 06:00:48 -05:00
rebelonion
19697f4f39 feat: view profile on anilist 2024-03-14 02:59:59 -05:00
TwistedUmbrellaX
41eea667e5 fix: forgotten uncle onRestart (#244)
* fix: forgotten uncle onRestart

It functions a lot like onResume, but assumes that onCreate ran and the user navigated away from the activity completely.

* fix: don't change to the current tab
2024-03-14 02:46:37 -05:00
TwistedUmbrellaX
f0040b8392 feat: add an option to revert bar hide (#242)
* feat: add an option to revert bar hide

* fix: clarify the bars being hidden
2024-03-13 08:15:13 -05:00
ibo
291f61551a feat: hide scrollBar toggle (#238) 2024-03-13 07:57:40 -05:00
꧁𝓜𝓸𝓱𝓪𝓶𝓶𝓮𝓭 𝓞𝓽𝓪𝓴𝓾꧂
6e8bd08828 Update ExoplayerView.kt (#237)
* feat (player): added portrait mode

Co-authored-by: MohammedOtaku <121404638+MohammedOtaku@users.noreply.github.com>
2024-03-13 07:56:33 -05:00
tutel
e915dd619d Made the skip button dissappear after 5 seconds with a setting to turn it off (#224)
* Made the skip button dissappear after 5 seconds with a setting to turn it off

* Resolved Merge Conflicts and Removed Unnecessary Imports

* Resolved Merge Conflicts

* Resolved Merge Conflicts

* Resolved Merge Conflicts

* Resolved problems

* Fixed a little mistake

* Made Requested Changes

* Removed println I forgot
2024-03-13 07:56:00 -05:00
aayush262
8fb6357fb5 feat: Blur toggle 2024-03-12 20:43:20 +05:30
aayush262
07662a91f4 Merge remote-tracking branch 'origin/dev' into dev 2024-03-12 10:23:12 +05:30
aayush262
37c618cb28 feat: blur function 2024-03-12 10:22:25 +05:30
rebelonion
5536f3b994 fix: logging home page 2024-03-11 11:53:35 -05:00
rebelonion
bdbbe62570 fix: genre sorting 2024-03-11 04:36:51 -05:00
rebelonion
4838e69aea Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-03-11 04:28:15 -05:00
rebelonion
408737d510 feat: activity replies 2024-03-11 04:28:13 -05:00
TwistedUmbrellaX
a0f05928e0 fix: reapply theme to each init call (#235) 2024-03-11 03:51:55 -05:00
rebelonion
a35887d4ac fix: tiny ui changes 2024-03-11 03:38:32 -05:00
rebelonion
dbce7c5b29 feat: logging to file 2024-03-11 03:01:08 -05:00
rebelonion
1028ac66cb fix: some anilist markdown 2024-03-11 00:05:07 -05:00
rebelonion
eb5e2623a0 feat: combine profile queries 2024-03-10 05:00:23 -05:00
rebelonion
867a4f36b3 fix: popup spam 2024-03-10 03:59:24 -05:00
rebelonion
913d74b285 feat: message activities 2024-03-10 03:59:15 -05:00
rebelonion
eb2eae7d6c fix: broken function name 2024-03-10 03:42:56 -05:00
rebelonion
8e5e548e16 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-03-10 03:21:22 -05:00
TwistedUmbrellaX
af1a481bdb Cleaning up navigation (#234)
* fix: align bottom to top with RTL

* fix: clean up the overlapping decor

* feat: match theme color with navbar

* fix: measure view on return to view
2024-03-10 03:21:14 -05:00
rebelonion
92089067f1 fix: activity pagination 2024-03-10 03:20:05 -05:00
rebelonion
d04ced94ea fix: comment pagination 2024-03-10 00:02:40 -06:00
TwistedUmbrellaX
14115ada4c A few build and navigation bar improvements (#231)
* fix: match project root to repo name

* feat: hide navigation bar until swiped

* fix: limit announcements to official

* feat: keep navigation visible for back

* fix: remove a duplicate permission
2024-03-09 15:06:48 -06:00
ibo
7f36eba709 feat: longclicklistener for AL profile now accessible everywhere (#228)
* feat: added longclicklistener for AL profile in AnimePageAdapter and MangaPageAdapter

* feat: add delete to smaller media bottom sheet
2024-03-09 15:02:23 -06:00
TwistedUmbrellaX
7504bb9081 fix: optimize querying download uri (#232) 2024-03-09 15:00:00 -06:00
TwistedUmbrellaX
64df08f91c fix: swap chapter names and nav on RTL (#230)
* fix: swap chapter names and nav on RTL

* fix: swipe RTL no longer needs invert
2024-03-09 14:58:15 -06:00
rebelonion
98f4d4f30b feat: global/personal feed | like posts | pagination 2024-03-09 04:33:06 -06:00
rebelonion
a9b03c45c6 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-03-08 22:05:17 -06:00
rebelonion
3af7926d20 feat: text activity 2024-03-08 22:04:25 -06:00
aayush262
e0cd43c63c fix: some UI changes pt:2 2024-03-08 15:24:35 +05:30
ibo
2742f58af5 feat(): fixed the UI changes 🦍 + notificationIcon logic and long press userAvatar 🐒 (#226) 2024-03-08 14:04:32 +05:30
rebelonion
49175a962a feat: (wip) user activities 2024-03-08 00:30:11 -06:00
rebelonion
46d8248ffd fix: profile recyclerViews 2024-03-07 18:45:02 -06:00
rebelonion
4ba1408f0f fix: notification size 2024-03-07 18:13:07 -06:00
Sadwhy
95fa5dcd9b Feet(profiles): update textviews (#221)
* nothing

* feet: Attached strings

* feet(fix)

---------

Co-authored-by: rebel onion <87634197+rebelonion@users.noreply.github.com>
2024-03-07 17:36:18 -06:00
aayush262
a2ca16355a fix: some UI changes (for better or worse) 2024-03-08 00:45:13 +05:30
rebelonion
7ac679f927 feat: anilist notifications 2024-03-07 02:51:04 -06:00
aayush262
e2eae6250b feat: WIP activity and notification page 2024-03-07 01:02:27 +05:30
ibo
2855093f5f feat: Inbox WIP(#222) 2024-03-06 20:36:56 +05:30
rebelonion
e50a65571f fix: follow activity crash 2024-03-06 08:38:55 -06:00
Finnley Somdahl
acef7c3d5e fix: headerAdaptor crash 2024-03-06 08:11:13 -06:00
aayush262
18778f3c5a fix(profile): remove progress in fav media 2024-03-06 15:58:55 +05:30
aayush262
03dae8c1b0 Merge remote-tracking branch 'origin/dev' into dev 2024-03-06 14:15:04 +05:30
aayush262
c862c072b5 feat: author and staff stuff 2024-03-06 13:43:37 +05:30
rebelonion
251f1e89cf Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-03-05 23:53:40 -06:00
rebelonion
3632055081 fix: correctly set banner 2024-03-05 23:53:38 -06:00
aayush262
bd64454c15 fix(profile): padding and stuff 2024-03-06 10:33:43 +05:30
rebelonion
31afbd547e feat: following / followers page 2024-03-05 19:33:42 -06:00
aayush262
8da0092561 WTF: rebel pls fix it 2024-03-06 02:19:30 +05:30
aayush262
36c64951c7 fix: someshit 2024-03-06 00:19:36 +05:30
aayush262
120e63ea8a fix(comments): hide "search by image" when chips are active 2024-03-05 20:07:50 +05:30
aayush262
ad82faba3f fix(comments): fix comment bar color 2024-03-05 20:03:53 +05:30
aayush262
4c4bbe3214 feat(YT): moved back to watch section 2024-03-05 20:03:18 +05:30
aayush262
ecbc7efebc feat(search): moved search by image 2024-03-05 17:22:40 +05:30
aayush262
89b6f28b9f feat(profile): added fav characters and staff 2024-03-05 17:10:04 +05:30
aayush262
8a1097cd35 Merge remote-tracking branch 'origin/dev' into dev 2024-03-05 14:36:46 +05:30
rebelonion
47d74de7ce fix: normal link colors 2024-03-05 02:33:39 -06:00
rebelonion
f3c89b3ac5 chore: remove debug webview 2024-03-05 02:30:56 -06:00
rebelonion
a2ecc5e30e fix: most profiles 2024-03-05 02:29:00 -06:00
rebelonion
db50975174 fix: navbar color in media details 2024-03-05 01:11:49 -06:00
rebelonion
ab14c4815f fix: home list sorting 2024-03-05 00:53:56 -06:00
rebelonion
7ad586c994 feat: brighten pink theme 2024-03-05 00:29:48 -06:00
rebelonion
db979de829 feat: normalize genres 2024-03-05 00:25:40 -06:00
rebelonion
5218d5cd28 fix: for different count types 2024-03-05 00:00:10 -06:00
aayush262
9e4684e61c Merge remote-tracking branch 'origin/dev' into dev 2024-03-05 11:13:38 +05:30
rebelonion
9b408e7520 feat: follow button 2024-03-04 23:38:05 -06:00
aayush262
10bd7d0918 fix(font): replaced Century Gothic Bold with Levenim MT Bold 2024-03-05 11:02:32 +05:30
rebelonion
5279b0cd65 feat: compare user stats 2024-03-04 22:55:29 -06:00
rebelonion
d181dcf837 feat: open stat in new window 2024-03-04 18:26:12 -06:00
rebelonion
49dc9d55b5 fix: cast color 2024-03-04 17:49:28 -06:00
rebelonion
852e9d0d29 fix: vote indent | serialize error 2024-03-04 00:56:35 -06:00
rebelonion
7a1ed4f83e feat: more charts | code cleanup 2024-03-04 00:02:41 -06:00
aayush262
2673b7d9bc fix(profile):formatting 2024-03-04 01:22:02 +05:30
aayush262
1587aff433 fix(list): bottom padding 2024-03-04 01:12:57 +05:30
aayush262
26b3f50fe0 fix(comments): force scroll 2024-03-03 23:05:19 +05:30
aayush262
286297aa38 Merge remote-tracking branch 'origin/dev' into dev 2024-03-03 22:41:17 +05:30
aayush262
99a805826d fix(profile page): Fav manga not showing 2024-03-03 22:41:02 +05:30
ibo
be1711b51e feat: scanlation bulk ticker (#218)
* feat: scanlation mass tick (WIP)

* feat: scanlation mass tick

* fix: togglebutton on scanlation scrollview

* fix: fix ImageButton padding + overlay

* fix: minor padding adjustment
2024-03-03 11:09:07 -06:00
aayush262
51beea1dc8 fix(profile page): Full bio not showing 2024-03-03 20:49:01 +05:30
aayush262
297e9dd756 feat(profile page): Better charts view ig 2024-03-03 20:36:24 +05:30
aayush262
03b8e7dab6 feat(profile page): added fav anime and manga 2024-03-03 16:24:36 +05:30
rebelonion
dbe837be28 feat: switch some graph styles 2024-03-03 01:29:43 -06:00
rebelonion
945d5886ea feat: genre graph 2024-03-03 01:25:45 -06:00
rebelonion
93fa29829f feat: length / year graph 2024-03-03 00:01:56 -06:00
rebelonion
a9f8d223e9 feat: score graph 2024-03-02 22:32:40 -06:00
Finnley Somdahl
d2876d04f5 feat: (wip) graph theming 2024-03-02 20:12:50 -06:00
rebelonion
fcd5c621de Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-03-02 14:57:22 -06:00
rebelonion
5fb0204376 feat: multidimensional charts 2024-03-02 14:56:43 -06:00
aayush262
790ab1a343 feat(profile page): something 2024-03-02 23:30:32 +05:30
aayush262
86ed721796 feat(profile page): Stats, Banner animation 2024-03-02 23:01:58 +05:30
rebel onion
2837cad762 feat: break markdown 2024-03-02 05:27:44 -06:00
rebelonion
500de4e45e feat: statistics (wip) 2024-03-02 04:54:02 -06:00
rebelonion
533148069f Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-03-02 01:15:54 -06:00
rebelonion
42b0a3b62b feat: statistics page (wip) 2024-03-02 01:15:46 -06:00
aayush262
c720aed4fc feat(profile page): WIP 2024-03-02 12:41:45 +05:30
rebelonion
00dad2ad48 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-03-01 22:38:26 -06:00
rebelonion
ce62a9c645 chore: gradle update 2024-03-01 22:38:25 -06:00
Sadwhy
1e4e2fd701 Remove Arca (#212)
* Removed from gradle

* Removed arca from BasePreferences.kt
2024-03-01 19:46:56 -06:00
rebelonion
103be31a43 fix: separate nullable statistics class 2024-03-01 18:15:09 -06:00
rebelonion
63fa3c829e fix: missing bracket 2024-03-01 18:08:56 -06:00
rebelonion
ab5c623e53 feat: send media ids in profile query 2024-03-01 18:07:46 -06:00
rebelonion
5e307bb796 fix: discord status code cleanup 2024-03-01 17:47:41 -06:00
ibo
a5567ef909 feat: discord status switcher (#211) 2024-03-01 17:40:13 -06:00
rebelonion
da22347267 feat: user profile data 2024-03-01 17:35:52 -06:00
rebelonion
a401ab89f3 feat: warnings 2024-02-29 23:03:57 -06:00
rebelonion
6e6429db82 fix: keep user data up to date 2024-02-29 18:52:27 -06:00
rebelonion
05fc97a933 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-02-29 15:13:34 -06:00
rebelonion
b9eb9d82f1 fix: navbar squish after loading settings 2024-02-29 15:13:31 -06:00
aayush262
976acd4af2 feat(manga dates): Better time formatting 2024-03-01 00:23:25 +05:30
ibo
c5cbe408c1 Update UserInterfaceSettingsActivity.kt (#207)
feat(UI setting): restart option after changing default tabs
2024-03-01 00:12:40 +05:30
aayush262
1316d5a698 feat(manga): Date and Scanlator in description 2024-02-29 20:43:30 +05:30
rebelonion
89aaef8355 feat: smooth navbar indicator 2024-02-29 03:54:56 -06:00
rebelonion
94e3dff909 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-02-29 03:29:22 -06:00
rebelonion
6240c61a11 fix: comment item spacing 2024-02-29 03:29:14 -06:00
Sadwhy
f226614980 Using different colours values on ep watched count (#205) 2024-02-29 03:21:08 -06:00
rebelonion
0ab283b254 fix: navbar behind system navbar 2024-02-29 03:20:08 -06:00
rebelonion
449485f06a fix: search bars 2024-02-29 03:10:21 -06:00
rebelonion
60752e83ed fix: no external links 2024-02-28 12:41:41 -06:00
rebelonion
dfd8b597cd fix: limit comment size 2024-02-28 12:41:31 -06:00
rebelonion
e256fb1560 feat: better notification 2024-02-28 01:27:48 -06:00
aayush262
2f7c6e734e feat(comments): UI tweaks
fix(comments): top padding
fix: removed self report
feat: better colors in color picker
2024-02-27 23:24:59 +05:30
rebelonion
efe5f546a2 feat: reply notifications 2024-02-27 02:13:06 -06:00
rebelonion
a8bd9ef97b fix: reply bar not showing 2024-02-26 19:35:12 -06:00
rebelonion
e93ca5d86e fix: failed to parse comment when commenting 2024-02-26 03:10:52 -06:00
rebelonion
7f943d34ac feat: comment placement | tagging 2024-02-26 03:01:11 -06:00
rebelonion
8a922bd083 feat: token lifetime stored 2024-02-25 18:35:45 -06:00
rebelonion
d5c87c46aa fix: replying message hide correctly 2024-02-25 01:18:44 -06:00
rebelonion
f128dee3e4 fix: clear status bar for custom themes 2024-02-25 00:36:53 -06:00
rebelonion
9de129a35b fix: block some tags 2024-02-25 00:29:06 -06:00
rebelonion
6d6b0b975a feat: alert dialog for deleting 2024-02-24 23:54:54 -06:00
rebelonion
bff8983b23 fix: comment replies visibility 2024-02-24 23:50:20 -06:00
rebelonion
55e156579b feat: comment reporting 2024-02-24 22:43:55 -06:00
rebelonion
a251dd4ffb feat: limit comment depth to 4 2024-02-24 19:05:17 -06:00
rebelonion
526098f2bf feat: (wip) limit comment depth to 4 2024-02-23 19:24:17 -06:00
rebelonion
6ccdc10208 feat: add user level to comments 2024-02-23 18:55:53 -06:00
rebelonion
ce355c108e fix: right-side padding on nested comments 2024-02-23 18:43:01 -06:00
rebelonion
612936476d Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-02-23 18:13:29 -06:00
rebelonion
7ba117ec25 feat: set comment name color above WCAG Guidelines 2024-02-23 18:13:00 -06:00
aayush262
8ea6bf85b8 feat(comments): "reply to" above text input 2024-02-23 20:47:59 +05:30
Sadwhy
70c87b4067 A few ui changes (#204) 2024-02-22 21:32:46 -06:00
rebelonion
4628282715 fix: crash on comments api connection failure 2024-02-22 21:13:12 -06:00
rebelonion
6c14a2eccf feat: colored names in comments 2024-02-22 20:49:36 -06:00
rebelonion
8944941d80 fix: comments api accepts total votes 2024-02-22 19:13:22 -06:00
rebelonion
78da98bd1d fix: keep text state when off screen (commentItem) 2024-02-22 17:36:59 -06:00
rebelonion
57833be7df fix: tag sort 2024-02-21 23:47:48 -06:00
rebelonion
506a0576df fix: subscription icon 2024-02-21 23:40:41 -06:00
rebelonion
458f4d1ff9 fix: most recent watch at beginning of list 2024-02-21 23:32:53 -06:00
rebelonion
21b9d51a35 fix: image saving on api > Q 2024-02-21 23:09:31 -06:00
rebelonion
82922b9792 fix re-add anilist link 2024-02-21 23:01:50 -06:00
rebelonion
160f783c6d Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-02-21 23:01:11 -06:00
rebelonion
ba7c665a9d fix: code cleanup | reply/edit stability 2024-02-21 22:59:45 -06:00
aayush262
b2f01a24b2 feat(comments): re-added Divider for reply 2024-02-20 14:11:38 +05:30
aayush262
84ae520f93 feat(comments): click on username to open in anilist 2024-02-20 13:59:50 +05:30
aayush262
4f61f4cf2c fix: Github Actions 2024-02-20 10:53:57 +05:30
Yutatsu
eba774618e added default load control (#202) 2024-02-19 22:09:21 -06:00
rebelonion
a74b9e985d fix: remove properties file dependency 2024-02-19 01:31:15 -06:00
rebelonion
0c2e2db1dc feat: basic replying 2024-02-19 01:28:11 -06:00
ibo
98b227876b New Theme :) preview in discord (#200)
* Update ThemeManager.kt

added oriax in picker + applier

* Update colors.xml

Added new color seed

* Update themes.xml

Added Oriax Lightmode

* Update themes.xml

Added Oriax Darkmode + OLED
2024-02-17 22:46:54 -06:00
aayush262
1fe50d2cca feat: reply in comments(WIP) 2024-02-17 12:29:39 +05:30
aayush262
420c0348f9 fix: mod cant ban themself now 2024-02-17 12:25:18 +05:30
aayush262
9be81aa4a9 fix: paddings of badges 2024-02-16 19:49:19 +05:30
aayush262
64c8f4225c fix: paddings in comments 2024-02-16 16:37:31 +05:30
rebelonion
a7c9604c43 fix: first comment message appear every time 2024-02-15 18:45:57 -06:00
rebelonion
68cc81e56c fix: correct config import 2024-02-15 18:39:46 -06:00
rebelonion
c9a64b1638 feat: server-side auth 2024-02-15 18:28:03 -06:00
rebelonion
ee7cff0fea feat: remember comment sort order 2024-02-15 14:17:45 -06:00
rebelonion
4c35f9a0cf fix: don't show 404 if no comments 2024-02-15 13:32:05 -06:00
rebelonion
9d9c4f026d fix: better error message 2024-02-15 13:24:34 -06:00
rebelonion
b4c7ea5f26 fix: round image on comment bar 2024-02-15 13:01:04 -06:00
rebelonion
093bee94c6 fix: update timestamp without reloading the page 2024-02-15 13:00:08 -06:00
rebelonion
fb99429dd7 fix: better attempt to get anilist username 2024-02-15 12:53:06 -06:00
rebelonion
a73c4cd678 feat: comments targeted at database 2024-02-15 12:44:52 -06:00
aayush262
1694a1cb24 feat: comments sorter popup 2024-02-15 15:25:18 +05:30
rebelonion
aaf9bdd00c feat: creating, deleting comments | markdown, spoiler comments 2024-02-14 06:41:24 -06:00
aayush262
129adc5825 chore: upgrade download-artifact-v3 -> v4 2024-02-13 22:39:04 +05:30
aayush262
07e7456ed8 Merge remote-tracking branch 'origin/dev' into dev 2024-02-13 13:36:31 +05:30
aayush262
7168e08587 feat: something idr 2024-02-13 13:35:46 +05:30
rebel onion
efb3b27317 Merge pull request #195 from Sadwhy/patch-6
A well recognized font
2024-02-12 17:34:33 -06:00
Sadwhy
2c3247c194 fixed unfortunate licence issues 2024-02-12 22:24:18 +06:00
aayush262
d37ebf8cdd fix: typo 2024-02-12 21:44:54 +05:30
aayush262
a73b049fd4 feat: moved "Play on youtube" to info page 2024-02-12 21:44:22 +05:30
aayush262
b3de2f805f wip: "send comments" interface 2024-02-12 21:43:29 +05:30
Sadwhy
0bec4f4d61 Mojangles font 2024-02-12 14:38:27 +06:00
aayush262
4be4a0968d Merge remote-tracking branch 'origin/dev' into dev 2024-02-12 01:45:16 +05:30
aayush262
97b957a0ab wip: UI for comments 2024-02-12 01:44:36 +05:30
Sadwhy
a22083dfcd fix: Updated discord links 2024-02-11 23:00:16 +05:30
rebel onion
9dbc3db1b8 Merge pull request #188 from Sadwhy/patch-6
Offline padding and faq update
2024-02-11 05:16:27 -06:00
Sadwhy
7af71ba217 Faq Rewrite P.1 2024-02-11 16:59:48 +06:00
rebelonion
80f3523f2e Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-02-11 04:16:23 -06:00
rebelonion
0afad1d9ae feat: comment authorization 2024-02-11 04:16:22 -06:00
aayush262
915c6c1dfe feat: better format for change logs 2024-02-10 23:11:20 +05:30
aayush262
e319aeb342 feat: monet icon for alpha 2024-02-10 23:08:13 +05:30
Sadwhy
ac20426689 Added proper padding to offline text/buttons 2024-02-09 09:02:53 +06:00
rebelonion
83c07467a9 fix: disable some buttons on fdroid build 2024-02-08 08:54:10 -06:00
rebelonion
0225b28fea fix: hitting enter on password input continues 2024-02-08 08:38:41 -06:00
rebelonion
1e2a740dae Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-02-08 08:15:53 -06:00
rebelonion
22e687b9d8 feat: add more helpers/developers 2024-02-08 08:15:51 -06:00
rebelonion
f088b90964 fix: ignore fdroid builds in beta 2024-02-08 08:15:29 -06:00
rebel onion
2493935349 Merge branch 'main' into dev 2024-02-08 07:34:23 -06:00
rebelonion
c9699ba1fc version bump 2024-02-08 07:26:14 -06:00
rebelonion
051012be2d feat: weeb filter in search results 2024-02-08 06:57:42 -06:00
rebelonion
a38f1a2b2b fix: hide system bars in reader by default 2024-02-08 06:47:15 -06:00
rebelonion
0b66275995 fix: default A10 to legacy storage 2024-02-08 06:32:22 -06:00
rebelonion
7879fe4355 fix: initial protected save not saving with correct filetype 2024-02-08 06:31:09 -06:00
rebelonion
4aa88244ed fix: default to old cast method for now 2024-02-08 06:23:51 -06:00
rebelonion
bfe4d69b8a fix: change default user agent 2024-02-08 05:52:55 -06:00
rebelonion
69fead70d1 fix: crash on softsub download 2024-02-08 05:24:51 -06:00
rebelonion
92c663cd38 chore: cleanup 2024-02-08 05:11:28 -06:00
rebelonion
b829ed26f3 fix: combine anilist init queries into one query 2024-02-08 05:06:09 -06:00
rebelonion
3d4834507d fix: image cropping on some dpi levels 2024-02-08 01:20:57 -06:00
rebelonion
0758241e06 fix: download button orientation 2024-02-08 00:56:14 -06:00
rebelonion
b093b5f979 fix networking on some extensions 2024-02-08 00:38:09 -06:00
rebelonion
d86481a0f7 fix: anime extension image url 2024-02-07 23:55:27 -06:00
rebel onion
de1788950f Merge pull request #185 from rebelonion/dev
Dev
2024-02-07 08:12:43 -06:00
rebelonion
1e7b546b75 fix: extension dragging 2024-02-07 01:29:08 -06:00
rebelonion
d53781e75a fix: text alignment issues 2024-02-07 00:05:14 -06:00
rebelonion
aa1830f12c fix: search history not clickable 2024-02-06 23:58:09 -06:00
rebelonion
17a87aa8c8 bump versionCode 2024-02-06 23:30:13 -06:00
rebelonion
2662017fb7 fix: favorites list not showing progress 2024-02-06 22:41:10 -06:00
rebelonion
f2b9cc3b3e fix: swap button colors in login fragment 2024-02-06 21:56:52 -06:00
rebelonion
2912ee5f73 fix: popups backgrounds to black when in OLED mode 2024-02-06 21:55:14 -06:00
rebelonion
9bb4c702f3 feat: ask permission for files on API <29 2024-02-06 21:40:38 -06:00
rebelonion
c4630f9243 fix: bottom sheet alignment 2024-02-06 21:23:29 -06:00
rebelonion
57581d6f54 feat: transition for mediainfofragment items 2024-02-06 20:51:41 -06:00
rebelonion
b5cfb5d567 fix: extension page sorting order bug 2024-02-06 19:46:12 -06:00
rebelonion
04306a981f fix: inconsistent search history order 2024-02-06 19:07:44 -06:00
rebelonion
95409f7eda fix: remove some overhead when storing sets 2024-02-06 18:58:21 -06:00
rebelonion
8741d820ad fix: start anime download icon rotate when pressed 2024-02-06 18:16:11 -06:00
rebelonion
6020636a66 fix: update .gitignore 2024-02-06 17:26:42 -06:00
rebelonion
d15ffe7708 fix: firebase initialization 2024-02-06 03:11:31 -06:00
rebelonion
f77269e468 fix: update workflow for new flavor 2024-02-06 02:33:01 -06:00
rebelonion
a2e44da99d chore: code refactor 2024-02-06 02:16:10 -06:00
rebelonion
8d7b86a667 fix: crash on incorrect password 2024-02-06 01:53:49 -06:00
rebelonion
0c6fad91ca fix: #184 constraint layout 2024-02-06 01:39:57 -06:00
rebelonion
c0f3fed142 feat: F-Droid flavor 2024-02-06 01:10:12 -06:00
Sadwhy
21f5d503cd Changed launch animation <:kys:960143876184739880> (#181)
* Branch

* Changed Launch Animation

* Update strings.xml

---------

Co-authored-by: rebel onion <87634197+rebelonion@users.noreply.github.com>
2024-02-06 00:58:43 -06:00
Sheby
18b4f858d9 style: Centre align chips 2024-02-06 04:40:41 +05:30
aayush262
a101cac503 fix: send apk to telegram 2024-02-05 23:05:39 +05:30
aayush262
3f4c1953f8 feat: send apk to telegram(WIP) 2024-02-05 20:27:57 +05:30
aayush262
a599b5b632 test 2024-02-05 15:16:56 +05:30
aayush262
9fad3597bb test 2024-02-05 15:09:54 +05:30
rebelonion
f4b9889d67 last shot 2024-02-05 02:33:51 -06:00
rebelonion
d27b4f6905 feat: commits start on a new line 2024-02-05 02:26:35 -06:00
rebelonion
855c7e623a fix: gradlew line endings
fix: beta.yml

fix: multiline beta.yml

Update beta.yml

Update beta.yml

Update beta.yml

Update beta.yml

fix: beta.yml newline

Update beta.yml

fix: finding last sha

fix: beta .yml
2024-02-05 02:10:30 -06:00
rebelonion
a7e7bd0230 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-02-04 22:47:14 -06:00
rebelonion
1d46897086 fix: alpha icon reversed 2024-02-04 22:47:09 -06:00
aayush262
7af0721a75 fix: big fonts 2024-02-04 20:22:13 +05:30
Sadwhy
884d738de9 :) (#179)
* This is war

* <@520373269979988000>
2024-02-04 18:29:16 +05:30
rebelonion
ef71ca8a76 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-02-04 04:27:37 -06:00
rebelonion
d4df12505b fix: handle multiline message 2024-02-04 04:27:12 -06:00
aayush262
670d9b3913 fix: mono icon in alpha version 2024-02-04 15:51:49 +05:30
rebelonion
19df5355ba add fetch depth 2024-02-04 04:17:24 -06:00
rebelonion
8ca1c3be1f show more commit messages in discord message 2024-02-04 04:14:19 -06:00
rebelonion
ed19aac553 feat: add rotation viewable setting 2024-02-04 04:07:56 -06:00
rebelonion
7a67fbb980 feat: import settings on login page 2024-02-04 03:59:52 -06:00
rebelonion
d80b250650 fix offline crash 2024-02-04 03:13:15 -06:00
rebelonion
300f2c2fb0 fix: added preference theme 2024-02-04 01:56:11 -06:00
rebelonion
c2f108bf44 fix: sorting extensions order 2024-02-04 01:19:34 -06:00
rebelonion
15abcd77d0 feat: better anilist api failure info 2024-02-04 00:29:41 -06:00
rebelonion
462f82e3fb fix: change download icon 2024-02-04 00:29:16 -06:00
rebelonion
eade3ce341 fix!: MAL token serialization 2024-02-03 23:36:49 -06:00
rebelonion
b4487159ed fix: webhook 2024-02-03 21:14:40 -06:00
rebelonion
d12022266e feat: alpha version 2024-02-03 21:05:01 -06:00
rebel onion
13074a0f72 fix: semantic versioning in workflow 2024-02-03 19:38:43 -06:00
aayush262
dc2c0c1027 something 2024-02-03 17:38:38 +05:30
rebelonion
97ed84127e extension filtering 2024-02-03 04:27:16 -06:00
rebelonion
d3f097f675 sortable sources 2024-02-03 04:06:41 -06:00
rebelonion
402e0576c8 fix for progress dialog 2024-02-03 01:52:39 -06:00
rebelonion
aa8d41eecf better setting export 2024-02-03 00:43:20 -06:00
rebelonion
54b53dbe56 remove less-used preferences 2024-02-02 16:48:46 -06:00
rebelonion
2214c47c0c exporting credentials now requires a password (encrypted) 2024-02-02 16:45:07 -06:00
Finnley Somdahl
ed6275b0e8 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-02-02 14:49:22 -06:00
Finnley Somdahl
97d062ffc2 remove unnecessary context (build failing) 2024-02-02 14:49:19 -06:00
Sadwhy
c57c33c088 Small delay to offline toggle (#171) 2024-02-02 22:25:01 +05:30
Finnley Somdahl
025d31102e move anilist to protected 2024-02-02 09:50:06 -06:00
Finnley Somdahl
cd96b6ab06 attempt to not overwrite settings file 2024-02-02 09:33:55 -06:00
Finnley Somdahl
9358f86d43 filter exportable extensions 2024-02-02 09:18:47 -06:00
Finnley Somdahl
7e51e067cd fix create file view to open file view 2024-02-02 09:12:02 -06:00
Finnley Somdahl
10ae66d1d0 fix deserialzeClass storing in the wrong preference 2024-02-02 08:36:20 -06:00
aayush262
cbdd1a2538 Fix dark theme 2024-02-02 19:05:32 +05:30
rebelonion
829292399b set default export before click 2024-02-02 02:47:08 -06:00
rebelonion
f7c7b8050f fixes 2024-02-02 02:43:29 -06:00
rebelonion
a3be59bd02 version bump 2024-02-02 02:05:05 -06:00
rebelonion
49e90a27b8 import/export settings 2024-02-02 02:04:46 -06:00
rebelonion
b559a13bab Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-02-01 14:54:27 -06:00
rebelonion
4d682f014d remove old setting saving 2024-02-01 14:54:25 -06:00
aayush262
1a346e6b5a no changes 2024-02-01 23:37:34 +05:30
aayush262
37a53748a2 crash fix 2024-01-31 13:25:00 +05:30
aayush262
9c2c932e75 Rearranged settings page 2024-01-31 12:26:11 +05:30
aayush262
c853d5bdf8 no rpc in offline mode 2024-01-31 10:41:21 +05:30
Finnley Somdahl
1f98e349dc automatically update downloads to new system 2024-01-30 20:37:13 -06:00
Finnley Somdahl
883c14bf0d more cleanup 2024-01-30 20:23:39 -06:00
Finnley Somdahl
178abf0f83 fix nullable string 2024-01-30 20:13:51 -06:00
aayush262
c242fedfee imported more settings 2024-01-30 17:34:01 +05:30
aayush262
922ccdfb27 fixed mis-match default values 2024-01-30 14:30:42 +05:30
rebelonion
965adddf8d Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-01-30 00:39:19 -06:00
rebelonion
8020b32541 backend preference wrapper 2024-01-30 00:39:12 -06:00
aayush262
33d798727c fix switch color 2024-01-29 13:37:13 +05:30
rebel onion
a0949c4e36 no 2024-01-28 22:34:09 -06:00
Sadwhy
f00a0367cf Fixed md3 switches in sub/dub (#165)
* Fixed md3 switches in sub/dub

* :)
2024-01-28 20:42:30 +05:30
rebelonion
eb5b83564f some small bugfixes 2024-01-28 04:29:18 -06:00
rebelonion
6b9dce10cf code 2024-01-28 04:24:20 -06:00
rebelonion
5d789bf96c SEARCH HISTORY OR SMTH IDK ANY MORE 2024-01-28 04:13:16 -06:00
rebelonion
17431734fb update string for better desc 2024-01-27 23:12:40 -06:00
rebelonion
63c80fa526 version bump 2024-01-27 13:52:39 -06:00
rebelonion
2b79d437fc Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-01-27 13:33:52 -06:00
rebelonion
1e6041f99e remove default anime/manga sources 2024-01-27 13:33:50 -06:00
rebel onion
fad4032a78 Merge pull request #163 from Yutatsu1/dev
added episode duration formatting
2024-01-26 15:57:51 -06:00
Yutatsu
36ad006021 add episode duration formatting 2024-01-26 17:42:34 +00:00
aayush262
f6db690454 quality in exoplayer 2024-01-26 19:36:46 +05:30
aayush262
26575cfa0d old switch for sub/dub toggle 2024-01-26 18:56:37 +05:30
rebelonion
73be639397 cleanup 2024-01-25 12:00:00 +00:00
rebelonion
0ebd067bc2 cleanup 2024-01-26 00:29:19 -06:00
rebelonion
49b3c33fbc subdub toggle | regex fix (yomiroll) | idk I forgot 2024-01-26 00:17:33 -06:00
aayush262
4a5eab13c9 removed quality selector 2024-01-26 10:32:02 +05:30
aayush262
00ce6ce755 Merge remote-tracking branch 'origin/dev' into dev 2024-01-26 09:29:22 +05:30
aayush262
0aa95889aa scroll to top padding fixed 2024-01-26 09:29:12 +05:30
Adolar0042
3fdec074c6 feat: made year filter dynamic (#159)
* feat: made year filter dynamic
2024-01-25 21:54:48 +05:30
aayush262
29c6863b00 Merge remote-tracking branch 'origin/dev' into dev 2024-01-25 00:31:33 +05:30
aayush262
97eacb58a6 wont show progress window if incognito is on 2024-01-25 00:30:28 +05:30
aayush262
67bb28d027 scroll to top 2024-01-25 00:23:19 +05:30
aayush262
513ed31b08 filler fix 2024-01-25 00:20:19 +05:30
rebel onion
da5d95c7e5 Merge pull request #158 from Yutatsu0/dev
let jerry sleep in peace
2024-01-24 09:37:38 -06:00
Yutatsu
7b9450807b let jerry sleep in peace 2024-01-24 20:24:42 +06:00
Finnley Somdahl
8bc3631964 subdub regex function 2024-01-23 16:20:50 -06:00
Finnley Somdahl
ab038983e5 sub/dub regex 2024-01-23 15:26:37 -06:00
Finnley Somdahl
79cff1ec9d fix heart thing 2024-01-23 14:44:50 -06:00
Finnley Somdahl
4893cd0b03 check for initialization 2024-01-23 14:18:36 -06:00
Finnley Somdahl
b8fbeed785 check for activity context 2024-01-23 14:15:04 -06:00
Finnley Somdahl
8a9668bc79 switch icon in service 2024-01-23 14:06:12 -06:00
Finnley Somdahl
d02d542207 cast fix 2024-01-23 13:56:59 -06:00
Finnley Somdahl
4c797c5eb1 index fix 2024-01-23 13:54:15 -06:00
Finnley Somdahl
3fa2690277 20% bleh 2024-01-23 13:37:52 -06:00
Finnley Somdahl
67d482bad6 Revert "removed sub dub toggle(useless)"
This reverts commit 60981ba224.
2024-01-23 13:35:28 -06:00
aayush262
60981ba224 removed sub dub toggle(useless) 2024-01-23 23:42:11 +05:30
aayush262
cb8ebfccb6 Removed useless Quality selector in exoplayer 2024-01-23 22:32:08 +05:30
aayush262
e5f0b71cf0 fixed broken transition in offline anime page 2024-01-23 18:38:30 +05:30
aayush262
4218d81c49 Download manager fixed
now no need to long tap download button to download externally (select external downloader to download from external app)
2024-01-23 17:38:11 +05:30
aayush262
9fa422ebf3 fixed anime/chapter list theme for OLED 2024-01-23 16:18:20 +05:30
aayush262
3ec488675f 20% Chance of getting Update extension 2024-01-23 15:53:41 +05:30
rebelonion
78b7d07500 version bump 2024-01-23 01:58:43 -06:00
rebel onion
a316de3957 Update stable.md 2024-01-23 01:43:02 -06:00
rebel onion
c3f5a820e4 Merge pull request #155 from rebelonion/dev
Dev
2024-01-23 01:39:07 -06:00
rebelonion
daa5ec7bed extension updates toast 2024-01-23 01:36:38 -06:00
rebelonion
de91f1f3fa idk some fixes or smth 2024-01-23 01:23:47 -06:00
rebelonion
9c67a7e357 nice transition for offline mode 2024-01-22 22:51:51 -06:00
rebelonion
f70ce39fb7 some code cleanup 2024-01-22 22:39:01 -06:00
rebel onion
20ffe2273c Update README.md 2024-01-22 22:18:04 -06:00
aayush262
f333051073 Merge pull request #154 from aayush2622/dev
warning menu when deleting episode
2024-01-23 01:18:07 +05:30
Finnley Somdahl
a58f8fa76b random fix 2024-01-22 18:59:57 -06:00
aayush262
625c7d738b warning menu when deleting episode
auto hide desc if ep is downloaded(looked verybad when both was on)
2024-01-23 01:10:51 +05:30
aayush262
563e4f2cbe "Include list" switch changed (#153)
* "Include list" switch change

* remember the toggle state of "Include list"
2024-01-22 12:40:29 -06:00
rebel onion
627bed2407 ping update build 2024-01-22 11:04:13 -06:00
Finnley Somdahl
8313d639d7 fuckujerryidowhatiwant 2024-01-22 16:52:43 -06:00
Finnley Somdahl
c603de70e3 who doesn't love a good delay in their code? 2024-01-22 16:00:15 -06:00
rebel onion
4508cada0f Merge pull request #152 from rebelonion/dev
Dev
2024-01-22 08:41:40 -06:00
aayush262
ab8dc2ee8b added unnecessary check 🤣 2024-01-22 11:54:17 +05:30
rebelonion
acf2dd9a8a remove unnecessary check 2024-01-21 20:04:04 -06:00
Yutatsu
f562e7d7cf remove "Failed to load data from MAL" toast (#151) 2024-01-21 15:26:22 -06:00
aayush262
25372d5251 fixed scroll to top in offline mode (#149)
* fixed small bugs

* fixed scroll to top in offline mode
2024-01-21 15:23:23 -06:00
rebelonion
efb346d0a8 better error message for webview 2024-01-21 15:21:58 -06:00
rebelonion
6d05fb4413 pretest version bump 2024-01-21 02:04:25 -06:00
rebelonion
d67a51791e regex fix :') 2024-01-21 02:02:14 -06:00
rebelonion
332857b2c9 default view bug 2024-01-21 01:46:46 -06:00
rebelonion
a0018b5fb6 pinned sources 2024-01-21 01:40:44 -06:00
rebelonion
734c5d0571 help clear some pesky errors 2024-01-21 00:30:54 -06:00
rebelonion
8e93f66ba8 alert dialog cancel button 2024-01-21 00:26:22 -06:00
rebelonion
5d8cf8a605 cool transition 2024-01-21 00:11:09 -06:00
rebelonion
87c2d82462 download stopping 2024-01-20 23:41:22 -06:00
rebelonion
45a341397b regex fix 2024-01-20 22:51:24 -06:00
rebelonion
b018d0f090 kitsu description fix 2024-01-20 19:18:15 -06:00
Yutatsu
3c992f89f4 use episode titles from kitsu if kitsu doesn't have episode titles use anime source titles (#146) 2024-01-20 13:54:31 -06:00
aayush262
8067e0d0ac INCOGNITO (final fix) (#143) 2024-01-20 13:53:33 -06:00
aayush262
4cee512572 fixed upload image button padding (#142)
* no extra media in offline mode

* incognito display in media

* fixed upload image button padding
2024-01-19 02:08:30 -06:00
rebelonion
87a9df4c12 I FUCKING HATE EXOPLAYER SUBTITLES 2024-01-19 01:49:24 -06:00
rebelonion
ea96291bfc add optional username in crash report 2024-01-18 22:20:56 -06:00
rebelonion
b1eedce229 MANGA REGEX FIX 2024-01-18 21:32:49 -06:00
rebelonion
0d32342765 TOAST BUG 2024-01-18 21:22:13 -06:00
rebelonion
d81391f593 BUG: I FIX 2024-01-18 21:16:14 -06:00
rebelonion
3bd9dc031a download manager fix 2024-01-18 20:31:53 -06:00
rebelonion
4f07421df7 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-01-18 20:16:56 -06:00
aayush262
8eadd20968 lil tweaks (#140) 2024-01-18 03:34:29 -06:00
rebelonion
c6d04d99b3 version bump 2024-01-18 02:26:59 -06:00
rebelonion
91b1f4775b status bar height fix 2024-01-18 02:04:14 -06:00
rebelonion
5bd8f1a3c7 regex fix 2024-01-18 01:55:47 -06:00
rebelonion
39fc508cfe crash fixes 2024-01-18 01:18:38 -06:00
rebelonion
664b5a4bdd ??? 2024-01-18 01:09:30 -06:00
rebelonion
ff02280239 webview for extensions 2024-01-18 01:09:11 -06:00
rebelonion
26b6564825 downloads showing for all media fix 2024-01-17 23:40:14 -06:00
rebelonion
5459908201 download not showing up fix 2024-01-17 23:27:54 -06:00
rebelonion
3693179c78 aniwave fix 2024-01-17 22:48:48 -06:00
rebelonion
9416c88511 regex fix 2024-01-17 20:37:49 -06:00
rebelonion
f18399d529 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-01-17 19:48:31 -06:00
aayush262
6b2ffdaf4f ruined UI (#138)
* removed auto navbar hide

* ruined rebel's fabulous UI
2024-01-17 19:48:17 -06:00
rebelonion
d16dd7ed67 video name too long fix 2024-01-17 02:40:49 -06:00
rebelonion
8142c966c0 read me and weep 2024-01-17 02:34:37 -06:00
rebelonion
b7cc35207c odd color bug in ocean 2024-01-17 02:16:04 -06:00
rebelonion
e398238fe6 remove download on fail 2024-01-17 01:47:42 -06:00
rebelonion
51a5609395 incognito header fix 2024-01-17 01:45:41 -06:00
rebelonion
4e6842862e send offline mode to correct page 2024-01-17 00:56:48 -06:00
rebelonion
ddde08c61b version bump 2024-01-17 00:10:17 -06:00
rebelonion
05b3f57a76 incognito notification onClick 2024-01-17 00:08:32 -06:00
rebelonion
0464cc08c3 fix episode number in exoplayer 2024-01-16 23:16:15 -06:00
rebelonion
4be3ded9c8 default op skip proxy to off 2024-01-16 23:03:39 -06:00
rebelonion
6a42832855 view download status 2024-01-16 22:05:29 -06:00
rebelonion
84fc5e6e2c verbose downloading 2024-01-16 17:53:46 -06:00
rebelonion
8375cb5c03 cast long press fix 2024-01-16 15:27:17 -06:00
rebelonion
2fdee06248 download manager on long click 2024-01-16 15:17:18 -06:00
rebelonion
f861b3621f universal storage name 2024-01-16 15:00:21 -06:00
rebelonion
0cfcfcb9ac no found media error message 2024-01-16 14:59:38 -06:00
rebelonion
68ccff2259 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-01-16 14:54:17 -06:00
aayush262
aa972c916a navbar fix (#135)
* navbar fix

* fixed can uninstall after changing grid view

* removes server selector in offline mode shows amount of Scanlator present
2024-01-16 14:54:07 -06:00
rebelonion
b0673d4f78 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-01-16 14:52:01 -06:00
rebelonion
5170288050 update extension api 2024-01-16 14:51:33 -06:00
aayush262
61150066bd auto hide android navbar (#133)
* auto hide android navbar

* auto hide android navbar
2024-01-15 12:55:21 -06:00
aayush262
bd6197031a downloaded anime page bug fixes (#132)
* after changing grid style items are not accessible fixed

* added total ep released no

* padding fix

* fixed scroll to top coinciding with navbar

* small change
2024-01-15 10:01:41 -06:00
rebelonion
98cb11e841 offline anime 2024-01-14 23:59:39 -06:00
rebelonion
52dadf34cf Delete all 2024-01-14 19:00:02 -06:00
rebelonion
f038dcb255 clean incognito notification function 2024-01-14 18:58:57 -06:00
rebelonion
a851c0f715 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-01-14 16:00:36 -06:00
aayush262
a0b6956ca4 incognito notification (#130) 2024-01-14 15:59:28 -06:00
rebelonion
2f41515b33 public dir for images 2024-01-14 02:18:17 -06:00
rebelonion
063d314c36 error catch for saving image 2024-01-14 01:45:46 -06:00
aayush262
e7631e021e fixed offline mode (#124) 2024-01-13 15:30:39 -06:00
Finnley Somdahl
e65fa8d565 exoplayer string fix 2024-01-13 12:24:18 -06:00
Finnley Somdahl
14d08b9491 sad fucked up 2024-01-13 12:06:45 -06:00
Finnley Somdahl
cc5b512441 clean Sad's shit 2024-01-13 11:20:02 -06:00
Sadwhy
84e300482a Incognito and download switch (#121)
* Offline Mode and incognito Switch

* fix

* Fix 1

* Update MainActivity.kt

* Update MainActivity.kt

---------

Co-authored-by: rebel onion <87634197+rebelonion@users.noreply.github.com>
2024-01-13 11:13:54 -06:00
Finnley Somdahl
46b84ffc76 regex fix 2024-01-13 10:53:22 -06:00
Finnley Somdahl
ad1979505e ok an actual fix this time 2024-01-13 00:24:14 -06:00
Finnley Somdahl
310f068e79 better regex 2024-01-12 23:35:34 -06:00
Finnley Somdahl
431617e6b5 offline manga order fix (again) 2024-01-12 23:13:40 -06:00
Finnley Somdahl
33bb60baad download settings 2024-01-12 22:41:49 -06:00
Finnley Somdahl
e847ec21c3 paging out of bounds exception 2024-01-12 21:09:15 -06:00
Finnley Somdahl
e0a1f6534f weird faq bug 2024-01-12 21:03:48 -06:00
Finnley Somdahl
1ba67280a6 allow episode in title if no other characters 2024-01-12 21:00:05 -06:00
Finnley Somdahl
419d33a3ac allow old cast method 2024-01-12 20:54:34 -06:00
Finnley Somdahl
f12a4de04b PlatformSchedulerService in manifest 2024-01-12 20:10:55 -06:00
Finnley Somdahl
3077f39c9d variable lol 2024-01-12 19:56:59 -06:00
Yutatsu
97cd3dd43b Remove episode number from episode title like saikou (#119)
* Add files via upload

* Add files via upload

* Add files via upload

* use existing robust episode regex

* use existing robust episode regex

* use existing robust episode regex

* use existing robust episode regex

* allow external use of manga chapter regex as well

---------

Co-authored-by: rebel onion <87634197+rebelonion@users.noreply.github.com>
2024-01-12 19:51:10 -06:00
aayush262
038b8f7ff7 better FastForward bar (#117) 2024-01-09 08:42:19 -06:00
Finnley Somdahl
3d3c9feaec potential fix for out of order manga downloads 2024-01-09 06:34:51 -06:00
Finnley Somdahl
7e5def3a37 custom novel search fix 2024-01-09 06:22:25 -06:00
Finnley Somdahl
e3e3965795 manga progress check fix 2024-01-09 06:05:01 -06:00
Finnley Somdahl
158ea60047 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2024-01-09 00:01:23 -06:00
Finnley Somdahl
2e13d79615 auto debug disable 2024-01-09 00:01:12 -06:00
aayush262
f5297f4927 quick fix (#116) 2024-01-08 23:51:30 -06:00
Finnley Somdahl
326b848e57 manga extensions fix 2024-01-08 23:23:17 -06:00
aayush262
01f9e86475 minor tweaks (#115)
* Added telegram link

* Removed UPI (rebel not indian)

* minor changes

* Shows number of manga/Ln downloaded

* fixed list name overlapping with notch

* wrong index selection in language fixed

* novel icon

* Emerald theme name changed to Ocean

* forgot to remove

* why was these still there
2024-01-08 22:11:00 -06:00
rebel onion
af992bd19c Delete app/src/main/res/values-en-rDW directory 2024-01-04 23:32:06 -06:00
rebel onion
51b3aac0c0 Update strings.xml 2024-01-04 11:28:27 -06:00
rebel onion
8df2107ef9 debuggable false 2024-01-04 11:17:49 -06:00
aayush262
4286232d17 Language name in extension setting (#111)
* Full language name in ext settings

* added more lang name

* changed alter dialog view

* sort language by names

* 3x grid for 360DP mobiles

* Default novel settings

* Oled for LN

* Lang full name

* Notification icon changed to dantotsu

* Remember 'sort' value
2024-01-04 09:52:07 -06:00
Finnley Somdahl
ef30869b62 more visible nav 2023-12-31 06:18:55 -06:00
Finnley Somdahl
ae8b952b4c floating nav bar?? 2023-12-31 05:45:27 -06:00
Finnley Somdahl
486be4827e wrong download offset fix 2023-12-31 05:39:18 -06:00
aayush262
98a3a1107b Title😂😂 (#109)
* small changes

* Changes
* new nest button for settings
* full language name in language selector
* tv banner
* hide lang selector if there is one language only
* and some small changes

* import fix

* alter dialog

* wont refresh if nothing is changed
2023-12-31 01:25:03 -06:00
Finnley Somdahl
7228817c68 I have no idea why that crashes for some people... 2023-12-31 00:55:39 -06:00
Finnley Somdahl
7dbf951d5a download episode images 2023-12-31 00:17:18 -06:00
Finnley Somdahl
3ff492d94c Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2023-12-30 05:14:11 -06:00
Sadwhy
7fae64bee9 Ignore readme on workflow (#107) 2023-12-30 05:13:15 -06:00
Finnley Somdahl
d16fbd9a43 first working version of anime downloads 2023-12-30 05:12:46 -06:00
Finnley Somdahl
41830dba4d tap between manga pages (paged) 2023-12-28 21:57:20 -06:00
Finnley Somdahl
5561c003cf Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2023-12-28 19:27:06 -06:00
Finnley Somdahl
62b1a3b900 move countdown to 28 days 2023-12-28 19:27:03 -06:00
Finnley Somdahl
c9649751d2 rough outline for downloading anime 2023-12-28 06:38:45 -06:00
aayush262
bbc986784b small changes (#102) 2023-12-28 04:15:10 -06:00
Sadwhy
7684a15e94 Changed a few strings (#101)
* :)

Changed some strings

* More strings

* New string
2023-12-28 04:13:42 -06:00
Finnley Somdahl
42c3b42c05 incognito does not require app restart 2023-12-27 10:30:50 -06:00
Finnley Somdahl
a8711241a7 default cast setting to visible 2023-12-27 09:15:47 -06:00
Finnley Somdahl
549d7f9db3 better info on no extensions installed 2023-12-27 09:11:06 -06:00
Finnley Somdahl
e83a580486 native casting support 2023-12-27 08:58:36 -06:00
Finnley Somdahl
bf908c5e37 fix for decimal episodes 2023-12-27 07:07:10 -06:00
Finnley Somdahl
ebabff4667 fix for notification title 2023-12-27 06:42:24 -06:00
Finnley Somdahl
c352222e3a fix for downloading when all chapters are read 2023-12-27 06:34:09 -06:00
Finnley Somdahl
d177087ae6 stop refresh entire page on grid change / hide scroll to top button 2023-12-27 06:24:24 -06:00
SunglassJerry
38c5ae447a Removed manga faq (#93)
* Update README.md

* Update beta.yml

* Update strings.xml

* Update FAQActivity.kt

---------

Co-authored-by: rebel onion <87634197+rebelonion@users.noreply.github.com>
2023-12-25 21:50:41 -06:00
aayush262
eb75d299d2 Bug fixes , download page redesign , new theme(Emerald) (#95)
* Restart option when choosing custom theme
Typo fix
Extension page bug fix

* Downloaded manga page redesign(lol)

* quick fix

* New theme(Emerald)
Fine-tuned colors.xml

* Toggle for list view and compact view in downloaded manga and novels (much more)
2023-12-25 21:49:34 -06:00
Sadwhy
5339593e17 Added mismatched switch (#91)
Ayushs fault
2023-12-19 20:02:29 -06:00
aayush262
0bacfb8494 incognito view fix (#89)
* auto pip

* undo
2023-12-19 16:12:15 -06:00
rebel onion
7ebb539bba Update beta.yml 2023-12-18 23:47:42 -06:00
rebel onion
d7c6d63d71 Update README.md 2023-12-18 23:42:11 -06:00
rebel onion
11d04ecb58 Merge pull request #86 from Sadwhy/main
Clean up switch
2023-12-18 17:17:36 -06:00
rebel onion
74328cf4cf Merge branch 'dev' into main 2023-12-18 17:17:24 -06:00
rebel onion
cfd59a6ba0 Update DisabledReports.kt 2023-12-18 17:15:57 -06:00
rebel onion
1779276154 Update beta.yml 2023-12-18 17:15:24 -06:00
rebel onion
dfc10d5520 Merge pull request #84 from aayush2622/dev
some changes
2023-12-14 18:06:11 -06:00
sadmansaif017@gmail.com
f090f6c630 Finalized 2023-12-13 14:49:53 +06:00
sadmansaif017@gmail.com
a13f98f6da Clean Switch 2023-12-13 14:48:37 +06:00
aayush262
cc98e2f307 correct??? 2023-12-12 15:30:31 +05:30
aayush262
5c4e9d7696 Better incognito (visually)
toggle for navbar in list
2023-12-11 21:39:23 +05:30
aayush262
b180625636 . 2023-12-11 02:45:21 +05:30
aayush262
31482674c0 yt icon 2023-12-10 23:47:06 +05:30
aayush262
c7bc6241dc some changes
better manga title/list name view
2023-12-10 23:42:56 +05:30
Sadwhy
86b74f022b Update build.gradle 2023-12-10 18:50:52 +06:00
Sadwhy
7336c73561 Update build.gradle 2023-12-10 18:49:22 +06:00
Sadwhy
528f70c6de Update beta.yml 2023-12-10 12:09:42 +06:00
Sadwhy
2c0d698ac9 Tracking denied 2023-12-10 11:29:58 +06:00
rebel onion
d404202371 linux no worky 2023-12-09 23:07:30 -06:00
rebel onion
ebeffa2135 fml 2023-12-09 22:59:08 -06:00
rebel onion
51015dc2f4 Update beta.yml 2023-12-09 22:56:37 -06:00
rebel onion
b840cdb695 Update beta.yml 2023-12-09 22:39:48 -06:00
rebel onion
e6cb10df19 Update beta.yml 2023-12-09 22:29:55 -06:00
rebel onion
1cd1b8af23 Update beta.yml 2023-12-09 22:20:40 -06:00
rebel onion
2b38869c41 signing? 2023-12-09 22:19:13 -06:00
Finnley Somdahl
6c310713d6 new color picker 2023-12-09 21:20:19 -06:00
Finnley Somdahl
0a2ecdd190 Update DisabledReports.kt 2023-12-09 14:40:58 -06:00
Sadwhy
3db4363100 Merge branch 'rebelonion:main' into main 2023-12-10 02:38:20 +06:00
Finnley Somdahl
713960e247 example png 2023-12-09 14:15:19 -06:00
Finnley Somdahl
b6be7075b0 widget outline 2023-12-09 14:09:24 -06:00
Finnley Somdahl
82bc215da5 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2023-12-09 14:04:32 -06:00
Finnley Somdahl
e8f3d5525d Update AndroidManifest.xml 2023-12-09 14:04:18 -06:00
rebel onion
d1cf8c4e10 Merge pull request #81 from rebelonion/main
update dev
2023-12-09 13:56:48 -06:00
Sadwhy
f19e112d0a Integrate GitHub runner and Discord for build updates (#79)
* Added a GitHub runner and uploads it to discord

* Update build.gradle

* Update build.gradle

* Update build.gradle

* Update build.gradle

* Add files via upload

* Add files via upload

* Add files via upload

* Delete app/src/debug/google-services.json

* Delete build.gradle

* target dev

* Add files via upload

---------

Co-authored-by: rebel onion <87634197+rebelonion@users.noreply.github.com>
2023-12-09 13:51:27 -06:00
Sadwhy
9eb29361dc Add files via upload 2023-12-10 01:49:06 +06:00
rebel onion
133959a34e target dev 2023-12-09 13:47:35 -06:00
Sadwhy
bd48ff05eb Delete build.gradle 2023-12-10 01:46:45 +06:00
rebel onion
1d2ce6ccaa Delete app/src/debug/google-services.json 2023-12-09 13:38:38 -06:00
rebel onion
3a3857e9eb Merge pull request #80 from rebelonion/dev
Dev
2023-12-09 13:36:31 -06:00
Finnley Somdahl
38c4440d45 google services 2023-12-09 13:35:51 -06:00
Sadwhy
85f03ece85 Add files via upload 2023-12-10 01:24:03 +06:00
Sadwhy
e2f02dc93c Add files via upload 2023-12-10 01:22:01 +06:00
Sadwhy
88c4d1f8a7 Add files via upload 2023-12-10 01:15:42 +06:00
Sadwhy
2c24a56446 Update build.gradle 2023-12-10 01:09:21 +06:00
Sadwhy
d11b370415 Update build.gradle 2023-12-10 01:04:43 +06:00
Sadwhy
f81c566f12 Update build.gradle 2023-12-10 00:38:59 +06:00
Sadwhy
9a4ed7ad54 Update build.gradle 2023-12-10 00:36:52 +06:00
Sadwhy
07793b11d6 Added a GitHub runner and uploads it to discord 2023-12-10 00:26:28 +06:00
Finnley Somdahl
aad3c3fed3 ic_delete reset rotation 2023-12-06 21:25:33 -06:00
Finnley Somdahl
f79bd9194a internal version 2023-12-06 21:23:09 -06:00
Finnley Somdahl
5ad68f2bd2 lower zoom 2023-12-06 21:22:54 -06:00
Finnley Somdahl
f463275a73 Custom AlertDialog fix 2023-12-06 21:22:45 -06:00
Finnley Somdahl
ac6b22f659 progressChapterIndex IndexOutOfBoundsException fix 2023-12-06 19:34:22 -06:00
Finnley Somdahl
ac9d3a2363 fix for Unable to destroy activity MediaDetailsActivity 2023-12-06 19:32:14 -06:00
Finnley Somdahl
38a27c45a1 empty check on mediaList 2023-12-06 19:27:34 -06:00
Finnley Somdahl
33bfbd65fb toast fix 2023-12-06 19:25:00 -06:00
Finnley Somdahl
ac98417355 out of bounds on 25 fix 2023-12-06 19:21:53 -06:00
Finnley Somdahl
876304065d fix for SettingsDialogFragment.<init> [] 2023-12-06 19:19:14 -06:00
Finnley Somdahl
9fc80d6397 beta version update 2023-12-06 00:44:08 -06:00
rebel onion
8797af0cbc Merge pull request #74 from rebelonion/dev
Dev
2023-12-06 00:35:31 -06:00
Finnley Somdahl
97a4cba680 v2 2023-12-06 00:31:59 -06:00
Finnley Somdahl
acc5069c83 why was this here? 2023-12-06 00:30:43 -06:00
Finnley Somdahl
fab978dba4 multi fix + etc 2023-12-05 23:43:34 -06:00
Finnley Somdahl
ad1734d640 only one dns 2023-12-05 22:40:27 -06:00
rebel onion
d687911c85 Create FUNDING.yml 2023-12-05 22:10:18 -06:00
rebelonion
1d4257b1b3 Merge pull request #73 from rebelonion/dev
Dev
2023-12-05 21:34:08 -06:00
Finnley Somdahl
55521ab9fc downloading from specific point 2023-12-05 21:20:00 -06:00
Finnley Somdahl
17e53a54af Aayush stuffs 2023-12-05 21:04:06 -06:00
Finnley Somdahl
dc1edc9a42 dimming 2023-12-05 20:51:22 -06:00
Finnley Somdahl
b8782b0507 multi download 2023-12-05 20:35:25 -06:00
Finnley Somdahl
0d422a57e7 styling fix + pos fix 2023-12-05 19:51:45 -06:00
Finnley Somdahl
1bbc98d350 downloads cleaner 2023-12-05 15:38:29 -06:00
Finnley Somdahl
7ae6831628 some downloading fixes 2023-12-05 15:38:01 -06:00
Finnley Somdahl
65e89398d9 orientation test fix 2023-12-05 05:41:37 -06:00
Finnley Somdahl
2b77b7578c reset watch position if nearly done with episode 2023-12-05 02:56:19 -06:00
Finnley Somdahl
e77ab2800a incognito 2023-12-05 02:39:59 -06:00
Finnley Somdahl
c1a0eeb361 fix manga chapter number tile display 2023-12-05 02:39:44 -06:00
Finnley Somdahl
393ab1e513 always round progress down 2023-12-05 01:11:56 -06:00
Finnley Somdahl
e26a6c647f random option 2023-12-05 01:05:36 -06:00
Finnley Somdahl
ea83b722a6 no presence when not signed in 2023-12-05 00:25:37 -06:00
Finnley Somdahl
34a3e9e5a3 change swipe sensitivity 2023-12-04 23:51:57 -06:00
rebelonion
7f92ac686d Merge pull request #69 from rebelonion/dev
Dev
2023-12-04 22:19:26 -06:00
Finnley Somdahl
b6c79dae40 Aayush's pr stuffs 2023-12-04 22:16:05 -06:00
Finnley Somdahl
8c957007ab rpc fix 2023-12-04 22:15:48 -06:00
Finnley Somdahl
c728eae2ba more searching 2023-12-04 00:29:33 -06:00
Finnley Somdahl
3ded6ba87a offline novel 2023-12-03 22:18:06 -06:00
Finnley Somdahl
111fb16266 webview version check 2023-12-02 21:05:06 -06:00
Finnley Somdahl
121be4bc6f signing fix 2023-12-02 18:34:40 -06:00
Finnley Somdahl
afa960c808 reformat 2023-12-01 01:22:15 -06:00
Finnley Somdahl
1df528c0dc Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2023-12-01 00:58:59 -06:00
Finnley Somdahl
f792296f78 offline manga fix 2023-12-01 00:58:58 -06:00
Wai What
d512929387 Small color fix for Saikou theme (#65)
* Update colors.xml

Updated Saikou theme

* Update colors.xml

Changed background color in accordance with Aayushi262

* Update colors.xml

* Update colors.xml

Fixed double space
2023-11-30 03:48:47 -06:00
Finnley Somdahl
c7bc1ffe9e Light novel support 2023-11-30 03:41:45 -06:00
Finnley Somdahl
32f918450a AMOLED + custom 2023-11-26 22:05:27 -06:00
Finnley Somdahl
f01377f0b1 OLED fix 2023-11-26 21:33:22 -06:00
Finnley Somdahl
c2a07278fc Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2023-11-26 21:16:02 -06:00
Finnley Somdahl
0a17bed243 hotfix for custom_theme 2023-11-26 21:15:54 -06:00
aayush262
c5ed8acfa3 small fixes (#61)
* quickfix

* android locale tuning

* toggle option to setting

* some customizations

* some fixes

* some fixes

* some fixes

* fixed header of search by image

---------

Co-authored-by: rebelonion <87634197+rebelonion@users.noreply.github.com>
2023-11-26 21:14:51 -06:00
Finnley Somdahl
e5f2bb6566 new theme options 2023-11-26 21:00:46 -06:00
Finnley Somdahl
b4093b0c47 extension fix 2023-11-26 16:38:13 -06:00
Finnley Somdahl
d0fd62abf2 Allow AMOLED with Monet 2023-11-26 15:39:41 -06:00
Finnley Somdahl
4d0c3e5849 set page search to index at one 2023-11-26 03:13:16 -06:00
Finnley Somdahl
d131562f34 cleanup 2023-11-26 02:46:36 -06:00
Finnley Somdahl
cf2d9ad654 rpc fix 2023-11-26 02:36:27 -06:00
aayush262
af326c8258 some customizations (#59)
* quickfix

* android locale tuning

* toggle option to setting

* some customizations

---------

Co-authored-by: rebelonion <87634197+rebelonion@users.noreply.github.com>
2023-11-24 01:28:44 -06:00
Finnley Somdahl
ba351df331 odd extension search error fix 2023-11-23 00:12:09 -06:00
rebelonion
d4c2df37ae dev update (#57)
* quickfix

* android locale tuning

* toggle option to setting
2023-11-22 23:43:18 -06:00
rebelonion
79d1c44e63 Merge branch 'dev' into main 2023-11-22 23:43:06 -06:00
Finnley Somdahl
38faedb4b5 rpc fix and api 34 fix 2023-11-22 23:38:22 -06:00
Finnley Somdahl
39b0f28127 move user agent to popup 2023-11-22 16:01:41 -06:00
Finnley Somdahl
a1913ed968 new icon color fixed sorting issue [12:28 AM] some nice gui stuff for downloading [12:28 AM] yomiroll preferences bug [12:28 AM] background no longer stuck on black 2023-11-22 00:32:26 -06:00
Finnley Somdahl
f7917df907 Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev 2023-11-21 20:34:52 -06:00
Finnley Somdahl
84c58fbe6c downloading button cleanup 2023-11-21 20:34:34 -06:00
aayush262
75895d851f Language add to extensions (#52)
* got rid of both companion object

* minor changes

* It Now show lang on extensions

* fixed

* quickfix

* android locale tuning

* toggle option to setting

* some fixes
added 2 fonts
removed Scanlators for anime

---------

Co-authored-by: rebelonion <87634197+rebelonion@users.noreply.github.com>
2023-11-21 20:33:17 -06:00
Finnley Somdahl
6d05a42168 toggle option to setting 2023-11-21 04:13:05 -06:00
Finnley Somdahl
594fa4daa9 android locale tuning 2023-11-21 04:08:45 -06:00
Finnley Somdahl
8d9254140d quickfix 2023-11-21 03:01:11 -06:00
rebelonion
533aa9f56e Merge pull request #54 from rebelonion/dev
Dev
2023-11-21 02:52:46 -06:00
rebelonion
c310bea0e9 Merge branch 'main' into dev 2023-11-21 02:52:31 -06:00
Finnley Somdahl
813f7a0992 Update AniyomiAdapter.kt 2023-11-21 02:49:52 -06:00
Finnley Somdahl
4c0f56d3e3 Squashed commit of the following:
commit 187262a266
Author: Finnley Somdahl <87634197+rebelonion@users.noreply.github.com>
Date:   Mon Nov 20 23:38:24 2023 -0600

    work
2023-11-21 02:46:56 -06:00
Finnley Somdahl
1f44d32f35 :bocchi_overload_animated: 2023-11-21 02:38:18 -06:00
Finnley Somdahl
d937f447ef work(ing) 2023-11-20 23:51:59 -06:00
Finnley Somdahl
187262a266 work 2023-11-20 23:38:24 -06:00
Finnley Somdahl
f40ebc9d09 on second thought 2023-11-20 19:53:09 -06:00
Finnley Somdahl
3998d88297 oh no 2023-11-20 19:45:33 -06:00
Finnley Somdahl
4db301ca7a more offline stuff/bugfixes 2023-11-20 00:39:14 -06:00
Finnley Somdahl
3dfcc9fc31 Merge branch 'main' of https://github.com/rebelonion/Dantotsu 2023-11-19 20:49:12 -06:00
Asvin Ragunathan
df63586c02 Updated Support For Android 14 (API 34) (WIP) (#47)
* Updated Support For Android 14 (API 34)

* Updated To Not Require Greater than API 26

* Fixed Github Stash Issue With Commit
2023-11-19 20:48:59 -06:00
Finnley Somdahl
d7372d4dbb move CoroutineScopes for clarity 2023-11-19 20:47:43 -06:00
aayush262
f4266d0da3 got rid of both companion object (#50) 2023-11-18 00:33:09 -06:00
aayush262
736b06bdbe Added a option to toggle fast forward / Added NSFW extension toggle to extension settings (#48)
* Remove 18+ extension if Anilist 18+ is off
 ~requested by @arif

* Translation filter for extension(WIP)

* Added a option to toggle fast forward
suggested by arif

* Added NFSW toggle to extension settings
now it will be more easy rather then going to anilist to toggle it
 ~suggested by arif

* Forgot to undo this

* changed icons in extension setting

* get rid of companion object (todo)

* get rid of companion object (todo)

---------

Co-authored-by: rebelonion <87634197+rebelonion@users.noreply.github.com>
2023-11-17 15:10:58 -06:00
aayush262
5543d29317 Better extension page(maybe) (#45)
* Fixed Mono icon not loading/Extension page customization

* Better extension page(maybe)
2023-11-14 19:41:07 -06:00
aayush262
2fc351f57a Fixed Mono icon not loading/Extension page customization (#44) 2023-11-12 23:08:14 -06:00
Wai What
eee1242964 Added Saikou theme (#40)
* Update colors.xml

* Update themes.xml

* Update themes.xml

* Update ThemeManager.kt

* Update ThemeManager.kt

* Update ThemeManager.kt

* Update ThemeManager.kt

* Update DevelopersDialogFragment.kt

* Update activity_main.xml

* Update item_anime_page.xml

* Update item_manga_page.xml

* Update fragment_login.xml

* Update activity_media.xml

* Update activity_media.xml

* Update item_anime_page.xml

* Update item_manga_page.xml

* Update themes.xml

* Update themes.xml

* Update exo_player_control_view.xml

* Update activity_author.xml

* Update activity_studio.xml

* Update activity_manga_reader.xml

* Update activity_novel_reader.xml

* Update activity_media.xml

Fix

* Update tab_layout_icon.xml

* Update activity_media.xml

* Update activity_media.xml

* Update tab_layout_icon.xml

Changed selected layout icon from primary to secondary

* Update activity_list.xml

* Update ListActivity.kt

Unbound listTabLayout, listAppBar and listTitle because it stopped color reallocation

* Update CalendarActivity.kt

Unbound listTabLayout, listAppBar and listTitle because it stopped color reallocation

* Update button_switch_track.xml

* Update CalendarActivity.kt

Undo

* Update ListActivity.kt

Undo

* Update CalendarActivity.kt

* Update ListActivity.kt

* Update ListActivity.kt

* Update CalendarActivity.kt (Saikou theme complete!)

I'll just need to check for bugs and request to merge

* Update ThemeManager.kt

Took Sakiou theme out of beta

* Update tab_layout_icon.xml

Changes to media tabs (less accurate to Saikou but selected menu is more vibrant and supports other themes better)

* Update activity_media.xml

Changes to media tabs (less accurate to Saikou but selected menu is more vibrant and supports other themes better)

* Update activity_media.xml

Changes to media tabs (less accurate to Saikou but selected menu is more vibrant and supports other themes better)

* Update control_background_40dp.xml

* Update build.gradle

Changed version number
2023-11-12 12:55:16 -06:00
rebelonion
a58e9a523a Update README.md 2023-11-07 11:00:37 -06:00
Finnley Somdahl
cd3aad1c33 double error and crash fix 2023-11-05 02:40:40 -06:00
Finnley Somdahl
5a482d8307 Merge branch 'main' of https://github.com/rebelonion/Dantotsu 2023-11-05 02:17:57 -06:00
Finnley Somdahl
91d869005c basic offline manga fragment 2023-11-05 02:17:49 -06:00
rebelonion
05e73269d3 Merge pull request #35 from aayush2622/main
Changed "skip loading extension icons" icon
2023-11-05 01:33:10 -06:00
aayush262
3dac48ced8 Changed "skip loading extension icons" icon 2023-11-05 12:45:38 +05:30
rebelonion
8c5726ab8a Merge pull request #31 from elucubro/zero-mb-displaying
when video size is 0mb, display unknown size instead
2023-11-04 13:39:58 -05:00
rebelonion
076516be23 Merge pull request #27 from aayush2622/main
Added some screenshots
2023-11-04 02:13:08 -05:00
elucubro
1059a3c17e when video size is 0mb, display unknown size instead 2023-11-04 15:12:09 +08:00
Finnley Somdahl
c75df942f2 beta updater fix 2023-11-04 02:05:21 -05:00
rebelonion
cfe7be5cdb Merge pull request #30 from elucubro/double-tap-zoom
making double tap zoom lower in manga reader
2023-11-04 02:04:23 -05:00
Finnley Somdahl
390fc18c4c queueing system for manga downloads 2023-11-04 01:40:40 -05:00
elucubro
4c82c56828 making double tap zoom lower in manga reader 2023-11-04 13:13:23 +08:00
aayush262
da5c480ba7 added website link 2023-11-03 20:07:36 +05:30
Finnley Somdahl
20acd71b1a parent acb0225699
author Finnley Somdahl <87634197+rebelonion@users.noreply.github.com> 1698992132 -0500
committer Finnley Somdahl <87634197+rebelonion@users.noreply.github.com> 1698992691 -0500

manga downloading base

Update README.md

Update README.md

Update README.md

Update README.md

Update README.md
2023-11-03 01:29:24 -05:00
aayush262
231c9c5b98 fixed typo 2023-11-02 21:34:00 +05:30
aayush262
4cfdcdb23c Added some screenshots 2023-11-01 21:46:43 +05:30
Finnley Somdahl
acb0225699 Merge pull request #24 from aayush2622/main
little customizations on readme page
2023-10-31 12:03:30 -05:00
aayush262
ebffaaa742 a lil better README.md 2023-10-31 22:21:28 +05:30
aayush262
1760064555 Update README.md 2023-10-31 17:58:41 +05:30
aayush262
44a6db3fc2 Update README.md 2023-10-31 17:52:27 +05:30
aayush262
aab25d157e Update README.md 2023-10-31 17:51:19 +05:30
aayush262
8a4be86ddc Update README.md 2023-10-31 17:50:00 +05:30
aayush262
31baf729be Update README.md 2023-10-31 17:48:29 +05:30
aayush262
b98e3dc780 Update README.md 2023-10-31 17:41:50 +05:30
aayush262
878d58679e Update README.md 2023-10-31 17:34:50 +05:30
aayush262
f500ba6cf0 Update README.md 2023-10-31 17:25:30 +05:30
aayush262
d124736556 Update README.md 2023-10-31 17:24:15 +05:30
aayush262
1a825e2509 Update README.md 2023-10-31 17:19:59 +05:30
Finnley Somdahl
6e14c2221d Merge branch 'main' of https://github.com/rebelonion/Dantotsu 2023-10-31 01:03:00 -05:00
Finnley Somdahl
5b6e351a56 extension fixes 2023-10-31 01:02:54 -05:00
Finnley Somdahl
c310708401 Merge pull request #23 from Sadwhy/patch-1
Update README.md
2023-10-30 22:03:01 -05:00
Sadwhy
f0093b903a Update README.md
Just made some titles uppercase. Consistency
2023-10-31 09:00:47 +06:00
Finnley Somdahl
d33568f0ad icon and logging 2023-10-29 22:37:28 -05:00
Finnley Somdahl
26f9f40042 ui tweaks 2023-10-29 20:33:13 -05:00
Finnley Somdahl
7545870f38 ui tweaks 2023-10-29 20:06:16 -05:00
Finnley Somdahl
3368a1bc8d extension settings 2023-10-29 19:45:11 -05:00
Finnley Somdahl
9c0ef7a788 bugfixes and themes 2023-10-27 00:47:44 -05:00
Finnley Somdahl
960c2b4113 Update stable.md 2023-10-26 02:11:43 -05:00
Finnley Somdahl
1eb85d4419 new themes 2023-10-26 02:08:35 -05:00
Finnley Somdahl
20bea76e6c subtitle, image, and extension page fixes 2023-10-26 00:40:57 -05:00
Finnley Somdahl
866bd3b3a9 theme cleanup 2023-10-25 15:55:29 -05:00
Finnley Somdahl
3567b8dced hotfix 2023-10-25 01:22:40 -05:00
Finnley Somdahl
d109914537 Update stable.md 2023-10-25 00:36:37 -05:00
Finnley Somdahl
da4d55a9a8 final fixes before update 2023-10-25 00:35:09 -05:00
Finnley Somdahl
63526c6ed3 themes and various bugs 2023-10-24 23:38:46 -05:00
852 changed files with 74698 additions and 13973 deletions

13
.github/FUNDING.yml vendored Normal file
View File

@@ -0,0 +1,13 @@
# These are supported funding model platforms
github: [rebelonion]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: ['https://www.buymeacoffee.com/rebelonion']

129
.github/workflows/beta.yml vendored Normal file
View File

@@ -0,0 +1,129 @@
name: Build APK and Notify Discord
on:
push:
branches:
- dev
paths-ignore:
- '**/README.md'
jobs:
build:
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download last SHA artifact
uses: dawidd6/action-download-artifact@v3
with:
workflow: beta.yml
name: last-sha
path: .
continue-on-error: true
- name: Get Commits Since Last Run
run: |
if [ -f last_sha.txt ]; then
LAST_SHA=$(cat last_sha.txt)
else
# Fallback to first commit if no previous SHA available
LAST_SHA=$(git rev-list --max-parents=0 HEAD)
fi
echo "Commits since $LAST_SHA:"
# Accumulate commit logs in a shell variable
COMMIT_LOGS=$(git log $LAST_SHA..HEAD --pretty=format:"● %s ~%an")
# URL-encode the newline characters for GitHub Actions
COMMIT_LOGS="${COMMIT_LOGS//'%'/'%25'}"
COMMIT_LOGS="${COMMIT_LOGS//$'\n'/'%0A'}"
COMMIT_LOGS="${COMMIT_LOGS//$'\r'/'%0D'}"
# Append the encoded commit logs to the COMMIT_LOG environment variable
echo "COMMIT_LOG=${COMMIT_LOGS}" >> $GITHUB_ENV
# Debugging: Print the variable to check its content
echo "$COMMIT_LOGS"
echo "$COMMIT_LOGS" > commit_log.txt
shell: /usr/bin/bash -e {0}
env:
CI: true
continue-on-error: true
- name: Save Current SHA for Next Run
run: echo ${{ github.sha }} > last_sha.txt
- name: Set variables
run: |
VER=$(grep -E -o "versionName \".*\"" app/build.gradle | sed -e 's/versionName //g' | tr -d '"')
SHA=${{ github.sha }}
VERSION="$VER+${SHA:0:7}"
echo "Version $VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: gradle
- name: Decode Keystore File
run: echo "${{ secrets.KEYSTORE_FILE }}" | base64 -d > $GITHUB_WORKSPACE/key.keystore
- name: List files in the directory
run: ls -l
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew assembleGoogleAlpha -Pandroid.injected.signing.store.file=$GITHUB_WORKSPACE/key.keystore -Pandroid.injected.signing.store.password=${{ secrets.KEYSTORE_PASSWORD }} -Pandroid.injected.signing.key.alias=${{ secrets.KEY_ALIAS }} -Pandroid.injected.signing.key.password=${{ secrets.KEY_PASSWORD }}
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: Dantotsu
retention-days: 5
compression-level: 9
path: "app/build/outputs/apk/google/alpha/app-google-alpha.apk"
- name: Upload APK to Discord and Telegram
if: ${{ github.repository == 'rebelonion/Dantotsu' }}
shell: bash
run: |
#Discord
commit_messages=$(echo "$COMMIT_LOG" | sed 's/%0A/\n/g; s/^/\n/')
# Truncate commit messages if they are too long
max_length=1900 # Adjust this value as needed
if [ ${#commit_messages} -gt $max_length ]; then
commit_messages="${commit_messages:0:$max_length}... (truncated)"
fi
contentbody=$( jq -nc --arg msg "Alpha-Build: <@&1225347048321191996> **$VERSION**:" --arg commits "$commit_messages" '{"content": ($msg + "\n" + $commits)}' )
curl -F "payload_json=${contentbody}" -F "dantotsu_debug=@app/build/outputs/apk/google/alpha/app-google-alpha.apk" ${{ secrets.DISCORD_WEBHOOK }}
#Telegram
curl -F "chat_id=${{ secrets.TELEGRAM_CHANNEL_ID }}" \
-F "document=@app/build/outputs/apk/google/alpha/app-google-alpha.apk" \
-F "caption=Alpha-Build: ${VERSION}: ${commit_messages}" \
https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument
env:
COMMIT_LOG: ${{ env.COMMIT_LOG }}
VERSION: ${{ env.VERSION }}
- name: Upload Current SHA as Artifact
uses: actions/upload-artifact@v4
with:
name: last-sha
path: last_sha.txt
- name: Upload Commit log as Artifact
uses: actions/upload-artifact@v4
with:
name: commit-log
path: commit_log.txt

12
.gitignore vendored
View File

@@ -8,6 +8,9 @@ local.properties
# Log/OS Files
*.log
# Secrets
apikey.properties
# Android Studio generated files and folders
captures/
.externalNativeBuild/
@@ -23,8 +26,11 @@ output.json
*.jks
*.keystore
# Google Services (e.g. APIs or Firebase)
google-services.json
# Android Profiling
*.hprof
#other
scripts/
#crowdin
crowdin.yml

110
README.md
View File

@@ -1,109 +1,41 @@
# **Dantotsu** (🚧 ALPHA 🚧)
> ⚠️ **WARNING**: This project is in alpha stage. Things may not work as expected.
<p align="center">
<a href="https://discord.gg/4HPZ5nAWwM"><img src="https://img.shields.io/badge/Discord-7289DA?style=for-the-badge&logo=discord&logoColor=white"></a>
<img src="https://pbxt.replicate.delivery/2PX94viD6lJSDVayQrGyDH7CGu7IjQ6e8HEtOGDeelefXRdOC/out.png" alt="Dantotsu Banner" width=100% >
</p>
<p align="center">
<img src="https://img.shields.io/badge/platforms-android-blueviolet?style=for-the-badge"/>
<a href="https://github.com/rebelonion/Dantotsu/releases"><img src="https://img.shields.io/github/downloads/rebelonion/Dantotsu/total?color=%233DDC84&logo=android&logoColor=%23fff&style=for-the-badge"></a>
<a href="https://www.codefactor.io/repository/github/rebelonion/dantotsu"><img src="https://www.codefactor.io/repository/github/rebelonion/dantotsu/badge?color=%233DDC84&logo=android&logoColor=%23fff&style=for-the-badge" alt="CodeFactor" /></a>
<a href="https://discord.gg/4HPZ5nAWwM"><img src="https://img.shields.io/discord/358599430502481920.svg?style=for-the-badge&logo=discord&colorB=7289DA"></a>
</p>
Dantotsu is crafted from the ashes of Saikou and based on simplistic yet state-of-the-art elegance. It is an <a href="https://anilist.co/">Anilist</a> only client, which also lets you stream-download Anime & Manga through extensions.
<br><br>
<i>Dantotsu (断トツ; Dan-totsu) literally means the best of the best in Japanese. Well, we would like to say this is the best open source app for anime and manga on Android, but hey, try it out yourself & judge!
</i>
<br>
<br>
<a href="https://www.buymeacoffee.com/rebelonion"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=rebelonion&button_colour=FFDD00&font_colour=000000&font_family=Poppins&outline_colour=000000&coffee_colour=ffffff" /></a>
<br>
### 🌟STAR THIS REPOSITORY TO SUPPORT THE DEVELOPER AND ENCOURAGE THE DEVELOPMENT OF THE APPLICATION!
# **Dantotsu** 🌟
> **Warning**
>
> Please do not attempt to upload Dantotsu or any of it's forks on Playstore or any other Android appstores on the internet. Doing so, may infringe their terms and conditions. This may result to legal action or immediate take-down of the app.
Dantotsu is an [Anilist](https://anilist.co/) only client.
## Extension Status
> **Dantotsu (断トツ; Dan-totsu)** literally means "the best of the best" in Japanese. Try it out for yourself and be the judge!
| Type | Status |
| ---------------- | ------- |
| Anime Extensions | Working |
| Manga Extensions | "Working" |
| Light Novel Extensions | Not Working |
<a href="https://www.buymeacoffee.com/rebelonion"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=rebelonion&button_colour=FFDD00&font_colour=030201&font_family=Poppins&outline_colour=000000&coffee_colour=ffffff" /></a>
### 🚀 STAR THIS REPOSITORY TO SUPPORT THE DEVELOPER AND ENCOURAGE THE DEVELOPMENT OF THE APPLICATION!
## WANT TO CONTRIBUTE? 🤝
## APP FEATURES
All contributions are welcome, from code to documentation to graphics to design suggestions to bug reports. Please use GitHub to its fullest; contribute Pull Requests, contribute tutorials or other content - whatever you have to offer, we can use!
- Easy and functional way to both, watch anime and read manga, ad-free.
You can come hang out with our awesome community, request new features, and report any bugs or issues at our Discord server too. 📣
- A completely open source app with a nice UI & Animations :)
### OFFICIAL DISCORD SERVER 🚀
- Aniyomi extension support built right into the app.
- Synchronize anime and manga real-time with AniList and MyAnimeList. Easily categorise anime and manga based on your current status. (Powered by AniList)
- Find all shows using thoroughly and frequently updated list of all trending, popular and ongoing anime based on scores.
- View extensive details about anime shows, movies and manga titles. It also features ability to countdown to the next episode of airing anime. (Powered by AniList & MyAnimeList)
- Get notified when new episodes/chapters are released!
* **Available Anime sources:-**
NONE BUILT IN!
add your own extensions in the settings menu (Dantotsu has no affiliation with any of the extensions)
* **Available Manga sources:-**
NONE BUILT IN!
add your own extensions in the settings menu (Dantotsu has no affiliation with any of the extensions)
## Planned Stuff
- get app out of alpha
- Accent Color Change (RIP Hot Pink Supremacy.)
## Rejected Stuff (still rejected)
- Sources of any language except English
- News Section in the App
- Comment Section
## WANT TO CONTRIBUTE?
- All contributions are welcome, from code to documentation to graphics to design suggestions to bug reports. Please use GitHub to its fullest; contribute Pull Requests, contribute tutorials or other content- whatever you have to offer, we can use it!
- You can come hang out with our awesome community and request new features and report any bugs or issue at our discord server too.
### Official Discord Server
<p align="center">
<a href="https://discord.gg/4HPZ5nAWwM"><img src="https://img.shields.io/badge/Discord-7289DA?style=for-the-badge&logo=discord&logoColor=white"></a>
<a href="https://discord.gg/4HPZ5nAWwM">
<img src="https://invidget.switchblade.xyz/4HPZ5nAWwM">
</a>
</p>
## VISITORS
### VISIT FOR MORE INFORMATION:-
<img src="https://count.getloli.com/get/@:rebeloniondantotsu" alt=":rebeloniondantotsu" />
no website yet :(
## DISCLAIMER
* Dantotsu by itself only provides an anime and manga tracker and does not provide any anime or manga streaming or downloading capabilities.
* Dantotsu or any of its developer/staff don't host any of the content found inside Dantotsu. Any and all images and anime/manga information found in the app are taken from various public APIs (AniList, MyAnimeList, Kitsu).
* Furthermore, all of the anime/manga links found in Dantotsu are taken from various 3rd party plugins and have no affiliation with Dantotsu or its staff.
* Dantotsu or it's owners aren't liable for any misuse of any of the contents found inside or outside of the app and cannot be held accountable for the distribution of any of the contents found inside the app.
* By using Dantotsu, you comply to the fact that the developer of the app is not responsible for any of the contents found in the app. You also agree to the fact that you may not use Dantotsu to download or stream any copyrighted content.
* If the internet infringement issues are involved, please contact the source website. The developer does not assume any legal responsibility.
## License
## LICENSE 📜
Dantotsu is licensed under the [GNU General Public License v3.0](LICENSE.md)

4
app/.gitignore vendored
View File

@@ -1,4 +1,8 @@
/build
/debug
/debug/output-metadata.json
/alpha
/alpha/output-metadata.json
/google/*
/fdroid/*
/release

View File

@@ -1,12 +1,9 @@
plugins {
id 'com.android.application'
id 'com.google.gms.google-services'
id 'com.google.firebase.crashlytics'
id 'kotlin-android'
id 'kotlinx-serialization'
id 'org.jetbrains.kotlin.android'
id 'com.google.devtools.ksp'
}
def gitCommitHash = providers.exec {
@@ -18,26 +15,57 @@ android {
defaultConfig {
applicationId "ani.dantotsu"
minSdk 23
minSdk 21
targetSdk 34
versionCode ((System.currentTimeMillis() / 60000).toInteger())
versionName "0.1.2"
versionCode((System.currentTimeMillis() / 60000).toInteger())
versionName "3.0.0"
versionCode 300000000
signingConfig signingConfigs.debug
}
flavorDimensions += "store"
productFlavors {
fdroid {
// F-Droid specific configuration
dimension "store"
versionNameSuffix "-fdroid"
}
google {
// Google Play specific configuration
dimension "store"
isDefault true
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
}
}
buildTypes {
alpha {
applicationIdSuffix ".beta" // keep as beta by popular request
versionNameSuffix "-alpha01-" + gitCommitHash
manifestPlaceholders.icon_placeholder = "@mipmap/ic_launcher_alpha"
manifestPlaceholders.icon_placeholder_round = "@mipmap/ic_launcher_alpha_round"
debuggable System.getenv("CI") == null
isDefault true
}
debug {
//applicationIdSuffix ".beta"
debuggable true
versionNameSuffix "." + gitCommitHash
applicationIdSuffix ".beta"
versionNameSuffix "-beta02"
manifestPlaceholders.icon_placeholder = "@mipmap/ic_launcher_beta"
manifestPlaceholders.icon_placeholder_round = "@mipmap/ic_launcher_beta_round"
debuggable false
}
release {
manifestPlaceholders.icon_placeholder = "@mipmap/ic_launcher"
manifestPlaceholders.icon_placeholder_round = "@mipmap/ic_launcher_round"
debuggable false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-gson.pro', 'proguard-rules.pro'
}
}
buildFeatures {
viewBinding true
buildConfig true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
@@ -51,22 +79,30 @@ android {
}
dependencies {
// Core
// FireBase
googleImplementation platform('com.google.firebase:firebase-bom:32.8.1')
googleImplementation 'com.google.firebase:firebase-analytics-ktx:21.6.2'
googleImplementation 'com.google.firebase:firebase-crashlytics-ktx:18.6.4'
// Core
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.browser:browser:1.6.0'
implementation 'androidx.browser:browser:1.8.0'
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.fragment:fragment-ktx:1.6.1'
implementation 'androidx.fragment:fragment-ktx:1.6.2'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.multidex:multidex:2.0.1'
implementation "androidx.work:work-runtime-ktx:2.8.1"
implementation "androidx.work:work-runtime-ktx:2.9.0"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.github.Blatzar:NiceHttp:0.4.4'
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3'
implementation 'androidx.preference:preference-ktx:1.2.1'
implementation 'androidx.webkit:webkit:1.10.0'
implementation "com.anggrayudi:storage:1.5.5"
implementation 'com.github.Blatzar:NiceHttp:0.4.3'
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0'
// Glide
// Glide
ext.glide_version = '4.16.0'
api "com.github.bumptech.glide:glide:$glide_version"
implementation "com.github.bumptech.glide:glide:$glide_version"
@@ -74,49 +110,65 @@ dependencies {
implementation "com.github.bumptech.glide:okhttp3-integration:$glide_version"
implementation 'jp.wasabeef:glide-transformations:4.3.0'
// FireBase
implementation platform('com.google.firebase:firebase-bom:32.2.3')
implementation 'com.google.firebase:firebase-analytics-ktx:21.3.0'
implementation 'com.google.firebase:firebase-crashlytics-ktx:18.4.3'
// Exoplayer
ext.exo_version = '1.1.1'
// Exoplayer
ext.exo_version = '1.3.1'
implementation "androidx.media3:media3-exoplayer:$exo_version"
implementation "androidx.media3:media3-ui:$exo_version"
implementation "androidx.media3:media3-exoplayer-hls:$exo_version"
implementation "androidx.media3:media3-exoplayer-dash:$exo_version"
implementation "androidx.media3:media3-datasource-okhttp:$exo_version"
implementation "androidx.media3:media3-session:$exo_version"
// Media3 Casting
implementation "androidx.media3:media3-cast:$exo_version"
implementation "androidx.mediarouter:mediarouter:1.7.0"
// UI
implementation 'com.google.android.material:material:1.10.0'
implementation 'nl.joery.animatedbottombar:library:1.1.0'
implementation 'io.noties.markwon:core:4.6.2'
// UI
implementation 'com.google.android.material:material:1.11.0'
implementation 'com.github.RepoDevil:AnimatedBottomBar:7fcb9af'
implementation 'com.flaviofaria:kenburnsview:1.0.7'
implementation 'com.davemorrissey.labs:subsampling-scale-image-view-androidx:3.10.0'
implementation 'com.alexvasilkov:gesture-views:2.8.3'
implementation 'com.github.VipulOG:ebook-reader:0.1.6'
implementation 'androidx.paging:paging-runtime-ktx:3.2.1'
implementation 'com.github.eltos:simpledialogfragments:v3.7'
implementation 'com.github.AAChartModel:AAChartCore-Kotlin:7.2.1'
// string matching
// Markwon
ext.markwon_version = '4.6.2'
implementation "io.noties.markwon:core:$markwon_version"
implementation "io.noties.markwon:editor:$markwon_version"
implementation "io.noties.markwon:ext-strikethrough:$markwon_version"
implementation "io.noties.markwon:ext-tables:$markwon_version"
implementation "io.noties.markwon:ext-tasklist:$markwon_version"
implementation "io.noties.markwon:html:$markwon_version"
implementation "io.noties.markwon:image-glide:$markwon_version"
// Groupie
ext.groupie_version = '2.10.1'
implementation "com.github.lisawray.groupie:groupie:$groupie_version"
implementation "com.github.lisawray.groupie:groupie-viewbinding:$groupie_version"
// String Matching
implementation 'me.xdrop:fuzzywuzzy:1.4.0'
// Aniyomi
// Aniyomi
implementation 'io.reactivex:rxjava:1.3.8'
implementation 'io.reactivex:rxandroid:1.2.1'
implementation 'ru.beryukhov:flowreactivenetwork:1.0.4'
implementation 'ca.gosyer:voyager-navigator:1.0.0-rc07'
implementation 'com.squareup.logcat:logcat:0.1'
implementation 'com.github.inorichi.injekt:injekt-core:65b0440'
implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.11'
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.11'
implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.12'
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.12'
implementation 'com.squareup.okhttp3:okhttp-dnsoverhttps'
implementation 'com.squareup.okio:okio:3.3.0'
implementation 'ch.acra:acra-http:5.9.7'
implementation 'org.jsoup:jsoup:1.15.4'
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json-okio:1.5.0'
implementation 'com.squareup.okio:okio:3.8.0'
implementation 'com.squareup.okhttp3:okhttp-brotli:5.0.0-alpha.12'
implementation 'org.jsoup:jsoup:1.16.1'
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json-okio:1.6.3'
implementation 'com.jakewharton.rxrelay:rxrelay:1.2.0'
implementation 'com.github.tachiyomiorg:unifile:17bec43'
implementation 'com.github.gpanther:java-nat-sort:natural-comparator-1.1'
implementation 'androidx.preference:preference-ktx:1.2.0'
implementation 'androidx.preference:preference-ktx:1.2.1'
implementation 'app.cash.quickjs:quickjs-android:0.9.2'
}

86
app/google-services.json Normal file
View File

@@ -0,0 +1,86 @@
{
"project_info": {
"project_number": "1039200814590",
"project_id": "dantotsu-1e50f",
"storage_bucket": "dantotsu-1e50f.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:1039200814590:android:c372b8c1b92b825f1aacaf",
"android_client_info": {
"package_name": "ani.Dantotsu"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyCiXo_q4S2ofA5oCztsoLnlDqJi3GtTJjY"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:1039200814590:android:40e14720ee97917e1aacaf",
"android_client_info": {
"package_name": "ani.dantotsu.beta"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyCiXo_q4S2ofA5oCztsoLnlDqJi3GtTJjY"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:1039200814590:android:40e14720ee97917e1aacaf",
"android_client_info": {
"package_name": "ani.dantotsu.alpha"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyCiXo_q4S2ofA5oCztsoLnlDqJi3GtTJjY"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:1039200814590:android:40e14720ee97917e1aacaf",
"android_client_info": {
"package_name": "ani.dantotsu"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyCiXo_q4S2ofA5oCztsoLnlDqJi3GtTJjY"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}

View File

@@ -43,6 +43,25 @@
public static <1> INSTANCE;
kotlinx.serialization.KSerializer serializer(...);
}
-keep class ani.dantotsu.** { *; }
-keep class ani.dantotsu.download.DownloadsManager { *; }
-keepattributes Signature
-keep class uy.kohesive.injekt.** { *; }
-keep class eu.kanade.tachiyomi.** { *; }
-keep class kotlin.** { *; }
-dontwarn kotlin.**
-keep class kotlinx.** { *; }
-keepclassmembers class uy.kohesive.injekt.api.FullTypeReference {
<init>(...);
}
-keep class com.google.gson.** { *; }
-keepattributes *Annotation*
-keepattributes EnclosingMethod
-keep class com.google.gson.reflect.TypeToken { *; }
-keep class org.jsoup.** { *; }
-keepclassmembers class org.jsoup.nodes.Document { *; }
# @Serializable and @Polymorphic are used at runtime for polymorphic serialization.
-keepattributes RuntimeVisibleAnnotations,AnnotationDefault

View File

@@ -0,0 +1,376 @@
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt">
<aapt:attr name="android:drawable">
<vector
android:name="vector"
android:width="768dp"
android:height="768dp"
android:viewportWidth="768"
android:viewportHeight="768">
<group
android:name="wrapper"
android:pivotX="384"
android:pivotY="384">
<clip-path
android:name="clippath"
android:pathData="M 384 128.04 C 329.836 127.869 276.99 144.889 233.11 176.638 C 189.23 208.387 156.539 253.255 139.769 304.75 C 122.999 356.244 122.999 411.756 139.769 463.25 C 156.539 514.745 189.23 559.613 233.11 591.362 C 276.99 623.111 329.836 640.131 384 639.96 C 451.869 639.96 517.028 612.974 565.019 564.991 C 613.01 517.008 640 451.859 640 384 C 640 316.141 613.01 250.992 565.019 203.009 C 517.028 155.026 451.869 128.04 384 128.04 Z" />
<group android:name="group">
<group android:name="group_1">
<path
android:name="path"
android:fillColor="#ED0021"
android:pathData="M 128 128 L 640 128 L 640 639.96 L 128 639.96 Z"
android:strokeWidth="1" />
<group
android:name="group_12"
android:pivotX="384"
android:pivotY="384">
<path
android:name="path_2"
android:fillColor="#D40037"
android:pathData="M 384 211.74 C 338.331 211.74 294.486 229.901 262.194 262.194 C 229.901 294.486 211.74 338.331 211.74 384 C 211.74 429.669 229.901 473.514 262.194 505.806 C 294.486 538.099 338.331 556.26 384 556.26 C 429.669 556.26 473.514 538.099 505.806 505.806 C 538.099 473.514 556.26 429.669 556.26 384 C 556.26 338.331 538.099 294.486 505.806 262.194 C 473.514 229.901 429.669 211.74 384 211.74 Z"
android:strokeWidth="1" />
</group>
</group>
<group android:name="group_2">
<group android:name="group_7">
<group android:name="group_10">
<group
android:name="group_11"
android:pivotX="94"
android:pivotY="440"
android:rotation="-90">
<path
android:name="path_1"
android:fillColor="#A70060"
android:pathData="M 128 128 L 128 463.26 C 151.32 466.96 175.23 468.89 199.58 468.89 C 411.17 468.89 588.92 323.99 639.01 128 L 128 128 Z"
android:strokeWidth="1" />
<clip-path
android:name="mask_2"
android:pathData="M 128 128 L 128 463.26 C 151.32 466.96 175.23 468.89 199.58 468.89 C 411.17 468.89 588.92 323.99 639.01 128 L 128 128 Z" />
</group>
</group>
<group
android:name="group_13"
android:pivotX="384"
android:pivotY="384">
<clip-path
android:name="mask_1"
android:pathData="M 384 211.74 C 338.331 211.74 294.486 229.901 262.194 262.194 C 229.901 294.486 211.74 338.331 211.74 384 C 211.74 429.669 229.901 473.514 262.194 505.806 C 294.486 538.099 338.331 556.26 384 556.26 C 429.669 556.26 473.514 538.099 505.806 505.806 C 538.099 473.514 556.26 429.669 556.26 384 C 556.26 338.331 538.099 294.486 505.806 262.194 C 473.514 229.901 429.669 211.74 384 211.74 Z" />
<group
android:name="group_9"
android:pivotX="94"
android:pivotY="440"
android:rotation="-90">
<path
android:name="path_3"
android:fillColor="#BF005E"
android:pathData="M 128 128 L 128 463.26 C 151.32 466.96 175.23 468.89 199.58 468.89 C 411.17 468.89 588.92 323.99 639.01 128 L 128 128 Z"
android:strokeWidth="1" />
</group>
</group>
<group
android:name="group_6"
android:pivotX="94"
android:pivotY="440"
android:rotation="-5"
android:scaleX="1.2"
android:scaleY="1.2" />
</group>
<group
android:name="group_8"
android:pivotX="94"
android:pivotY="440"
android:rotation="-90">
<group
android:name="group_14"
android:pivotX="94"
android:pivotY="440">
<path
android:name="path_4"
android:fillColor="#C70051"
android:pathData="M 539.28 128 C 503.71 317.07 337.72 460.12 138.31 460.12 C 134.86 460.12 131.42 460.06 128 459.98 L 128 465.73 C 168.23 476.19 210.43 481.78 253.93 481.78 C 409.53 481.78 548.48 410.55 640 298.94 L 640 128.01 L 539.28 128.01 Z"
android:strokeWidth="1" />
</group>
</group>
</group>
<group
android:name="group_3"
android:translateX="-360">
<path
android:name="path_6"
android:fillColor="#251528"
android:pathData="M 481.82 384 C 481.82 438.03 438.02 481.82 384 481.82 L 0 481.82 L 0 286.18 L 384 286.18 C 438.02 286.18 481.82 329.98 481.82 384 Z"
android:strokeWidth="1" />
</group>
<group
android:name="group_4"
android:pivotX="384"
android:pivotY="384"
android:scaleX="1.5"
android:scaleY="1.5">
<path
android:name="path_5"
android:fillColor="#251528"
android:pathData="M 44.26 128 C 44.26 174.25 81.75 211.74 128 211.74 L 384 211.74 C 479.13 211.74 556.26 288.86 556.26 384 C 556.26 479.13 479.14 556.26 384 556.26 L 128 556.26 C 81.76 556.26 44.28 593.73 44.26 639.97 L 768 639.97 L 768 128 L 44.26 128 Z"
android:strokeWidth="1" />
</group>
<group
android:name="group_5"
android:pivotX="384"
android:pivotY="384"
android:rotation="-15"
android:scaleX="3"
android:scaleY="3">
<path
android:name="path_7"
android:fillAlpha="0"
android:fillColor="#FFD8DF"
android:pathData="M 442 366.7 L 365.98 322.81 C 352.66 315.12 336.02 324.73 336.02 340.11 L 336.02 427.89 C 336.02 443.27 352.67 452.88 365.98 445.19 L 442 401.3 C 455.32 393.61 455.32 374.39 442 366.7 Z"
android:strokeWidth="1" />
</group>
</group>
</group>
</vector>
</aapt:attr>
<target android:name="wrapper">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:duration="500"
android:interpolator="@android:anim/overshoot_interpolator"
android:propertyName="scaleX"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
<objectAnimator
android:duration="500"
android:interpolator="@android:anim/overshoot_interpolator"
android:propertyName="scaleY"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
<target android:name="group_6">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:duration="550"
android:interpolator="@android:anim/overshoot_interpolator"
android:propertyName="rotation"
android:startOffset="350"
android:valueFrom="-10"
android:valueTo="0"
android:valueType="floatType" />
<objectAnimator
android:duration="300"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="scaleX"
android:startOffset="350"
android:valueFrom="1.2"
android:valueTo="1"
android:valueType="floatType" />
<objectAnimator
android:duration="300"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="scaleY"
android:startOffset="350"
android:valueFrom="1.2"
android:valueTo="1"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
<target android:name="group_3">
<aapt:attr name="android:animation">
<objectAnimator
android:duration="400"
android:interpolator="@android:anim/overshoot_interpolator"
android:propertyName="translateX"
android:startOffset="250"
android:valueFrom="-360"
android:valueTo="0"
android:valueType="floatType" />
</aapt:attr>
</target>
<target android:name="group_4">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:duration="350"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="scaleX"
android:startOffset="400"
android:valueFrom="1.5"
android:valueTo="1"
android:valueType="floatType" />
<objectAnimator
android:duration="350"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="scaleY"
android:startOffset="400"
android:valueFrom="1.5"
android:valueTo="1"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
<target android:name="path_7">
<aapt:attr name="android:animation">
<objectAnimator
android:duration="550"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="fillAlpha"
android:startOffset="350"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
</aapt:attr>
</target>
<target android:name="group_5">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:duration="550"
android:interpolator="@android:anim/decelerate_interpolator"
android:propertyName="rotation"
android:startOffset="350"
android:valueFrom="-45"
android:valueTo="0"
android:valueType="floatType" />
<objectAnimator
android:duration="550"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="scaleX"
android:startOffset="350"
android:valueFrom="3"
android:valueTo="1"
android:valueType="floatType" />
<objectAnimator
android:duration="550"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="scaleY"
android:startOffset="350"
android:valueFrom="3"
android:valueTo="1"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
<target android:name="group_8">
<aapt:attr name="android:animation">
<objectAnimator
android:duration="350"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="rotation"
android:startOffset="100"
android:valueFrom="-90"
android:valueTo="0"
android:valueType="floatType" />
</aapt:attr>
</target>
<target android:name="group_9">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:duration="350"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="rotation"
android:startOffset="100"
android:valueFrom="-90"
android:valueTo="0"
android:valueType="floatType" />
<objectAnimator
android:duration="350"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="scaleX"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
<objectAnimator
android:duration="350"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="scaleY"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
<target android:name="group_11">
<aapt:attr name="android:animation">
<objectAnimator
android:duration="350"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="rotation"
android:startOffset="100"
android:valueFrom="-90"
android:valueTo="0"
android:valueType="floatType" />
</aapt:attr>
</target>
<target android:name="group_12">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:duration="550"
android:interpolator="@android:anim/overshoot_interpolator"
android:propertyName="scaleX"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
<objectAnimator
android:duration="550"
android:interpolator="@android:anim/overshoot_interpolator"
android:propertyName="scaleY"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
<target android:name="group_13">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:duration="550"
android:interpolator="@android:anim/overshoot_interpolator"
android:propertyName="scaleX"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
<objectAnimator
android:duration="550"
android:interpolator="@android:anim/overshoot_interpolator"
android:propertyName="scaleY"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
<target android:name="group_14">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:duration="200"
android:interpolator="@android:anim/accelerate_decelerate_interpolator"
android:propertyName="rotation"
android:startOffset="350"
android:valueFrom="5"
android:valueTo="0"
android:valueType="floatType" />
<objectAnimator
android:duration="100"
android:interpolator="@android:anim/accelerate_decelerate_interpolator"
android:propertyName="rotation"
android:startOffset="250"
android:valueFrom="0"
android:valueTo="5"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
</animated-vector>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Dantotsu α</string>
</resources>

View File

@@ -0,0 +1,376 @@
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt">
<aapt:attr name="android:drawable">
<vector
android:name="vector"
android:width="768dp"
android:height="768dp"
android:viewportWidth="768"
android:viewportHeight="768">
<group
android:name="wrapper"
android:pivotX="384"
android:pivotY="384">
<clip-path
android:name="clippath"
android:pathData="M 384 128.04 C 329.836 127.869 276.99 144.889 233.11 176.638 C 189.23 208.387 156.539 253.255 139.769 304.75 C 122.999 356.244 122.999 411.756 139.769 463.25 C 156.539 514.745 189.23 559.613 233.11 591.362 C 276.99 623.111 329.836 640.131 384 639.96 C 451.869 639.96 517.028 612.974 565.019 564.991 C 613.01 517.008 640 451.859 640 384 C 640 316.141 613.01 250.992 565.019 203.009 C 517.028 155.026 451.869 128.04 384 128.04 Z" />
<group android:name="group">
<group android:name="group_1">
<path
android:name="path"
android:fillColor="#6901fd"
android:pathData="M 128 128 L 640 128 L 640 639.96 L 128 639.96 Z"
android:strokeWidth="1" />
<group
android:name="group_12"
android:pivotX="384"
android:pivotY="384">
<path
android:name="path_2"
android:fillColor="#4800e5"
android:pathData="M 384 211.74 C 338.331 211.74 294.486 229.901 262.194 262.194 C 229.901 294.486 211.74 338.331 211.74 384 C 211.74 429.669 229.901 473.514 262.194 505.806 C 294.486 538.099 338.331 556.26 384 556.26 C 429.669 556.26 473.514 538.099 505.806 505.806 C 538.099 473.514 556.26 429.669 556.26 384 C 556.26 338.331 538.099 294.486 505.806 262.194 C 473.514 229.901 429.669 211.74 384 211.74 Z"
android:strokeWidth="1" />
</group>
</group>
<group android:name="group_2">
<group android:name="group_7">
<group android:name="group_10">
<group
android:name="group_11"
android:pivotX="94"
android:pivotY="440"
android:rotation="-90">
<path
android:name="path_1"
android:fillColor="#2000bd"
android:pathData="M 128 128 L 128 463.26 C 151.32 466.96 175.23 468.89 199.58 468.89 C 411.17 468.89 588.92 323.99 639.01 128 L 128 128 Z"
android:strokeWidth="1" />
<clip-path
android:name="mask_2"
android:pathData="M 128 128 L 128 463.26 C 151.32 466.96 175.23 468.89 199.58 468.89 C 411.17 468.89 588.92 323.99 639.01 128 L 128 128 Z" />
</group>
</group>
<group
android:name="group_13"
android:pivotX="384"
android:pivotY="384">
<clip-path
android:name="mask_1"
android:pathData="M 384 211.74 C 338.331 211.74 294.486 229.901 262.194 262.194 C 229.901 294.486 211.74 338.331 211.74 384 C 211.74 429.669 229.901 473.514 262.194 505.806 C 294.486 538.099 338.331 556.26 384 556.26 C 429.669 556.26 473.514 538.099 505.806 505.806 C 538.099 473.514 556.26 429.669 556.26 384 C 556.26 338.331 538.099 294.486 505.806 262.194 C 473.514 229.901 429.669 211.74 384 211.74 Z" />
<group
android:name="group_9"
android:pivotX="94"
android:pivotY="440"
android:rotation="-90">
<path
android:name="path_3"
android:fillColor="#1e00d1"
android:pathData="M 128 128 L 128 463.26 C 151.32 466.96 175.23 468.89 199.58 468.89 C 411.17 468.89 588.92 323.99 639.01 128 L 128 128 Z"
android:strokeWidth="1" />
</group>
</group>
<group
android:name="group_6"
android:pivotX="94"
android:pivotY="440"
android:rotation="-5"
android:scaleX="1.2"
android:scaleY="1.2" />
</group>
<group
android:name="group_8"
android:pivotX="94"
android:pivotY="440"
android:rotation="-90">
<group
android:name="group_14"
android:pivotX="94"
android:pivotY="440">
<path
android:name="path_4"
android:fillColor="#2900da"
android:pathData="M 539.28 128 C 503.71 317.07 337.72 460.12 138.31 460.12 C 134.86 460.12 131.42 460.06 128 459.98 L 128 465.73 C 168.23 476.19 210.43 481.78 253.93 481.78 C 409.53 481.78 548.48 410.55 640 298.94 L 640 128.01 L 539.28 128.01 Z"
android:strokeWidth="1" />
</group>
</group>
</group>
<group
android:name="group_3"
android:translateX="-360">
<path
android:name="path_6"
android:fillColor="#1f1f30"
android:pathData="M 481.82 384 C 481.82 438.03 438.02 481.82 384 481.82 L 0 481.82 L 0 286.18 L 384 286.18 C 438.02 286.18 481.82 329.98 481.82 384 Z"
android:strokeWidth="1" />
</group>
<group
android:name="group_4"
android:pivotX="384"
android:pivotY="384"
android:scaleX="1.5"
android:scaleY="1.5">
<path
android:name="path_5"
android:fillColor="#1f1f30"
android:pathData="M 44.26 128 C 44.26 174.25 81.75 211.74 128 211.74 L 384 211.74 C 479.13 211.74 556.26 288.86 556.26 384 C 556.26 479.13 479.14 556.26 384 556.26 L 128 556.26 C 81.76 556.26 44.28 593.73 44.26 639.97 L 768 639.97 L 768 128 L 44.26 128 Z"
android:strokeWidth="1" />
</group>
<group
android:name="group_5"
android:pivotX="384"
android:pivotY="384"
android:rotation="-15"
android:scaleX="3"
android:scaleY="3">
<path
android:name="path_7"
android:fillAlpha="0"
android:fillColor="#efe7ff"
android:pathData="M 442 366.7 L 365.98 322.81 C 352.66 315.12 336.02 324.73 336.02 340.11 L 336.02 427.89 C 336.02 443.27 352.67 452.88 365.98 445.19 L 442 401.3 C 455.32 393.61 455.32 374.39 442 366.7 Z"
android:strokeWidth="1" />
</group>
</group>
</group>
</vector>
</aapt:attr>
<target android:name="wrapper">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:duration="500"
android:interpolator="@android:anim/overshoot_interpolator"
android:propertyName="scaleX"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
<objectAnimator
android:duration="500"
android:interpolator="@android:anim/overshoot_interpolator"
android:propertyName="scaleY"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
<target android:name="group_6">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:duration="550"
android:interpolator="@android:anim/overshoot_interpolator"
android:propertyName="rotation"
android:startOffset="350"
android:valueFrom="-10"
android:valueTo="0"
android:valueType="floatType" />
<objectAnimator
android:duration="300"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="scaleX"
android:startOffset="350"
android:valueFrom="1.2"
android:valueTo="1"
android:valueType="floatType" />
<objectAnimator
android:duration="300"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="scaleY"
android:startOffset="350"
android:valueFrom="1.2"
android:valueTo="1"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
<target android:name="group_3">
<aapt:attr name="android:animation">
<objectAnimator
android:duration="400"
android:interpolator="@android:anim/overshoot_interpolator"
android:propertyName="translateX"
android:startOffset="250"
android:valueFrom="-360"
android:valueTo="0"
android:valueType="floatType" />
</aapt:attr>
</target>
<target android:name="group_4">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:duration="350"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="scaleX"
android:startOffset="400"
android:valueFrom="1.5"
android:valueTo="1"
android:valueType="floatType" />
<objectAnimator
android:duration="350"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="scaleY"
android:startOffset="400"
android:valueFrom="1.5"
android:valueTo="1"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
<target android:name="path_7">
<aapt:attr name="android:animation">
<objectAnimator
android:duration="550"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="fillAlpha"
android:startOffset="350"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
</aapt:attr>
</target>
<target android:name="group_5">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:duration="550"
android:interpolator="@android:anim/decelerate_interpolator"
android:propertyName="rotation"
android:startOffset="350"
android:valueFrom="-45"
android:valueTo="0"
android:valueType="floatType" />
<objectAnimator
android:duration="550"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="scaleX"
android:startOffset="350"
android:valueFrom="3"
android:valueTo="1"
android:valueType="floatType" />
<objectAnimator
android:duration="550"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="scaleY"
android:startOffset="350"
android:valueFrom="3"
android:valueTo="1"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
<target android:name="group_8">
<aapt:attr name="android:animation">
<objectAnimator
android:duration="350"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="rotation"
android:startOffset="100"
android:valueFrom="-90"
android:valueTo="0"
android:valueType="floatType" />
</aapt:attr>
</target>
<target android:name="group_9">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:duration="350"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="rotation"
android:startOffset="100"
android:valueFrom="-90"
android:valueTo="0"
android:valueType="floatType" />
<objectAnimator
android:duration="350"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="scaleX"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
<objectAnimator
android:duration="350"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="scaleY"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
<target android:name="group_11">
<aapt:attr name="android:animation">
<objectAnimator
android:duration="350"
android:interpolator="@android:interpolator/fast_out_slow_in"
android:propertyName="rotation"
android:startOffset="100"
android:valueFrom="-90"
android:valueTo="0"
android:valueType="floatType" />
</aapt:attr>
</target>
<target android:name="group_12">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:duration="550"
android:interpolator="@android:anim/overshoot_interpolator"
android:propertyName="scaleX"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
<objectAnimator
android:duration="550"
android:interpolator="@android:anim/overshoot_interpolator"
android:propertyName="scaleY"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
<target android:name="group_13">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:duration="550"
android:interpolator="@android:anim/overshoot_interpolator"
android:propertyName="scaleX"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
<objectAnimator
android:duration="550"
android:interpolator="@android:anim/overshoot_interpolator"
android:propertyName="scaleY"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
<target android:name="group_14">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:duration="200"
android:interpolator="@android:anim/accelerate_decelerate_interpolator"
android:propertyName="rotation"
android:startOffset="350"
android:valueFrom="5"
android:valueTo="0"
android:valueType="floatType" />
<objectAnimator
android:duration="100"
android:interpolator="@android:anim/accelerate_decelerate_interpolator"
android:propertyName="rotation"
android:startOffset="250"
android:valueFrom="0"
android:valueTo="5"
android:valueType="floatType" />
</set>
</aapt:attr>
</target>
</animated-vector>

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Dantotsu α</string>
<string name="app_name">Dantotsu β</string>
</resources>

View File

@@ -0,0 +1,9 @@
package ani.dantotsu.connections.crashlytics
class CrashlyticsFactory {
companion object {
fun createCrashlytics(): CrashlyticsInterface {
return CrashlyticsStub()
}
}
}

View File

@@ -0,0 +1,9 @@
package ani.dantotsu.others
import androidx.fragment.app.FragmentActivity
object AppUpdater {
suspend fun check(activity: FragmentActivity, post: Boolean = false) {
//no-op
}
}

View File

@@ -0,0 +1,9 @@
package ani.dantotsu.connections.crashlytics
class CrashlyticsFactory {
companion object {
fun createCrashlytics(): CrashlyticsInterface {
return FirebaseCrashlytics()
}
}
}

View File

@@ -0,0 +1,34 @@
package ani.dantotsu.connections.crashlytics
import android.content.Context
import com.google.firebase.FirebaseApp
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.google.firebase.crashlytics.ktx.crashlytics
import com.google.firebase.ktx.Firebase
class FirebaseCrashlytics : CrashlyticsInterface {
override fun initialize(context: Context) {
FirebaseApp.initializeApp(context)
}
override fun logException(e: Throwable) {
FirebaseCrashlytics.getInstance().recordException(e)
}
override fun log(message: String) {
FirebaseCrashlytics.getInstance().log(message)
}
override fun setUserId(id: String) {
Firebase.crashlytics.setUserId(id)
}
override fun setCustomKey(key: String, value: String) {
FirebaseCrashlytics.getInstance().setCustomKey(key, value)
}
override fun setCrashlyticsCollectionEnabled(enabled: Boolean) {
FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(enabled)
}
}

View File

@@ -10,12 +10,22 @@ import android.content.IntentFilter
import android.net.Uri
import android.os.Environment
import android.widget.TextView
import androidx.core.content.FileProvider
import androidx.core.content.ContextCompat
import androidx.core.content.getSystemService
import androidx.fragment.app.FragmentActivity
import ani.dantotsu.*
import io.noties.markwon.Markwon
import io.noties.markwon.SoftBreakAddsNewLinePlugin
import ani.dantotsu.BuildConfig
import ani.dantotsu.Mapper
import ani.dantotsu.R
import ani.dantotsu.buildMarkwon
import ani.dantotsu.client
import ani.dantotsu.currContext
import ani.dantotsu.logError
import ani.dantotsu.openLinkInBrowser
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.snackString
import ani.dantotsu.toast
import ani.dantotsu.tryWithSuspend
import ani.dantotsu.util.Logger
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.launch
@@ -23,55 +33,67 @@ import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonArray
import kotlinx.serialization.json.decodeFromJsonElement
import java.io.File
import java.text.SimpleDateFormat
import java.util.*
import java.util.Locale
object AppUpdater {
suspend fun check(activity: FragmentActivity, post:Boolean=false) {
if(post) snackString(currContext()?.getString(R.string.checking_for_update))
suspend fun check(activity: FragmentActivity, post: Boolean = false) {
if (post) snackString(currContext()?.getString(R.string.checking_for_update))
val repo = activity.getString(R.string.repo)
tryWithSuspend {
val (md, version) = if(BuildConfig.DEBUG){
val (md, version) = if (BuildConfig.DEBUG) {
val res = client.get("https://api.github.com/repos/$repo/releases")
.parsed<JsonArray>().map {
Mapper.json.decodeFromJsonElement<GithubResponse>(it)
}
val r = res.filter { it.prerelease }.maxByOrNull {
it.timeStamp()
} ?: throw Exception("No Pre Release Found")
val v = r.tagName.substringAfter("v","")
val r = res.filter { it.prerelease }.filter { !it.tagName.contains("fdroid") }
.maxByOrNull {
it.timeStamp()
} ?: throw Exception("No Pre Release Found")
val v = r.tagName.substringAfter("v", "")
(r.body ?: "") to v.ifEmpty { throw Exception("Weird Version : ${r.tagName}") }
}else{
} else {
val res =
client.get("https://raw.githubusercontent.com/$repo/main/stable.md").text
res to res.substringAfter("# ").substringBefore("\n")
}
logger("Git Version : $version")
val dontShow = loadData("dont_ask_for_update_$version") ?: false
Logger.log("Git Version : $version")
val dontShow = PrefManager.getCustomVal("dont_ask_for_update_$version", false)
if (compareVersion(version) && !dontShow && !activity.isDestroyed) activity.runOnUiThread {
CustomBottomDialog.newInstance().apply {
setTitleText("${if (BuildConfig.DEBUG) "Beta " else ""}Update " + currContext()!!.getString(R.string.available))
setTitleText(
"${if (BuildConfig.DEBUG) "Beta " else ""}Update " + currContext()!!.getString(
R.string.available
)
)
addView(
TextView(activity).apply {
val markWon = Markwon.builder(activity).usePlugin(SoftBreakAddsNewLinePlugin.create()).build()
val markWon = buildMarkwon(activity, false)
markWon.setMarkdown(this, md)
}
)
setCheck(currContext()!!.getString(R.string.dont_show_again, version), false) { isChecked ->
setCheck(
currContext()!!.getString(R.string.dont_show_again, version),
false
) { isChecked ->
if (isChecked) {
saveData("dont_ask_for_update_$version", true)
PrefManager.setCustomVal("dont_ask_for_update_$version", true)
}
}
setPositiveButton(currContext()!!.getString(R.string.lets_go)) {
MainScope().launch(Dispatchers.IO) {
try {
client.get("https://api.github.com/repos/$repo/releases/tags/v$version")
.parsed<GithubResponse>().assets?.find {
it.browserDownloadURL.endsWith("apk")
}?.browserDownloadURL.apply {
val apks =
client.get("https://api.github.com/repos/$repo/releases/tags/v$version")
.parsed<GithubResponse>().assets?.filter {
it.browserDownloadURL.endsWith(
".apk"
)
}
val apkToDownload = apks?.first()
apkToDownload?.browserDownloadURL.apply {
if (this != null) activity.downloadUpdate(version, this)
else openLinkInBrowser("https://github.com/repos/$repo/releases/tag/v$version")
}
@@ -87,31 +109,32 @@ object AppUpdater {
show(activity.supportFragmentManager, "dialog")
}
}
else{
if(post) snackString(currContext()?.getString(R.string.no_update_found))
else {
if (post) snackString(currContext()?.getString(R.string.no_update_found))
}
}
}
private fun compareVersion(version: String): Boolean {
return when (BuildConfig.BUILD_TYPE) {
"debug" -> BuildConfig.VERSION_NAME != version
"alpha" -> false
else -> {
fun toDouble(list: List<String>): Double {
return list.mapIndexed { i: Int, s: String ->
when (i) {
0 -> s.toDouble() * 100
1 -> s.toDouble() * 10
2 -> s.toDouble()
else -> s.toDoubleOrNull() ?: 0.0
}
}.sum()
}
if(BuildConfig.DEBUG)
return BuildConfig.VERSION_NAME != version
else {
fun toDouble(list: List<String>): Double {
return list.mapIndexed { i: Int, s: String ->
when (i) {
0 -> s.toDouble() * 100
1 -> s.toDouble() * 10
2 -> s.toDouble()
else -> s.toDoubleOrNull()?: 0.0
}
}.sum()
val new = toDouble(version.split("."))
val curr = toDouble(BuildConfig.VERSION_NAME.split("."))
new > curr
}
val new = toDouble(version.split("."))
val curr = toDouble(BuildConfig.VERSION_NAME.split("."))
return new > curr
}
}
@@ -141,7 +164,8 @@ object AppUpdater {
-1
}
if (id == -1L) return true
registerReceiver(
ContextCompat.registerReceiver(
this,
object : BroadcastReceiver() {
@SuppressLint("Range")
override fun onReceive(context: Context?, intent: Intent?) {
@@ -150,44 +174,27 @@ object AppUpdater {
DownloadManager.EXTRA_DOWNLOAD_ID, id
) ?: id
val query = DownloadManager.Query()
query.setFilterById(downloadId)
val c = downloadManager.query(query)
if (c.moveToFirst()) {
val columnIndex = c.getColumnIndex(DownloadManager.COLUMN_STATUS)
if (DownloadManager.STATUS_SUCCESSFUL == c
.getInt(columnIndex)
) {
c.getColumnIndex(DownloadManager.COLUMN_MEDIAPROVIDER_URI)
val uri = Uri.parse(
c.getString(c.getColumnIndex(DownloadManager.COLUMN_LOCAL_URI))
)
openApk(this@downloadUpdate, uri)
}
downloadManager.getUriForDownloadedFile(downloadId)?.let {
openApk(this@downloadUpdate, it)
}
} catch (e: Exception) {
logError(e)
}
}
}, IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE)
}, IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE),
ContextCompat.RECEIVER_EXPORTED
)
return true
}
fun openApk(context: Context, uri: Uri) {
private fun openApk(context: Context, uri: Uri) {
try {
uri.path?.let {
val contentUri = FileProvider.getUriForFile(
context,
BuildConfig.APPLICATION_ID + ".provider",
File(it)
)
val installIntent = Intent(Intent.ACTION_VIEW).apply {
addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
putExtra(Intent.EXTRA_NOT_UNKNOWN_SOURCE, true)
data = contentUri
data = uri
}
context.startActivity(installIntent)
}
@@ -206,7 +213,7 @@ object AppUpdater {
val tagName: String,
val prerelease: Boolean,
@SerialName("created_at")
val createdAt : String,
val createdAt: String,
val body: String? = null,
val assets: List<Asset>? = null
) {

View File

@@ -2,6 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-sdk tools:overrideLibrary="go.server.gojni" />
<uses-feature
android:name="android.software.leanback"
android:required="false" />
@@ -10,32 +12,45 @@
android:required="false" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission
android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"
tools:ignore="LeanbackUsesWifi" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="32" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="32" />
<!-- For background jobs -->
android:maxSdkVersion="29" />
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="32" /> <!-- For background jobs -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<!-- For managing extensions -->
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" /> <!-- For managing extensions -->
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
<uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
<uses-permission android:name="android.permission.UPDATE_PACKAGES_WITHOUT_USER_ACTION" />
<!-- To view extension packages in API 30+ -->
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"
<uses-permission android:name="android.permission.UPDATE_PACKAGES_WITHOUT_USER_ACTION" /> <!-- To view extension packages in API 30+ -->
<uses-permission
android:name="android.permission.QUERY_ALL_PACKAGES"
tools:ignore="QueryAllPackagesPermission" />
<uses-permission android:name="android.permission.READ_APP_SPECIFIC_LOCALES"
<uses-permission
android:name="android.permission.READ_APP_SPECIFIC_LOCALES"
tools:ignore="ProtectedPermissions" />
<!-- ExoPlayer: Bluetooth Headsets -->
<uses-feature
android:name="android.hardware.bluetooth"
android:required="false" />
<uses-permission
android:name="android.permission.BLUETOOTH"
android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<!-- ExoPlayer: Bluetooth Headsets -->
<queries>
<package android:name="idm.internet.download.manager.plus" />
<package android:name="idm.internet.download.manager" />
@@ -46,22 +61,58 @@
<application
android:name=".App"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:banner="@mipmap/ic_banner_foreground"
android:enableOnBackInvokedCallback="true"
android:icon="${icon_placeholder}"
android:label="@string/app_name"
android:largeHeap="true"
android:requestLegacyExternalStorage="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:roundIcon="${icon_placeholder_round}"
android:supportsRtl="true"
android:theme="@style/Theme.Dantotsu"
android:usesCleartextTraffic="true"
tools:ignore="AllowBackup"
android:banner="@drawable/ic_banner_foreground">
tools:targetApi="tiramisu">
<receiver
android:name=".widgets.upcoming.UpcomingWidget"
android:exported="true">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/upcoming_widget_info" />
</receiver>
<activity
android:name="ani.dantotsu.media.novel.novelreader.NovelReaderActivity"
android:name=".widgets.upcoming.UpcomingWidgetConfigure"
android:exported="true">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<receiver
android:name=".widgets.statistics.ProfileStatsWidget"
android:exported="false">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/statistics_widget_info" />
</receiver>
<receiver android:name=".notifications.IncognitoNotificationClickReceiver" />
<activity
android:name=".media.novel.novelreader.NovelReaderActivity"
android:configChanges="orientation|screenSize"
android:exported="true" >
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/epub+zip" />
@@ -69,13 +120,11 @@
<data android:mimeType="application/vnd.amazon.ebook" />
<data android:mimeType="application/fb2+zip" />
<data android:mimeType="application/vnd.comicbook+zip" />
<data android:pathPattern=".*\\.epub" />
<data android:pathPattern=".*\\.mobi" />
<data android:pathPattern=".*\\.kf8" />
<data android:pathPattern=".*\\.fb2" />
<data android:pathPattern=".*\\.cbz" />
<data android:scheme="content" />
<data android:scheme="file" />
</intent-filter>
@@ -87,8 +136,61 @@
<activity
android:name=".settings.SettingsActivity"
android:parentActivityName=".MainActivity" />
<activity
android:name=".settings.SettingsAboutActivity"
android:parentActivityName=".MainActivity" />
<activity
android:name=".settings.SettingsAccountActivity"
android:parentActivityName=".MainActivity" />
<activity
android:name=".settings.SettingsAnimeActivity"
android:parentActivityName=".MainActivity" />
<activity
android:name=".settings.SettingsCommonActivity"
android:parentActivityName=".MainActivity" />
<activity
android:name=".settings.SettingsExtensionsActivity"
android:parentActivityName=".MainActivity" />
<activity
android:name=".settings.SettingsAddonActivity"
android:parentActivityName=".MainActivity" />
<activity
android:name=".settings.SettingsMangaActivity"
android:parentActivityName=".MainActivity" />
<activity
android:name=".settings.SettingsNotificationActivity"
android:parentActivityName=".MainActivity" />
<activity
android:name=".settings.SettingsThemeActivity"
android:parentActivityName=".MainActivity" />
<activity
android:name=".settings.ExtensionsActivity"
android:parentActivityName=".MainActivity"
android:windowSoftInputMode="adjustResize|stateHidden" />
<activity
android:name=".widgets.statistics.ProfileStatsConfigure"
android:exported="true">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<activity
android:name=".profile.ProfileActivity"
android:parentActivityName=".MainActivity"
android:windowSoftInputMode="adjustResize|stateHidden" />
<activity
android:name=".profile.FollowActivity"
android:parentActivityName=".MainActivity"
android:windowSoftInputMode="adjustResize|stateHidden" />
<activity
android:name=".profile.activity.FeedActivity"
android:configChanges="orientation|screenSize|screenLayout"
android:label="Inbox Activity"
android:parentActivityName=".MainActivity" />
<activity
android:name=".profile.activity.NotificationActivity"
android:label="Inbox Activity"
android:parentActivityName=".MainActivity" />
<activity
android:name=".others.imagesearch.ImageSearchActivity"
@@ -101,9 +203,12 @@
<activity
android:name=".media.CalendarActivity"
android:parentActivityName=".MainActivity" />
<activity android:name="ani.dantotsu.media.user.ListActivity" />
<activity android:name=".media.user.ListActivity" />
<activity
android:name="ani.dantotsu.media.manga.mangareader.MangaReaderActivity"
android:name=".profile.SingleStatActivity"
android:parentActivityName=".profile.ProfileActivity" />
<activity
android:name=".media.manga.mangareader.MangaReaderActivity"
android:excludeFromRecents="true"
android:exported="true"
android:label="@string/manga"
@@ -112,11 +217,12 @@
<activity
android:name=".media.MediaDetailsActivity"
android:parentActivityName=".MainActivity"
android:theme="@style/Theme.Dantotsu.NeverCutout" />
android:theme="@style/Theme.Dantotsu.NeverCutout"
android:windowSoftInputMode="adjustResize|stateHidden" />
<activity android:name=".media.CharacterDetailsActivity" />
<activity android:name=".home.NoInternet" />
<activity
android:name="ani.dantotsu.media.anime.ExoplayerView"
android:name=".media.anime.ExoplayerView"
android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|keyboard|keyboardHidden|navigation"
android:excludeFromRecents="true"
android:exported="true"
@@ -125,7 +231,7 @@
android:supportsPictureInPicture="true"
tools:targetApi="n" />
<activity
android:name="ani.dantotsu.connections.anilist.Login"
android:name=".connections.anilist.Login"
android:configChanges="orientation|screenSize|layoutDirection"
android:excludeFromRecents="true"
android:exported="true"
@@ -142,7 +248,7 @@
</intent-filter>
</activity>
<activity
android:name="ani.dantotsu.connections.mal.Login"
android:name=".connections.mal.Login"
android:configChanges="orientation|screenSize|layoutDirection"
android:excludeFromRecents="true"
android:exported="true"
@@ -158,8 +264,8 @@
android:scheme="dantotsu" />
</intent-filter>
</activity>
<activity android:name="ani.dantotsu.connections.discord.Login"
<activity
android:name=".connections.discord.Login"
android:configChanges="orientation|screenSize|layoutDirection"
android:excludeFromRecents="true"
android:exported="true"
@@ -170,15 +276,32 @@
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="dantotsu"/>
<data android:scheme="dantotsu" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="discord.dantotsu.com"/>
<data android:host="discord.dantotsu.com" />
</intent-filter>
</activity>
<activity
android:name="ani.dantotsu.connections.anilist.UrlMedia"
android:name=".others.webview.CookieCatcher"
android:configChanges="orientation|screenSize|layoutDirection"
android:excludeFromRecents="true"
android:exported="true"
android:launchMode="singleTask">
<intent-filter android:label="Discord Login for Dantotsu">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="dantotsu" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="discord.dantotsu.com" />
</intent-filter>
</activity>
<activity
android:name=".connections.anilist.UrlMedia"
android:configChanges="orientation|screenSize|layoutDirection"
android:excludeFromRecents="true"
android:exported="true"
@@ -207,6 +330,17 @@
<data android:host="myanimelist.net" />
<data android:pathPrefix="/anime" />
</intent-filter>
<intent-filter android:label="@string/view_profile_in_dantotsu">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="anilist.co" />
<data android:pathPrefix="/user" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
@@ -214,31 +348,48 @@
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.Main" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER"/>
<action android:name="android.intent.action.Main" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="content" />
<data android:mimeType="*/*" />
<data android:pathPattern=".*\\.ani" />
<data android:pathPattern=".*\\.sani" />
<data android:host="*" />
</intent-filter>
</activity>
<activity
android:name="eu.kanade.tachiyomi.extension.manga.util.MangaExtensionInstallActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="false" />
<activity
android:name="eu.kanade.tachiyomi.extension.anime.util.AnimeExtensionInstallActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="false" />
android:name="eu.kanade.tachiyomi.extension.util.ExtensionInstallActivity"
android:exported="false"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<receiver
android:name=".subcriptions.AlarmReceiver"
android:name=".notifications.AlarmPermissionStateReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.app.action.SCHEDULE_EXACT_ALARM_PERMISSION_STATE_CHANGED" />
</intent-filter>
</receiver>
<receiver
android:name=".notifications.BootCompletedReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="Aani.dantotsu.ACTION_ALARM"/>
</intent-filter>
</receiver>
<receiver android:name=".notifications.anilist.AnilistNotificationReceiver" />
<receiver android:name=".notifications.comment.CommentNotificationReceiver" />
<receiver android:name=".notifications.subscription.SubscriptionNotificationReceiver" />
<meta-data
android:name="preloaded_fonts"
@@ -255,18 +406,43 @@
android:resource="@xml/provider_paths" />
</provider>
<service android:name=".download.video.MyDownloadService"
android:exported="false">
<intent-filter>
<action android:name="androidx.media3.exoplayer.downloadService.action.RESTART"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</service>
<service android:name="eu.kanade.tachiyomi.extension.manga.util.MangaExtensionInstallService"
android:exported="false" />
<service
android:name=".widgets.upcoming.UpcomingRemoteViewsService"
android:exported="true"
android:permission="android.permission.BIND_REMOTEVIEWS" />
<service
android:name="eu.kanade.tachiyomi.extension.util.ExtensionInstallService"
android:exported="false"
android:foregroundServiceType="dataSync" />
<service
android:name=".download.manga.MangaDownloaderService"
android:exported="false"
android:foregroundServiceType="dataSync" />
<service
android:name=".download.novel.NovelDownloaderService"
android:exported="false"
android:foregroundServiceType="dataSync" />
<service
android:name=".download.anime.AnimeDownloaderService"
android:exported="false"
android:foregroundServiceType="dataSync" />
<service
android:name=".connections.discord.DiscordService"
android:exported="false"
android:foregroundServiceType="dataSync" />
<service
android:name="androidx.media3.exoplayer.scheduler.PlatformScheduler$PlatformSchedulerService"
android:exported="true"
android:permission="android.permission.BIND_JOB_SERVICE" />
<service
android:name=".addons.torrent.ServerService"
android:exported="false"
android:foregroundServiceType="dataSync"
android:stopWithTask="true" />
<service android:name="eu.kanade.tachiyomi.extension.anime.util.AnimeExtensionInstallService"
android:exported="false" />
<meta-data
android:name="com.google.android.gms.cast.framework.OPTIONS_PROVIDER_CLASS_NAME"
android:value="androidx.media3.cast.DefaultCastOptionsProvider" />
</application>
</manifest>

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -6,21 +6,46 @@ import android.content.Context
import android.os.Bundle
import androidx.multidex.MultiDex
import androidx.multidex.MultiDexApplication
import ani.dantotsu.addons.download.DownloadAddonManager
import ani.dantotsu.addons.torrent.TorrentAddonManager
import ani.dantotsu.aniyomi.anime.custom.AppModule
import ani.dantotsu.aniyomi.anime.custom.PreferenceModule
import eu.kanade.tachiyomi.data.notification.Notifications
import tachiyomi.core.util.system.logcat
import ani.dantotsu.connections.comments.CommentsAPI
import ani.dantotsu.connections.crashlytics.CrashlyticsInterface
import ani.dantotsu.notifications.TaskScheduler
import ani.dantotsu.others.DisabledReports
import ani.dantotsu.parsers.AnimeSources
import ani.dantotsu.parsers.MangaSources
import ani.dantotsu.parsers.NovelSources
import ani.dantotsu.parsers.novel.NovelExtensionManager
import ani.dantotsu.settings.SettingsActivity
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.util.FinalExceptionHandler
import ani.dantotsu.util.Logger
import com.google.android.material.color.DynamicColors
import com.google.firebase.crashlytics.ktx.crashlytics
import com.google.firebase.ktx.Firebase
import eu.kanade.tachiyomi.data.notification.Notifications
import eu.kanade.tachiyomi.extension.anime.AnimeExtensionManager
import eu.kanade.tachiyomi.extension.manga.MangaExtensionManager
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.launch
import logcat.AndroidLogcatLogger
import logcat.LogPriority
import logcat.LogcatLogger
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
@SuppressLint("StaticFieldLeak")
class App : MultiDexApplication() {
private lateinit var animeExtensionManager: AnimeExtensionManager
private lateinit var mangaExtensionManager: MangaExtensionManager
private lateinit var novelExtensionManager: NovelExtensionManager
private lateinit var torrentAddonManager: TorrentAddonManager
private lateinit var downloadAddonManager: DownloadAddonManager
override fun attachBaseContext(base: Context?) {
super.attachBaseContext(base)
MultiDex.install(this)
@@ -34,31 +59,91 @@ class App : MultiDexApplication() {
override fun onCreate() {
super.onCreate()
val sharedPreferences = getSharedPreferences("Dantotsu", Context.MODE_PRIVATE)
val useMaterialYou = sharedPreferences.getBoolean("use_material_you", false)
if(useMaterialYou) {
PrefManager.init(this)
Injekt.importModule(AppModule(this))
Injekt.importModule(PreferenceModule(this))
val crashlytics = Injekt.get<CrashlyticsInterface>()
crashlytics.initialize(this)
val useMaterialYou: Boolean = PrefManager.getVal(PrefName.UseMaterialYou)
if (useMaterialYou) {
DynamicColors.applyToActivitiesIfAvailable(this)
}
registerActivityLifecycleCallbacks(mFTActivityLifecycleCallbacks)
Firebase.crashlytics.setCrashlyticsCollectionEnabled(!DisabledReports)
initializeNetwork(baseContext)
crashlytics.setCrashlyticsCollectionEnabled(!DisabledReports)
(PrefManager.getVal(PrefName.SharedUserID) as Boolean).let {
if (!it) return@let
val dUsername = PrefManager.getVal(PrefName.DiscordUserName, null as String?)
val aUsername = PrefManager.getVal(PrefName.AnilistUserName, null as String?)
if (dUsername != null) {
crashlytics.setCustomKey("dUsername", dUsername)
}
if (aUsername != null) {
crashlytics.setCustomKey("aUsername", aUsername)
}
}
crashlytics.setCustomKey("device Info", SettingsActivity.getDeviceInfo())
Injekt.importModule(AppModule(this))
Injekt.importModule(PreferenceModule(this))
Logger.init(this)
Thread.setDefaultUncaughtExceptionHandler(FinalExceptionHandler())
Logger.log("App: Logging started")
initializeNetwork()
setupNotificationChannels()
if (!LogcatLogger.isInstalled) {
LogcatLogger.install(AndroidLogcatLogger(LogPriority.VERBOSE))
}
animeExtensionManager = Injekt.get()
mangaExtensionManager = Injekt.get()
novelExtensionManager = Injekt.get()
torrentAddonManager = Injekt.get()
downloadAddonManager = Injekt.get()
val animeScope = CoroutineScope(Dispatchers.Default)
animeScope.launch {
animeExtensionManager.findAvailableExtensions()
Logger.log("Anime Extensions: ${animeExtensionManager.installedExtensionsFlow.first()}")
AnimeSources.init(animeExtensionManager.installedExtensionsFlow)
}
val mangaScope = CoroutineScope(Dispatchers.Default)
mangaScope.launch {
mangaExtensionManager.findAvailableExtensions()
Logger.log("Manga Extensions: ${mangaExtensionManager.installedExtensionsFlow.first()}")
MangaSources.init(mangaExtensionManager.installedExtensionsFlow)
}
val novelScope = CoroutineScope(Dispatchers.Default)
novelScope.launch {
novelExtensionManager.findAvailableExtensions()
Logger.log("Novel Extensions: ${novelExtensionManager.installedExtensionsFlow.first()}")
NovelSources.init(novelExtensionManager.installedExtensionsFlow)
}
val addonScope = CoroutineScope(Dispatchers.Default)
addonScope.launch {
torrentAddonManager.init()
downloadAddonManager.init()
}
val commentsScope = CoroutineScope(Dispatchers.Default)
commentsScope.launch {
CommentsAPI.fetchAuthToken()
}
val useAlarmManager = PrefManager.getVal<Boolean>(PrefName.UseAlarmManager)
val scheduler = TaskScheduler.create(this, useAlarmManager)
scheduler.scheduleAllTasks(this)
scheduler.scheduleSingleWork(this)
}
private fun setupNotificationChannels() {
try {
Notifications.createChannels(this)
} catch (e: Exception) {
logcat(LogPriority.ERROR, e) { "Failed to modify notification channels" }
Logger.log("Failed to modify notification channels")
Logger.log(e)
}
}
@@ -81,7 +166,11 @@ class App : MultiDexApplication() {
companion object {
private var instance: App? = null
var context : Context? = null
/** Reference to the application context.
*
* USE WITH EXTREME CAUTION!**/
var context: Context? = null
fun currentContext(): Context? {
return instance?.mFTActivityLifecycleCallbacks?.currentActivity ?: context
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,33 +1,42 @@
package ani.dantotsu
import android.animation.ObjectAnimator
import android.annotation.SuppressLint
import android.app.AlertDialog
import android.content.Intent
import android.content.pm.PackageManager
import android.content.res.Configuration
import android.graphics.drawable.Animatable
import android.graphics.drawable.GradientDrawable
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.provider.Settings
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.AnticipateInterpolator
import android.widget.TextView
import androidx.activity.addCallback
import androidx.activity.viewModels
import androidx.annotation.OptIn
import androidx.appcompat.app.AppCompatActivity
import androidx.core.animation.doOnEnd
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import androidx.core.view.doOnAttach
import androidx.core.view.updateLayoutParams
import androidx.core.view.updateMargins
import androidx.documentfile.provider.DocumentFile
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.lifecycleScope
import androidx.media3.common.util.UnstableApi
import androidx.viewpager2.adapter.FragmentStateAdapter
import eu.kanade.tachiyomi.extension.anime.AnimeExtensionManager
import androidx.work.OneTimeWorkRequest
import ani.dantotsu.addons.torrent.ServerService
import ani.dantotsu.addons.torrent.TorrentAddonManager
import ani.dantotsu.connections.anilist.Anilist
import ani.dantotsu.connections.anilist.AnilistHomeViewModel
import ani.dantotsu.databinding.ActivityMainBinding
@@ -38,52 +47,173 @@ import ani.dantotsu.home.LoginFragment
import ani.dantotsu.home.MangaFragment
import ani.dantotsu.home.NoInternet
import ani.dantotsu.media.MediaDetailsActivity
import ani.dantotsu.notifications.anilist.AnilistNotificationWorker
import ani.dantotsu.notifications.comment.CommentNotificationWorker
import ani.dantotsu.others.CustomBottomDialog
import ani.dantotsu.parsers.AnimeSources
import ani.dantotsu.parsers.MangaSources
import ani.dantotsu.settings.UserInterfaceSettings
import ani.dantotsu.subcriptions.Subscription.Companion.startSubscription
import eu.kanade.tachiyomi.extension.manga.MangaExtensionManager
import ani.dantotsu.profile.ProfileActivity
import ani.dantotsu.profile.activity.FeedActivity
import ani.dantotsu.profile.activity.NotificationActivity
import ani.dantotsu.settings.ExtensionsActivity
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefManager.asLiveBool
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.settings.saving.SharedPreferenceBooleanLiveData
import ani.dantotsu.settings.saving.internal.PreferenceKeystore
import ani.dantotsu.settings.saving.internal.PreferencePackager
import ani.dantotsu.themes.ThemeManager
import ani.dantotsu.util.Logger
import com.google.android.material.snackbar.BaseTransientBottomBar
import com.google.android.material.snackbar.Snackbar
import com.google.android.material.textfield.TextInputEditText
import eu.kanade.domain.source.service.SourcePreferences
import io.noties.markwon.Markwon
import io.noties.markwon.SoftBreakAddsNewLinePlugin
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import nl.joery.animatedbottombar.AnimatedBottomBar
import uy.kohesive.injekt.injectLazy
import tachiyomi.core.util.lang.launchIO
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import java.io.Serializable
class MainActivity : AppCompatActivity() {
private lateinit var binding: ActivityMainBinding
private lateinit var incognitoLiveData: SharedPreferenceBooleanLiveData
private val scope = lifecycleScope
private var load = false
private var uiSettings = UserInterfaceSettings()
private val animeExtensionManager: AnimeExtensionManager by injectLazy()
private val mangaExtensionManager: MangaExtensionManager by injectLazy()
@kotlin.OptIn(DelicateCoroutinesApi::class)
@SuppressLint("InternalInsetResource", "DiscouragedApi")
@OptIn(UnstableApi::class)
override fun onCreate(savedInstanceState: Bundle?) {
ThemeManager(this).applyTheme()
super.onCreate(savedInstanceState)
//get FRAGMENT_CLASS_NAME from intent
val fragment = intent.getStringExtra("FRAGMENT_CLASS_NAME")
binding = ActivityMainBinding.inflate(layoutInflater)
setContentView(binding.root)
val animeScope = CoroutineScope(Dispatchers.Default)
animeScope.launch {
animeExtensionManager.findAvailableExtensions()
logger("Anime Extensions: ${animeExtensionManager.installedExtensionsFlow.first()}")
AnimeSources.init(animeExtensionManager.installedExtensionsFlow)
androidx.work.WorkManager.getInstance(this)
.enqueue(OneTimeWorkRequest.Companion.from(CommentNotificationWorker::class.java))
androidx.work.WorkManager.getInstance(this)
.enqueue(OneTimeWorkRequest.Companion.from(AnilistNotificationWorker::class.java))
val action = intent.action
val type = intent.type
if (Intent.ACTION_VIEW == action && type != null) {
val uri: Uri? = intent.data
try {
if (uri == null) {
throw Exception("Uri is null")
}
val jsonString =
contentResolver.openInputStream(uri)?.readBytes()
?: throw Exception("Error reading file")
val name =
DocumentFile.fromSingleUri(this, uri)?.name ?: "settings"
//.sani is encrypted, .ani is not
if (name.endsWith(".sani")) {
passwordAlertDialog { password ->
if (password != null) {
val salt = jsonString.copyOfRange(0, 16)
val encrypted = jsonString.copyOfRange(16, jsonString.size)
val decryptedJson = try {
PreferenceKeystore.decryptWithPassword(
password,
encrypted,
salt
)
} catch (e: Exception) {
toast("Incorrect password")
return@passwordAlertDialog
}
if (PreferencePackager.unpack(decryptedJson)) {
val intent = Intent(this, this.javaClass)
this.finish()
startActivity(intent)
}
} else {
toast("Password cannot be empty")
}
}
} else if (name.endsWith(".ani")) {
val decryptedJson = jsonString.toString(Charsets.UTF_8)
if (PreferencePackager.unpack(decryptedJson)) {
val intent = Intent(this, this.javaClass)
this.finish()
startActivity(intent)
}
} else {
toast("Invalid file type")
}
} catch (e: Exception) {
e.printStackTrace()
toast("Error importing settings")
}
}
val mangaScope = CoroutineScope(Dispatchers.Default)
mangaScope.launch {
mangaExtensionManager.findAvailableExtensions()
logger("Manga Extensions: ${mangaExtensionManager.installedExtensionsFlow.first()}")
MangaSources.init(mangaExtensionManager.installedExtensionsFlow)
val bottomNavBar = findViewById<AnimatedBottomBar>(R.id.navbar)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
val backgroundDrawable = bottomNavBar.background as GradientDrawable
val currentColor = backgroundDrawable.color?.defaultColor ?: 0
val semiTransparentColor = (currentColor and 0x00FFFFFF) or 0xF9000000.toInt()
backgroundDrawable.setColor(semiTransparentColor)
bottomNavBar.background = backgroundDrawable
}
bottomNavBar.background = ContextCompat.getDrawable(this, R.drawable.bottom_nav_gray)
val offset = try {
val statusBarHeightId = resources.getIdentifier("status_bar_height", "dimen", "android")
resources.getDimensionPixelSize(statusBarHeightId)
} catch (e: Exception) {
statusBarHeight
}
val layoutParams = binding.incognito.layoutParams as ViewGroup.MarginLayoutParams
layoutParams.topMargin = 11 * offset / 12
binding.incognito.layoutParams = layoutParams
incognitoLiveData = PrefManager.getLiveVal(
PrefName.Incognito,
false
).asLiveBool()
incognitoLiveData.observe(this) {
if (it) {
val slideDownAnim = ObjectAnimator.ofFloat(
binding.incognito,
View.TRANSLATION_Y,
-(binding.incognito.height.toFloat() + statusBarHeight),
0f
)
slideDownAnim.duration = 200
slideDownAnim.start()
binding.incognito.visibility = View.VISIBLE
} else {
val slideUpAnim = ObjectAnimator.ofFloat(
binding.incognito,
View.TRANSLATION_Y,
0f,
-(binding.incognito.height.toFloat() + statusBarHeight)
)
slideUpAnim.duration = 200
slideUpAnim.start()
//wait for animation to finish
Handler(Looper.getMainLooper()).postDelayed(
{ binding.incognito.visibility = View.GONE },
200
)
}
}
incognitoNotification(this)
var doubleBackToExitPressedOnce = false
onBackPressedDispatcher.addCallback(this) {
@@ -91,141 +221,310 @@ class MainActivity : AppCompatActivity() {
finish()
}
doubleBackToExitPressedOnce = true
snackString(this@MainActivity.getString(R.string.back_to_exit))
Handler(Looper.getMainLooper()).postDelayed(
{ doubleBackToExitPressedOnce = false },
2000
)
snackString(this@MainActivity.getString(R.string.back_to_exit)).apply {
this?.addCallback(object : BaseTransientBottomBar.BaseCallback<Snackbar>() {
override fun onDismissed(transientBottomBar: Snackbar?, event: Int) {
super.onDismissed(transientBottomBar, event)
doubleBackToExitPressedOnce = false
}
})
}
}
binding.root.isMotionEventSplittingEnabled = false
lifecycleScope.launch {
val splash = SplashScreenBinding.inflate(layoutInflater)
binding.root.addView(splash.root)
(splash.splashImage.drawable as Animatable).start()
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) {
val splash = SplashScreenBinding.inflate(layoutInflater)
binding.root.addView(splash.root)
(splash.splashImage.drawable as Animatable).start()
// Wait for 2 seconds (2000 milliseconds)
delay(2000)
delay(1200)
// Now perform the animation
ObjectAnimator.ofFloat(
splash.root,
View.TRANSLATION_Y,
0f,
-splash.root.height.toFloat()
).apply {
interpolator = AnticipateInterpolator()
duration = 200L
doOnEnd { binding.root.removeView(splash.root) }
start()
ObjectAnimator.ofFloat(
splash.root,
View.TRANSLATION_Y,
0f,
-splash.root.height.toFloat()
).apply {
interpolator = AnticipateInterpolator()
duration = 200L
doOnEnd { binding.root.removeView(splash.root) }
start()
}
}
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
splashScreen.setOnExitAnimationListener { splashScreenView ->
ObjectAnimator.ofFloat(
splashScreenView,
View.TRANSLATION_Y,
0f,
-splashScreenView.height.toFloat()
).apply {
interpolator = AnticipateInterpolator()
duration = 200L
doOnEnd { splashScreenView.remove() }
start()
}
}
}
binding.root.doOnAttach {
initActivity(this)
uiSettings = loadData("ui_settings") ?: uiSettings
selectedOption = uiSettings.defaultStartUpTab
binding.navbarContainer.updateLayoutParams<ViewGroup.MarginLayoutParams> {
val preferences: SourcePreferences = Injekt.get()
if (preferences.animeExtensionUpdatesCount()
.get() > 0 || preferences.mangaExtensionUpdatesCount().get() > 0
) {
snackString(R.string.extension_updates_available)
?.setDuration(Snackbar.LENGTH_LONG)
?.setAction(R.string.review) {
startActivity(Intent(this, ExtensionsActivity::class.java))
}
}
window.navigationBarColor = ContextCompat.getColor(this, android.R.color.transparent)
selectedOption = if (fragment != null) {
when (fragment) {
AnimeFragment::class.java.name -> 0
HomeFragment::class.java.name -> 1
MangaFragment::class.java.name -> 2
else -> 1
}
} else {
PrefManager.getVal(PrefName.DefaultStartUpTab)
}
binding.includedNavbar.navbarContainer.updateLayoutParams<ViewGroup.MarginLayoutParams> {
bottomMargin = navBarHeight
}
}
var launched = false
intent.extras?.let { extras ->
val fragmentToLoad = extras.getString("FRAGMENT_TO_LOAD")
val mediaId = extras.getInt("mediaId", -1)
val commentId = extras.getInt("commentId", -1)
val activityId = extras.getInt("activityId", -1)
if (fragmentToLoad != null && mediaId != -1 && commentId != -1) {
val detailIntent = Intent(this, MediaDetailsActivity::class.java).apply {
putExtra("FRAGMENT_TO_LOAD", fragmentToLoad)
putExtra("mediaId", mediaId)
putExtra("commentId", commentId)
}
launched = true
startActivity(detailIntent)
} else if (fragmentToLoad == "FEED" && activityId != -1) {
val feedIntent = Intent(this, FeedActivity::class.java).apply {
putExtra("FRAGMENT_TO_LOAD", "NOTIFICATIONS")
putExtra("activityId", activityId)
}
launched = true
startActivity(feedIntent)
} else if (fragmentToLoad == "NOTIFICATIONS" && activityId != -1) {
Logger.log("MainActivity, onCreate: $activityId")
val notificationIntent = Intent(this, NotificationActivity::class.java).apply {
putExtra("FRAGMENT_TO_LOAD", "NOTIFICATIONS")
putExtra("activityId", activityId)
}
launched = true
startActivity(notificationIntent)
}
}
val offlineMode: Boolean = PrefManager.getVal(PrefName.OfflineMode)
if (!isOnline(this)) {
snackString(this@MainActivity.getString(R.string.no_internet_connection))
startActivity(Intent(this, NoInternet::class.java))
} else {
val model: AnilistHomeViewModel by viewModels()
model.genres.observe(this) {
if (it != null) {
if (it) {
val navbar = binding.navbar
bottomBar = navbar
navbar.visibility = View.VISIBLE
binding.mainProgressBar.visibility = View.GONE
val mainViewPager = binding.viewpager
mainViewPager.isUserInputEnabled = false
mainViewPager.adapter = ViewPagerAdapter(supportFragmentManager, lifecycle)
mainViewPager.setPageTransformer(ZoomOutPageTransformer(uiSettings))
navbar.setOnTabSelectListener(object :
AnimatedBottomBar.OnTabSelectListener {
override fun onTabSelected(
lastIndex: Int,
lastTab: AnimatedBottomBar.Tab?,
newIndex: Int,
newTab: AnimatedBottomBar.Tab
) {
navbar.animate().translationZ(12f).setDuration(200).start()
selectedOption = newIndex
mainViewPager.setCurrentItem(newIndex, false)
if (offlineMode) {
snackString(this@MainActivity.getString(R.string.no_internet_connection))
startActivity(Intent(this, NoInternet::class.java))
} else {
val model: AnilistHomeViewModel by viewModels()
model.genres.observe(this) {
if (it != null) {
if (it) {
val navbar = binding.includedNavbar.navbar
bottomBar = navbar
navbar.visibility = View.VISIBLE
binding.mainProgressBar.visibility = View.GONE
val mainViewPager = binding.viewpager
mainViewPager.isUserInputEnabled = false
mainViewPager.adapter =
ViewPagerAdapter(supportFragmentManager, lifecycle)
mainViewPager.setPageTransformer(ZoomOutPageTransformer())
navbar.setOnTabSelectListener(object :
AnimatedBottomBar.OnTabSelectListener {
override fun onTabSelected(
lastIndex: Int,
lastTab: AnimatedBottomBar.Tab?,
newIndex: Int,
newTab: AnimatedBottomBar.Tab
) {
navbar.animate().translationZ(12f).setDuration(200).start()
selectedOption = newIndex
mainViewPager.setCurrentItem(newIndex, false)
}
})
if (mainViewPager.currentItem != selectedOption) {
navbar.selectTabAt(selectedOption)
mainViewPager.post {
mainViewPager.setCurrentItem(
selectedOption,
false
)
}
}
})
navbar.selectTabAt(selectedOption)
mainViewPager.post { mainViewPager.setCurrentItem(selectedOption, false) }
} else {
binding.mainProgressBar.visibility = View.GONE
}
}
}
//Load Data
if (!load) {
scope.launch(Dispatchers.IO) {
model.loadMain(this@MainActivity)
val id = intent.extras?.getInt("mediaId", 0)
val isMAL = intent.extras?.getBoolean("mal") ?: false
val cont = intent.extras?.getBoolean("continue") ?: false
if (id != null && id != 0) {
val media = withContext(Dispatchers.IO) {
Anilist.query.getMedia(id, isMAL)
}
if (media != null) {
media.cameFromContinue = cont
startActivity(
Intent(this@MainActivity, MediaDetailsActivity::class.java)
.putExtra("media", media as Serializable)
)
} else {
snackString(this@MainActivity.getString(R.string.anilist_not_found))
binding.mainProgressBar.visibility = View.GONE
}
}
delay(500)
startSubscription()
}
load = true
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
if (loadData<Boolean>("allow_opening_links", this) != true) {
CustomBottomDialog.newInstance().apply {
title = "Allow Dantotsu to automatically open Anilist & MAL Links?"
val md = "Open settings & click +Add Links & select Anilist & Mal urls"
addView(TextView(this@MainActivity).apply {
val markWon =
Markwon.builder(this@MainActivity)
.usePlugin(SoftBreakAddsNewLinePlugin.create()).build()
markWon.setMarkdown(this, md)
})
setNegativeButton(this@MainActivity.getString(R.string.no)) {
saveData("allow_opening_links", true, this@MainActivity)
dismiss()
}
setPositiveButton(this@MainActivity.getString(R.string.yes)) {
saveData("allow_opening_links", true, this@MainActivity)
tryWith(true) {
//Load Data
if (!load && !launched) {
scope.launch(Dispatchers.IO) {
model.loadMain(this@MainActivity)
val id = intent.extras?.getInt("mediaId", 0)
val isMAL = intent.extras?.getBoolean("mal") ?: false
val cont = intent.extras?.getBoolean("continue") ?: false
if (id != null && id != 0) {
val media = withContext(Dispatchers.IO) {
Anilist.query.getMedia(id, isMAL)
}
if (media != null) {
media.cameFromContinue = cont
startActivity(
Intent(Settings.ACTION_APP_OPEN_BY_DEFAULT_SETTINGS)
.setData(Uri.parse("package:$packageName"))
Intent(this@MainActivity, MediaDetailsActivity::class.java)
.putExtra("media", media as Serializable)
)
} else {
snackString(this@MainActivity.getString(R.string.anilist_not_found))
}
}
val username = intent.extras?.getString("username")
if (username != null) {
val nameInt = username.toIntOrNull()
if (nameInt != null) {
startActivity(
Intent(this@MainActivity, ProfileActivity::class.java)
.putExtra("userId", nameInt)
)
} else {
startActivity(
Intent(this@MainActivity, ProfileActivity::class.java)
.putExtra("username", username)
)
}
}
}.show(supportFragmentManager, "dialog")
}
load = true
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
if (!(PrefManager.getVal(PrefName.AllowOpeningLinks) as Boolean)) {
CustomBottomDialog.newInstance().apply {
title = "Allow Dantotsu to automatically open Anilist & MAL Links?"
val md = "Open settings & click +Add Links & select Anilist & Mal urls"
addView(TextView(this@MainActivity).apply {
val markWon =
Markwon.builder(this@MainActivity)
.usePlugin(SoftBreakAddsNewLinePlugin.create()).build()
markWon.setMarkdown(this, md)
})
setNegativeButton(this@MainActivity.getString(R.string.no)) {
PrefManager.setVal(PrefName.AllowOpeningLinks, true)
dismiss()
}
setPositiveButton(this@MainActivity.getString(R.string.yes)) {
PrefManager.setVal(PrefName.AllowOpeningLinks, true)
tryWith(true) {
startActivity(
Intent(Settings.ACTION_APP_OPEN_BY_DEFAULT_SETTINGS)
.setData(Uri.parse("package:$packageName"))
)
}
dismiss()
}
}.show(supportFragmentManager, "dialog")
}
}
}
}
val torrentManager = Injekt.get<TorrentAddonManager>()
fun startTorrent() {
if (torrentManager.isAvailable() && PrefManager.getVal(PrefName.TorrentEnabled)) {
launchIO {
if (!ServerService.isRunning()) {
ServerService.start()
}
}
}
}
if (torrentManager.isInitialized.value == false) {
torrentManager.isInitialized.observe(this) {
if (it) {
startTorrent()
}
}
} else {
startTorrent()
}
}
override fun onRestart() {
super.onRestart()
window.navigationBarColor = ContextCompat.getColor(this, android.R.color.transparent)
}
override fun onConfigurationChanged(newConfig: Configuration) {
super.onConfigurationChanged(newConfig)
val margin = if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) 8 else 32
val params: ViewGroup.MarginLayoutParams =
binding.includedNavbar.navbar.layoutParams as ViewGroup.MarginLayoutParams
params.updateMargins(bottom = margin.toPx)
}
private fun passwordAlertDialog(callback: (CharArray?) -> Unit) {
val password = CharArray(16).apply { fill('0') }
// Inflate the dialog layout
val dialogView =
LayoutInflater.from(this).inflate(R.layout.dialog_user_agent, null)
dialogView.findViewById<TextInputEditText>(R.id.userAgentTextBox)?.hint = "Password"
val subtitleTextView = dialogView.findViewById<TextView>(R.id.subtitle)
subtitleTextView?.visibility = View.VISIBLE
subtitleTextView?.text = getString(R.string.enter_password_to_decrypt_file)
val dialog = AlertDialog.Builder(this, R.style.MyPopup)
.setTitle("Enter Password")
.setView(dialogView)
.setPositiveButton("OK", null)
.setNegativeButton("Cancel") { dialog, _ ->
password.fill('0')
dialog.dismiss()
callback(null)
}
.create()
dialog.window?.setDimAmount(0.8f)
dialog.show()
// Override the positive button here
dialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
val editText = dialog.findViewById<TextInputEditText>(R.id.userAgentTextBox)
if (editText?.text?.isNotBlank() == true) {
editText.text?.toString()?.trim()?.toCharArray(password)
dialog.dismiss()
callback(password)
} else {
toast("Password cannot be empty")
}
}
}
//ViewPager

View File

@@ -1,65 +1,59 @@
package ani.dantotsu
import android.content.Context
import android.os.Build
import androidx.fragment.app.FragmentActivity
import ani.dantotsu.others.webview.CloudFlare
import ani.dantotsu.others.webview.WebViewBottomDialog
import ani.dantotsu.util.Logger
import com.lagradost.nicehttp.Requests
import com.lagradost.nicehttp.ResponseParser
import com.lagradost.nicehttp.addGenericDns
import kotlinx.coroutines.*
import eu.kanade.tachiyomi.network.NetworkHelper
import eu.kanade.tachiyomi.network.NetworkHelper.Companion.defaultUserAgentProvider
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.async
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.InternalSerializationApi
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import kotlinx.serialization.serializer
import okhttp3.Cache
import okhttp3.OkHttpClient
import java.io.File
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import java.io.PrintWriter
import java.io.Serializable
import java.io.StringWriter
import java.util.concurrent.*
import java.util.concurrent.CountDownLatch
import java.util.concurrent.TimeUnit
import kotlin.reflect.KClass
import kotlin.reflect.KFunction
val defaultHeaders = mapOf(
"User-Agent" to
"Mozilla/5.0 (Linux; Android %s; %s) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36"
.format(Build.VERSION.RELEASE, Build.MODEL)
)
lateinit var cache: Cache
lateinit var defaultHeaders: Map<String, String>
lateinit var okHttpClient: OkHttpClient
lateinit var client: Requests
fun initializeNetwork(context: Context) {
val dns = loadData<Int>("settings_dns")
cache = Cache(
File(context.cacheDir, "http_cache"),
5 * 1024L * 1024L // 5 MiB
fun initializeNetwork() {
val networkHelper = Injekt.get<NetworkHelper>()
defaultHeaders = mapOf(
"User-Agent" to
defaultUserAgentProvider()
.format(Build.VERSION.RELEASE, Build.MODEL)
)
okHttpClient = OkHttpClient.Builder()
.followRedirects(true)
.followSslRedirects(true)
.cache(cache)
.apply {
when (dns) {
1 -> addGoogleDns()
2 -> addCloudFlareDns()
3 -> addAdGuardDns()
}
}
.build()
okHttpClient = networkHelper.client
client = Requests(
okHttpClient,
networkHelper.client,
defaultHeaders,
defaultCacheTime = 6,
defaultCacheTimeUnit = TimeUnit.HOURS,
responseParser = Mapper
)
}
object Mapper : ResponseParser {
@@ -111,6 +105,7 @@ fun logError(e: Throwable, post: Boolean = true, snackbar: Boolean = true) {
toast(e.localizedMessage)
}
e.printStackTrace()
Logger.log(e)
}
fun <T> tryWith(post: Boolean = false, snackbar: Boolean = true, call: () -> T): T? {
@@ -122,7 +117,11 @@ fun <T> tryWith(post: Boolean = false, snackbar: Boolean = true, call: () -> T):
}
}
suspend fun <T> tryWithSuspend(post: Boolean = false, snackbar: Boolean = true, call: suspend () -> T): T? {
suspend fun <T> tryWithSuspend(
post: Boolean = false,
snackbar: Boolean = true,
call: suspend () -> T
): T? {
return try {
call.invoke()
} catch (e: Throwable) {
@@ -137,7 +136,7 @@ suspend fun <T> tryWithSuspend(post: Boolean = false, snackbar: Boolean = true,
* A url, which can also have headers
* **/
data class FileUrl(
val url: String,
var url: String,
val headers: Map<String, String> = mapOf()
) : Serializable {
companion object {
@@ -202,28 +201,29 @@ fun OkHttpClient.Builder.addAdGuardDns() = (
@Suppress("BlockingMethodInNonBlockingContext")
suspend fun webViewInterface(webViewDialog: WebViewBottomDialog): Map<String, String>? {
var map : Map<String,String>? = null
var map: Map<String, String>? = null
val latch = CountDownLatch(1)
webViewDialog.callback = {
map = it
latch.countDown()
}
val fragmentManager = (currContext() as FragmentActivity?)?.supportFragmentManager ?: return null
val fragmentManager =
(currContext() as FragmentActivity?)?.supportFragmentManager ?: return null
webViewDialog.show(fragmentManager, "web-view")
delay(0)
latch.await(2,TimeUnit.MINUTES)
latch.await(2, TimeUnit.MINUTES)
return map
}
suspend fun webViewInterface(type: String, url: FileUrl): Map<String, String>? {
val webViewDialog: WebViewBottomDialog = when (type) {
"Cloudflare" -> CloudFlare.newInstance(url)
else -> return null
else -> return null
}
return webViewInterface(webViewDialog)
}
suspend fun webViewInterface(type: String, url: String): Map<String, String>? {
return webViewInterface(type,FileUrl(url))
return webViewInterface(type, FileUrl(url))
}

View File

@@ -0,0 +1,15 @@
package ani.dantotsu.addons
abstract class Addon {
abstract val name: String
abstract val pkgName: String
abstract val versionName: String
abstract val versionCode: Long
abstract class Installed(
override val name: String,
override val pkgName: String,
override val versionName: String,
override val versionCode: Long,
) : Addon()
}

View File

@@ -0,0 +1,129 @@
package ani.dantotsu.addons
import android.app.Activity
import android.app.NotificationManager
import android.content.Context
import android.os.Build
import ani.dantotsu.Mapper
import ani.dantotsu.R
import ani.dantotsu.client
import ani.dantotsu.logError
import ani.dantotsu.openLinkInBrowser
import ani.dantotsu.others.AppUpdater
import ani.dantotsu.settings.InstallerSteps
import ani.dantotsu.toast
import ani.dantotsu.util.Logger
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.launch
import kotlinx.serialization.json.JsonArray
import kotlinx.serialization.json.decodeFromJsonElement
import rx.android.schedulers.AndroidSchedulers
class AddonDownloader {
companion object {
private suspend fun check(repo: String): Pair<String, String> {
return try {
val res = client.get("https://api.github.com/repos/$repo/releases")
.parsed<JsonArray>().map {
Mapper.json.decodeFromJsonElement<AppUpdater.GithubResponse>(it)
}
val r = res.maxByOrNull {
it.timeStamp()
} ?: throw Exception("No Pre Release Found")
val v = r.tagName.substringAfter("v", "")
val md = r.body ?: ""
val version = v.ifEmpty { throw Exception("Weird Version : ${r.tagName}") }
Logger.log("Git Version : $version")
Pair(md, version)
} catch (e: Exception) {
Logger.log("Error checking for update")
Logger.log(e)
Pair("", "")
}
}
suspend fun hasUpdate(repo: String, currentVersion: String): Boolean {
val (_, version) = check(repo)
return compareVersion(version, currentVersion)
}
suspend fun update(
activity: Activity,
manager: AddonManager<*>,
repo: String,
currentVersion: String
) {
val (_, version) = check(repo)
if (!compareVersion(version, currentVersion)) {
toast(activity.getString(R.string.no_update_found))
return
}
MainScope().launch(Dispatchers.IO) {
try {
val apks =
client.get("https://api.github.com/repos/$repo/releases/tags/v$version")
.parsed<AppUpdater.GithubResponse>().assets?.filter {
it.browserDownloadURL.endsWith(
".apk"
)
}
val apkToDownload =
apks?.find { it.browserDownloadURL.contains(getCurrentABI()) }
?: apks?.find { it.browserDownloadURL.contains("universal") }
?: apks?.first()
apkToDownload?.browserDownloadURL.apply {
if (this != null) {
val notificationManager =
activity.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
val installerSteps = InstallerSteps(notificationManager, activity)
manager.install(this)
.observeOn(AndroidSchedulers.mainThread())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(
{ installStep -> installerSteps.onInstallStep(installStep) {} },
{ error -> installerSteps.onError(error) {} },
{ installerSteps.onComplete {} }
)
} else openLinkInBrowser("https://github.com/repos/$repo/releases/tag/v$version")
}
} catch (e: Exception) {
logError(e)
}
}
}
/**
* Returns the ABI that the app is most likely running on.
* @return The primary ABI for the device.
*/
private fun getCurrentABI(): String {
return if (Build.SUPPORTED_ABIS.isNotEmpty()) {
Build.SUPPORTED_ABIS[0]
} else "Unknown"
}
private fun compareVersion(newVersion: String, oldVersion: String): Boolean {
fun toDouble(list: List<String>): Double {
return try {
list.mapIndexed { i: Int, s: String ->
when (i) {
0 -> s.toDouble() * 100
1 -> s.toDouble() * 10
2 -> s.toDouble()
else -> s.toDoubleOrNull() ?: 0.0
}
}.sum()
} catch (e: NumberFormatException) {
0.0
}
}
val new = toDouble(newVersion.split("."))
val curr = toDouble(oldVersion.split("."))
return new > curr
}
}
}

View File

@@ -0,0 +1,11 @@
package ani.dantotsu.addons
interface AddonListener {
fun onAddonInstalled(result: LoadResult?)
fun onAddonUpdated(result: LoadResult?)
fun onAddonUninstalled(pkgName: String)
enum class ListenerAction {
INSTALL, UPDATE, UNINSTALL
}
}

View File

@@ -0,0 +1,143 @@
package ani.dantotsu.addons
import android.content.Context
import android.content.pm.PackageInfo
import android.content.pm.PackageManager
import android.os.Build
import androidx.core.content.pm.PackageInfoCompat
import ani.dantotsu.addons.download.DownloadAddon
import ani.dantotsu.addons.download.DownloadAddonApi
import ani.dantotsu.addons.download.DownloadAddonManager
import ani.dantotsu.addons.download.DownloadLoadResult
import ani.dantotsu.addons.torrent.TorrentAddon
import ani.dantotsu.addons.torrent.TorrentAddonApi
import ani.dantotsu.addons.torrent.TorrentAddonManager
import ani.dantotsu.addons.torrent.TorrentLoadResult
import ani.dantotsu.media.AddonType
import ani.dantotsu.util.Logger
import dalvik.system.PathClassLoader
import eu.kanade.tachiyomi.extension.util.ExtensionLoader
import eu.kanade.tachiyomi.util.system.getApplicationIcon
class AddonLoader {
companion object {
fun loadExtension(
context: Context,
packageName: String,
className: String,
type: AddonType
): LoadResult? {
val pkgManager = context.packageManager
val installedPkgs = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
pkgManager.getInstalledPackages(PackageManager.PackageInfoFlags.of(ExtensionLoader.PACKAGE_FLAGS.toLong()))
} else {
pkgManager.getInstalledPackages(ExtensionLoader.PACKAGE_FLAGS)
}
val extPkgs = installedPkgs.filter {
isPackageAnExtension(
packageName,
it
)
}
if (extPkgs.isEmpty()) return null
if (extPkgs.size > 1) throw IllegalStateException("Multiple extensions with the same package name found")
val pkgName = extPkgs.first().packageName
val pkgInfo = extPkgs.first()
val appInfo = try {
pkgManager.getApplicationInfo(pkgName, PackageManager.GET_META_DATA)
} catch (error: PackageManager.NameNotFoundException) {
// Unlikely, but the package may have been uninstalled at this point
Logger.log(error)
throw error
}
val extName =
pkgManager.getApplicationLabel(appInfo).toString().substringAfter("Dantotsu: ")
val versionName = pkgInfo.versionName
val versionCode = PackageInfoCompat.getLongVersionCode(pkgInfo)
if (versionName.isNullOrEmpty()) {
Logger.log("Missing versionName for extension $extName")
throw IllegalStateException("Missing versionName for extension $extName")
}
val classLoader =
PathClassLoader(appInfo.sourceDir, appInfo.nativeLibraryDir, context.classLoader)
val loadedClass = try {
Class.forName(className, false, classLoader)
} catch (e: ClassNotFoundException) {
Logger.log("Extension load error: $extName ($className)")
Logger.log(e)
throw e
} catch (e: NoClassDefFoundError) {
Logger.log("Extension load error: $extName ($className)")
Logger.log(e)
throw e
} catch (e: Exception) {
Logger.log("Extension load error: $extName ($className)")
Logger.log(e)
throw e
}
val instance = loadedClass.getDeclaredConstructor().newInstance()
return when (type) {
AddonType.TORRENT -> {
val extension = instance as? TorrentAddonApi
?: throw IllegalStateException("Extension is not a TorrentAddonApi")
TorrentLoadResult.Success(
TorrentAddon.Installed(
name = extName,
pkgName = pkgName,
versionName = versionName,
versionCode = versionCode,
extension = extension,
icon = context.getApplicationIcon(pkgName),
)
)
}
AddonType.DOWNLOAD -> {
val extension = instance as? DownloadAddonApi
?: throw IllegalStateException("Extension is not a DownloadAddonApi")
DownloadLoadResult.Success(
DownloadAddon.Installed(
name = extName,
pkgName = pkgName,
versionName = versionName,
versionCode = versionCode,
extension = extension,
icon = context.getApplicationIcon(pkgName),
)
)
}
}
}
fun loadFromPkgName(context: Context, packageName: String, type: AddonType): LoadResult? {
return when (type) {
AddonType.TORRENT -> loadExtension(
context,
packageName,
TorrentAddonManager.TORRENT_CLASS,
type
)
AddonType.DOWNLOAD -> loadExtension(
context,
packageName,
DownloadAddonManager.DOWNLOAD_CLASS,
type
)
}
}
private fun isPackageAnExtension(type: String, pkgInfo: PackageInfo): Boolean {
return pkgInfo.packageName.equals(type)
}
}
}

View File

@@ -0,0 +1,46 @@
package ani.dantotsu.addons
import android.content.Context
import ani.dantotsu.media.AddonType
import eu.kanade.tachiyomi.extension.InstallStep
import eu.kanade.tachiyomi.extension.util.ExtensionInstaller
import rx.Observable
abstract class AddonManager<T : Addon.Installed>(
private val context: Context
) {
abstract var extension: T?
abstract var name: String
abstract var type: AddonType
protected val installer by lazy { ExtensionInstaller(context) }
var hasUpdate: Boolean = false
protected set
protected var onListenerAction: ((AddonListener.ListenerAction) -> Unit)? = null
abstract suspend fun init()
abstract fun isAvailable(): Boolean
abstract fun getVersion(): String?
abstract fun getPackageName(): String?
abstract fun hadError(context: Context): String?
abstract fun updateInstallStep(id: Long, step: InstallStep)
abstract fun setInstalling(id: Long)
fun uninstall() {
getPackageName()?.let {
installer.uninstallApk(it)
}
}
fun addListenerAction(action: (AddonListener.ListenerAction) -> Unit) {
onListenerAction = action
}
fun removeListenerAction() {
onListenerAction = null
}
fun install(url: String): Observable<InstallStep> {
return installer.downloadAndInstall(url, getPackageName() ?: "", name, type)
}
}

View File

@@ -0,0 +1,8 @@
package ani.dantotsu.addons
abstract class LoadResult {
abstract class Success : LoadResult()
}

View File

@@ -0,0 +1,133 @@
package ani.dantotsu.addons.download
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import androidx.core.content.ContextCompat
import ani.dantotsu.addons.AddonListener
import ani.dantotsu.addons.AddonLoader
import ani.dantotsu.addons.torrent.TorrentAddonManager
import ani.dantotsu.media.AddonType
import eu.kanade.tachiyomi.extension.util.ExtensionInstallReceiver
import eu.kanade.tachiyomi.extension.util.ExtensionInstallReceiver.Companion.filter
import eu.kanade.tachiyomi.extension.util.ExtensionInstallReceiver.Companion.getPackageNameFromIntent
import kotlinx.coroutines.DelicateCoroutinesApi
import tachiyomi.core.util.lang.launchNow
internal class AddonInstallReceiver : BroadcastReceiver() {
private var listener: AddonListener? = null
private var type: AddonType? = null
/**
* Registers this broadcast receiver
*/
fun register(context: Context) {
ContextCompat.registerReceiver(context, this, filter, ContextCompat.RECEIVER_EXPORTED)
}
fun setListener(listener: AddonListener, type: AddonType): AddonInstallReceiver {
this.listener = listener
this.type = type
return this
}
/**
* Called when one of the events of the [filter] is received. When the package is an extension,
* it's loaded in background and it notifies the [listener] when finished.
*/
@OptIn(DelicateCoroutinesApi::class)
override fun onReceive(context: Context, intent: Intent?) {
if (intent == null) return
when (intent.action) {
Intent.ACTION_PACKAGE_ADDED -> {
if (ExtensionInstallReceiver.isReplacing(intent)) return
launchNow {
when (type) {
AddonType.DOWNLOAD -> {
getPackageNameFromIntent(intent)?.let { packageName ->
if (packageName != DownloadAddonManager.DOWNLOAD_PACKAGE) return@launchNow
listener?.onAddonInstalled(
AddonLoader.loadFromPkgName(
context,
packageName,
AddonType.DOWNLOAD
)
)
}
}
AddonType.TORRENT -> {
getPackageNameFromIntent(intent)?.let { packageName ->
if (packageName != TorrentAddonManager.TORRENT_PACKAGE) return@launchNow
listener?.onAddonInstalled(
AddonLoader.loadFromPkgName(
context,
packageName,
AddonType.TORRENT
)
)
}
}
else -> {}
}
}
}
Intent.ACTION_PACKAGE_REPLACED -> {
if (ExtensionInstallReceiver.isReplacing(intent)) return
launchNow {
when (type) {
AddonType.DOWNLOAD -> {
getPackageNameFromIntent(intent)?.let { packageName ->
if (packageName != DownloadAddonManager.DOWNLOAD_PACKAGE) return@launchNow
listener?.onAddonUpdated(
AddonLoader.loadFromPkgName(
context,
packageName,
AddonType.DOWNLOAD
)
)
}
}
AddonType.TORRENT -> {
getPackageNameFromIntent(intent)?.let { packageName ->
if (packageName != TorrentAddonManager.TORRENT_PACKAGE) return@launchNow
listener?.onAddonUpdated(
AddonLoader.loadFromPkgName(
context,
packageName,
AddonType.TORRENT
)
)
}
}
else -> {}
}
}
}
Intent.ACTION_PACKAGE_REMOVED -> {
if (ExtensionInstallReceiver.isReplacing(intent)) return
getPackageNameFromIntent(intent)?.let { packageName ->
when (type) {
AddonType.DOWNLOAD -> {
if (packageName != DownloadAddonManager.DOWNLOAD_PACKAGE) return
listener?.onAddonUninstalled(packageName)
}
AddonType.TORRENT -> {
if (packageName != TorrentAddonManager.TORRENT_PACKAGE) return
listener?.onAddonUninstalled(packageName)
}
else -> {}
}
}
}
}
}
}

View File

@@ -0,0 +1,18 @@
package ani.dantotsu.addons.download
import android.graphics.drawable.Drawable
import ani.dantotsu.addons.Addon
sealed class DownloadAddon : Addon() {
data class Installed(
override val name: String,
override val pkgName: String,
override val versionName: String,
override val versionCode: Long,
val extension: DownloadAddonApi,
val icon: Drawable?,
val hasUpdate: Boolean = false,
) : Addon.Installed(name, pkgName, versionName, versionCode)
}

View File

@@ -0,0 +1,21 @@
package ani.dantotsu.addons.download
import android.content.Context
import android.net.Uri
interface DownloadAddonApi {
fun cancelDownload(sessionId: Long)
fun setDownloadPath(context: Context, uri: Uri): String
suspend fun executeFFProbe(request: String, logCallback: (String) -> Unit)
suspend fun executeFFMpeg(request: String, statCallback: (Double) -> Unit): Long
fun getState(sessionId: Long): String
fun getStackTrace(sessionId: Long): String?
fun hadError(sessionId: Long): Boolean
}

View File

@@ -0,0 +1,133 @@
package ani.dantotsu.addons.download
import android.content.Context
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import ani.dantotsu.R
import ani.dantotsu.addons.AddonDownloader
import ani.dantotsu.addons.AddonListener
import ani.dantotsu.addons.AddonLoader
import ani.dantotsu.addons.AddonManager
import ani.dantotsu.addons.LoadResult
import ani.dantotsu.media.AddonType
import ani.dantotsu.util.Logger
import eu.kanade.tachiyomi.extension.InstallStep
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
class DownloadAddonManager(
private val context: Context
) : AddonManager<DownloadAddon.Installed>(context) {
override var extension: DownloadAddon.Installed? = null
override var name: String = "Download Addon"
override var type = AddonType.DOWNLOAD
private val _isInitialized = MutableLiveData<Boolean>().apply { value = false }
val isInitialized: LiveData<Boolean> = _isInitialized
private var error: String? = null
override suspend fun init() {
extension = null
error = null
hasUpdate = false
withContext(Dispatchers.Main) {
_isInitialized.value = false
}
AddonInstallReceiver()
.setListener(InstallationListener(), type)
.register(context)
try {
val result = AddonLoader.loadExtension(
context,
DOWNLOAD_PACKAGE,
DOWNLOAD_CLASS,
AddonType.DOWNLOAD
) as? DownloadLoadResult
result?.let {
if (it is DownloadLoadResult.Success) {
extension = it.extension
hasUpdate = AddonDownloader.hasUpdate(REPO, it.extension.versionName)
}
}
withContext(Dispatchers.Main) {
_isInitialized.value = true
}
} catch (e: Exception) {
Logger.log("Error initializing Download extension")
Logger.log(e)
error = e.message
}
}
override fun isAvailable(): Boolean {
return extension?.extension != null
}
override fun getVersion(): String? {
return extension?.versionName
}
override fun getPackageName(): String? {
return extension?.pkgName
}
override fun hadError(context: Context): String? {
return if (isInitialized.value == true) {
if (error != null) {
error
} else if (extension != null) {
context.getString(R.string.loaded_successfully)
} else {
null
}
} else {
null
}
}
private inner class InstallationListener : AddonListener {
override fun onAddonInstalled(result: LoadResult?) {
if (result is DownloadLoadResult.Success) {
extension = result.extension
hasUpdate = false
onListenerAction?.invoke(AddonListener.ListenerAction.INSTALL)
}
}
override fun onAddonUpdated(result: LoadResult?) {
if (result is DownloadLoadResult.Success) {
extension = result.extension
hasUpdate = false
onListenerAction?.invoke(AddonListener.ListenerAction.UPDATE)
}
}
override fun onAddonUninstalled(pkgName: String) {
if (extension?.pkgName == pkgName) {
extension = null
hasUpdate = false
onListenerAction?.invoke(AddonListener.ListenerAction.UNINSTALL)
}
}
}
override fun updateInstallStep(id: Long, step: InstallStep) {
installer.updateInstallStep(id, step)
}
override fun setInstalling(id: Long) {
installer.updateInstallStep(id, InstallStep.Installing)
}
companion object {
const val DOWNLOAD_PACKAGE = "dantotsu.downloadAddon"
const val DOWNLOAD_CLASS = "ani.dantotsu.downloadAddon.DownloadAddon"
const val REPO = "rebelonion/Dantotsu-Download-Addon"
}
}

View File

@@ -0,0 +1,7 @@
package ani.dantotsu.addons.download
import ani.dantotsu.addons.LoadResult
open class DownloadLoadResult : LoadResult() {
class Success(val extension: DownloadAddon.Installed) : DownloadLoadResult()
}

View File

@@ -0,0 +1,16 @@
package ani.dantotsu.addons.torrent
import android.graphics.drawable.Drawable
import ani.dantotsu.addons.Addon
sealed class TorrentAddon : Addon() {
data class Installed(
override val name: String,
override val pkgName: String,
override val versionName: String,
override val versionCode: Long,
val extension: TorrentAddonApi,
val icon: Drawable?,
val hasUpdate: Boolean = false,
) : Addon.Installed(name, pkgName, versionName, versionCode)
}

View File

@@ -0,0 +1,24 @@
package ani.dantotsu.addons.torrent
import eu.kanade.tachiyomi.data.torrentServer.model.Torrent
interface TorrentAddonApi {
fun startServer(path: String)
fun stopServer()
fun echo(): String
fun removeTorrent(torrent: String)
fun addTorrent(
link: String,
title: String,
poster: String,
data: String,
save: Boolean,
): Torrent
fun getLink(torrent: Torrent, index: Int): String
}

View File

@@ -0,0 +1,137 @@
package ani.dantotsu.addons.torrent
import android.content.Context
import android.os.Build
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import ani.dantotsu.R
import ani.dantotsu.addons.AddonDownloader.Companion.hasUpdate
import ani.dantotsu.addons.AddonListener
import ani.dantotsu.addons.AddonLoader
import ani.dantotsu.addons.AddonManager
import ani.dantotsu.addons.LoadResult
import ani.dantotsu.addons.download.AddonInstallReceiver
import ani.dantotsu.media.AddonType
import ani.dantotsu.util.Logger
import eu.kanade.tachiyomi.extension.InstallStep
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
class TorrentAddonManager(
private val context: Context
) : AddonManager<TorrentAddon.Installed>(context) {
override var extension: TorrentAddon.Installed? = null
override var name: String = "Torrent Addon"
override var type: AddonType = AddonType.TORRENT
var torrentHash: String? = null
private val _isInitialized = MutableLiveData<Boolean>().apply { value = false }
val isInitialized: LiveData<Boolean> = _isInitialized
private var error: String? = null
override suspend fun init() {
extension = null
error = null
hasUpdate = false
withContext(Dispatchers.Main) {
_isInitialized.value = false
}
if (Build.VERSION.SDK_INT < 23) {
Logger.log("Torrent extension is not supported on this device.")
error = context.getString(R.string.torrent_extension_not_supported)
return
}
AddonInstallReceiver()
.setListener(InstallationListener(), type)
.register(context)
try {
val result = AddonLoader.loadExtension(
context,
TORRENT_PACKAGE,
TORRENT_CLASS,
type
) as TorrentLoadResult?
result?.let {
if (it is TorrentLoadResult.Success) {
extension = it.extension
hasUpdate = hasUpdate(REPO, it.extension.versionName)
}
}
withContext(Dispatchers.Main) {
_isInitialized.value = true
}
} catch (e: Exception) {
Logger.log("Error initializing torrent extension")
Logger.log(e)
error = e.message
}
}
override fun isAvailable(): Boolean {
return extension?.extension != null
}
override fun getVersion(): String? {
return extension?.versionName
}
override fun getPackageName(): String? {
return extension?.pkgName
}
override fun hadError(context: Context): String? {
return if (isInitialized.value == true) {
if (error != null) {
error
} else if (extension != null) {
context.getString(R.string.loaded_successfully)
} else {
null
}
} else {
null
}
}
private inner class InstallationListener : AddonListener {
override fun onAddonInstalled(result: LoadResult?) {
if (result is TorrentLoadResult.Success) {
extension = result.extension
hasUpdate = false
onListenerAction?.invoke(AddonListener.ListenerAction.INSTALL)
}
}
override fun onAddonUpdated(result: LoadResult?) {
if (result is TorrentLoadResult.Success) {
extension = result.extension
hasUpdate = false
onListenerAction?.invoke(AddonListener.ListenerAction.UPDATE)
}
}
override fun onAddonUninstalled(pkgName: String) {
if (pkgName == TORRENT_PACKAGE) {
extension = null
hasUpdate = false
onListenerAction?.invoke(AddonListener.ListenerAction.UNINSTALL)
}
}
}
override fun updateInstallStep(id: Long, step: InstallStep) {
installer.updateInstallStep(id, step)
}
override fun setInstalling(id: Long) {
installer.updateInstallStep(id, InstallStep.Installing)
}
companion object {
const val TORRENT_PACKAGE = "dantotsu.torrentAddon"
const val TORRENT_CLASS = "ani.dantotsu.torrentAddon.TorrentAddon"
const val REPO = "rebelonion/Dantotsu-Torrent-Addon"
}
}

View File

@@ -0,0 +1,7 @@
package ani.dantotsu.addons.torrent
import ani.dantotsu.addons.LoadResult
open class TorrentLoadResult : LoadResult() {
class Success(val extension: TorrentAddon.Installed) : TorrentLoadResult()
}

View File

@@ -0,0 +1,168 @@
package ani.dantotsu.addons.torrent
import android.app.ActivityManager
import android.app.Application
import android.app.PendingIntent
import android.app.Service
import android.content.Context
import android.content.Intent
import android.content.pm.ServiceInfo
import android.os.Build
import android.os.IBinder
import ani.dantotsu.R
import ani.dantotsu.util.Logger
import eu.kanade.tachiyomi.data.notification.Notifications.CHANNEL_TORRENT_SERVER
import eu.kanade.tachiyomi.data.notification.Notifications.ID_TORRENT_SERVER
import eu.kanade.tachiyomi.util.system.cancelNotification
import eu.kanade.tachiyomi.util.system.notificationBuilder
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import kotlin.coroutines.EmptyCoroutineContext
class ServerService : Service() {
private val serviceScope = CoroutineScope(EmptyCoroutineContext)
private val applicationContext = Injekt.get<Application>()
private val extension = Injekt.get<TorrentAddonManager>().extension!!.extension
override fun onBind(intent: Intent?): IBinder? = null
override fun onStartCommand(
intent: Intent?,
flags: Int,
startId: Int,
): Int {
intent?.let {
if (it.action != null) {
when (it.action) {
ACTION_START -> {
startServer()
notification(applicationContext)
return START_STICKY
}
ACTION_STOP -> {
stopServer()
return START_NOT_STICKY
}
}
}
}
return START_NOT_STICKY
}
private fun startServer() {
serviceScope.launch {
val echo = extension.echo()
if (echo == "") {
extension.startServer(filesDir.absolutePath)
}
}
}
private fun stopServer() {
serviceScope.launch {
extension.stopServer()
applicationContext.cancelNotification(ID_TORRENT_SERVER)
stopSelf()
}
}
private fun notification(context: Context) {
val exitPendingIntent =
PendingIntent.getService(
applicationContext,
0,
Intent(applicationContext, ServerService::class.java).apply {
action = ACTION_STOP
},
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE,
)
val builder = context.notificationBuilder(CHANNEL_TORRENT_SERVER) {
setSmallIcon(R.drawable.notification_icon)
setContentText("Torrent Server")
setContentTitle("Server is running…")
setAutoCancel(false)
setOngoing(true)
setUsesChronometer(true)
addAction(
R.drawable.ic_circle_cancel,
"Stop",
exitPendingIntent,
)
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
startForeground(
ID_TORRENT_SERVER,
builder.build(),
ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC,
)
} else {
startForeground(ID_TORRENT_SERVER, builder.build())
}
}
companion object {
const val ACTION_START = "start_torrent_server"
const val ACTION_STOP = "stop_torrent_server"
fun isRunning(): Boolean {
with(Injekt.get<Application>().getSystemService(ACTIVITY_SERVICE) as ActivityManager) {
@Suppress("DEPRECATION") // We only need our services
getRunningServices(Int.MAX_VALUE).forEach {
if (ServerService::class.java.name.equals(it.service.className)) {
return true
}
}
}
return false
}
fun start() {
try {
val intent =
Intent(Injekt.get<Application>(), ServerService::class.java).apply {
action = ACTION_START
}
Injekt.get<Application>().startService(intent)
} catch (e: Exception) {
e.printStackTrace()
}
}
fun stop() {
try {
val intent =
Intent(Injekt.get<Application>(), ServerService::class.java).apply {
action = ACTION_STOP
}
Injekt.get<Application>().startService(intent)
} catch (e: Exception) {
e.printStackTrace()
}
}
fun wait(timeout: Int = -1): Boolean {
var count = 0
if (timeout < 0) {
count = -20
}
var echo = Injekt.get<TorrentAddonManager>().extension?.extension?.echo()
while (echo == "") {
Thread.sleep(1000)
count++
if (count > timeout) {
return false
}
echo = Injekt.get<TorrentAddonManager>().extension?.extension?.echo()
}
Logger.log("ServerService: Server started: $echo")
return true
}
}
}

View File

@@ -2,17 +2,29 @@ package ani.dantotsu.aniyomi.anime.custom
import android.app.Application
import android.content.Context
import androidx.annotation.OptIn
import androidx.core.content.ContextCompat
import androidx.media3.common.util.UnstableApi
import androidx.media3.database.StandaloneDatabaseProvider
import ani.dantotsu.addons.download.DownloadAddonManager
import ani.dantotsu.addons.torrent.TorrentAddonManager
import ani.dantotsu.connections.crashlytics.CrashlyticsInterface
import ani.dantotsu.download.DownloadsManager
import ani.dantotsu.media.manga.MangaCache
import eu.kanade.tachiyomi.extension.anime.AnimeExtensionManager
import tachiyomi.core.preference.PreferenceStore
import ani.dantotsu.parsers.novel.NovelExtensionManager
import eu.kanade.domain.base.BasePreferences
import eu.kanade.domain.source.service.SourcePreferences
import eu.kanade.tachiyomi.core.preference.AndroidPreferenceStore
import eu.kanade.tachiyomi.extension.anime.AnimeExtensionManager
import eu.kanade.tachiyomi.extension.manga.MangaExtensionManager
import eu.kanade.tachiyomi.network.NetworkHelper
import eu.kanade.tachiyomi.network.NetworkPreferences
import eu.kanade.tachiyomi.source.anime.AndroidAnimeSourceManager
import eu.kanade.tachiyomi.source.manga.AndroidMangaSourceManager
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.json.Json
import tachiyomi.core.preference.PreferenceStore
import tachiyomi.domain.source.anime.service.AnimeSourceManager
import tachiyomi.domain.source.manga.service.MangaSourceManager
import uy.kohesive.injekt.api.InjektModule
import uy.kohesive.injekt.api.InjektRegistrar
import uy.kohesive.injekt.api.addSingleton
@@ -20,17 +32,24 @@ import uy.kohesive.injekt.api.addSingletonFactory
import uy.kohesive.injekt.api.get
class AppModule(val app: Application) : InjektModule {
@kotlin.OptIn(ExperimentalSerializationApi::class)
@OptIn(UnstableApi::class)
override fun InjektRegistrar.registerInjectables() {
addSingleton(app)
addSingletonFactory { NetworkHelper(app, get()) }
addSingletonFactory { DownloadsManager(app) }
addSingletonFactory { NetworkHelper(app) }
addSingletonFactory { NetworkHelper(app).client }
addSingletonFactory { AnimeExtensionManager(app) }
addSingletonFactory { MangaExtensionManager(app) }
addSingletonFactory { NovelExtensionManager(app) }
addSingletonFactory { TorrentAddonManager(app) }
addSingletonFactory { DownloadAddonManager(app) }
val sharedPreferences = app.getSharedPreferences("Dantotsu", Context.MODE_PRIVATE)
addSingleton(sharedPreferences)
addSingletonFactory<AnimeSourceManager> { AndroidAnimeSourceManager(app, get()) }
addSingletonFactory<MangaSourceManager> { AndroidMangaSourceManager(app, get()) }
addSingletonFactory {
Json {
@@ -39,7 +58,18 @@ class AppModule(val app: Application) : InjektModule {
}
}
addSingletonFactory { StandaloneDatabaseProvider(app) }
addSingletonFactory<CrashlyticsInterface> {
ani.dantotsu.connections.crashlytics.CrashlyticsFactory.createCrashlytics()
}
addSingletonFactory { MangaCache() }
ContextCompat.getMainExecutor(app).execute {
get<AnimeSourceManager>()
get<MangaSourceManager>()
}
}
}
@@ -49,13 +79,6 @@ class PreferenceModule(val application: Application) : InjektModule {
AndroidPreferenceStore(application)
}
addSingletonFactory {
NetworkPreferences(
preferenceStore = get(),
verboseLogging = false,
)
}
addSingletonFactory {
SourcePreferences(get())
}

View File

@@ -6,34 +6,40 @@ import ani.dantotsu.connections.anilist.Anilist
import ani.dantotsu.connections.mal.MAL
import ani.dantotsu.currContext
import ani.dantotsu.media.Media
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.toast
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlin.math.roundToInt
fun updateProgress(media: Media, number: String) {
if (Anilist.userid != null) {
CoroutineScope(Dispatchers.IO).launch {
val a = number.toFloatOrNull()?.roundToInt()
if (a != media.userProgress) {
Anilist.mutation.editList(
media.id,
a,
status = if (media.userStatus == "REPEATING") media.userStatus else "CURRENT"
)
MAL.query.editList(
media.idMAL,
media.anime != null,
a, null,
if (media.userStatus == "REPEATING") media.userStatus!! else "CURRENT"
)
toast(currContext()?.getString(R.string.setting_progress, a))
val incognito: Boolean = PrefManager.getVal(PrefName.Incognito)
if (!incognito) {
if (Anilist.userid != null) {
CoroutineScope(Dispatchers.IO).launch {
val a = number.toFloatOrNull()?.toInt()
if ((a ?: 0) > (media.userProgress ?: -1)) {
Anilist.mutation.editList(
media.id,
a,
status = if (media.userStatus == "REPEATING") media.userStatus else "CURRENT"
)
MAL.query.editList(
media.idMAL,
media.anime != null,
a, null,
if (media.userStatus == "REPEATING") media.userStatus!! else "CURRENT"
)
toast(currContext()?.getString(R.string.setting_progress, a))
}
media.userProgress = a
Refresh.all()
}
media.userProgress = a
Refresh.all()
} else {
toast(currContext()?.getString(R.string.login_anilist_account))
}
} else {
toast(currContext()?.getString(R.string.login_anilist_account))
toast("Sneaky sneaky :3")
}
}

View File

@@ -6,11 +6,15 @@ import android.net.Uri
import androidx.browser.customtabs.CustomTabsIntent
import ani.dantotsu.R
import ani.dantotsu.client
import ani.dantotsu.connections.comments.CommentsAPI
import ani.dantotsu.currContext
import ani.dantotsu.openLinkInBrowser
import ani.dantotsu.tryWithSuspend
import java.io.File
import java.util.*
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.snackString
import ani.dantotsu.toast
import ani.dantotsu.util.Logger
import java.util.Calendar
object Anilist {
val query: AnilistQueries = AnilistQueries()
@@ -24,23 +28,65 @@ object Anilist {
var bg: String? = null
var episodesWatched: Int? = null
var chapterRead: Int? = null
var unreadNotificationCount: Int = 0
var genres: ArrayList<String>? = null
var tags: Map<Boolean, List<String>>? = null
var rateLimitReset: Long = 0
val sortBy = listOf(
"SCORE_DESC","POPULARITY_DESC","TRENDING_DESC","TITLE_ENGLISH","TITLE_ENGLISH_DESC","SCORE"
"SCORE_DESC",
"POPULARITY_DESC",
"TRENDING_DESC",
"START_DATE_DESC",
"TITLE_ENGLISH",
"TITLE_ENGLISH_DESC",
"SCORE"
)
val source = listOf(
"ORIGINAL",
"MANGA",
"LIGHT NOVEL",
"VISUAL NOVEL",
"VIDEO GAME",
"OTHER",
"NOVEL",
"DOUJINSHI",
"ANIME",
"WEB NOVEL",
"LIVE ACTION",
"GAME",
"COMIC",
"MULTIMEDIA PROJECT",
"PICTURE BOOK"
)
val animeStatus = listOf(
"FINISHED",
"RELEASING",
"NOT YET RELEASED",
"CANCELLED"
)
val mangaStatus = listOf(
"FINISHED",
"RELEASING",
"NOT YET RELEASED",
"HIATUS",
"CANCELLED"
)
val seasons = listOf(
"WINTER", "SPRING", "SUMMER", "FALL"
)
val anime_formats = listOf(
val animeFormats = listOf(
"TV", "TV SHORT", "MOVIE", "SPECIAL", "OVA", "ONA", "MUSIC"
)
val manga_formats = listOf(
val mangaFormats = listOf(
"MANGA", "NOVEL", "ONE SHOT"
)
@@ -51,11 +97,11 @@ object Anilist {
private val cal: Calendar = Calendar.getInstance()
private val currentYear = cal.get(Calendar.YEAR)
private val currentSeason: Int = when (cal.get(Calendar.MONTH)) {
0, 1, 2 -> 0
3, 4, 5 -> 1
6, 7, 8 -> 2
0, 1, 2 -> 0
3, 4, 5 -> 1
6, 7, 8 -> 2
9, 10, 11 -> 3
else -> 0
else -> 0
}
private fun getSeason(next: Boolean): Pair<String, Int> {
@@ -89,15 +135,12 @@ object Anilist {
}
}
fun getSavedToken(context: Context): Boolean {
if ("anilistToken" in context.fileList()) {
token = File(context.filesDir, "anilistToken").readText()
return true
}
return false
fun getSavedToken(): Boolean {
token = PrefManager.getVal(PrefName.AnilistToken, null as String?)
return !token.isNullOrEmpty()
}
fun removeSavedToken(context: Context) {
fun removeSavedToken() {
token = null
username = null
adult = false
@@ -106,9 +149,10 @@ object Anilist {
bg = null
episodesWatched = null
chapterRead = null
if ("anilistToken" in context.fileList()) {
File(context.filesDir, "anilistToken").delete()
}
PrefManager.removeVal(PrefName.AnilistToken)
//logout from comments api
CommentsAPI.logout()
}
suspend inline fun <reified T : Any> executeQuery(
@@ -119,7 +163,12 @@ object Anilist {
show: Boolean = false,
cache: Int? = null
): T? {
return tryWithSuspend {
return try {
if (show) Logger.log("Anilist Query: $query")
if (rateLimitReset > System.currentTimeMillis() / 1000) {
toast("Rate limited. Try after ${rateLimitReset - (System.currentTimeMillis() / 1000)} seconds")
throw Exception("Rate limited after ${rateLimitReset - (System.currentTimeMillis() / 1000)} seconds")
}
val data = mapOf(
"query" to query,
"variables" to variables
@@ -132,11 +181,34 @@ object Anilist {
if (token != null || force) {
if (token != null && useToken) headers["Authorization"] = "Bearer $token"
val json = client.post("https://graphql.anilist.co/", headers, data = data, cacheTime = cache ?: 10)
if (!json.text.startsWith("{")) throw Exception(currContext()?.getString(R.string.anilist_down))
if (show) println("Response : ${json.text}")
val json = client.post(
"https://graphql.anilist.co/",
headers,
data = data,
cacheTime = cache ?: 10
)
val remaining = json.headers["X-RateLimit-Remaining"]?.toIntOrNull() ?: -1
Logger.log("Remaining requests: $remaining")
if (json.code == 429) {
val retry = json.headers["Retry-After"]?.toIntOrNull() ?: -1
val passedLimitReset = json.headers["X-RateLimit-Reset"]?.toLongOrNull() ?: 0
if (retry > 0) {
rateLimitReset = passedLimitReset
}
toast("Rate limited. Try after $retry seconds")
throw Exception("Rate limited after $retry seconds")
}
if (!json.text.startsWith("{")) {
throw Exception(currContext()?.getString(R.string.anilist_down))
}
if (show) Logger.log("Anilist Response: ${json.text}")
json.parsed()
} else null
} catch (e: Exception) {
if (show) snackString("Error fetching Anilist data: ${e.message}")
Logger.log("Anilist Query Error: ${e.message}")
null
}
}
}

View File

@@ -13,6 +13,23 @@ class AnilistMutations {
executeQuery<JsonObject>(query, variables)
}
suspend fun toggleFav(type: FavType, id: Int): Boolean {
val filter = when (type) {
FavType.ANIME -> "animeId"
FavType.MANGA -> "mangaId"
FavType.CHARACTER -> "characterId"
FavType.STAFF -> "staffId"
FavType.STUDIO -> "studioId"
}
val query = """mutation{ToggleFavourite($filter:$id){anime{pageInfo{total}}}}"""
val result = executeQuery<JsonObject>(query)
return result?.get("errors") == null && result != null
}
enum class FavType {
ANIME, MANGA, CHARACTER, STAFF, STUDIO
}
suspend fun editList(
mediaID: Int,
progress: Int? = null,
@@ -20,7 +37,7 @@ class AnilistMutations {
repeat: Int? = null,
notes: String? = null,
status: String? = null,
private:Boolean? = null,
private: Boolean? = null,
startedAt: FuzzyDate? = null,
completedAt: FuzzyDate? = null,
customList: List<String>? = null
@@ -41,7 +58,7 @@ class AnilistMutations {
${if (repeat != null) ""","repeat":$repeat""" else ""}
${if (notes != null) ""","notes":"${notes.replace("\n", "\\n")}"""" else ""}
${if (status != null) ""","status":"$status"""" else ""}
${if (customList !=null) ""","customLists":[${customList.joinToString { "\"$it\"" }}]""" else ""}
${if (customList != null) ""","customLists":[${customList.joinToString { "\"$it\"" }}]""" else ""}
}""".replace("\n", "").replace(""" """, "")
println(variables)
executeQuery<JsonObject>(query, variables, show = true)

View File

@@ -5,23 +5,29 @@ import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import ani.dantotsu.BuildConfig
import ani.dantotsu.R
import ani.dantotsu.connections.discord.Discord
import ani.dantotsu.loadData
import ani.dantotsu.connections.mal.MAL
import ani.dantotsu.media.Media
import ani.dantotsu.others.AppUpdater
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.snackString
import ani.dantotsu.tryWithSuspend
import ani.dantotsu.util.Logger
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
suspend fun getUserId(context: Context, block: () -> Unit) {
CoroutineScope(Dispatchers.IO).launch {
if (Discord.userid == null && Discord.token != null) {
if (!Discord.getUserData())
snackString(context.getString(R.string.error_loading_discord_user_data))
val token = PrefManager.getVal(PrefName.DiscordToken, null as String?)
val userid = PrefManager.getVal(PrefName.DiscordId, null as String?)
if (userid == null && token != null) {
/*if (!Discord.getUserData())
snackString(context.getString(R.string.error_loading_discord_user_data))*/
//TODO: Discord.getUserData()
}
}
@@ -38,48 +44,71 @@ suspend fun getUserId(context: Context, block: () -> Unit) {
}
} else true
if(anilist) block.invoke()
if (anilist) block.invoke()
}
class AnilistHomeViewModel : ViewModel() {
private val listImages: MutableLiveData<ArrayList<String?>> = MutableLiveData<ArrayList<String?>>(arrayListOf())
private val listImages: MutableLiveData<ArrayList<String?>> =
MutableLiveData<ArrayList<String?>>(arrayListOf())
fun getListImages(): LiveData<ArrayList<String?>> = listImages
suspend fun setListImages() = listImages.postValue(Anilist.query.getBannerImages())
private val animeContinue: MutableLiveData<ArrayList<Media>> = MutableLiveData<ArrayList<Media>>(null)
private val animeContinue: MutableLiveData<ArrayList<Media>> =
MutableLiveData<ArrayList<Media>>(null)
fun getAnimeContinue(): LiveData<ArrayList<Media>> = animeContinue
suspend fun setAnimeContinue() = animeContinue.postValue(Anilist.query.continueMedia("ANIME"))
private val animeFav: MutableLiveData<ArrayList<Media>> = MutableLiveData<ArrayList<Media>>(null)
private val animeFav: MutableLiveData<ArrayList<Media>> =
MutableLiveData<ArrayList<Media>>(null)
fun getAnimeFav(): LiveData<ArrayList<Media>> = animeFav
suspend fun setAnimeFav() = animeFav.postValue(Anilist.query.favMedia(true))
private val animePlanned: MutableLiveData<ArrayList<Media>> = MutableLiveData<ArrayList<Media>>(null)
private val animePlanned: MutableLiveData<ArrayList<Media>> =
MutableLiveData<ArrayList<Media>>(null)
fun getAnimePlanned(): LiveData<ArrayList<Media>> = animePlanned
suspend fun setAnimePlanned() = animePlanned.postValue(Anilist.query.continueMedia("ANIME", true))
private val mangaContinue: MutableLiveData<ArrayList<Media>> = MutableLiveData<ArrayList<Media>>(null)
private val mangaContinue: MutableLiveData<ArrayList<Media>> =
MutableLiveData<ArrayList<Media>>(null)
fun getMangaContinue(): LiveData<ArrayList<Media>> = mangaContinue
suspend fun setMangaContinue() = mangaContinue.postValue(Anilist.query.continueMedia("MANGA"))
private val mangaFav: MutableLiveData<ArrayList<Media>> = MutableLiveData<ArrayList<Media>>(null)
private val mangaFav: MutableLiveData<ArrayList<Media>> =
MutableLiveData<ArrayList<Media>>(null)
fun getMangaFav(): LiveData<ArrayList<Media>> = mangaFav
suspend fun setMangaFav() = mangaFav.postValue(Anilist.query.favMedia(false))
private val mangaPlanned: MutableLiveData<ArrayList<Media>> = MutableLiveData<ArrayList<Media>>(null)
private val mangaPlanned: MutableLiveData<ArrayList<Media>> =
MutableLiveData<ArrayList<Media>>(null)
fun getMangaPlanned(): LiveData<ArrayList<Media>> = mangaPlanned
suspend fun setMangaPlanned() = mangaPlanned.postValue(Anilist.query.continueMedia("MANGA", true))
private val recommendation: MutableLiveData<ArrayList<Media>> = MutableLiveData<ArrayList<Media>>(null)
private val recommendation: MutableLiveData<ArrayList<Media>> =
MutableLiveData<ArrayList<Media>>(null)
fun getRecommendation(): LiveData<ArrayList<Media>> = recommendation
suspend fun setRecommendation() = recommendation.postValue(Anilist.query.recommendations())
suspend fun initHomePage() {
val res = Anilist.query.initHomePage()
Logger.log("AnilistHomeViewModel : res=$res")
res["currentAnime"]?.let { animeContinue.postValue(it) }
res["favoriteAnime"]?.let { animeFav.postValue(it) }
res["plannedAnime"]?.let { animePlanned.postValue(it) }
res["currentManga"]?.let { mangaContinue.postValue(it) }
res["favoriteManga"]?.let { mangaFav.postValue(it) }
res["plannedManga"]?.let { mangaPlanned.postValue(it) }
res["recommendations"]?.let { recommendation.postValue(it) }
}
suspend fun loadMain(context: FragmentActivity) {
Anilist.getSavedToken(context)
MAL.getSavedToken(context)
Discord.getSavedToken(context)
if (loadData<Boolean>("check_update") != false) AppUpdater.check(context)
genres.postValue(Anilist.query.getGenresAndTags(context))
Anilist.getSavedToken()
MAL.getSavedToken()
Discord.getSavedToken()
if (!BuildConfig.FLAVOR.contains("fdroid")) {
if (PrefManager.getVal(PrefName.CheckUpdate)) AppUpdater.check(context)
}
genres.postValue(Anilist.query.getGenresAndTags())
}
val empty = MutableLiveData<Boolean>(null)
@@ -93,7 +122,9 @@ class AnilistAnimeViewModel : ViewModel() {
var notSet = true
lateinit var searchResults: SearchResults
private val type = "ANIME"
private val trending: MutableLiveData<MutableList<Media>> = MutableLiveData<MutableList<Media>>(null)
private val trending: MutableLiveData<MutableList<Media>> =
MutableLiveData<MutableList<Media>>(null)
fun getTrending(): LiveData<MutableList<Media>> = trending
suspend fun loadTrending(i: Int) {
val (season, year) = Anilist.currentSeasons[i]
@@ -104,20 +135,19 @@ class AnilistAnimeViewModel : ViewModel() {
sort = Anilist.sortBy[2],
season = season,
seasonYear = year,
hd = true
hd = true,
adultOnly = PrefManager.getVal(PrefName.AdultOnly)
)?.results
)
}
private val updated: MutableLiveData<MutableList<Media>> = MutableLiveData<MutableList<Media>>(null)
fun getUpdated(): LiveData<MutableList<Media>> = updated
suspend fun loadUpdated() = updated.postValue(Anilist.query.recentlyUpdated())
private val animePopular = MutableLiveData<SearchResults?>(null)
fun getPopular(): LiveData<SearchResults?> = animePopular
suspend fun loadPopular(
type: String,
search_val: String? = null,
searchVal: String? = null,
genres: ArrayList<String>? = null,
sort: String = Anilist.sortBy[1],
onList: Boolean = true,
@@ -125,10 +155,11 @@ class AnilistAnimeViewModel : ViewModel() {
animePopular.postValue(
Anilist.query.search(
type,
search = search_val,
search = searchVal,
onList = if (onList) null else false,
sort = sort,
genres = genres
genres = genres,
adultOnly = PrefManager.getVal(PrefName.AdultOnly)
)
)
}
@@ -143,13 +174,43 @@ class AnilistAnimeViewModel : ViewModel() {
r.sort,
r.genres,
r.tags,
r.status,
r.source,
r.format,
r.countryOfOrigin,
r.isAdult,
r.onList
r.onList,
adultOnly = PrefManager.getVal(PrefName.AdultOnly),
)
)
var loaded: Boolean = false
private val updated: MutableLiveData<MutableList<Media>> =
MutableLiveData<MutableList<Media>>(null)
fun getUpdated(): LiveData<MutableList<Media>> = updated
private val popularMovies: MutableLiveData<MutableList<Media>> =
MutableLiveData<MutableList<Media>>(null)
fun getMovies(): LiveData<MutableList<Media>> = popularMovies
private val topRatedAnime: MutableLiveData<MutableList<Media>> =
MutableLiveData<MutableList<Media>>(null)
fun getTopRated(): LiveData<MutableList<Media>> = topRatedAnime
private val mostFavAnime: MutableLiveData<MutableList<Media>> =
MutableLiveData<MutableList<Media>>(null)
fun getMostFav(): LiveData<MutableList<Media>> = mostFavAnime
suspend fun loadAll() {
val list = Anilist.query.loadAnimeList()
updated.postValue(list["recentUpdates"])
popularMovies.postValue(list["trendingMovies"])
topRatedAnime.postValue(list["topRated"])
mostFavAnime.postValue(list["mostFav"])
}
}
class AnilistMangaViewModel : ViewModel() {
@@ -157,21 +218,27 @@ class AnilistMangaViewModel : ViewModel() {
var notSet = true
lateinit var searchResults: SearchResults
private val type = "MANGA"
private val trending: MutableLiveData<MutableList<Media>> = MutableLiveData<MutableList<Media>>(null)
private val trending: MutableLiveData<MutableList<Media>> =
MutableLiveData<MutableList<Media>>(null)
fun getTrending(): LiveData<MutableList<Media>> = trending
suspend fun loadTrending() =
trending.postValue(Anilist.query.search(type, perPage = 10, sort = Anilist.sortBy[2], hd = true)?.results)
trending.postValue(
Anilist.query.search(
type,
perPage = 10,
sort = Anilist.sortBy[2],
hd = true,
adultOnly = PrefManager.getVal(PrefName.AdultOnly)
)?.results
)
private val updated: MutableLiveData<MutableList<Media>> = MutableLiveData<MutableList<Media>>(null)
fun getTrendingNovel(): LiveData<MutableList<Media>> = updated
suspend fun loadTrendingNovel() =
updated.postValue(Anilist.query.search(type, perPage = 10, sort = Anilist.sortBy[2], format = "NOVEL")?.results)
private val mangaPopular = MutableLiveData<SearchResults?>(null)
fun getPopular(): LiveData<SearchResults?> = mangaPopular
suspend fun loadPopular(
type: String,
search_val: String? = null,
searchVal: String? = null,
genres: ArrayList<String>? = null,
sort: String = Anilist.sortBy[1],
onList: Boolean = true,
@@ -179,10 +246,11 @@ class AnilistMangaViewModel : ViewModel() {
mangaPopular.postValue(
Anilist.query.search(
type,
search = search_val,
search = searchVal,
onList = if (onList) null else false,
sort = sort,
genres = genres
genres = genres,
adultOnly = PrefManager.getVal(PrefName.AdultOnly)
)
)
}
@@ -197,17 +265,55 @@ class AnilistMangaViewModel : ViewModel() {
r.sort,
r.genres,
r.tags,
r.status,
r.source,
r.format,
r.countryOfOrigin,
r.isAdult,
r.onList,
r.excludedGenres,
r.excludedTags,
r.startYear,
r.seasonYear,
r.season
r.season,
adultOnly = PrefManager.getVal(PrefName.AdultOnly)
)
)
var loaded: Boolean = false
private val popularManga: MutableLiveData<MutableList<Media>> =
MutableLiveData<MutableList<Media>>(null)
fun getPopularManga(): LiveData<MutableList<Media>> = popularManga
private val popularManhwa: MutableLiveData<MutableList<Media>> =
MutableLiveData<MutableList<Media>>(null)
fun getPopularManhwa(): LiveData<MutableList<Media>> = popularManhwa
private val popularNovel: MutableLiveData<MutableList<Media>> =
MutableLiveData<MutableList<Media>>(null)
fun getPopularNovel(): LiveData<MutableList<Media>> = popularNovel
private val topRatedManga: MutableLiveData<MutableList<Media>> =
MutableLiveData<MutableList<Media>>(null)
fun getTopRated(): LiveData<MutableList<Media>> = topRatedManga
private val mostFavManga: MutableLiveData<MutableList<Media>> =
MutableLiveData<MutableList<Media>>(null)
fun getMostFav(): LiveData<MutableList<Media>> = mostFavManga
suspend fun loadAll() {
val list = Anilist.query.loadMangaList()
popularManga.postValue(list["trendingManga"])
popularManhwa.postValue(list["trendingManhwa"])
popularNovel.postValue(list["trendingNovel"])
topRatedManga.postValue(list["topRated"])
mostFavManga.postValue(list["mostFav"])
}
}
class AnilistSearch : ViewModel() {
@@ -226,13 +332,17 @@ class AnilistSearch : ViewModel() {
r.sort,
r.genres,
r.tags,
r.status,
r.source,
r.format,
r.countryOfOrigin,
r.isAdult,
r.onList,
r.excludedGenres,
r.excludedTags,
r.startYear,
r.seasonYear,
r.season
r.season,
)
)
@@ -245,11 +355,15 @@ class AnilistSearch : ViewModel() {
r.sort,
r.genres,
r.tags,
r.status,
r.source,
r.format,
r.countryOfOrigin,
r.isAdult,
r.onList,
r.excludedGenres,
r.excludedTags,
r.startYear,
r.seasonYear,
r.season
)
@@ -273,4 +387,40 @@ class GenresViewModel : ViewModel() {
}
}
}
}
class ProfileViewModel : ViewModel() {
private val mangaFav: MutableLiveData<ArrayList<Media>> =
MutableLiveData<ArrayList<Media>>(null)
fun getMangaFav(): LiveData<ArrayList<Media>> = mangaFav
private val animeFav: MutableLiveData<ArrayList<Media>> =
MutableLiveData<ArrayList<Media>>(null)
fun getAnimeFav(): LiveData<ArrayList<Media>> = animeFav
suspend fun setData(id: Int) {
val res = Anilist.query.initProfilePage(id)
val mangaList = res?.data?.favoriteManga?.favourites?.manga?.edges?.mapNotNull {
it.node?.let { i ->
Media(i).apply { isFav = true }
}
}
mangaFav.postValue(ArrayList(mangaList ?: arrayListOf()))
val animeList = res?.data?.favoriteAnime?.favourites?.anime?.edges?.mapNotNull {
it.node?.let { i ->
Media(i).apply { isFav = true }
}
}
animeFav.postValue(ArrayList(animeList ?: arrayListOf()))
}
fun refresh() {
mangaFav.postValue(mangaFav.value)
animeFav.postValue(animeFav.value)
}
}

View File

@@ -1,24 +1,24 @@
package ani.dantotsu.connections.anilist
import android.content.Context
import android.net.Uri
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import ani.dantotsu.logError
import ani.dantotsu.logger
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.startMainActivity
import ani.dantotsu.themes.ThemeManager
class Login : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
ThemeManager(this).applyTheme()
val data: Uri? = intent?.data
logger(data.toString())
try {
Anilist.token = Regex("""(?<=access_token=).+(?=&token_type)""").find(data.toString())!!.value
val filename = "anilistToken"
this.openFileOutput(filename, Context.MODE_PRIVATE).use {
it.write(Anilist.token!!.toByteArray())
}
Anilist.token =
Regex("""(?<=access_token=).+(?=&token_type)""").find(data.toString())!!.value
PrefManager.setVal(PrefName.AnilistToken, Anilist.token ?: "")
} catch (e: Exception) {
logError(e)
}

View File

@@ -11,13 +11,17 @@ data class SearchResults(
var onList: Boolean? = null,
var perPage: Int? = null,
var search: String? = null,
var countryOfOrigin: String? = null,
var sort: String? = null,
var genres: MutableList<String>? = null,
var excludedGenres: MutableList<String>? = null,
var tags: MutableList<String>? = null,
var excludedTags: MutableList<String>? = null,
var status: String? = null,
var source: String? = null,
var format: String? = null,
var seasonYear: Int? = null,
var startYear: Int? = null,
var season: String? = null,
var page: Int = 1,
var results: MutableList<Media>,
@@ -27,14 +31,34 @@ data class SearchResults(
val list = mutableListOf<SearchChip>()
sort?.let {
val c = currContext()!!
list.add(SearchChip("SORT", c.getString(R.string.filter_sort, c.resources.getStringArray(R.array.sort_by)[Anilist.sortBy.indexOf(it)])))
list.add(
SearchChip(
"SORT",
c.getString(
R.string.filter_sort,
c.resources.getStringArray(R.array.sort_by)[Anilist.sortBy.indexOf(it)]
)
)
)
}
status?.let {
list.add(SearchChip("STATUS", currContext()!!.getString(R.string.filter_status, it)))
}
source?.let {
list.add(SearchChip("SOURCE", currContext()!!.getString(R.string.filter_source, it)))
}
format?.let {
list.add(SearchChip("FORMAT", currContext()!!.getString(R.string.filter_format, it)))
}
countryOfOrigin?.let {
list.add(SearchChip("COUNTRY", currContext()!!.getString(R.string.filter_country, it)))
}
season?.let {
list.add(SearchChip("SEASON", it))
}
startYear?.let {
list.add(SearchChip("START_YEAR", it.toString()))
}
seasonYear?.let {
list.add(SearchChip("SEASON_YEAR", it.toString()))
}
@@ -42,27 +66,41 @@ data class SearchResults(
list.add(SearchChip("GENRE", it))
}
excludedGenres?.forEach {
list.add(SearchChip("EXCLUDED_GENRE", currContext()!!.getString(R.string.filter_exclude, it)))
list.add(
SearchChip(
"EXCLUDED_GENRE",
currContext()!!.getString(R.string.filter_exclude, it)
)
)
}
tags?.forEach {
list.add(SearchChip("TAG", it))
}
excludedTags?.forEach {
list.add(SearchChip("EXCLUDED_TAG", currContext()!!.getString(R.string.filter_exclude, it)))
list.add(
SearchChip(
"EXCLUDED_TAG",
currContext()!!.getString(R.string.filter_exclude, it)
)
)
}
return list
}
fun removeChip(chip: SearchChip) {
when (chip.type) {
"SORT" -> sort = null
"FORMAT" -> format = null
"SEASON" -> season = null
"SEASON_YEAR" -> seasonYear = null
"GENRE" -> genres?.remove(chip.text)
"SORT" -> sort = null
"STATUS" -> status = null
"SOURCE" -> source = null
"FORMAT" -> format = null
"COUNTRY" -> countryOfOrigin = null
"SEASON" -> season = null
"START_YEAR" -> startYear = null
"SEASON_YEAR" -> seasonYear = null
"GENRE" -> genres?.remove(chip.text)
"EXCLUDED_GENRE" -> excludedGenres?.remove(chip.text)
"TAG" -> tags?.remove(chip.text)
"EXCLUDED_TAG" -> excludedTags?.remove(chip.text)
"TAG" -> tags?.remove(chip.text)
"EXCLUDED_TAG" -> excludedTags?.remove(chip.text)
}
}

View File

@@ -6,19 +6,30 @@ import android.os.Bundle
import androidx.core.os.bundleOf
import ani.dantotsu.loadMedia
import ani.dantotsu.startMainActivity
import ani.dantotsu.themes.ThemeManager
class UrlMedia : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
var id: Int? = intent?.extras?.getInt("media", 0) ?: 0
var isMAL = false
var continueMedia = true
if (id == 0) {
continueMedia = false
val data: Uri? = intent?.data
isMAL = data?.host != "anilist.co"
id = data?.pathSegments?.getOrNull(1)?.toIntOrNull()
} else loadMedia = id
startMainActivity(this, bundleOf("mediaId" to id, "mal" to isMAL, "continue" to continueMedia))
ThemeManager(this).applyTheme()
val data: Uri? = intent?.data
val type = data?.pathSegments?.getOrNull(0)
if (type != "user") {
var id: Int? = intent?.extras?.getInt("media", 0) ?: 0
var isMAL = false
var continueMedia = true
if (id == 0) {
continueMedia = false
isMAL = data?.host != "anilist.co"
id = data?.pathSegments?.getOrNull(1)?.toIntOrNull()
} else loadMedia = id
startMainActivity(
this,
bundleOf("mediaId" to id, "mal" to isMAL, "continue" to continueMedia)
)
} else {
val username = data.pathSegments?.getOrNull(1)
startMainActivity(this, bundleOf("username" to username))
}
}
}

View File

@@ -46,7 +46,7 @@ data class Character(
// Notes for site moderators
@SerialName("modNotes") var modNotes: String?,
)
) : java.io.Serializable
@Serializable
data class CharacterConnection(
@@ -55,8 +55,8 @@ data class CharacterConnection(
@SerialName("nodes") var nodes: List<Character>?,
// The pagination information
// @SerialName("pageInfo") var pageInfo: PageInfo?,
)
@SerialName("pageInfo") var pageInfo: PageInfo?,
) : java.io.Serializable
@Serializable
data class CharacterEdge(
@@ -72,7 +72,7 @@ data class CharacterEdge(
@SerialName("name") var name: String?,
// The voice actors of the character
// @SerialName("voiceActors") var voiceActors: List<Staff>?,
@SerialName("voiceActors") var voiceActors: List<Staff>?,
// The voice actors of the character with role date
// @SerialName("voiceActorRoles") var voiceActorRoles: List<StaffRoleType>?,
@@ -82,7 +82,7 @@ data class CharacterEdge(
// The order the character should be displayed from the users favourites
@SerialName("favouriteOrder") var favouriteOrder: Int?,
)
) : java.io.Serializable
@Serializable
data class CharacterName(
@@ -109,7 +109,7 @@ data class CharacterName(
// The currently authenticated users preferred name language. Default romaji for non-authenticated
@SerialName("userPreferred") var userPreferred: String?,
)
) : java.io.Serializable
@Serializable
data class CharacterImage(
@@ -118,4 +118,4 @@ data class CharacterImage(
// The character's image of media at medium size
@SerialName("medium") var medium: String?,
)
) : java.io.Serializable

View File

@@ -3,39 +3,42 @@ package ani.dantotsu.connections.anilist.api
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
class Query{
class Query {
@Serializable
data class Viewer(
@SerialName("data")
val data : Data?
){
val data: Data?
) {
@Serializable
data class Data(
@SerialName("Viewer")
val user: ani.dantotsu.connections.anilist.api.User?
)
}
@Serializable
data class Media(
@SerialName("data")
val data : Data?
){
val data: Data?
) {
@Serializable
data class Data(
@SerialName("Media")
val media: ani.dantotsu.connections.anilist.api.Media?
val media: ani.dantotsu.connections.anilist.api.Media?,
@SerialName("Page")
val page: ani.dantotsu.connections.anilist.api.Page?
)
}
@Serializable
data class Page(
@SerialName("data")
val data : Data?
){
val data: Data?
) {
@Serializable
data class Data(
@SerialName("Page")
val page : ani.dantotsu.connections.anilist.api.Page?
val page: ani.dantotsu.connections.anilist.api.Page?
)
}
// data class AiringSchedule(
@@ -49,8 +52,8 @@ class Query{
@Serializable
data class Character(
@SerialName("data")
val data : Data?
){
val data: Data?
) {
@Serializable
data class Data(
@@ -63,7 +66,7 @@ class Query{
data class Studio(
@SerialName("data")
val data: Data?
){
) {
@Serializable
data class Data(
@SerialName("Studio")
@@ -76,7 +79,7 @@ class Query{
data class Author(
@SerialName("data")
val data: Data?
){
) {
@Serializable
data class Data(
@SerialName("Staff")
@@ -95,8 +98,8 @@ class Query{
@Serializable
data class MediaListCollection(
@SerialName("data")
val data : Data?
){
val data: Data?
) {
@Serializable
data class Data(
@SerialName("MediaListCollection")
@@ -104,41 +107,620 @@ class Query{
)
}
@Serializable
data class CombinedMediaListResponse(
@SerialName("data")
val data: Data?
) {
@Serializable
data class Data(
@SerialName("current") val current: ani.dantotsu.connections.anilist.api.MediaListCollection?,
@SerialName("planned") val planned: ani.dantotsu.connections.anilist.api.MediaListCollection?,
@SerialName("repeating") val repeating: ani.dantotsu.connections.anilist.api.MediaListCollection?,
)
}
@Serializable
data class HomePageMedia(
@SerialName("data")
val data: Data?
) {
@Serializable
data class Data(
@SerialName("currentAnime") val currentAnime: ani.dantotsu.connections.anilist.api.MediaListCollection?,
@SerialName("repeatingAnime") val repeatingAnime: ani.dantotsu.connections.anilist.api.MediaListCollection?,
@SerialName("favoriteAnime") val favoriteAnime: ani.dantotsu.connections.anilist.api.User?,
@SerialName("plannedAnime") val plannedAnime: ani.dantotsu.connections.anilist.api.MediaListCollection?,
@SerialName("currentManga") val currentManga: ani.dantotsu.connections.anilist.api.MediaListCollection?,
@SerialName("repeatingManga") val repeatingManga: ani.dantotsu.connections.anilist.api.MediaListCollection?,
@SerialName("favoriteManga") val favoriteManga: ani.dantotsu.connections.anilist.api.User?,
@SerialName("plannedManga") val plannedManga: ani.dantotsu.connections.anilist.api.MediaListCollection?,
@SerialName("recommendationQuery") val recommendationQuery: ani.dantotsu.connections.anilist.api.Page?,
@SerialName("recommendationPlannedQueryAnime") val recommendationPlannedQueryAnime: ani.dantotsu.connections.anilist.api.MediaListCollection?,
@SerialName("recommendationPlannedQueryManga") val recommendationPlannedQueryManga: ani.dantotsu.connections.anilist.api.MediaListCollection?,
)
}
@Serializable
data class ProfilePageMedia(
@SerialName("data")
val data: Data?
) {
@Serializable
data class Data(
@SerialName("favoriteAnime") val favoriteAnime: ani.dantotsu.connections.anilist.api.User?,
@SerialName("favoriteManga") val favoriteManga: ani.dantotsu.connections.anilist.api.User?
)
}
@Serializable
data class AnimeList(
@SerialName("data")
val data: Data?
) {
@Serializable
data class Data(
@SerialName("recentUpdates") val recentUpdates: ani.dantotsu.connections.anilist.api.Page?,
@SerialName("recentUpdates2") val recentUpdates2: ani.dantotsu.connections.anilist.api.Page?,
@SerialName("trendingMovies") val trendingMovies: ani.dantotsu.connections.anilist.api.Page?,
@SerialName("trendingMovies2") val trendingMovies2: ani.dantotsu.connections.anilist.api.Page?,
@SerialName("topRated") val topRated: ani.dantotsu.connections.anilist.api.Page?,
@SerialName("topRated2") val topRated2: ani.dantotsu.connections.anilist.api.Page?,
@SerialName("mostFav") val mostFav: ani.dantotsu.connections.anilist.api.Page?,
@SerialName("mostFav2") val mostFav2: ani.dantotsu.connections.anilist.api.Page?,
)
}
@Serializable
data class MangaList(
@SerialName("data")
val data: Data?
) {
@Serializable
data class Data(
@SerialName("trendingManga") val trendingManga: ani.dantotsu.connections.anilist.api.Page?,
@SerialName("trendingManga2") val trendingManga2: ani.dantotsu.connections.anilist.api.Page?,
@SerialName("trendingManhwa") val trendingManhwa: ani.dantotsu.connections.anilist.api.Page?,
@SerialName("trendingManhwa2") val trendingManhwa2: ani.dantotsu.connections.anilist.api.Page?,
@SerialName("trendingNovel") val trendingNovel: ani.dantotsu.connections.anilist.api.Page?,
@SerialName("trendingNovel2") val trendingNovel2: ani.dantotsu.connections.anilist.api.Page?,
@SerialName("topRated") val topRated: ani.dantotsu.connections.anilist.api.Page?,
@SerialName("topRated2") val topRated2: ani.dantotsu.connections.anilist.api.Page?,
@SerialName("mostFav") val mostFav: ani.dantotsu.connections.anilist.api.Page?,
@SerialName("mostFav2") val mostFav2: ani.dantotsu.connections.anilist.api.Page?,
)
}
@Serializable
data class ToggleFollow(
@SerialName("data")
val data: Data?
) : java.io.Serializable {
@Serializable
data class Data(
@SerialName("ToggleFollow")
val toggleFollow: FollowData
) : java.io.Serializable
}
@Serializable
data class GenreCollection(
@SerialName("data")
val data: Data
){
) : java.io.Serializable {
@Serializable
data class Data(
@SerialName("GenreCollection")
val genreCollection: List<String>?
)
) : java.io.Serializable
}
@Serializable
data class MediaTagCollection(
@SerialName("data")
val data: Data
){
) : java.io.Serializable {
@Serializable
data class Data(
@SerialName("MediaTagCollection")
val mediaTagCollection: List<MediaTag>?
)
) : java.io.Serializable
}
@Serializable
data class User(
@SerialName("data")
val data: Data
){
) : java.io.Serializable {
@Serializable
data class Data(
@SerialName("User")
val user: ani.dantotsu.connections.anilist.api.User?
)
) : java.io.Serializable
}
@Serializable
data class UserProfileResponse(
@SerialName("data")
val data: Data
) : java.io.Serializable {
@Serializable
data class Data(
@SerialName("followerPage")
val followerPage: UserProfilePage?,
@SerialName("followingPage")
val followingPage: UserProfilePage?,
@SerialName("user")
val user: UserProfile?
) : java.io.Serializable
}
@Serializable
data class UserProfilePage(
@SerialName("pageInfo")
val pageInfo: PageInfo,
) : java.io.Serializable
@Serializable
data class Following(
@SerialName("data")
val data: Data
) : java.io.Serializable {
@Serializable
data class Data(
@SerialName("Page")
val page: FollowingPage?
) : java.io.Serializable
}
@Serializable
data class Follower(
@SerialName("data")
val data: Data
) : java.io.Serializable {
@Serializable
data class Data(
@SerialName("Page")
val page: FollowerPage?
) : java.io.Serializable
}
@Serializable
data class FollowerPage(
@SerialName("followers")
val followers: List<ani.dantotsu.connections.anilist.api.User>?
) : java.io.Serializable
@Serializable
data class FollowingPage(
@SerialName("following")
val following: List<ani.dantotsu.connections.anilist.api.User>?
) : java.io.Serializable
@Serializable
data class UserProfile(
@SerialName("id")
val id: Int,
@SerialName("name")
val name: String,
@SerialName("about")
val about: String?,
@SerialName("avatar")
val avatar: UserAvatar?,
@SerialName("bannerImage")
val bannerImage: String?,
@SerialName("isFollowing")
var isFollowing: Boolean,
@SerialName("isFollower")
val isFollower: Boolean,
@SerialName("isBlocked")
val isBlocked: Boolean,
@SerialName("favourites")
val favourites: UserFavourites?,
@SerialName("statistics")
val statistics: NNUserStatisticTypes,
@SerialName("siteUrl")
val siteUrl: String,
) : java.io.Serializable
@Serializable
data class NNUserStatisticTypes(
@SerialName("anime") var anime: NNUserStatistics,
@SerialName("manga") var manga: NNUserStatistics
) : java.io.Serializable
@Serializable
data class NNUserStatistics(
@SerialName("count") var count: Int,
@SerialName("meanScore") var meanScore: Float,
@SerialName("standardDeviation") var standardDeviation: Float,
@SerialName("minutesWatched") var minutesWatched: Int,
@SerialName("episodesWatched") var episodesWatched: Int,
@SerialName("chaptersRead") var chaptersRead: Int,
@SerialName("volumesRead") var volumesRead: Int,
) : java.io.Serializable
@Serializable
data class UserFavourites(
@SerialName("anime")
val anime: UserMediaFavouritesCollection,
@SerialName("manga")
val manga: UserMediaFavouritesCollection,
@SerialName("characters")
val characters: UserCharacterFavouritesCollection,
@SerialName("staff")
val staff: UserStaffFavouritesCollection,
@SerialName("studios")
val studios: UserStudioFavouritesCollection,
) : java.io.Serializable
@Serializable
data class UserMediaFavouritesCollection(
@SerialName("nodes")
val nodes: List<UserMediaImageFavorite>,
) : java.io.Serializable
@Serializable
data class UserMediaImageFavorite(
@SerialName("id")
val id: Int,
@SerialName("coverImage")
val coverImage: MediaCoverImage
) : java.io.Serializable
@Serializable
data class UserCharacterFavouritesCollection(
@SerialName("nodes")
val nodes: List<UserCharacterImageFavorite>,
) : java.io.Serializable
@Serializable
data class UserCharacterImageFavorite(
@SerialName("id")
val id: Int,
@SerialName("name")
val name: CharacterName,
@SerialName("image")
val image: CharacterImage,
@SerialName("isFavourite")
val isFavourite: Boolean
) : java.io.Serializable
@Serializable
data class UserStaffFavouritesCollection(
@SerialName("nodes")
val nodes: List<UserCharacterImageFavorite>, //downstream it's the same as character
) : java.io.Serializable
@Serializable
data class UserStudioFavouritesCollection(
@SerialName("nodes")
val nodes: List<UserStudioFavorite>,
) : java.io.Serializable
@Serializable
data class UserStudioFavorite(
@SerialName("id")
val id: Int,
@SerialName("name")
val name: String,
) : java.io.Serializable
//----------------------------------------
// Statistics
@Serializable
data class StatisticsResponse(
@SerialName("data")
val data: Data
) : java.io.Serializable {
@Serializable
data class Data(
@SerialName("User")
val user: StatisticsUser?
) : java.io.Serializable
}
@Serializable
data class StatisticsUser(
@SerialName("id")
val id: Int,
@SerialName("name")
val name: String,
@SerialName("mediaListOptions")
val mediaListOptions: MediaListOptions,
@SerialName("statistics")
val statistics: StatisticsTypes
) : java.io.Serializable
@Serializable
data class StatisticsTypes(
@SerialName("anime")
val anime: Statistics,
@SerialName("manga")
val manga: Statistics
) : java.io.Serializable
@Serializable
data class Statistics(
@SerialName("count")
val count: Int,
@SerialName("meanScore")
val meanScore: Float,
@SerialName("standardDeviation")
val standardDeviation: Float,
@SerialName("minutesWatched")
val minutesWatched: Int,
@SerialName("episodesWatched")
val episodesWatched: Int,
@SerialName("chaptersRead")
val chaptersRead: Int,
@SerialName("volumesRead")
val volumesRead: Int,
@SerialName("formats")
val formats: List<StatisticsFormat>,
@SerialName("statuses")
val statuses: List<StatisticsStatus>,
@SerialName("scores")
val scores: List<StatisticsScore>,
@SerialName("lengths")
val lengths: List<StatisticsLength>,
@SerialName("releaseYears")
val releaseYears: List<StatisticsReleaseYear>,
@SerialName("startYears")
val startYears: List<StatisticsStartYear>,
@SerialName("genres")
val genres: List<StatisticsGenre>,
@SerialName("tags")
val tags: List<StatisticsTag>,
@SerialName("countries")
val countries: List<StatisticsCountry>,
@SerialName("voiceActors")
val voiceActors: List<StatisticsVoiceActor>,
@SerialName("staff")
val staff: List<StatisticsStaff>,
@SerialName("studios")
val studios: List<StatisticsStudio>
) : java.io.Serializable
@Serializable
data class StatisticsFormat(
@SerialName("count")
val count: Int,
@SerialName("meanScore")
val meanScore: Float,
@SerialName("minutesWatched")
val minutesWatched: Int,
@SerialName("chaptersRead")
val chaptersRead: Int,
@SerialName("mediaIds")
val mediaIds: List<Int>,
@SerialName("format")
val format: String
) : java.io.Serializable
@Serializable
data class StatisticsStatus(
@SerialName("count")
val count: Int,
@SerialName("meanScore")
val meanScore: Float,
@SerialName("minutesWatched")
val minutesWatched: Int,
@SerialName("chaptersRead")
val chaptersRead: Int,
@SerialName("mediaIds")
val mediaIds: List<Int>,
@SerialName("status")
val status: String
) : java.io.Serializable
@Serializable
data class StatisticsScore(
@SerialName("count")
val count: Int,
@SerialName("meanScore")
val meanScore: Float,
@SerialName("minutesWatched")
val minutesWatched: Int,
@SerialName("chaptersRead")
val chaptersRead: Int,
@SerialName("mediaIds")
val mediaIds: List<Int>,
@SerialName("score")
val score: Int
) : java.io.Serializable
@Serializable
data class StatisticsLength(
@SerialName("count")
val count: Int,
@SerialName("meanScore")
val meanScore: Float,
@SerialName("minutesWatched")
val minutesWatched: Int,
@SerialName("chaptersRead")
val chaptersRead: Int,
@SerialName("mediaIds")
val mediaIds: List<Int>,
@SerialName("length")
val length: String? //can be null for manga
) : java.io.Serializable
@Serializable
data class StatisticsReleaseYear(
@SerialName("count")
val count: Int,
@SerialName("meanScore")
val meanScore: Float,
@SerialName("minutesWatched")
val minutesWatched: Int,
@SerialName("chaptersRead")
val chaptersRead: Int,
@SerialName("mediaIds")
val mediaIds: List<Int>,
@SerialName("releaseYear")
val releaseYear: Int
) : java.io.Serializable
@Serializable
data class StatisticsStartYear(
@SerialName("count")
val count: Int,
@SerialName("meanScore")
val meanScore: Float,
@SerialName("minutesWatched")
val minutesWatched: Int,
@SerialName("chaptersRead")
val chaptersRead: Int,
@SerialName("mediaIds")
val mediaIds: List<Int>,
@SerialName("startYear")
val startYear: Int
) : java.io.Serializable
@Serializable
data class StatisticsGenre(
@SerialName("count")
val count: Int,
@SerialName("meanScore")
val meanScore: Float,
@SerialName("minutesWatched")
val minutesWatched: Int,
@SerialName("chaptersRead")
val chaptersRead: Int,
@SerialName("mediaIds")
val mediaIds: List<Int>,
@SerialName("genre")
val genre: String
) : java.io.Serializable
@Serializable
data class StatisticsTag(
@SerialName("count")
val count: Int,
@SerialName("meanScore")
val meanScore: Float,
@SerialName("minutesWatched")
val minutesWatched: Int,
@SerialName("chaptersRead")
val chaptersRead: Int,
@SerialName("mediaIds")
val mediaIds: List<Int>,
@SerialName("tag")
val tag: Tag
) : java.io.Serializable
@Serializable
data class Tag(
@SerialName("id")
val id: Int,
@SerialName("name")
val name: String
) : java.io.Serializable
@Serializable
data class StatisticsCountry(
@SerialName("count")
val count: Int,
@SerialName("meanScore")
val meanScore: Float,
@SerialName("minutesWatched")
val minutesWatched: Int,
@SerialName("chaptersRead")
val chaptersRead: Int,
@SerialName("mediaIds")
val mediaIds: List<Int>,
@SerialName("country")
val country: String
) : java.io.Serializable
@Serializable
data class StatisticsVoiceActor(
@SerialName("count")
val count: Int,
@SerialName("meanScore")
val meanScore: Float,
@SerialName("minutesWatched")
val minutesWatched: Int,
@SerialName("chaptersRead")
val chaptersRead: Int,
@SerialName("mediaIds")
val mediaIds: List<Int>,
@SerialName("voiceActor")
val voiceActor: VoiceActor,
@SerialName("characterIds")
val characterIds: List<Int>
) : java.io.Serializable
@Serializable
data class VoiceActor(
@SerialName("id")
val id: Int,
@SerialName("name")
val name: StaffName
) : java.io.Serializable
@Serializable
data class StaffName(
@SerialName("first")
val first: String?,
@SerialName("middle")
val middle: String?,
@SerialName("last")
val last: String?,
@SerialName("full")
val full: String?,
@SerialName("native")
val native: String?,
@SerialName("alternative")
val alternative: List<String>?,
@SerialName("userPreferred")
val userPreferred: String?
) : java.io.Serializable
@Serializable
data class StatisticsStaff(
@SerialName("count")
val count: Int,
@SerialName("meanScore")
val meanScore: Float,
@SerialName("minutesWatched")
val minutesWatched: Int,
@SerialName("chaptersRead")
val chaptersRead: Int,
@SerialName("mediaIds")
val mediaIds: List<Int>,
@SerialName("staff")
val staff: VoiceActor
) : java.io.Serializable
@Serializable
data class StatisticsStudio(
@SerialName("count")
val count: Int,
@SerialName("meanScore")
val meanScore: Float,
@SerialName("minutesWatched")
val minutesWatched: Int,
@SerialName("chaptersRead")
val chaptersRead: Int,
@SerialName("mediaIds")
val mediaIds: List<Int>,
@SerialName("studio")
val studio: StatStudio
) : java.io.Serializable
@Serializable
data class StatStudio(
@SerialName("id")
val id: Int,
@SerialName("name")
val name: String,
@SerialName("isAnimationStudio")
val isAnimationStudio: Boolean
) : java.io.Serializable
}
//data class WhaData(
@@ -168,7 +750,7 @@ class Query{
// // Activity reply query
// val ActivityReply: ActivityReply?,
// // Comment query
// // CommentNotificationWorker query
// val ThreadComment: List<ThreadComment>?,
// // Notification query

View File

@@ -0,0 +1,114 @@
package ani.dantotsu.connections.anilist.api
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class FeedResponse(
@SerialName("data")
val data: Data
) : java.io.Serializable {
@Serializable
data class Data(
@SerialName("Page")
val page: ActivityPage
) : java.io.Serializable
}
@Serializable
data class ActivityPage(
@SerialName("activities")
val activities: List<Activity>
) : java.io.Serializable
@Serializable
data class Activity(
@SerialName("__typename")
val typename: String,
@SerialName("id")
val id: Int,
@SerialName("recipientId")
val recipientId: Int?,
@SerialName("messengerId")
val messengerId: Int?,
@SerialName("userId")
val userId: Int?,
@SerialName("type")
val type: String,
@SerialName("replyCount")
val replyCount: Int,
@SerialName("status")
val status: String?,
@SerialName("progress")
val progress: String?,
@SerialName("text")
val text: String?,
@SerialName("message")
val message: String?,
@SerialName("siteUrl")
val siteUrl: String?,
@SerialName("isLocked")
val isLocked: Boolean,
@SerialName("isSubscribed")
val isSubscribed: Boolean,
@SerialName("likeCount")
var likeCount: Int?,
@SerialName("isLiked")
var isLiked: Boolean?,
@SerialName("isPinned")
val isPinned: Boolean?,
@SerialName("isPrivate")
val isPrivate: Boolean?,
@SerialName("createdAt")
val createdAt: Int,
@SerialName("user")
val user: User?,
@SerialName("recipient")
val recipient: User?,
@SerialName("messenger")
val messenger: User?,
@SerialName("media")
val media: Media?,
@SerialName("replies")
val replies: List<ActivityReply>?,
@SerialName("likes")
val likes: List<User>?,
) : java.io.Serializable
@Serializable
data class ActivityReply(
@SerialName("id")
val id: Int,
@SerialName("userId")
val userId: Int,
@SerialName("text")
val text: String,
@SerialName("likeCount")
val likeCount: Int,
@SerialName("isLiked")
val isLiked: Boolean,
@SerialName("createdAt")
val createdAt: Int,
@SerialName("user")
val user: User,
@SerialName("likes")
val likes: List<User>?,
) : java.io.Serializable
@Serializable
data class ToggleLike(
@SerialName("data")
val data: Data
) : java.io.Serializable {
@Serializable
data class Data(
@SerialName("ToggleLikeV2")
val toggleLike: LikeData
) : java.io.Serializable
}
@Serializable
data class LikeData(
@SerialName("__typename")
val typename: String
) : java.io.Serializable

View File

@@ -3,7 +3,7 @@ package ani.dantotsu.connections.anilist.api
import kotlinx.serialization.SerialName
import java.io.Serializable
import java.text.DateFormatSymbols
import java.util.*
import java.util.Calendar
@kotlinx.serialization.Serializable
data class FuzzyDate(
@@ -16,9 +16,11 @@ data class FuzzyDate(
fun isEmpty(): Boolean {
return year == null && month == null && day == null
}
override fun toString(): String {
return if ( isEmpty() ) "??" else toStringOrEmpty()
return if (isEmpty()) "??" else toStringOrEmpty()
}
fun toStringOrEmpty(): String {
return listOfNotNull(
day?.toString(),
@@ -29,16 +31,21 @@ data class FuzzyDate(
fun getToday(): FuzzyDate {
val cal = Calendar.getInstance()
return FuzzyDate(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DAY_OF_MONTH))
return FuzzyDate(
cal.get(Calendar.YEAR),
cal.get(Calendar.MONTH) + 1,
cal.get(Calendar.DAY_OF_MONTH)
)
}
fun toVariableString(): String {
return listOfNotNull(
year?.let {"year:$it"},
month?.let {"month:$it"},
day?.let {"day:$it"}
year?.let { "year:$it" },
month?.let { "month:$it" },
day?.let { "day:$it" }
).joinToString(",", "{", "}")
}
fun toMALString(): String {
val padding = '0'
val values = listOf(
@@ -46,7 +53,7 @@ data class FuzzyDate(
month?.toString()?.padStart(2, padding),
day?.toString()?.padStart(2, padding)
)
return values.takeWhile {it is String}.joinToString("-")
return values.takeWhile { it is String }.joinToString("-")
}
// fun toInt(): Int {
@@ -54,8 +61,8 @@ data class FuzzyDate(
// }
override fun compareTo(other: FuzzyDate): Int = when {
year != other.year -> (year ?: 0) - (other.year ?: 0)
year != other.year -> (year ?: 0) - (other.year ?: 0)
month != other.month -> (month ?: 0) - (other.month ?: 0)
else -> (day ?: 0) - (other.day ?: 0)
else -> (day ?: 0) - (other.day ?: 0)
}
}

View File

@@ -116,7 +116,7 @@ data class Media(
@SerialName("characters") var characters: CharacterConnection?,
// The staff who produced the media
@SerialName("staffPreview") var staff: StaffConnection?,
@SerialName("staffPreview") var staff: StaffConnection?,
// The companies who produced the media
@SerialName("studios") var studios: StudioConnection?,
@@ -251,7 +251,7 @@ data class MediaCoverImage(
// Average #hex color of cover image
@SerialName("color") var color: String?,
)
) : java.io.Serializable
@Serializable
data class MediaList(
@@ -292,7 +292,7 @@ data class MediaList(
@SerialName("hiddenFromStatusLists") var hiddenFromStatusLists: Boolean?,
// Map of booleans for which custom lists the entry are in
@SerialName("customLists") var customLists: Map<String,Boolean>?,
@SerialName("customLists") var customLists: Map<String, Boolean>?,
// Map of advanced scores with name keys
// @SerialName("advancedScores") var advancedScores: Json?,
@@ -355,7 +355,7 @@ data class MediaTrailer(
@Serializable
data class MediaTagCollection(
@SerialName("tags") var tags : List<MediaTag>?
@SerialName("tags") var tags: List<MediaTag>?
)
@Serializable
@@ -490,7 +490,7 @@ data class MediaExternalLink(
// isDisabled: Boolean
@SerialName("notes") var notes: String?,
)
) : java.io.Serializable
@Serializable
enum class ExternalLinkType {
@@ -512,7 +512,13 @@ data class MediaListCollection(
// If there is another chunk
@SerialName("hasNextChunk") var hasNextChunk: Boolean?,
)
) : java.io.Serializable
@Serializable
data class FollowData(
@SerialName("id") var id: Int,
@SerialName("isFollowing") var isFollowing: Boolean,
) : java.io.Serializable
@Serializable
data class MediaListGroup(
@@ -526,4 +532,4 @@ data class MediaListGroup(
@SerialName("isSplitCompletedList") var isSplitCompletedList: Boolean?,
@SerialName("status") var status: MediaListStatus?,
)
) : java.io.Serializable

View File

@@ -0,0 +1,123 @@
package ani.dantotsu.connections.anilist.api
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
enum class NotificationType(val value: String) {
ACTIVITY_MESSAGE("ACTIVITY_MESSAGE"),
ACTIVITY_REPLY("ACTIVITY_REPLY"),
FOLLOWING("FOLLOWING"),
ACTIVITY_MENTION("ACTIVITY_MENTION"),
THREAD_COMMENT_MENTION("THREAD_COMMENT_MENTION"),
THREAD_SUBSCRIBED("THREAD_SUBSCRIBED"),
THREAD_COMMENT_REPLY("THREAD_COMMENT_REPLY"),
AIRING("AIRING"),
ACTIVITY_LIKE("ACTIVITY_LIKE"),
ACTIVITY_REPLY_LIKE("ACTIVITY_REPLY_LIKE"),
THREAD_LIKE("THREAD_LIKE"),
THREAD_COMMENT_LIKE("THREAD_COMMENT_LIKE"),
ACTIVITY_REPLY_SUBSCRIBED("ACTIVITY_REPLY_SUBSCRIBED"),
RELATED_MEDIA_ADDITION("RELATED_MEDIA_ADDITION"),
MEDIA_DATA_CHANGE("MEDIA_DATA_CHANGE"),
MEDIA_MERGE("MEDIA_MERGE"),
MEDIA_DELETION("MEDIA_DELETION"),
//custom
COMMENT_REPLY("COMMENT_REPLY"),
}
@Serializable
data class NotificationResponse(
@SerialName("data")
val data: Data,
) : java.io.Serializable {
@Serializable
data class Data(
@SerialName("User")
val user: NotificationUser,
@SerialName("Page")
val page: NotificationPage,
) : java.io.Serializable
}
@Serializable
data class NotificationUser(
@SerialName("unreadNotificationCount")
var unreadNotificationCount: Int,
) : java.io.Serializable
@Serializable
data class NotificationPage(
@SerialName("pageInfo")
val pageInfo: PageInfo,
@SerialName("notifications")
val notifications: List<Notification>,
) : java.io.Serializable
@Serializable
data class Notification(
@SerialName("__typename")
val typename: String,
@SerialName("id")
val id: Int,
@SerialName("userId")
val userId: Int? = null,
@SerialName("CommentId")
val commentId: Int?,
@SerialName("type")
val notificationType: String,
@SerialName("activityId")
val activityId: Int? = null,
@SerialName("animeId")
val mediaId: Int? = null,
@SerialName("episode")
val episode: Int? = null,
@SerialName("contexts")
val contexts: List<String>? = null,
@SerialName("context")
val context: String? = null,
@SerialName("reason")
val reason: String? = null,
@SerialName("deletedMediaTitle")
val deletedMediaTitle: String? = null,
@SerialName("deletedMediaTitles")
val deletedMediaTitles: List<String>? = null,
@SerialName("createdAt")
val createdAt: Int,
@SerialName("media")
val media: Media? = null,
@SerialName("user")
val user: User? = null,
@SerialName("message")
val message: MessageActivity? = null,
@SerialName("activity")
val activity: ActivityUnion? = null,
@SerialName("Thread")
val thread: Thread? = null,
@SerialName("comment")
val comment: ThreadComment? = null,
) : java.io.Serializable
@Serializable
data class MessageActivity(
@SerialName("id")
val id: Int?,
) : java.io.Serializable
@Serializable
data class ActivityUnion(
@SerialName("id")
val id: Int?,
) : java.io.Serializable
@Serializable
data class Thread(
@SerialName("id")
val id: Int?,
) : java.io.Serializable
@Serializable
data class ThreadComment(
@SerialName("id")
val id: Int?,
) : java.io.Serializable

View File

@@ -2,6 +2,7 @@ package ani.dantotsu.connections.anilist.api
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Recommendation(
// The id of the recommendation
@@ -22,6 +23,7 @@ data class Recommendation(
// The user that first created the recommendation
@SerialName("user") var user: User?,
)
@Serializable
data class RecommendationConnection(
//@SerialName("edges") var edges: List<RecommendationEdge>?,

View File

@@ -9,13 +9,13 @@ data class Staff(
@SerialName("id") var id: Int,
// The names of the staff member
@SerialName("name") var name: StaffName?,
@SerialName("name") var name: StaffName?,
// The primary language of the staff member. Current values: Japanese, English, Korean, Italian, Spanish, Portuguese, French, German, Hebrew, Hungarian, Chinese, Arabic, Filipino, Catalan, Finnish, Turkish, Dutch, Swedish, Thai, Tagalog, Malaysian, Indonesian, Vietnamese, Nepali, Hindi, Urdu
@SerialName("languageV2") var languageV2: String?,
// The staff images
// @SerialName("image") var image: StaffImage?,
@SerialName("image") var image: StaffImage?,
// A general description of the staff member
@SerialName("description") var description: String?,
@@ -80,8 +80,8 @@ data class Staff(
)
@Serializable
data class StaffName (
var userPreferred:String?
data class StaffName(
var userPreferred: String?
)
@Serializable
@@ -94,8 +94,17 @@ data class StaffConnection(
// @SerialName("pageInfo") var pageInfo: PageInfo?,
)
@Serializable
data class StaffImage(
// The character's image of media at its largest size
@SerialName("large") var large: String?,
// The character's image of media at medium size
@SerialName("medium") var medium: String?,
) : java.io.Serializable
@Serializable
data class StaffEdge(
var role:String?,
var role: String?,
var node: Staff?
)

View File

@@ -46,7 +46,7 @@ data class User(
@SerialName("statistics") var statistics: UserStatisticTypes?,
// The number of unread notifications the user has
// @SerialName("unreadNotificationCount") var unreadNotificationCount: Int?,
@SerialName("unreadNotificationCount") var unreadNotificationCount: Int?,
// The url for the user page on the AniList website
// @SerialName("siteUrl") var siteUrl: String?,
@@ -80,10 +80,10 @@ data class UserOptions(
@SerialName("displayAdultContent") var displayAdultContent: Boolean?,
// Whether the user receives notifications when a show they are watching aires
@SerialName("airingNotifications") var airingNotifications: Boolean?,
@SerialName("airingNotifications") var airingNotifications: Boolean?,
//
// Profile highlight color (blue, purple, pink, orange, red, green, gray)
@SerialName("profileColor") var profileColor: String?,
// Profile highlight color (blue, purple, pink, orange, red, green, gray)
@SerialName("profileColor") var profileColor: String?,
//
// // Notification options
// // @SerialName("notificationOptions") var notificationOptions: List<NotificationOption>?,
@@ -111,7 +111,7 @@ data class UserAvatar(
// The avatar of user at medium size
@SerialName("medium") var medium: String?,
)
) : java.io.Serializable
@Serializable
data class UserStatisticTypes(
@@ -164,7 +164,7 @@ data class Favourites(
@Serializable
data class MediaListOptions(
// The score format the user is using for media lists
// @SerialName("scoreFormat") var scoreFormat: ScoreFormat?,
@SerialName("scoreFormat") var scoreFormat: String?,
// The default order list rows should be displayed in
@SerialName("rowOrder") var rowOrder: String?,

View File

@@ -0,0 +1,128 @@
package ani.dantotsu.connections.bakaupdates
import android.content.Context
import ani.dantotsu.R
import ani.dantotsu.client
import ani.dantotsu.connections.anilist.api.FuzzyDate
import ani.dantotsu.tryWithSuspend
import ani.dantotsu.util.Logger
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.async
import kotlinx.coroutines.awaitAll
import kotlinx.coroutines.coroutineScope
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import okio.ByteString.Companion.encode
import org.json.JSONException
import org.json.JSONObject
import java.nio.charset.Charset
class MangaUpdates {
private val Int?.dateFormat get() = String.format("%02d", this)
private val apiUrl = "https://api.mangaupdates.com/v1/releases/search"
suspend fun search(title: String, startDate: FuzzyDate?): MangaUpdatesResponse.Results? {
return tryWithSuspend {
val query = JSONObject().apply {
try {
put("search", title.encode(Charset.forName("UTF-8")))
startDate?.let {
put(
"start_date",
"${it.year}-${it.month.dateFormat}-${it.day.dateFormat}"
)
}
put("include_metadata", true)
} catch (e: JSONException) {
e.printStackTrace()
}
}
val res = client.post(apiUrl, json = query).parsed<MangaUpdatesResponse>()
coroutineScope {
res.results?.map {
async(Dispatchers.IO) {
Logger.log(it.toString())
}
}
}?.awaitAll()
res.results?.first {
it.metadata.series.lastUpdated?.timestamp != null
&& (it.metadata.series.latestChapter != null
|| (it.record.volume.isNullOrBlank() && it.record.chapter != null))
}
}
}
companion object {
fun getLatestChapter(context: Context, results: MangaUpdatesResponse.Results): String {
return results.metadata.series.latestChapter?.let {
context.getString(R.string.chapter_number, it)
} ?: results.record.chapter!!.substringAfterLast("-").trim().let { chapter ->
chapter.takeIf {
it.toIntOrNull() == null
} ?: context.getString(R.string.chapter_number, chapter.toInt())
}
}
}
@Serializable
data class MangaUpdatesResponse(
@SerialName("total_hits")
val totalHits: Int?,
@SerialName("page")
val page: Int?,
@SerialName("per_page")
val perPage: Int?,
val results: List<Results>? = null
) {
@Serializable
data class Results(
val record: Record,
val metadata: MetaData
) {
@Serializable
data class Record(
@SerialName("id")
val id: Int,
@SerialName("title")
val title: String,
@SerialName("volume")
val volume: String?,
@SerialName("chapter")
val chapter: String?,
@SerialName("release_date")
val releaseDate: String
)
@Serializable
data class MetaData(
val series: Series
) {
@Serializable
data class Series(
@SerialName("series_id")
val seriesId: Long?,
@SerialName("title")
val title: String?,
@SerialName("latest_chapter")
val latestChapter: Int?,
@SerialName("last_updated")
val lastUpdated: LastUpdated?
) {
@Serializable
data class LastUpdated(
@SerialName("timestamp")
val timestamp: Long,
@SerialName("as_rfc3339")
val asRfc3339: String,
@SerialName("as_string")
val asString: String
)
}
}
}
}
}

View File

@@ -0,0 +1,570 @@
package ani.dantotsu.connections.comments
import ani.dantotsu.connections.anilist.Anilist
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.snackString
import ani.dantotsu.toast
import com.lagradost.nicehttp.NiceResponse
import com.lagradost.nicehttp.Requests
import eu.kanade.tachiyomi.network.NetworkHelper
import kotlinx.serialization.KSerializer
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.descriptors.PrimitiveKind
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.encoding.Decoder
import kotlinx.serialization.encoding.Encoder
import kotlinx.serialization.json.Json
import okhttp3.FormBody
import okhttp3.OkHttpClient
import okio.IOException
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
object CommentsAPI {
private const val ADDRESS: String = "https://1224665.xyz:443"
var authToken: String? = null
var userId: String? = null
var isBanned: Boolean = false
var isAdmin: Boolean = false
var isMod: Boolean = false
var totalVotes: Int = 0
suspend fun getCommentsForId(
id: Int,
page: Int = 1,
tag: Int?,
sort: String?
): CommentResponse? {
var url = "$ADDRESS/comments/$id/$page"
val request = requestBuilder()
tag?.let {
url += "?tag=$it"
}
sort?.let {
url += if (tag != null) "&sort=$it" else "?sort=$it"
}
val json = try {
request.get(url)
} catch (e: IOException) {
snackString("Failed to fetch comments")
return null
}
if (!json.text.startsWith("{")) return null
val res = json.code == 200
if (!res && json.code != 404) {
errorReason(json.code, json.text)
}
val parsed = try {
Json.decodeFromString<CommentResponse>(json.text)
} catch (e: Exception) {
return null
}
return parsed
}
suspend fun getRepliesFromId(id: Int, page: Int = 1): CommentResponse? {
val url = "$ADDRESS/comments/parent/$id/$page"
val request = requestBuilder()
val json = try {
request.get(url)
} catch (e: IOException) {
snackString("Failed to fetch comments")
return null
}
if (!json.text.startsWith("{")) return null
val res = json.code == 200
if (!res && json.code != 404) {
errorReason(json.code, json.text)
}
val parsed = try {
Json.decodeFromString<CommentResponse>(json.text)
} catch (e: Exception) {
return null
}
return parsed
}
suspend fun getSingleComment(id: Int): Comment? {
val url = "$ADDRESS/comments/$id"
val request = requestBuilder()
val json = try {
request.get(url)
} catch (e: IOException) {
snackString("Failed to fetch comment")
return null
}
if (!json.text.startsWith("{")) return null
val res = json.code == 200
if (!res && json.code != 404) {
errorReason(json.code, json.text)
}
val parsed = try {
Json.decodeFromString<Comment>(json.text)
} catch (e: Exception) {
return null
}
return parsed
}
suspend fun vote(commentId: Int, voteType: Int): Boolean {
val url = "$ADDRESS/comments/vote/$commentId/$voteType"
val request = requestBuilder()
val json = try {
request.post(url)
} catch (e: IOException) {
snackString("Failed to vote")
return false
}
val res = json.code == 200
if (!res) {
errorReason(json.code, json.text)
}
return res
}
suspend fun comment(mediaId: Int, parentCommentId: Int?, content: String, tag: Int?): Comment? {
val url = "$ADDRESS/comments"
val body = FormBody.Builder()
.add("user_id", userId ?: return null)
.add("media_id", mediaId.toString())
.add("content", content)
if (tag != null) {
body.add("tag", tag.toString())
}
parentCommentId?.let {
body.add("parent_comment_id", it.toString())
}
val request = requestBuilder()
val json = try {
request.post(url, requestBody = body.build())
} catch (e: IOException) {
snackString("Failed to comment")
return null
}
val res = json.code == 200
if (!res) {
errorReason(json.code, json.text)
return null
}
val parsed = try {
Json.decodeFromString<ReturnedComment>(json.text)
} catch (e: Exception) {
snackString("Failed to parse comment")
return null
}
return Comment(
parsed.id,
parsed.userId,
parsed.mediaId,
parsed.parentCommentId,
parsed.content,
parsed.timestamp,
parsed.deleted,
parsed.tag,
0,
0,
null,
Anilist.username ?: "",
Anilist.avatar,
totalVotes = totalVotes
)
}
suspend fun deleteComment(commentId: Int): Boolean {
val url = "$ADDRESS/comments/$commentId"
val request = requestBuilder()
val json = try {
request.delete(url)
} catch (e: IOException) {
snackString("Failed to delete comment")
return false
}
val res = json.code == 200
if (!res) {
errorReason(json.code, json.text)
}
return res
}
suspend fun editComment(commentId: Int, content: String): Boolean {
val url = "$ADDRESS/comments/$commentId"
val body = FormBody.Builder()
.add("content", content)
.build()
val request = requestBuilder()
val json = try {
request.put(url, requestBody = body)
} catch (e: IOException) {
snackString("Failed to edit comment")
return false
}
val res = json.code == 200
if (!res) {
errorReason(json.code, json.text)
}
return res
}
suspend fun banUser(userId: String): Boolean {
val url = "$ADDRESS/ban/$userId"
val request = requestBuilder()
val json = try {
request.post(url)
} catch (e: IOException) {
snackString("Failed to ban user")
return false
}
val res = json.code == 200
if (!res) {
errorReason(json.code, json.text)
}
return res
}
suspend fun reportComment(
commentId: Int,
username: String,
mediaTitle: String,
reportedId: String
): Boolean {
val url = "$ADDRESS/report/$commentId"
val body = FormBody.Builder()
.add("username", username)
.add("mediaName", mediaTitle)
.add("reporter", Anilist.username ?: "unknown")
.add("reportedId", reportedId)
.build()
val request = requestBuilder()
val json = try {
request.post(url, requestBody = body)
} catch (e: IOException) {
snackString("Failed to report comment")
return false
}
val res = json.code == 200
if (!res) {
errorReason(json.code, json.text)
}
return res
}
suspend fun getNotifications(client: OkHttpClient): NotificationResponse? {
val url = "$ADDRESS/notification/reply"
val request = requestBuilder(client)
val json = try {
request.get(url)
} catch (e: IOException) {
return null
}
if (!json.text.startsWith("{")) return null
val res = json.code == 200
if (!res) {
return null
}
val parsed = try {
Json.decodeFromString<NotificationResponse>(json.text)
} catch (e: Exception) {
return null
}
return parsed
}
private suspend fun getUserDetails(client: OkHttpClient? = null): User? {
val url = "$ADDRESS/user"
val request = if (client != null) requestBuilder(client) else requestBuilder()
val json = try {
request.get(url)
} catch (e: IOException) {
return null
}
if (json.code == 200) {
val parsed = try {
Json.decodeFromString<UserResponse>(json.text)
} catch (e: Exception) {
e.printStackTrace()
return null
}
isBanned = parsed.user.isBanned ?: false
isAdmin = parsed.user.isAdmin ?: false
isMod = parsed.user.isMod ?: false
totalVotes = parsed.user.totalVotes
return parsed.user
}
return null
}
suspend fun fetchAuthToken(client: OkHttpClient? = null) {
if (authToken != null) return
val MAX_RETRIES = 5
val tokenLifetime: Long = 1000 * 60 * 60 * 24 * 6 // 6 days
val tokenExpiry = PrefManager.getVal<Long>(PrefName.CommentTokenExpiry)
if (tokenExpiry < System.currentTimeMillis() + tokenLifetime) {
val commentResponse =
PrefManager.getNullableVal<AuthResponse>(PrefName.CommentAuthResponse, null)
if (commentResponse != null) {
authToken = commentResponse.authToken
userId = commentResponse.user.id
isBanned = commentResponse.user.isBanned ?: false
isAdmin = commentResponse.user.isAdmin ?: false
isMod = commentResponse.user.isMod ?: false
totalVotes = commentResponse.user.totalVotes
if (getUserDetails(client) != null) return
}
}
val url = "$ADDRESS/authenticate"
val token = PrefManager.getVal(PrefName.AnilistToken, null as String?) ?: return
repeat(MAX_RETRIES) {
try {
val json = authRequest(token, url, client)
if (json.code == 200) {
if (!json.text.startsWith("{")) throw IOException("Invalid response")
val parsed = try {
Json.decodeFromString<AuthResponse>(json.text)
} catch (e: Exception) {
snackString("Failed to login to comments API: ${e.printStackTrace()}")
return
}
PrefManager.setVal(PrefName.CommentAuthResponse, parsed)
PrefManager.setVal(
PrefName.CommentTokenExpiry,
System.currentTimeMillis() + tokenLifetime
)
authToken = parsed.authToken
userId = parsed.user.id
isBanned = parsed.user.isBanned ?: false
isAdmin = parsed.user.isAdmin ?: false
isMod = parsed.user.isMod ?: false
totalVotes = parsed.user.totalVotes
return
} else if (json.code != 429) {
errorReason(json.code, json.text)
return
}
} catch (e: IOException) {
snackString("Failed to login to comments API")
return
}
kotlinx.coroutines.delay(60000)
}
snackString("Failed to login after multiple attempts")
}
fun logout() {
PrefManager.removeVal(PrefName.CommentAuthResponse)
PrefManager.removeVal(PrefName.CommentTokenExpiry)
authToken = null
userId = null
isBanned = false
isAdmin = false
isMod = false
totalVotes = 0
}
private suspend fun authRequest(
token: String,
url: String,
client: OkHttpClient? = null
): NiceResponse {
val body: FormBody = FormBody.Builder()
.add("token", token)
.build()
val request = if (client != null) requestBuilder(client) else requestBuilder()
return request.post(url, requestBody = body)
}
private fun headerBuilder(): Map<String, String> {
val map = mutableMapOf(
"appauth" to "6*45Qp%W2RS@t38jkXoSKY588Ynj%n"
)
if (authToken != null) {
map["Authorization"] = authToken!!
}
return map
}
private fun requestBuilder(client: OkHttpClient = Injekt.get<NetworkHelper>().client): Requests {
return Requests(
client,
headerBuilder()
)
}
private fun errorReason(code: Int, reason: String? = null) {
val error = when (code) {
429 -> "Rate limited. :("
else -> "Failed to connect"
}
val parsed = try {
Json.decodeFromString<ErrorResponse>(reason!!)
} catch (e: Exception) {
null
}
val message = parsed?.message ?: reason ?: error
val fullMessage = if (code == 500) message else "$code: $message"
toast(fullMessage)
}
}
@Serializable
data class ErrorResponse(
@SerialName("message")
val message: String
)
@Serializable
data class NotificationResponse(
@SerialName("notifications")
val notifications: List<Notification>
)
@Serializable
data class Notification(
@SerialName("username")
val username: String,
@SerialName("media_id")
val mediaId: Int,
@SerialName("comment_id")
val commentId: Int,
@SerialName("type")
val type: Int? = null,
@SerialName("content")
val content: String? = null,
@SerialName("notification_id")
val notificationId: Int
)
@Serializable
data class AuthResponse(
@SerialName("authToken")
val authToken: String,
@SerialName("user")
val user: User
) : java.io.Serializable {
companion object {
private const val serialVersionUID: Long = 1
}
}
@Serializable
data class UserResponse(
@SerialName("user")
val user: User
)
@Serializable
data class User(
@SerialName("user_id")
val id: String,
@SerialName("username")
val username: String,
@SerialName("profile_picture_url")
val profilePictureUrl: String? = null,
@SerialName("is_banned")
@Serializable(with = NumericBooleanSerializer::class)
val isBanned: Boolean? = null,
@SerialName("is_mod")
@Serializable(with = NumericBooleanSerializer::class)
val isAdmin: Boolean? = null,
@SerialName("is_admin")
@Serializable(with = NumericBooleanSerializer::class)
val isMod: Boolean? = null,
@SerialName("total_votes")
val totalVotes: Int,
@SerialName("warnings")
val warnings: Int
) : java.io.Serializable {
companion object {
private const val serialVersionUID: Long = 1
}
}
@Serializable
data class CommentResponse(
@SerialName("comments")
val comments: List<Comment>,
@SerialName("totalPages")
val totalPages: Int
)
@Serializable
data class Comment(
@SerialName("comment_id")
val commentId: Int,
@SerialName("user_id")
val userId: String,
@SerialName("media_id")
val mediaId: Int,
@SerialName("parent_comment_id")
val parentCommentId: Int?,
@SerialName("content")
var content: String,
@SerialName("timestamp")
var timestamp: String,
@SerialName("deleted")
@Serializable(with = NumericBooleanSerializer::class)
val deleted: Boolean?,
@SerialName("tag")
val tag: Int?,
@SerialName("upvotes")
var upvotes: Int,
@SerialName("downvotes")
var downvotes: Int,
@SerialName("user_vote_type")
var userVoteType: Int?,
@SerialName("username")
val username: String,
@SerialName("profile_picture_url")
val profilePictureUrl: String?,
@SerialName("is_mod")
@Serializable(with = NumericBooleanSerializer::class)
val isMod: Boolean? = null,
@SerialName("is_admin")
@Serializable(with = NumericBooleanSerializer::class)
val isAdmin: Boolean? = null,
@SerialName("reply_count")
val replyCount: Int? = null,
@SerialName("total_votes")
val totalVotes: Int
)
@Serializable
data class ReturnedComment(
@SerialName("id")
var id: Int,
@SerialName("comment_id")
var commentId: Int?,
@SerialName("user_id")
val userId: String,
@SerialName("media_id")
val mediaId: Int,
@SerialName("parent_comment_id")
val parentCommentId: Int? = null,
@SerialName("content")
val content: String,
@SerialName("timestamp")
val timestamp: String,
@SerialName("deleted")
@Serializable(with = NumericBooleanSerializer::class)
val deleted: Boolean?,
@SerialName("tag")
val tag: Int? = null,
)
object NumericBooleanSerializer : KSerializer<Boolean> {
override val descriptor: SerialDescriptor =
PrimitiveSerialDescriptor("NumericBoolean", PrimitiveKind.INT)
override fun serialize(encoder: Encoder, value: Boolean) {
encoder.encodeInt(if (value) 1 else 0)
}
override fun deserialize(decoder: Decoder): Boolean {
return decoder.decodeInt() != 0
}
}

View File

@@ -0,0 +1,12 @@
package ani.dantotsu.connections.crashlytics
import android.content.Context
interface CrashlyticsInterface {
fun initialize(context: Context)
fun logException(e: Throwable)
fun log(message: String)
fun setUserId(id: String)
fun setCustomKey(key: String, value: String)
fun setCrashlyticsCollectionEnabled(enabled: Boolean)
}

View File

@@ -0,0 +1,31 @@
package ani.dantotsu.connections.crashlytics
import android.content.Context
import ani.dantotsu.util.Logger
class CrashlyticsStub : CrashlyticsInterface {
override fun initialize(context: Context) {
//no-op
}
override fun logException(e: Throwable) {
Logger.log(e)
}
override fun log(message: String) {
Logger.log(message)
}
override fun setUserId(id: String) {
//no-op
}
override fun setCustomKey(key: String, value: String) {
//no-op
}
override fun setCrashlyticsCollectionEnabled(enabled: Boolean) {
//no-op
}
}

View File

@@ -3,16 +3,14 @@ package ani.dantotsu.connections.discord
import android.content.Context
import android.content.Intent
import android.widget.TextView
import androidx.core.content.edit
import ani.dantotsu.R
import ani.dantotsu.connections.discord.serializers.User
import ani.dantotsu.others.CustomBottomDialog
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.toast
import ani.dantotsu.tryWith
import ani.dantotsu.tryWithSuspend
import io.noties.markwon.Markwon
import io.noties.markwon.SoftBreakAddsNewLinePlugin
import kotlinx.coroutines.Dispatchers
import java.io.File
object Discord {
@@ -21,37 +19,20 @@ object Discord {
var userid: String? = null
var avatar: String? = null
private const val TOKEN = "discord_token"
fun getSavedToken(context: Context): Boolean {
val sharedPref = context.getSharedPreferences(
context.getString(R.string.preference_file_key),
Context.MODE_PRIVATE
fun getSavedToken(): Boolean {
token = PrefManager.getVal(
PrefName.DiscordToken, null as String?
)
token = sharedPref.getString(TOKEN, null)
return token != null
}
fun saveToken(context: Context, token: String) {
val sharedPref = context.getSharedPreferences(
context.getString(R.string.preference_file_key),
Context.MODE_PRIVATE
)
sharedPref.edit {
putString(TOKEN, token)
commit()
}
fun saveToken(token: String) {
PrefManager.setVal(PrefName.DiscordToken, token)
}
fun removeSavedToken(context: Context) {
val sharedPref = context.getSharedPreferences(
context.getString(R.string.preference_file_key),
Context.MODE_PRIVATE
)
sharedPref.edit {
remove(TOKEN)
commit()
}
PrefManager.removeVal(PrefName.DiscordToken)
tryWith(true) {
val dir = File(context.filesDir?.parentFile, "app_webview")
@@ -60,17 +41,7 @@ object Discord {
}
}
private var rpc : RPC? = null
suspend fun getUserData() = tryWithSuspend(true) {
if(rpc==null) {
val rpc = RPC(token!!, Dispatchers.IO).also { rpc = it }
val user: User = rpc.getUserData()
userid = user.username
avatar = user.userAvatar()
rpc.close()
true
} else true
} ?: false
private var rpc: RPC? = null
fun warning(context: Context) = CustomBottomDialog().apply {
@@ -97,16 +68,9 @@ object Discord {
context.startActivity(intent)
}
fun defaultRPC(): RPC? {
return token?.let {
RPC(it, Dispatchers.IO).apply {
applicationId = "1163925779692912771"
smallImage = RPC.Link(
"Dantotsu",
"mp:attachments/1163940221063278672/1163940262423298141/bitmap1024.png"
)
buttons.add(RPC.Link("Stream on Dantotsu", "https://github.com/rebelonion/Dantotsu/"))
}
}
}
const val application_Id = "1163925779692912771"
const val small_Image: String =
"mp:external/GJEe4hKzr8w56IW6ZKQz43HFVEo8pOtA_C-dJiWwxKo/https/cdn.discordapp.com/app-icons/1163925779692912771/f6b42d41dfdf0b56fcc79d4a12d2ac66.png"
const val small_Image_AniList: String =
"mp:external/rHOIjjChluqQtGyL_UHk6Z4oAqiVYlo_B7HSGPLSoUg/%3Fsize%3D128/https/cdn.discordapp.com/icons/210521487378087947/a_f54f910e2add364a3da3bb2f2fce0c72.webp"
}

View File

@@ -0,0 +1,418 @@
package ani.dantotsu.connections.discord
import android.Manifest
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.app.Service
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Build
import android.os.IBinder
import android.os.PowerManager
import androidx.core.app.ActivityCompat
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManagerCompat
import ani.dantotsu.MainActivity
import ani.dantotsu.R
import ani.dantotsu.connections.discord.serializers.Presence
import ani.dantotsu.connections.discord.serializers.User
import ani.dantotsu.isOnline
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.util.Logger
import com.google.gson.JsonArray
import com.google.gson.JsonObject
import com.google.gson.JsonParser
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.Response
import okhttp3.WebSocket
import okhttp3.WebSocketListener
import java.io.File
class DiscordService : Service() {
private var heartbeat: Int = 0
private var sequence: Int? = null
private var sessionId: String = ""
private var resume = false
private lateinit var logFile: File
private lateinit var webSocket: WebSocket
private lateinit var heartbeatThread: Thread
private lateinit var client: OkHttpClient
private lateinit var wakeLock: PowerManager.WakeLock
private val shouldLog = false
var presenceStore = ""
val json = Json {
encodeDefaults = true
allowStructuredMapKeys = true
ignoreUnknownKeys = true
coerceInputValues = true
}
var log = ""
override fun onCreate() {
super.onCreate()
log("Service onCreate()")
val powerManager = baseContext.getSystemService(Context.POWER_SERVICE) as PowerManager
wakeLock = powerManager.newWakeLock(
PowerManager.PARTIAL_WAKE_LOCK,
"discordRPC:backgroundPresence"
)
wakeLock.acquire(30 * 60 * 1000L /*30 minutes*/)
log("WakeLock Acquired")
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
val serviceChannel = NotificationChannel(
"discordPresence",
"Discord Presence Service Channel",
NotificationManager.IMPORTANCE_LOW
)
val manager = getSystemService(NotificationManager::class.java)
manager.createNotificationChannel(serviceChannel)
}
val intent = Intent(this, MainActivity::class.java).apply {
action = Intent.ACTION_MAIN
addCategory(Intent.CATEGORY_LAUNCHER)
flags = Intent.FLAG_ACTIVITY_NEW_TASK
}
val pendingIntent =
PendingIntent.getActivity(applicationContext, 0, intent, PendingIntent.FLAG_IMMUTABLE)
val builder = NotificationCompat.Builder(this, "discordPresence")
.setSmallIcon(R.mipmap.ic_launcher_round)
.setContentTitle("Discord Presence")
.setContentText("Running in the background")
.setContentIntent(pendingIntent)
.setPriority(NotificationCompat.PRIORITY_LOW)
startForeground(1, builder.build())
log("Foreground service started, notification shown")
client = OkHttpClient()
client.newWebSocket(
Request.Builder().url("wss://gateway.discord.gg/?v=10&encoding=json").build(),
DiscordWebSocketListener()
)
client.dispatcher.executorService.shutdown()
SERVICE_RUNNING = true
}
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
log("Service onStartCommand()")
if (intent != null) {
if (intent.hasExtra("presence")) {
log("Service onStartCommand() setPresence")
val lPresence = intent.getStringExtra("presence")
if (this::webSocket.isInitialized) webSocket.send(lPresence!!)
presenceStore = lPresence!!
} else {
log("Service onStartCommand() no presence")
DiscordServiceRunningSingleton.running = false
//kill the client
client = OkHttpClient()
stopSelf()
}
}
return START_REDELIVER_INTENT
}
override fun onDestroy() {
log("Service Destroyed")
if (DiscordServiceRunningSingleton.running) {
log("Accidental Service Destruction, restarting service")
val intent = Intent(baseContext, DiscordService::class.java)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
baseContext.startForegroundService(intent)
} else {
baseContext.startService(intent)
}
} else {
if (this::webSocket.isInitialized)
setPresence(
json.encodeToString(
Presence.Response(
3,
Presence(status = "offline")
)
)
)
wakeLock.release()
}
SERVICE_RUNNING = false
client = OkHttpClient()
if (this::webSocket.isInitialized) webSocket.close(1000, "Closed by user")
super.onDestroy()
//saveLogToFile()
}
fun saveProfile(response: String) {
val user = json.decodeFromString<User.Response>(response).d.user
log("User data: $user")
PrefManager.setVal(PrefName.DiscordUserName, user.username)
PrefManager.setVal(PrefName.DiscordId, user.id)
PrefManager.setVal(PrefName.DiscordAvatar, user.avatar)
}
override fun onBind(p0: Intent?): IBinder? = null
inner class DiscordWebSocketListener : WebSocketListener() {
private var retryAttempts = 0
private val maxRetryAttempts = 10
override fun onOpen(webSocket: WebSocket, response: Response) {
super.onOpen(webSocket, response)
this@DiscordService.webSocket = webSocket
log("WebSocket: Opened")
}
override fun onMessage(webSocket: WebSocket, text: String) {
super.onMessage(webSocket, text)
val json = JsonParser.parseString(text).asJsonObject
log("WebSocket: Received op code ${json.get("op")}")
when (json.get("op").asInt) {
0 -> {
if (json.has("s")) {
log("WebSocket: Sequence ${json.get("s")} Received")
sequence = json.get("s").asInt
}
if (json.get("t").asString != "READY") return
saveProfile(text)
log(text)
sessionId = json.get("d").asJsonObject.get("session_id").asString
log("WebSocket: SessionID ${json.get("d").asJsonObject.get("session_id")} Received")
if (presenceStore.isNotEmpty()) setPresence(presenceStore)
sendBroadcast(Intent("ServiceToConnectButton"))
}
1 -> {
log("WebSocket: Received Heartbeat request, sending heartbeat")
heartbeatThread.interrupt()
heartbeatSend(webSocket, sequence)
heartbeatThread = Thread(HeartbeatRunnable())
heartbeatThread.start()
}
7 -> {
resume = true
log("WebSocket: Requested to Restart, restarting")
webSocket.close(1000, "Requested to Restart by the server")
client = OkHttpClient()
client.newWebSocket(
Request.Builder().url("wss://gateway.discord.gg/?v=10&encoding=json")
.build(),
DiscordWebSocketListener()
)
client.dispatcher.executorService.shutdown()
}
9 -> {
log("WebSocket: Invalid Session, restarting")
webSocket.close(1000, "Invalid Session")
Thread.sleep(5000)
client = OkHttpClient()
client.newWebSocket(
Request.Builder().url("wss://gateway.discord.gg/?v=10&encoding=json")
.build(),
DiscordWebSocketListener()
)
client.dispatcher.executorService.shutdown()
}
10 -> {
heartbeat = json.get("d").asJsonObject.get("heartbeat_interval").asInt
heartbeatThread = Thread(HeartbeatRunnable())
heartbeatThread.start()
if (resume) {
log("WebSocket: Resuming because server requested")
resume()
resume = false
} else {
identify(webSocket)
log("WebSocket: Identified")
}
}
11 -> {
log("WebSocket: Heartbeat ACKed")
heartbeatThread = Thread(HeartbeatRunnable())
heartbeatThread.start()
}
}
}
private fun identify(webSocket: WebSocket) {
val properties = JsonObject()
properties.addProperty("os", "linux")
properties.addProperty("browser", "unknown")
properties.addProperty("device", "unknown")
val d = JsonObject()
d.addProperty("token", getToken())
d.addProperty("intents", 0)
d.add("properties", properties)
val payload = JsonObject()
payload.addProperty("op", 2)
payload.add("d", d)
webSocket.send(payload.toString())
}
override fun onFailure(webSocket: WebSocket, t: Throwable, response: Response?) {
super.onFailure(webSocket, t, response)
if (!isOnline(baseContext)) {
log("WebSocket: Error, onFailure() reason: No Internet")
errorNotification("Could not set the presence", "No Internet")
return
} else {
retryAttempts++
if (retryAttempts >= maxRetryAttempts) {
log("WebSocket: Error, onFailure() reason: Max Retry Attempts")
errorNotification("Timeout setting presence", "Max Retry Attempts")
return
}
}
t.message?.let { Logger.log("onFailure() $it") }
log("WebSocket: Error, onFailure() reason: ${t.message}")
client = OkHttpClient()
client.newWebSocket(
Request.Builder().url("wss://gateway.discord.gg/?v=10&encoding=json").build(),
DiscordWebSocketListener()
)
client.dispatcher.executorService.shutdown()
if (::heartbeatThread.isInitialized && !heartbeatThread.isInterrupted) {
heartbeatThread.interrupt()
}
}
override fun onClosing(webSocket: WebSocket, code: Int, reason: String) {
super.onClosing(webSocket, code, reason)
Logger.log("onClosing() $code $reason")
if (::heartbeatThread.isInitialized && !heartbeatThread.isInterrupted) {
heartbeatThread.interrupt()
}
}
override fun onClosed(webSocket: WebSocket, code: Int, reason: String) {
super.onClosed(webSocket, code, reason)
Logger.log("onClosed() $code $reason")
if (code >= 4000) {
log("WebSocket: Error, code: $code reason: $reason")
client = OkHttpClient()
client.newWebSocket(
Request.Builder().url("wss://gateway.discord.gg/?v=10&encoding=json").build(),
DiscordWebSocketListener()
)
client.dispatcher.executorService.shutdown()
return
}
}
}
fun getToken(): String {
val token = PrefManager.getVal(PrefName.DiscordToken, null as String?)
return if (token == null) {
log("WebSocket: Token not found")
errorNotification("Could not set the presence", "token not found")
""
} else {
token
}
}
fun heartbeatSend(webSocket: WebSocket, seq: Int?) {
val json = JsonObject()
json.addProperty("op", 1)
json.addProperty("d", seq)
webSocket.send(json.toString())
}
private fun errorNotification(title: String, text: String) {
val intent = Intent(this@DiscordService, MainActivity::class.java).apply {
action = Intent.ACTION_MAIN
addCategory(Intent.CATEGORY_LAUNCHER)
flags = Intent.FLAG_ACTIVITY_NEW_TASK
}
val pendingIntent =
PendingIntent.getActivity(applicationContext, 0, intent, PendingIntent.FLAG_IMMUTABLE)
val builder = NotificationCompat.Builder(this@DiscordService, "discordPresence")
.setSmallIcon(R.mipmap.ic_launcher_round)
.setContentTitle(title)
.setContentText(text)
.setContentIntent(pendingIntent)
.setPriority(NotificationCompat.PRIORITY_HIGH)
val notificationManager = NotificationManagerCompat.from(applicationContext)
if (ActivityCompat.checkSelfPermission(
this,
Manifest.permission.POST_NOTIFICATIONS
) != PackageManager.PERMISSION_GRANTED
) {
return
}
notificationManager.notify(2, builder.build())
log("Error Notified")
}
@Suppress("unused")
fun saveSimpleTestPresence() {
val file = File(baseContext.cacheDir, "payload")
//fill with test payload
val payload = JsonObject()
payload.addProperty("op", 3)
payload.add("d", JsonObject().apply {
addProperty("status", "online")
addProperty("afk", false)
add("activities", JsonArray().apply {
add(JsonObject().apply {
addProperty("name", "Test")
addProperty("type", 0)
})
})
})
file.writeText(payload.toString())
log("WebSocket: Simple Test Presence Saved")
}
fun setPresence(string: String) {
log("WebSocket: Sending Presence payload")
log(string)
webSocket.send(string)
}
fun log(string: String) {
if (shouldLog) {
Logger.log(string)
}
}
fun resume() {
log("Sending Resume payload")
val d = JsonObject()
d.addProperty("token", getToken())
d.addProperty("session_id", sessionId)
d.addProperty("seq", sequence)
val json = JsonObject()
json.addProperty("op", 6)
json.add("d", d)
log(json.toString())
webSocket.send(json.toString())
}
inner class HeartbeatRunnable : Runnable {
override fun run() {
try {
Thread.sleep(heartbeat.toLong())
heartbeatSend(webSocket, sequence)
log("WebSocket: Heartbeat Sent")
} catch (ignored: InterruptedException) {
}
}
}
companion object {
var SERVICE_RUNNING = false
}
}
object DiscordServiceRunningSingleton {
var running = false
}

View File

@@ -4,19 +4,23 @@ import android.annotation.SuppressLint
import android.app.Application.getProcessName
import android.os.Build
import android.os.Bundle
import android.webkit.WebResourceRequest
import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.annotation.RequiresApi
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import ani.dantotsu.R
import ani.dantotsu.connections.discord.Discord.saveToken
import ani.dantotsu.startMainActivity
import ani.dantotsu.themes.ThemeManager
class Login : AppCompatActivity() {
@SuppressLint("SetJavaScriptEnabled")
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
ThemeManager(this).applyTheme()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
val process = getProcessName()
if (packageName != process) WebView.setDataDirectorySuffix(process)
@@ -30,30 +34,48 @@ class Login : AppCompatActivity() {
settings.databaseEnabled = true
settings.domStorageEnabled = true
}
WebView.setWebContentsDebuggingEnabled(true)
webView.webViewClient = object : WebViewClient() {
override fun onPageFinished(view: WebView?, url: String?) {
if (url != null && url.endsWith("/app")) {
webView.stopLoading()
webView.evaluateJavascript("""
(function() {
const wreq = webpackChunkdiscord_app.push([[Symbol()], {}, w => w])
webpackChunkdiscord_app.pop()
const token = Object.values(wreq.c).find(m => m.exports?.Z?.getToken).exports.Z.getToken();
return token;
})()
""".trimIndent()){
login(it.trim('"'))
}
override fun shouldOverrideUrlLoading(
view: WebView?,
request: WebResourceRequest?
): Boolean {
// Check if the URL is the one expected after a successful login
if (request?.url.toString() != "https://discord.com/login") {
// Delay the script execution to ensure the page is fully loaded
view?.postDelayed({
view.evaluateJavascript(
"""
(function() {
const wreq = (webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m=>m?.exports?.default?.getToken!==void 0).exports.default.getToken();
return wreq;
})()
""".trimIndent()
) { result ->
login(result.trim('"'))
}
}, 2000)
}
return super.shouldOverrideUrlLoading(view, request)
}
override fun onPageFinished(view: WebView?, url: String?) {
super.onPageFinished(view, url)
}
}
webView.loadUrl("https://discord.com/login")
}
private fun login(token: String) {
if (token.isEmpty() || token == "null") {
Toast.makeText(this, "Failed to retrieve token", Toast.LENGTH_SHORT).show()
finish()
return
}
Toast.makeText(this, "Logged in successfully", Toast.LENGTH_SHORT).show()
finish()
saveToken(this, token)
saveToken(token)
startMainActivity(this@Login)
}

View File

@@ -1,24 +1,12 @@
package ani.dantotsu.connections.discord
import ani.dantotsu.connections.discord.serializers.*
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Deferred
import kotlinx.coroutines.cancel
import kotlinx.coroutines.delay
import kotlinx.coroutines.isActive
import kotlinx.coroutines.launch
import ani.dantotsu.connections.discord.serializers.Activity
import ani.dantotsu.connections.discord.serializers.Presence
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import kotlinx.serialization.Serializable
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonObject
import kotlinx.serialization.json.jsonPrimitive
import kotlinx.serialization.json.long
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.Response
import okhttp3.WebSocket
import okhttp3.WebSocketListener
import java.util.concurrent.TimeUnit.*
import kotlin.coroutines.CoroutineContext
import ani.dantotsu.client as app
@@ -31,205 +19,73 @@ open class RPC(val token: String, val coroutineContext: CoroutineContext) {
ignoreUnknownKeys = true
}
private val client = OkHttpClient.Builder()
.connectTimeout(10, SECONDS)
.readTimeout(10, SECONDS)
.writeTimeout(10, SECONDS)
.build()
private val request = Request.Builder()
.url("wss://gateway.discord.gg/?encoding=json&v=10")
.build()
private var webSocket = client.newWebSocket(request, Listener())
var applicationId: String? = null
var type: Type? = null
var activityName: String? = null
var details: String? = null
var state: String? = null
var largeImage: Link? = null
var smallImage: Link? = null
var status: String? = null
var startTimestamp: Long? = null
var stopTimestamp: Long? = null
enum class Type {
PLAYING, STREAMING, LISTENING, WATCHING, COMPETING
}
var buttons = mutableListOf<Link>()
data class Link(val label: String, val url: String)
private suspend fun createPresence(): String {
return json.encodeToString(Presence.Response(
3,
Presence(
activities = listOf(
Activity(
name = activityName,
state = state,
details = details,
type = type?.ordinal,
timestamps = if (startTimestamp != null)
Activity.Timestamps(startTimestamp, stopTimestamp)
else null,
assets = Activity.Assets(
largeImage = largeImage?.url?.discordUrl(),
largeText = largeImage?.label,
smallImage = smallImage?.url?.discordUrl(),
smallText = smallImage?.label
),
buttons = buttons.map { it.label },
metadata = Activity.Metadata(
buttonUrls = buttons.map { it.url }
),
applicationId = applicationId,
)
),
afk = true,
since = startTimestamp,
status = status
)
))
}
@Serializable
data class KizzyApi(val id: String)
val api = "https://kizzy-api.vercel.app/image?url="
private suspend fun String.discordUrl(): String? {
if (startsWith("mp:")) return this
val json = app.get("$api$this").parsedSafe<KizzyApi>()
return json?.id
}
private fun sendIdentify() {
val response = Identity.Response(
op = 2,
d = Identity(
token = token,
properties = Identity.Properties(
os = "windows",
browser = "Chrome",
device = "disco"
),
compress = false,
intents = 0
)
companion object {
data class RPCData(
val applicationId: String? = null,
val type: Type? = null,
val activityName: String? = null,
val details: String? = null,
val state: String? = null,
val largeImage: Link? = null,
val smallImage: Link? = null,
val status: String? = null,
val startTimestamp: Long? = null,
val stopTimestamp: Long? = null,
val buttons: MutableList<Link> = mutableListOf()
)
webSocket.send(json.encodeToString(response))
}
fun send(block: RPC.() -> Unit) {
block.invoke(this)
send()
}
@Serializable
data class KizzyApi(val id: String)
var started = false
var whenStarted: ((User) -> Unit)? = null
val api = "https://kizzy-api.vercel.app/image?url="
private suspend fun String.discordUrl(): String? {
if (startsWith("mp:")) return this
val json = app.get("$api$this").parsedSafe<KizzyApi>()
return json?.id
}
fun send() {
val send = {
CoroutineScope(coroutineContext).launch {
webSocket.send(createPresence())
suspend fun createPresence(data: RPCData): String {
val json = Json {
encodeDefaults = true
allowStructuredMapKeys = true
ignoreUnknownKeys = true
}
}
if (!started) whenStarted = {
send.invoke()
whenStarted = null
}
else send.invoke()
}
fun close() {
webSocket.send(
json.encodeToString(
Presence.Response(
3,
Presence(status = "offline")
return json.encodeToString(Presence.Response(
3,
Presence(
activities = listOf(
Activity(
name = data.activityName,
state = data.state,
details = data.details,
type = data.type?.ordinal,
timestamps = if (data.startTimestamp != null)
Activity.Timestamps(data.startTimestamp, data.stopTimestamp)
else null,
assets = Activity.Assets(
largeImage = data.largeImage?.url?.discordUrl(),
largeText = data.largeImage?.label,
smallImage = if (PrefManager.getVal(PrefName.ShowAniListIcon)) Discord.small_Image_AniList.discordUrl() else Discord.small_Image.discordUrl(),
smallText = if (PrefManager.getVal(PrefName.ShowAniListIcon)) "Anilist" else "Dantotsu",
),
buttons = data.buttons.map { it.label },
metadata = Activity.Metadata(
buttonUrls = data.buttons.map { it.url }
),
applicationId = data.applicationId,
)
),
afk = true,
since = data.startTimestamp,
status = PrefManager.getVal(PrefName.DiscordStatus)
)
)
)
webSocket.close(4000, "Interrupt")
}
//I hate this, but couldn't find any better way to solve it
suspend fun getUserData(): User {
var user : User? = null
whenStarted = {
user = it
whenStarted = null
}
while (user == null) {
delay(100)
}
return user!!
}
var onReceiveUserData: ((User) -> Deferred<Unit>)? = null
inner class Listener : WebSocketListener() {
private var seq: Int? = null
private var heartbeatInterval: Long? = null
var scope = CoroutineScope(coroutineContext)
private fun sendHeartBeat() {
scope.cancel()
scope = CoroutineScope(coroutineContext)
scope.launch {
delay(heartbeatInterval!!)
webSocket.send("{\"op\":1, \"d\":$seq}")
}
}
override fun onMessage(webSocket: WebSocket, text: String) {
println("Message : $text")
val map = json.decodeFromString<Res>(text)
seq = map.s
when (map.op) {
10 -> {
map.d as JsonObject
heartbeatInterval = map.d["heartbeat_interval"]!!.jsonPrimitive.long
sendHeartBeat()
sendIdentify()
}
0 -> if (map.t == "READY") {
val user = json.decodeFromString<User.Response>(text).d.user
started = true
whenStarted?.invoke(user)
}
1 -> {
if (scope.isActive) scope.cancel()
webSocket.send("{\"op\":1, \"d\":$seq}")
}
11 -> sendHeartBeat()
7 -> webSocket.close(400, "Reconnect")
9 -> {
sendHeartBeat()
sendIdentify()
}
}
}
override fun onClosed(webSocket: WebSocket, code: Int, reason: String) {
println("Server Closed : $code $reason")
if (code == 4000) {
scope.cancel()
}
}
override fun onFailure(webSocket: WebSocket, t: Throwable, response: Response?) {
println("Failure : ${t.message}")
if (t.message != "Interrupt") {
this@RPC.webSocket = client.newWebSocket(request, Listener())
}
))
}
}

View File

@@ -2,8 +2,9 @@ package ani.dantotsu.connections.discord.serializers
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Activity (
data class Activity(
@SerialName("application_id")
val applicationId: String? = null,
val name: String? = null,

View File

@@ -12,13 +12,13 @@ data class Identity(
) {
@Serializable
data class Response (
data class Response(
val op: Long,
val d: Identity
)
@Serializable
data class Properties (
data class Properties(
@SerialName("\$os")
val os: String,

View File

@@ -3,14 +3,14 @@ package ani.dantotsu.connections.discord.serializers
import kotlinx.serialization.Serializable
@Serializable
data class Presence (
data class Presence(
val activities: List<Activity> = listOf(),
val afk: Boolean = true,
val since: Long? = null,
val status: String? = null
){
) {
@Serializable
data class Response (
data class Response(
val op: Long,
val d: Presence
)

View File

@@ -1,60 +1,60 @@
package ani.dantotsu.connections.discord.serializers
import kotlinx.serialization.*
import kotlinx.serialization.descriptors.*
import kotlinx.serialization.encoding.*
import kotlinx.serialization.json.*
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonElement
@Serializable
data class User (
val verified: Boolean,
data class User(
val verified: Boolean? = null,
val username: String,
@SerialName("purchased_flags")
val purchasedFlags: Long,
val purchasedFlags: Long? = null,
@SerialName("public_flags")
val publicFlags: Long,
val publicFlags: Long? = null,
val pronouns: String,
val pronouns: String? = null,
@SerialName("premium_type")
val premiumType: Long,
val premiumType: Long? = null,
val premium: Boolean,
val phone: String,
val premium: Boolean? = null,
val phone: String? = null,
@SerialName("nsfw_allowed")
val nsfwAllowed: Boolean,
val nsfwAllowed: Boolean? = null,
val mobile: Boolean,
val mobile: Boolean? = null,
@SerialName("mfa_enabled")
val mfaEnabled: Boolean,
val mfaEnabled: Boolean? = null,
val id: String,
@SerialName("global_name")
val globalName: String,
val globalName: String? = null,
val flags: Long,
val email: String,
val discriminator: String,
val desktop: Boolean,
val bio: String,
val flags: Long? = null,
val email: String? = null,
val discriminator: String? = null,
val desktop: Boolean? = null,
val bio: String? = null,
@SerialName("banner_color")
val bannerColor: String,
val bannerColor: String? = null,
val banner: JsonElement? = null,
@SerialName("avatar_decoration")
val avatarDecoration: JsonElement? = null,
val avatar: String,
val avatar: String? = null,
@SerialName("accent_color")
val accentColor: Long
val accentColor: Long? = null
) {
@Serializable
data class Response(
@@ -70,7 +70,7 @@ data class User (
)
}
fun userAvatar():String{
fun userAvatar(): String {
return "https://cdn.discordapp.com/avatars/$id/$avatar.png"
}
}

View File

@@ -0,0 +1,114 @@
package ani.dantotsu.connections.github
import ani.dantotsu.Mapper
import ani.dantotsu.R
import ani.dantotsu.client
import ani.dantotsu.getAppString
import ani.dantotsu.settings.Developer
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.runBlocking
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonArray
import kotlinx.serialization.json.decodeFromJsonElement
class Contributors {
fun getContributors(): Array<Developer> {
var developers = arrayOf<Developer>()
runBlocking(Dispatchers.IO) {
val repo = getAppString(R.string.repo)
val res = client.get("https://api.github.com/repos/$repo/contributors")
.parsed<JsonArray>().map {
Mapper.json.decodeFromJsonElement<GithubResponse>(it)
}
res.forEach {
if (it.login == "SunglassJerry") return@forEach
val role = when (it.login) {
"rebelonion" -> "Owner & Maintainer"
"sneazy-ibo" -> "Contributor & Comment Moderator"
"WaiWhat" -> "Icon Designer"
else -> "Contributor"
}
developers = developers.plus(
Developer(
it.login,
it.avatarUrl,
role,
it.htmlUrl
)
)
}
developers = developers.plus(
arrayOf(
Developer(
"MarshMeadow",
"https://avatars.githubusercontent.com/u/88599122?v=4",
"Beta Icon Designer & Website Maintainer",
"https://github.com/MarshMeadow?tab=repositories"
),
Developer(
"Zaxx69",
"https://s4.anilist.co/file/anilistcdn/user/avatar/large/b6342562-kxE8m4i7KUMK.png",
"Telegram Admin",
"https://anilist.co/user/6342562"
),
Developer(
"Arif Alam",
"https://s4.anilist.co/file/anilistcdn/user/avatar/large/b6011177-2n994qtayiR9.jpg",
"Discord & Comment Moderator",
"https://anilist.co/user/6011177"
),
Developer(
"SunglassJeery",
"https://s4.anilist.co/file/anilistcdn/user/avatar/large/b5804776-FEKfP5wbz2xv.png",
"Head Discord & Comment Moderator",
"https://anilist.co/user/5804776"
),
Developer(
"Excited",
"https://s4.anilist.co/file/anilistcdn/user/avatar/large/b6131921-toSoGWmKbRA1.png",
"Comment Moderator",
"https://anilist.co/user/6131921"
),
Developer(
"Gurjshan",
"https://s4.anilist.co/file/anilistcdn/user/avatar/large/b6363228-rWQ3Pl3WuxzL.png",
"Comment Moderator",
"https://anilist.co/user/6363228"
),
Developer(
"NekoMimi",
"https://s4.anilist.co/file/anilistcdn/user/avatar/large/b6244220-HOpImMGMQAxW.jpg",
"Comment Moderator",
"https://anilist.co/user/6244220"
),
Developer(
"Zaidsenior",
"https://s4.anilist.co/file/anilistcdn/user/avatar/large/b6049773-8cjYeUOFUguv.jpg",
"Comment Moderator",
"https://anilist.co/user/6049773"
),
Developer(
"hastsu",
"https://cdn.discordapp.com/avatars/602422545077108749/20b4a6efa4314550e4ed51cdbe4fef3d.webp?size=160",
"Comment Moderator",
"https://anilist.co/user/6183359"
),
)
)
}
return developers
}
@Serializable
data class GithubResponse(
@SerialName("login")
val login: String,
@SerialName("avatar_url")
val avatarUrl: String,
@SerialName("html_url")
val htmlUrl: String
)
}

View File

@@ -0,0 +1,54 @@
package ani.dantotsu.connections.github
import ani.dantotsu.Mapper
import ani.dantotsu.client
import ani.dantotsu.settings.Developer
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.runBlocking
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonArray
import kotlinx.serialization.json.decodeFromJsonElement
class Forks {
fun getForks(): Array<Developer> {
var forks = arrayOf<Developer>()
runBlocking(Dispatchers.IO) {
val res =
client.get("https://api.github.com/repos/rebelonion/Dantotsu/forks?sort=stargazers")
.parsed<JsonArray>().map {
Mapper.json.decodeFromJsonElement<GithubResponse>(it)
}
res.forEach {
forks = forks.plus(
Developer(
it.name,
it.owner.avatarUrl,
it.owner.login,
it.htmlUrl
)
)
}
}
return forks
}
@Serializable
data class GithubResponse(
@SerialName("name")
val name: String,
val owner: Owner,
@SerialName("html_url")
val htmlUrl: String,
) {
@Serializable
data class Owner(
@SerialName("login")
val login: String,
@SerialName("avatar_url")
val avatarUrl: String
)
}
}

View File

@@ -4,19 +4,29 @@ import android.net.Uri
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.lifecycleScope
import ani.dantotsu.*
import ani.dantotsu.R
import ani.dantotsu.client
import ani.dantotsu.connections.mal.MAL.clientId
import ani.dantotsu.connections.mal.MAL.saveResponse
import ani.dantotsu.logError
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.snackString
import ani.dantotsu.startMainActivity
import ani.dantotsu.themes.ThemeManager
import ani.dantotsu.tryWithSuspend
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
class Login : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
ThemeManager(this).applyTheme()
try {
val data: Uri = intent?.data
?: throw Exception(getString(R.string.mal_login_uri_not_found))
val codeChallenge: String = loadData("malCodeChallenge", this)
val codeChallenge = PrefManager.getVal(PrefName.MALCodeChallenge, null as String?)
?: throw Exception(getString(R.string.mal_login_code_challenge_not_found))
val code = data.getQueryParameter("code")
?: throw Exception(getString(R.string.mal_login_code_not_present))
@@ -42,9 +52,8 @@ class Login : AppCompatActivity() {
}
}
}
}
catch (e:Exception){
logError(e,snackbar = false)
} catch (e: Exception) {
logError(e, snackbar = false)
startMainActivity(this)
}
}

View File

@@ -5,11 +5,15 @@ import android.content.Context
import android.net.Uri
import android.util.Base64
import androidx.browser.customtabs.CustomTabsIntent
import androidx.fragment.app.FragmentActivity
import ani.dantotsu.*
import ani.dantotsu.R
import ani.dantotsu.client
import ani.dantotsu.currContext
import ani.dantotsu.openLinkInBrowser
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.tryWithSuspend
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import java.io.File
import java.security.SecureRandom
object MAL {
@@ -28,7 +32,7 @@ object MAL {
.replace("/", "_")
.replace("\n", "")
saveData("malCodeChallenge", codeChallenge, context)
PrefManager.setVal(PrefName.MALCodeChallenge, codeChallenge)
val request =
"https://myanimelist.net/v1/oauth2/authorize?response_type=code&client_id=$clientId&code_challenge=$codeChallenge"
try {
@@ -41,11 +45,9 @@ object MAL {
}
}
private const val MAL_TOKEN = "malToken"
private suspend fun refreshToken(): ResponseToken? {
return tryWithSuspend {
val token = loadData<ResponseToken>(MAL_TOKEN)
val token = PrefManager.getNullableVal<ResponseToken>(PrefName.MALToken, null)
?: throw Exception(currContext()?.getString(R.string.refresh_token_load_failed))
val res = client.post(
"https://myanimelist.net/v1/oauth2/token",
@@ -61,10 +63,11 @@ object MAL {
}
suspend fun getSavedToken(context: FragmentActivity): Boolean {
suspend fun getSavedToken(): Boolean {
return tryWithSuspend(false) {
var res: ResponseToken = loadData(MAL_TOKEN, context)
?: return@tryWithSuspend false
var res: ResponseToken =
PrefManager.getNullableVal<ResponseToken>(PrefName.MALToken, null)
?: return@tryWithSuspend false
if (System.currentTimeMillis() > res.expiresIn)
res = refreshToken()
?: throw Exception(currContext()?.getString(R.string.refreshing_token_failed))
@@ -73,19 +76,17 @@ object MAL {
} ?: false
}
fun removeSavedToken(context: Context) {
fun removeSavedToken() {
token = null
username = null
userid = null
avatar = null
if (MAL_TOKEN in context.fileList()) {
File(context.filesDir, MAL_TOKEN).delete()
}
PrefManager.removeVal(PrefName.MALToken)
}
fun saveResponse(res: ResponseToken) {
res.expiresIn += System.currentTimeMillis()
saveData(MAL_TOKEN, res)
PrefManager.setVal(PrefName.MALToken, res)
}
@Serializable
@@ -94,6 +95,10 @@ object MAL {
@SerialName("expires_in") var expiresIn: Long,
@SerialName("access_token") val accessToken: String,
@SerialName("refresh_token") val refreshToken: String,
): java.io.Serializable
) : java.io.Serializable {
companion object {
private const val serialVersionUID = 1L
}
}
}

View File

@@ -1,7 +1,7 @@
package ani.dantotsu.connections.mal
import ani.dantotsu.connections.anilist.api.FuzzyDate
import ani.dantotsu.client
import ani.dantotsu.connections.anilist.api.FuzzyDate
import ani.dantotsu.tryWithSuspend
import kotlinx.serialization.Serializable
@@ -43,18 +43,18 @@ class MALQueries {
start: FuzzyDate? = null,
end: FuzzyDate? = null
) {
if(idMAL==null) return
if (idMAL == null) return
val data = mutableMapOf("status" to convertStatus(isAnime, status))
if (progress != null)
data[if (isAnime) "num_watched_episodes" else "num_chapters_read"] = progress.toString()
data[if (isAnime) "is_rewatching" else "is_rereading"] = (status == "REPEATING").toString()
if (score != null)
data["score"] = score.div(10).toString()
if(rewatch!=null)
data[if(isAnime) "num_times_rewatched" else "num_times_reread"] = rewatch.toString()
if(start!=null)
if (rewatch != null)
data[if (isAnime) "num_times_rewatched" else "num_times_reread"] = rewatch.toString()
if (start != null)
data["start_date"] = start.toMALString()
if(end!=null)
if (end != null)
data["finish_date"] = end.toMALString()
tryWithSuspend {
client.put(
@@ -65,8 +65,8 @@ class MALQueries {
}
}
suspend fun deleteList(isAnime: Boolean, idMAL: Int?){
if(idMAL==null) return
suspend fun deleteList(isAnime: Boolean, idMAL: Int?) {
if (idMAL == null) return
tryWithSuspend {
client.delete(
"$apiUrl/${if (isAnime) "anime" else "manga"}/$idMAL/my_list_status",

View File

@@ -0,0 +1,378 @@
package ani.dantotsu.download
import android.content.Context
import android.net.Uri
import androidx.documentfile.provider.DocumentFile
import ani.dantotsu.media.Media
import ani.dantotsu.media.MediaType
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.snackString
import ani.dantotsu.util.Logger
import com.anggrayudi.storage.callback.FolderCallback
import com.anggrayudi.storage.file.deleteRecursively
import com.anggrayudi.storage.file.findFolder
import com.anggrayudi.storage.file.moveFolderTo
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import me.xdrop.fuzzywuzzy.FuzzySearch
import java.io.Serializable
class DownloadsManager(private val context: Context) {
private val gson = Gson()
private val downloadsList = loadDownloads().toMutableList()
val mangaDownloadedTypes: List<DownloadedType>
get() = downloadsList.filter { it.type == MediaType.MANGA }
val animeDownloadedTypes: List<DownloadedType>
get() = downloadsList.filter { it.type == MediaType.ANIME }
val novelDownloadedTypes: List<DownloadedType>
get() = downloadsList.filter { it.type == MediaType.NOVEL }
private fun saveDownloads() {
val jsonString = gson.toJson(downloadsList)
PrefManager.setVal(PrefName.DownloadsKeys, jsonString)
}
private fun loadDownloads(): List<DownloadedType> {
val jsonString = PrefManager.getVal(PrefName.DownloadsKeys, null as String?)
return if (jsonString != null) {
val type = object : TypeToken<List<DownloadedType>>() {}.type
gson.fromJson(jsonString, type)
} else {
emptyList()
}
}
fun addDownload(downloadedType: DownloadedType) {
downloadsList.add(downloadedType)
saveDownloads()
}
fun removeDownload(
downloadedType: DownloadedType,
toast: Boolean = true,
onFinished: () -> Unit
) {
downloadsList.remove(downloadedType)
CoroutineScope(Dispatchers.IO).launch {
removeDirectory(downloadedType, toast)
withContext(Dispatchers.Main) {
onFinished()
}
}
saveDownloads()
}
fun removeMedia(title: String, type: MediaType) {
val baseDirectory = getBaseDirectory(context, type)
val directory = baseDirectory?.findFolder(title)
if (directory?.exists() == true) {
val deleted = directory.deleteRecursively(context, false)
if (deleted) {
snackString("Successfully deleted")
} else {
snackString("Failed to delete directory")
}
} else {
snackString("Directory does not exist")
cleanDownloads()
}
when (type) {
MediaType.MANGA -> {
downloadsList.removeAll { it.title == title && it.type == MediaType.MANGA }
}
MediaType.ANIME -> {
downloadsList.removeAll { it.title == title && it.type == MediaType.ANIME }
}
MediaType.NOVEL -> {
downloadsList.removeAll { it.title == title && it.type == MediaType.NOVEL }
}
}
saveDownloads()
}
private fun cleanDownloads() {
cleanDownload(MediaType.MANGA)
cleanDownload(MediaType.ANIME)
cleanDownload(MediaType.NOVEL)
}
private fun cleanDownload(type: MediaType) {
// remove all folders that are not in the downloads list
val directory = getBaseDirectory(context, type)
val downloadsSubLists = when (type) {
MediaType.MANGA -> mangaDownloadedTypes
MediaType.ANIME -> animeDownloadedTypes
else -> novelDownloadedTypes
}
if (directory?.exists() == true && directory.isDirectory) {
val files = directory.listFiles()
for (file in files) {
if (!downloadsSubLists.any { it.title == file.name }) {
file.deleteRecursively(context, false)
}
}
}
//now remove all downloads that do not have a folder
val iterator = downloadsList.iterator()
while (iterator.hasNext()) {
val download = iterator.next()
val downloadDir = directory?.findFolder(download.title)
if ((downloadDir?.exists() == false && download.type == type) || download.title.isBlank()) {
iterator.remove()
}
}
}
fun moveDownloadsDir(
context: Context,
oldUri: Uri,
newUri: Uri,
finished: (Boolean, String) -> Unit
) {
try {
if (oldUri == newUri) {
finished(false, "Source and destination are the same")
return
}
CoroutineScope(Dispatchers.IO).launch {
val oldBase =
DocumentFile.fromTreeUri(context, oldUri) ?: throw Exception("Old base is null")
val newBase =
DocumentFile.fromTreeUri(context, newUri) ?: throw Exception("New base is null")
val folder =
oldBase.findFolder(BASE_LOCATION) ?: throw Exception("Base folder not found")
folder.moveFolderTo(context, newBase, false, BASE_LOCATION, object :
FolderCallback() {
override fun onFailed(errorCode: ErrorCode) {
when (errorCode) {
ErrorCode.CANCELED -> finished(false, "Move canceled")
ErrorCode.CANNOT_CREATE_FILE_IN_TARGET -> finished(
false,
"Cannot create file in target"
)
ErrorCode.INVALID_TARGET_FOLDER -> finished(
true,
"Invalid target folder"
) // seems to still work
ErrorCode.NO_SPACE_LEFT_ON_TARGET_PATH -> finished(
false,
"No space left on target path"
)
ErrorCode.UNKNOWN_IO_ERROR -> finished(false, "Unknown IO error")
ErrorCode.SOURCE_FOLDER_NOT_FOUND -> finished(
false,
"Source folder not found"
)
ErrorCode.STORAGE_PERMISSION_DENIED -> finished(
false,
"Storage permission denied"
)
ErrorCode.TARGET_FOLDER_CANNOT_HAVE_SAME_PATH_WITH_SOURCE_FOLDER -> finished(
false,
"Target folder cannot have same path with source folder"
)
else -> finished(false, "Failed to move downloads: $errorCode")
}
Logger.log("Failed to move downloads: $errorCode")
super.onFailed(errorCode)
}
override fun onCompleted(result: Result) {
finished(true, "Successfully moved downloads")
super.onCompleted(result)
}
})
}
} catch (e: Exception) {
snackString("Error: ${e.message}")
finished(false, "Failed to move downloads: ${e.message}")
return
}
}
fun queryDownload(downloadedType: DownloadedType): Boolean {
return downloadsList.contains(downloadedType)
}
fun queryDownload(title: String, chapter: String, type: MediaType? = null): Boolean {
return if (type == null) {
downloadsList.any { it.title == title && it.chapter == chapter }
} else {
downloadsList.any { it.title == title && it.chapter == chapter && it.type == type }
}
}
private fun removeDirectory(downloadedType: DownloadedType, toast: Boolean) {
val baseDirectory = getBaseDirectory(context, downloadedType.type)
val directory =
baseDirectory?.findFolder(downloadedType.title)?.findFolder(downloadedType.chapter)
downloadsList.remove(downloadedType)
// Check if the directory exists and delete it recursively
if (directory?.exists() == true) {
val deleted = directory.deleteRecursively(context, false)
if (deleted) {
if (toast) snackString("Successfully deleted")
} else {
snackString("Failed to delete directory")
}
} else {
snackString("Directory does not exist")
}
}
fun purgeDownloads(type: MediaType) {
val directory = getBaseDirectory(context, type)
if (directory?.exists() == true) {
val deleted = directory.deleteRecursively(context, false)
if (deleted) {
snackString("Successfully deleted")
} else {
snackString("Failed to delete directory")
}
} else {
snackString("Directory does not exist")
}
downloadsList.removeAll { it.type == type }
saveDownloads()
}
companion object {
private const val BASE_LOCATION = "Dantotsu"
private const val MANGA_SUB_LOCATION = "Manga"
private const val ANIME_SUB_LOCATION = "Anime"
private const val NOVEL_SUB_LOCATION = "Novel"
/**
* Get and create a base directory for the given type
* @param context the context
* @param type the type of media
* @return the base directory
*/
private fun getBaseDirectory(context: Context, type: MediaType): DocumentFile? {
val baseDirectory = Uri.parse(PrefManager.getVal<String>(PrefName.DownloadsDir))
if (baseDirectory == Uri.EMPTY) return null
var base = DocumentFile.fromTreeUri(context, baseDirectory) ?: return null
base = base.findOrCreateFolder(BASE_LOCATION, false) ?: return null
return when (type) {
MediaType.MANGA -> {
base.findOrCreateFolder(MANGA_SUB_LOCATION, false)
}
MediaType.ANIME -> {
base.findOrCreateFolder(ANIME_SUB_LOCATION, false)
}
else -> {
base.findOrCreateFolder(NOVEL_SUB_LOCATION, false)
}
}
}
/**
* Get and create a subdirectory for the given type
* @param context the context
* @param type the type of media
* @param title the title of the media
* @param chapter the chapter of the media
* @return the subdirectory
*/
fun getSubDirectory(
context: Context,
type: MediaType,
overwrite: Boolean,
title: String,
chapter: String? = null
): DocumentFile? {
val baseDirectory = getBaseDirectory(context, type) ?: return null
return if (chapter != null) {
baseDirectory.findOrCreateFolder(title, false)
?.findOrCreateFolder(chapter, overwrite)
} else {
baseDirectory.findOrCreateFolder(title, overwrite)
}
}
fun getDirSize(
context: Context,
type: MediaType,
title: String,
chapter: String? = null
): Long {
val directory = getSubDirectory(context, type, false, title, chapter) ?: return 0
var size = 0L
directory.listFiles().forEach {
size += it.length()
}
return size
}
fun addNoMedia(context: Context) {
val baseDirectory = getBaseDirectory(context) ?: return
if (baseDirectory.findFile(".nomedia") == null) {
baseDirectory.createFile("application/octet-stream", ".nomedia")
}
}
private fun getBaseDirectory(context: Context): DocumentFile? {
val baseDirectory = Uri.parse(PrefManager.getVal<String>(PrefName.DownloadsDir))
if (baseDirectory == Uri.EMPTY) return null
return DocumentFile.fromTreeUri(context, baseDirectory)
}
private fun DocumentFile.findOrCreateFolder(
name: String, overwrite: Boolean
): DocumentFile? {
return if (overwrite) {
findFolder(name.findValidName())?.delete()
createDirectory(name.findValidName())
} else {
findFolder(name.findValidName()) ?: createDirectory(name.findValidName())
}
}
private const val RATIO_THRESHOLD = 95
fun Media.compareName(name: String): Boolean {
val mainName = mainName().findValidName().lowercase()
val ratio = FuzzySearch.ratio(mainName, name.lowercase())
return ratio > RATIO_THRESHOLD
}
fun String.compareName(name: String): Boolean {
val mainName = findValidName().lowercase()
val compareName = name.findValidName().lowercase()
val ratio = FuzzySearch.ratio(mainName, compareName)
return ratio > RATIO_THRESHOLD
}
}
}
private const val RESERVED_CHARS = "|\\?*<\":>+[]/'"
private fun String?.findValidName(): String {
return this?.filterNot { RESERVED_CHARS.contains(it) } ?: ""
}
data class DownloadedType(
val pTitle: String, val pChapter: String, val type: MediaType
) : Serializable {
val title: String
get() = pTitle.findValidName()
val chapter: String
get() = pChapter.findValidName()
}

View File

@@ -0,0 +1,590 @@
package ani.dantotsu.download.anime
import android.Manifest
import android.app.Service
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.content.pm.PackageManager
import android.content.pm.ServiceInfo
import android.os.Build
import android.os.IBinder
import android.widget.Toast
import androidx.core.app.ActivityCompat
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManagerCompat
import androidx.core.content.ContextCompat
import androidx.documentfile.provider.DocumentFile
import androidx.media3.common.util.UnstableApi
import ani.dantotsu.FileUrl
import ani.dantotsu.R
import ani.dantotsu.addons.download.DownloadAddonManager
import ani.dantotsu.connections.crashlytics.CrashlyticsInterface
import ani.dantotsu.defaultHeaders
import ani.dantotsu.download.DownloadedType
import ani.dantotsu.download.DownloadsManager
import ani.dantotsu.download.DownloadsManager.Companion.getSubDirectory
import ani.dantotsu.download.anime.AnimeDownloaderService.AnimeDownloadTask.Companion.getTaskName
import ani.dantotsu.media.Media
import ani.dantotsu.media.MediaType
import ani.dantotsu.media.SubtitleDownloader
import ani.dantotsu.media.anime.AnimeWatchFragment
import ani.dantotsu.parsers.Subtitle
import ani.dantotsu.parsers.Video
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.snackString
import ani.dantotsu.toast
import ani.dantotsu.util.Logger
import com.anggrayudi.storage.file.forceDelete
import com.anggrayudi.storage.file.openOutputStream
import com.google.gson.GsonBuilder
import com.google.gson.InstanceCreator
import eu.kanade.tachiyomi.animesource.model.SAnime
import eu.kanade.tachiyomi.animesource.model.SAnimeImpl
import eu.kanade.tachiyomi.animesource.model.SEpisode
import eu.kanade.tachiyomi.animesource.model.SEpisodeImpl
import eu.kanade.tachiyomi.data.notification.Notifications
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SChapterImpl
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.launch
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import kotlinx.coroutines.withContext
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import java.net.HttpURLConnection
import java.net.URL
import java.util.Queue
import java.util.concurrent.ConcurrentLinkedQueue
class AnimeDownloaderService : Service() {
private lateinit var notificationManager: NotificationManagerCompat
private lateinit var builder: NotificationCompat.Builder
private val downloadsManager: DownloadsManager = Injekt.get<DownloadsManager>()
private val downloadJobs = mutableMapOf<String, Job>()
private val mutex = Mutex()
private var isCurrentlyProcessing = false
private var currentTasks: MutableList<AnimeDownloadTask> = mutableListOf()
private val ffExtension = Injekt.get<DownloadAddonManager>().extension?.extension
override fun onBind(intent: Intent?): IBinder? {
// This is only required for bound services.
return null
}
override fun onCreate() {
super.onCreate()
if (ffExtension == null) {
toast(getString(R.string.download_addon_not_found))
stopSelf()
return
}
notificationManager = NotificationManagerCompat.from(this)
builder =
NotificationCompat.Builder(this, Notifications.CHANNEL_DOWNLOADER_PROGRESS).apply {
setContentTitle("Anime Download Progress")
setSmallIcon(R.drawable.ic_download_24)
priority = NotificationCompat.PRIORITY_DEFAULT
setOnlyAlertOnce(true)
setProgress(100, 0, false)
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
startForeground(
NOTIFICATION_ID,
builder.build(),
ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC
)
} else {
startForeground(NOTIFICATION_ID, builder.build())
}
ContextCompat.registerReceiver(
this,
cancelReceiver,
IntentFilter(ACTION_CANCEL_DOWNLOAD),
ContextCompat.RECEIVER_EXPORTED
)
}
override fun onDestroy() {
super.onDestroy()
AnimeServiceDataSingleton.downloadQueue.clear()
downloadJobs.clear()
AnimeServiceDataSingleton.isServiceRunning = false
unregisterReceiver(cancelReceiver)
}
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
snackString("Download started")
val serviceScope = CoroutineScope(SupervisorJob() + Dispatchers.Default)
serviceScope.launch {
mutex.withLock {
if (!isCurrentlyProcessing) {
isCurrentlyProcessing = true
processQueue()
isCurrentlyProcessing = false
}
}
}
return START_NOT_STICKY
}
private fun processQueue() {
CoroutineScope(Dispatchers.Default).launch {
while (AnimeServiceDataSingleton.downloadQueue.isNotEmpty()) {
val task = AnimeServiceDataSingleton.downloadQueue.poll()
if (task != null) {
val job = launch { download(task) }
currentTasks.add(task)
mutex.withLock {
downloadJobs[task.getTaskName()] = job
}
job.join() // Wait for the job to complete before continuing to the next task
mutex.withLock {
downloadJobs.remove(task.getTaskName())
}
updateNotification() // Update the notification after each task is completed
}
if (AnimeServiceDataSingleton.downloadQueue.isEmpty()) {
withContext(Dispatchers.Main) {
stopSelf() // Stop the service when the queue is empty
}
}
}
}
}
@UnstableApi
fun cancelDownload(taskName: String) {
val sessionIds =
AnimeServiceDataSingleton.downloadQueue.filter { it.getTaskName() == taskName }
.map { it.sessionId }.toMutableList()
sessionIds.addAll(currentTasks.filter { it.getTaskName() == taskName }.map { it.sessionId })
sessionIds.forEach {
ffExtension!!.cancelDownload(it)
}
currentTasks.removeAll { it.getTaskName() == taskName }
CoroutineScope(Dispatchers.Default).launch {
mutex.withLock {
downloadJobs[taskName]?.cancel()
downloadJobs.remove(taskName)
AnimeServiceDataSingleton.downloadQueue.removeAll { it.getTaskName() == taskName }
updateNotification() // Update the notification after cancellation
}
}
}
private fun updateNotification() {
// Update the notification to reflect the current state of the queue
val pendingDownloads = AnimeServiceDataSingleton.downloadQueue.size
val text = if (pendingDownloads > 0) {
"Pending downloads: $pendingDownloads"
} else {
"All downloads completed"
}
builder.setContentText(text)
if (ActivityCompat.checkSelfPermission(
this,
Manifest.permission.POST_NOTIFICATIONS
) != PackageManager.PERMISSION_GRANTED
) {
return
}
notificationManager.notify(NOTIFICATION_ID, builder.build())
}
@androidx.annotation.OptIn(UnstableApi::class)
suspend fun download(task: AnimeDownloadTask) {
try {
withContext(Dispatchers.Main) {
val notifi = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
ContextCompat.checkSelfPermission(
this@AnimeDownloaderService,
Manifest.permission.POST_NOTIFICATIONS
) == PackageManager.PERMISSION_GRANTED
} else {
true
}
builder.setContentText("Downloading ${getTaskName(task.title, task.episode)}")
if (notifi) {
notificationManager.notify(NOTIFICATION_ID, builder.build())
}
val outputDir = getSubDirectory(
this@AnimeDownloaderService,
MediaType.ANIME,
false,
task.title,
task.episode
) ?: throw Exception("Failed to create output directory")
outputDir.findFile("${task.getTaskName()}.mp4")?.delete()
val outputFile = outputDir.createFile("video/mp4", "${task.getTaskName()}.mp4")
?: throw Exception("Failed to create output file")
var percent = 0
var totalLength = 0.0
val path = ffExtension!!.setDownloadPath(
this@AnimeDownloaderService,
outputFile.uri
)
val headersStringBuilder = StringBuilder()
task.video.file.headers.forEach {
headersStringBuilder.append("\"${it.key}: ${it.value}\"\'\r\n\'")
}
if (!task.video.file.headers.containsKey("User-Agent")) { //headers should never be empty now
headersStringBuilder.append("\"").append("User-Agent: ")
.append(defaultHeaders["User-Agent"]).append("\"\'\r\n\'")
}
val probeRequest =
"-headers $headersStringBuilder -i ${task.video.file.url} -show_entries format=duration -v quiet -of csv=\"p=0\""
ffExtension.executeFFProbe(
probeRequest
) {
if (it.toDoubleOrNull() != null) {
totalLength = it.toDouble()
}
}
val headers = headersStringBuilder.toString()
var request = "-headers $headers "
request += "-i ${task.video.file.url} -c copy -bsf:a aac_adtstoasc -tls_verify 0 $path -v trace"
Logger.log("Request: $request")
val ffTask =
ffExtension.executeFFMpeg(request) {
// CALLED WHEN SESSION GENERATES STATISTICS
val timeInMilliseconds = it
if (timeInMilliseconds > 0 && totalLength > 0) {
percent = ((it / 1000) / totalLength * 100).toInt()
}
Logger.log("Statistics: $it")
}
task.sessionId = ffTask
currentTasks.find { it.getTaskName() == task.getTaskName() }?.sessionId =
ffTask
saveMediaInfo(task)
task.subtitle?.let {
SubtitleDownloader.downloadSubtitle(
this@AnimeDownloaderService,
it.file.url,
DownloadedType(
task.title,
task.episode,
MediaType.ANIME,
)
)
}
// periodically check if the download is complete
while (ffExtension.getState(ffTask) != "COMPLETED") {
if (ffExtension.getState(ffTask) == "FAILED") {
Logger.log("Download failed")
builder.setContentText(
"${
getTaskName(
task.title,
task.episode
)
} Download failed"
)
notificationManager.notify(NOTIFICATION_ID, builder.build())
toast("${getTaskName(task.title, task.episode)} Download failed")
Logger.log("Download failed: ${ffExtension.getStackTrace(ffTask)}")
downloadsManager.removeDownload(
DownloadedType(
task.title,
task.episode,
MediaType.ANIME,
),
false
) {}
Injekt.get<CrashlyticsInterface>().logException(
Exception(
"Anime Download failed:" +
" ${getTaskName(task.title, task.episode)}" +
" url: ${task.video.file.url}" +
" title: ${task.title}" +
" episode: ${task.episode}"
)
)
currentTasks.removeAll { it.getTaskName() == task.getTaskName() }
broadcastDownloadFailed(task.episode)
break
}
builder.setProgress(
100, percent.coerceAtMost(99),
false
)
broadcastDownloadProgress(
task.episode,
percent.coerceAtMost(99)
)
if (notifi) {
notificationManager.notify(NOTIFICATION_ID, builder.build())
}
kotlinx.coroutines.delay(2000)
}
if (ffExtension.getState(ffTask) == "COMPLETED") {
if (ffExtension.hadError(ffTask)) {
Logger.log("Download failed")
builder.setContentText(
"${
getTaskName(
task.title,
task.episode
)
} Download failed"
)
notificationManager.notify(NOTIFICATION_ID, builder.build())
snackString("${getTaskName(task.title, task.episode)} Download failed")
downloadsManager.removeDownload(
DownloadedType(
task.title,
task.episode,
MediaType.ANIME,
)
) {}
Injekt.get<CrashlyticsInterface>().logException(
Exception(
"Anime Download failed:" +
" ${getTaskName(task.title, task.episode)}" +
" url: ${task.video.file.url}" +
" title: ${task.title}" +
" episode: ${task.episode}"
)
)
currentTasks.removeAll { it.getTaskName() == task.getTaskName() }
broadcastDownloadFailed(task.episode)
return@withContext
}
Logger.log("Download completed")
builder.setContentText(
"${
getTaskName(
task.title,
task.episode
)
} Download completed"
)
notificationManager.notify(NOTIFICATION_ID, builder.build())
snackString("${getTaskName(task.title, task.episode)} Download completed")
PrefManager.getAnimeDownloadPreferences().edit().putString(
task.getTaskName(),
task.video.file.url
).apply()
downloadsManager.addDownload(
DownloadedType(
task.title,
task.episode,
MediaType.ANIME,
)
)
currentTasks.removeAll { it.getTaskName() == task.getTaskName() }
broadcastDownloadFinished(task.episode)
} else throw Exception("Download failed")
}
} catch (e: Exception) {
if (e.message?.contains("Coroutine was cancelled") == false) { //wut
Logger.log("Exception while downloading file: ${e.message}")
snackString("Exception while downloading file: ${e.message}")
e.printStackTrace()
Injekt.get<CrashlyticsInterface>().logException(e)
}
broadcastDownloadFailed(task.episode)
}
}
private fun saveMediaInfo(task: AnimeDownloadTask) {
CoroutineScope(Dispatchers.IO).launch {
val directory =
getSubDirectory(this@AnimeDownloaderService, MediaType.ANIME, false, task.title)
?: throw Exception("Directory not found")
directory.findFile("media.json")?.forceDelete(this@AnimeDownloaderService)
val file = directory.createFile("application/json", "media.json")
?: throw Exception("File not created")
val episodeDirectory =
getSubDirectory(
this@AnimeDownloaderService,
MediaType.ANIME,
false,
task.title,
task.episode
)
?: throw Exception("Directory not found")
val gson = GsonBuilder()
.registerTypeAdapter(SChapter::class.java, InstanceCreator<SChapter> {
SChapterImpl() // Provide an instance of SChapterImpl
})
.registerTypeAdapter(SAnime::class.java, InstanceCreator<SAnime> {
SAnimeImpl() // Provide an instance of SAnimeImpl
})
.registerTypeAdapter(SEpisode::class.java, InstanceCreator<SEpisode> {
SEpisodeImpl() // Provide an instance of SEpisodeImpl
})
.create()
val mediaJson = gson.toJson(task.sourceMedia)
val media = gson.fromJson(mediaJson, Media::class.java)
if (media != null) {
media.cover = media.cover?.let { downloadImage(it, directory, "cover.jpg") }
media.banner = media.banner?.let { downloadImage(it, directory, "banner.jpg") }
if (task.episodeImage != null) {
media.anime?.episodes?.get(task.episode)?.let { episode ->
episode.thumb = downloadImage(
task.episodeImage,
episodeDirectory,
"episodeImage.jpg"
)?.let {
FileUrl(
it
)
}
}
downloadImage(task.episodeImage, episodeDirectory, "episodeImage.jpg")
}
val jsonString = gson.toJson(media)
withContext(Dispatchers.Main) {
try {
file.openOutputStream(this@AnimeDownloaderService, false).use { output ->
if (output == null) throw Exception("Output stream is null")
output.write(jsonString.toByteArray())
}
} catch (e: android.system.ErrnoException) {
e.printStackTrace()
Toast.makeText(
this@AnimeDownloaderService,
"Error while saving: ${e.localizedMessage}",
Toast.LENGTH_LONG
).show()
}
}
}
}
}
private suspend fun downloadImage(url: String, directory: DocumentFile, name: String): String? =
withContext(Dispatchers.IO) {
var connection: HttpURLConnection? = null
println("Downloading url $url")
try {
connection = URL(url).openConnection() as HttpURLConnection
connection.connect()
if (connection.responseCode != HttpURLConnection.HTTP_OK) {
throw Exception("Server returned HTTP ${connection.responseCode} ${connection.responseMessage}")
}
directory.findFile(name)?.forceDelete(this@AnimeDownloaderService)
val file =
directory.createFile("image/jpeg", name) ?: throw Exception("File not created")
file.openOutputStream(this@AnimeDownloaderService, false).use { output ->
if (output == null) throw Exception("Output stream is null")
connection.inputStream.use { input ->
input.copyTo(output)
}
}
return@withContext file.uri.toString()
} catch (e: Exception) {
e.printStackTrace()
withContext(Dispatchers.Main) {
Toast.makeText(
this@AnimeDownloaderService,
"Exception while saving ${name}: ${e.message}",
Toast.LENGTH_LONG
).show()
}
null
} finally {
connection?.disconnect()
}
}
private fun broadcastDownloadStarted(episodeNumber: String) {
val intent = Intent(AnimeWatchFragment.ACTION_DOWNLOAD_STARTED).apply {
putExtra(AnimeWatchFragment.EXTRA_EPISODE_NUMBER, episodeNumber)
}
sendBroadcast(intent)
}
private fun broadcastDownloadFinished(episodeNumber: String) {
val intent = Intent(AnimeWatchFragment.ACTION_DOWNLOAD_FINISHED).apply {
putExtra(AnimeWatchFragment.EXTRA_EPISODE_NUMBER, episodeNumber)
}
sendBroadcast(intent)
}
private fun broadcastDownloadFailed(episodeNumber: String) {
val intent = Intent(AnimeWatchFragment.ACTION_DOWNLOAD_FAILED).apply {
putExtra(AnimeWatchFragment.EXTRA_EPISODE_NUMBER, episodeNumber)
}
sendBroadcast(intent)
}
private fun broadcastDownloadProgress(episodeNumber: String, progress: Int) {
val intent = Intent(AnimeWatchFragment.ACTION_DOWNLOAD_PROGRESS).apply {
putExtra(AnimeWatchFragment.EXTRA_EPISODE_NUMBER, episodeNumber)
putExtra("progress", progress)
}
sendBroadcast(intent)
}
private val cancelReceiver = object : BroadcastReceiver() {
@androidx.annotation.OptIn(UnstableApi::class)
override fun onReceive(context: Context, intent: Intent) {
if (intent.action == ACTION_CANCEL_DOWNLOAD) {
val taskName = intent.getStringExtra(EXTRA_TASK_NAME)
taskName?.let {
cancelDownload(it)
}
}
}
}
data class AnimeDownloadTask(
val title: String,
val episode: String,
val video: Video,
val subtitle: Subtitle? = null,
val sourceMedia: Media? = null,
val episodeImage: String? = null,
val retries: Int = 2,
val simultaneousDownloads: Int = 2,
var sessionId: Long = -1
) {
fun getTaskName(): String {
return "${title.replace("/", "")}/${episode.replace("/", "")}"
}
companion object {
fun getTaskName(title: String, episode: String): String {
return "${title.replace("/", "")}/${episode.replace("/", "")}"
}
}
}
companion object {
private const val NOTIFICATION_ID = 1103
const val ACTION_CANCEL_DOWNLOAD = "action_cancel_download"
const val EXTRA_TASK_NAME = "extra_task_name"
}
}
object AnimeServiceDataSingleton {
var video: Video? = null
var downloadQueue: Queue<AnimeDownloaderService.AnimeDownloadTask> = ConcurrentLinkedQueue()
@Volatile
var isServiceRunning: Boolean = false
}

View File

@@ -0,0 +1,109 @@
package ani.dantotsu.download.anime
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import androidx.cardview.widget.CardView
import ani.dantotsu.R
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
class OfflineAnimeAdapter(
private val context: Context,
private var items: List<OfflineAnimeModel>,
private val searchListener: OfflineAnimeSearchListener
) : BaseAdapter() {
private val inflater: LayoutInflater =
context.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater
private var originalItems: List<OfflineAnimeModel> = items
private var style: Int = PrefManager.getVal(PrefName.OfflineView)
override fun getCount(): Int {
return items.size
}
override fun getItem(position: Int): Any {
return items[position]
}
override fun getItemId(position: Int): Long {
return position.toLong()
}
override fun getView(position: Int, convertView: View?, parent: ViewGroup?): View {
val view: View = convertView ?: when (style) {
0 -> inflater.inflate(R.layout.item_media_large, parent, false) // large view
1 -> inflater.inflate(R.layout.item_media_compact, parent, false) // compact view
else -> inflater.inflate(R.layout.item_media_compact, parent, false) // compact view
}
val item = getItem(position) as OfflineAnimeModel
val imageView = view.findViewById<ImageView>(R.id.itemCompactImage)
val titleTextView = view.findViewById<TextView>(R.id.itemCompactTitle)
val itemScore = view.findViewById<TextView>(R.id.itemCompactScore)
val ongoing = view.findViewById<CardView>(R.id.itemCompactOngoing)
val totalEpisodes = view.findViewById<TextView>(R.id.itemCompactTotal)
val typeImage = view.findViewById<ImageView>(R.id.itemCompactTypeImage)
val type = view.findViewById<TextView>(R.id.itemCompactRelation)
val typeView = view.findViewById<LinearLayout>(R.id.itemCompactType)
if (style == 0) {
val bannerView = view.findViewById<ImageView>(R.id.itemCompactBanner) // for large view
val episodes = view.findViewById<TextView>(R.id.itemTotal)
episodes.text = context.getString(R.string.episodes)
bannerView.setImageURI(item.banner ?: item.image)
totalEpisodes.text = item.totalEpisodeList
} else if (style == 1) {
val watchedEpisodes =
view.findViewById<TextView>(R.id.itemCompactUserProgress) // for compact view
watchedEpisodes.text = item.watchedEpisode
totalEpisodes.text = context.getString(R.string.total_divider, item.totalEpisode)
}
// Bind item data to the views
typeImage.setImageResource(R.drawable.ic_round_movie_filter_24)
type.text = item.type
typeView.visibility = View.VISIBLE
imageView.setImageURI(item.image)
titleTextView.text = item.title
itemScore.text = item.score
if (item.isOngoing) {
ongoing.visibility = View.VISIBLE
} else {
ongoing.visibility = View.GONE
}
return view
}
fun onSearchQuery(query: String) {
// Implement the filtering logic here, for example:
items = if (query.isEmpty()) {
// Return the original list if the query is empty
originalItems
} else {
// Filter the list based on the query
originalItems.filter { it.title.contains(query, ignoreCase = true) }
}
notifyDataSetChanged() // Notify the adapter that the data set has changed
}
fun setItems(items: List<OfflineAnimeModel>) {
this.items = items
this.originalItems = items
notifyDataSetChanged()
}
fun notifyNewGrid() {
style = PrefManager.getVal(PrefName.OfflineView)
notifyDataSetChanged()
}
}

View File

@@ -0,0 +1,416 @@
package ani.dantotsu.download.anime
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.AlphaAnimation
import android.view.animation.LayoutAnimationController
import android.widget.AbsListView
import android.widget.AutoCompleteTextView
import android.widget.GridView
import android.widget.ImageView
import android.widget.TextView
import androidx.annotation.OptIn
import androidx.appcompat.app.AppCompatActivity
import androidx.cardview.widget.CardView
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible
import androidx.core.view.marginBottom
import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecycleScope
import androidx.media3.common.util.UnstableApi
import ani.dantotsu.R
import ani.dantotsu.bottomBar
import ani.dantotsu.connections.crashlytics.CrashlyticsInterface
import ani.dantotsu.currActivity
import ani.dantotsu.currContext
import ani.dantotsu.download.DownloadedType
import ani.dantotsu.download.DownloadsManager
import ani.dantotsu.download.DownloadsManager.Companion.compareName
import ani.dantotsu.initActivity
import ani.dantotsu.media.Media
import ani.dantotsu.media.MediaDetailsActivity
import ani.dantotsu.media.MediaType
import ani.dantotsu.navBarHeight
import ani.dantotsu.setSafeOnClickListener
import ani.dantotsu.settings.SettingsDialogFragment
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.snackString
import ani.dantotsu.util.Logger
import com.anggrayudi.storage.file.openInputStream
import com.google.android.material.card.MaterialCardView
import com.google.android.material.imageview.ShapeableImageView
import com.google.android.material.textfield.TextInputLayout
import com.google.gson.GsonBuilder
import com.google.gson.InstanceCreator
import eu.kanade.tachiyomi.animesource.model.SAnime
import eu.kanade.tachiyomi.animesource.model.SAnimeImpl
import eu.kanade.tachiyomi.animesource.model.SEpisode
import eu.kanade.tachiyomi.animesource.model.SEpisodeImpl
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SChapterImpl
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
class OfflineAnimeFragment : Fragment(), OfflineAnimeSearchListener {
private val downloadManager = Injekt.get<DownloadsManager>()
private var downloads: List<OfflineAnimeModel> = listOf()
private lateinit var gridView: GridView
private lateinit var adapter: OfflineAnimeAdapter
private lateinit var total: TextView
private var downloadsJob: Job = Job()
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
val view = inflater.inflate(R.layout.fragment_offline_page, container, false)
val textInputLayout = view.findViewById<TextInputLayout>(R.id.offlineMangaSearchBar)
textInputLayout.hint = "Anime"
val currentColor = textInputLayout.boxBackgroundColor
val semiTransparentColor = (currentColor and 0x00FFFFFF) or 0xA8000000.toInt()
textInputLayout.boxBackgroundColor = semiTransparentColor
val materialCardView = view.findViewById<MaterialCardView>(R.id.offlineMangaAvatarContainer)
materialCardView.setCardBackgroundColor(semiTransparentColor)
val typedValue = TypedValue()
requireContext().theme?.resolveAttribute(android.R.attr.windowBackground, typedValue, true)
val color = typedValue.data
val animeUserAvatar = view.findViewById<ShapeableImageView>(R.id.offlineMangaUserAvatar)
animeUserAvatar.setSafeOnClickListener {
val dialogFragment =
SettingsDialogFragment.newInstance(SettingsDialogFragment.Companion.PageType.OfflineANIME)
dialogFragment.show((it.context as AppCompatActivity).supportFragmentManager, "dialog")
}
if (!(PrefManager.getVal(PrefName.ImmersiveMode) as Boolean)) {
view.rootView.fitsSystemWindows = true
}
textInputLayout.boxBackgroundColor = (color and 0x00FFFFFF) or 0x28000000
materialCardView.setCardBackgroundColor((color and 0x00FFFFFF) or 0x28000000)
val searchView = view.findViewById<AutoCompleteTextView>(R.id.animeSearchBarText)
searchView.addTextChangedListener(object : TextWatcher {
override fun afterTextChanged(s: Editable?) {
}
override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) {
}
override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {
onSearchQuery(s.toString())
}
})
var style: Int = PrefManager.getVal(PrefName.OfflineView)
val layoutList = view.findViewById<ImageView>(R.id.downloadedList)
val layoutCompact = view.findViewById<ImageView>(R.id.downloadedGrid)
var selected = when (style) {
0 -> layoutList
1 -> layoutCompact
else -> layoutList
}
selected.alpha = 1f
fun selected(it: ImageView) {
selected.alpha = 0.33f
selected = it
selected.alpha = 1f
}
layoutList.setOnClickListener {
selected(it as ImageView)
style = 0
PrefManager.setVal(PrefName.OfflineView, style)
gridView.visibility = View.GONE
gridView = view.findViewById(R.id.gridView)
adapter.notifyNewGrid()
grid()
}
layoutCompact.setOnClickListener {
selected(it as ImageView)
style = 1
PrefManager.setVal(PrefName.OfflineView, style)
gridView.visibility = View.GONE
gridView = view.findViewById(R.id.gridView1)
adapter.notifyNewGrid()
grid()
}
gridView =
if (style == 0) view.findViewById(R.id.gridView) else view.findViewById(R.id.gridView1)
total = view.findViewById(R.id.total)
grid()
return view
}
@OptIn(UnstableApi::class)
private fun grid() {
gridView.visibility = View.VISIBLE
val fadeIn = AlphaAnimation(0f, 1f)
fadeIn.duration = 300 // animations pog
gridView.layoutAnimation = LayoutAnimationController(fadeIn)
adapter = OfflineAnimeAdapter(requireContext(), downloads, this)
getDownloads()
gridView.adapter = adapter
gridView.scheduleLayoutAnimation()
total.text = if (gridView.count > 0) "Anime (${gridView.count})" else "Empty List"
gridView.setOnItemClickListener { _, _, position, _ ->
// Get the OfflineAnimeModel that was clicked
val item = adapter.getItem(position) as OfflineAnimeModel
val media =
downloadManager.animeDownloadedTypes.firstOrNull { it.title.compareName(item.title) }
media?.let {
lifecycleScope.launch {
val mediaModel = getMedia(it)
if (mediaModel == null) {
snackString("Error loading media.json")
return@launch
}
MediaDetailsActivity.mediaSingleton = mediaModel
ContextCompat.startActivity(
requireActivity(),
Intent(requireContext(), MediaDetailsActivity::class.java)
.putExtra("download", true),
null
)
}
} ?: run {
snackString("no media found")
}
}
gridView.setOnItemLongClickListener { _, _, position, _ ->
// Get the OfflineAnimeModel that was clicked
val item = adapter.getItem(position) as OfflineAnimeModel
val type: MediaType = MediaType.ANIME
// Alert dialog to confirm deletion
val builder =
androidx.appcompat.app.AlertDialog.Builder(requireContext(), R.style.MyPopup)
builder.setTitle("Delete ${item.title}?")
builder.setMessage("Are you sure you want to delete ${item.title}?")
builder.setPositiveButton("Yes") { _, _ ->
downloadManager.removeMedia(item.title, type)
val mediaIds =
PrefManager.getAnimeDownloadPreferences().all?.filter { it.key.contains(item.title) }?.values
?: emptySet()
if (mediaIds.isEmpty()) {
snackString("No media found") // if this happens, terrible things have happened
}
getDownloads()
}
builder.setNegativeButton("No") { _, _ ->
// Do nothing
}
val dialog = builder.show()
dialog.window?.setDimAmount(0.8f)
true
}
}
override fun onSearchQuery(query: String) {
adapter.onSearchQuery(query)
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
val scrollTop = view.findViewById<CardView>(R.id.mangaPageScrollTop)
scrollTop.setOnClickListener {
gridView.smoothScrollToPositionFromTop(0, 0)
}
// Assuming 'scrollTop' is a view that you want to hide/show
scrollTop.visibility = View.GONE
gridView.setOnScrollListener(object : AbsListView.OnScrollListener {
override fun onScrollStateChanged(view: AbsListView, scrollState: Int) {
}
override fun onScroll(
view: AbsListView,
firstVisibleItem: Int,
visibleItemCount: Int,
totalItemCount: Int
) {
val first = view.getChildAt(0)
val visibility = first != null && first.top < 0
scrollTop.translationY =
-(navBarHeight + bottomBar.height + bottomBar.marginBottom).toFloat()
scrollTop.isVisible = visibility
}
})
initActivity(requireActivity())
}
override fun onResume() {
super.onResume()
getDownloads()
}
override fun onPause() {
super.onPause()
downloads = listOf()
}
override fun onDestroy() {
super.onDestroy()
downloads = listOf()
}
override fun onStop() {
super.onStop()
downloads = listOf()
}
private fun getDownloads() {
downloads = listOf()
if (downloadsJob.isActive) {
downloadsJob.cancel()
}
downloadsJob = Job()
CoroutineScope(Dispatchers.IO + downloadsJob).launch {
val animeTitles = downloadManager.animeDownloadedTypes.map { it.title }.distinct()
val newAnimeDownloads = mutableListOf<OfflineAnimeModel>()
for (title in animeTitles) {
val tDownloads = downloadManager.animeDownloadedTypes.filter { it.title == title }
val download = tDownloads.first()
val offlineAnimeModel = loadOfflineAnimeModel(download)
newAnimeDownloads += offlineAnimeModel
}
downloads = newAnimeDownloads
withContext(Dispatchers.Main) {
adapter.setItems(downloads)
total.text = if (gridView.count > 0) "Anime (${gridView.count})" else "Empty List"
adapter.notifyDataSetChanged()
}
}
}
/**
* Load media.json file from the directory and convert it to Media class
* @param downloadedType DownloadedType object
* @return Media object
*/
private suspend fun getMedia(downloadedType: DownloadedType): Media? {
return try {
val directory = DownloadsManager.getSubDirectory(
context ?: currContext()!!, downloadedType.type,
false, downloadedType.title
)
val gson = GsonBuilder()
.registerTypeAdapter(SChapter::class.java, InstanceCreator<SChapter> {
SChapterImpl() // Provide an instance of SChapterImpl
})
.registerTypeAdapter(SAnime::class.java, InstanceCreator<SAnime> {
SAnimeImpl() // Provide an instance of SAnimeImpl
})
.registerTypeAdapter(SEpisode::class.java, InstanceCreator<SEpisode> {
SEpisodeImpl() // Provide an instance of SEpisodeImpl
})
.create()
val media = directory?.findFile("media.json")
?: return null
val mediaJson =
media.openInputStream(context ?: currContext()!!)?.bufferedReader().use {
it?.readText()
}
?: return null
gson.fromJson(mediaJson, Media::class.java)
} catch (e: Exception) {
Logger.log("Error loading media.json: ${e.message}")
Logger.log(e)
Injekt.get<CrashlyticsInterface>().logException(e)
null
}
}
/**
* Load OfflineAnimeModel from the directory
* @param downloadedType DownloadedType object
* @return OfflineAnimeModel object
*/
private suspend fun loadOfflineAnimeModel(downloadedType: DownloadedType): OfflineAnimeModel {
val type = downloadedType.type.asText()
try {
val directory = DownloadsManager.getSubDirectory(
context ?: currContext()!!, downloadedType.type,
false, downloadedType.title
)
val mediaModel = getMedia(downloadedType)!!
val cover = directory?.findFile("cover.jpg")
val coverUri: Uri? = if (cover?.exists() == true) {
cover.uri
} else null
val banner = directory?.findFile("banner.jpg")
val bannerUri: Uri? = if (banner?.exists() == true) {
banner.uri
} else null
val title = mediaModel.mainName()
val score = ((if (mediaModel.userScore == 0) (mediaModel.meanScore
?: 0) else mediaModel.userScore) / 10.0).toString()
val isOngoing =
mediaModel.status == currActivity()!!.getString(R.string.status_releasing)
val isUserScored = mediaModel.userScore != 0
val watchedEpisodes = (mediaModel.userProgress ?: "~").toString()
val totalEpisode =
if (mediaModel.anime?.nextAiringEpisode != null) (mediaModel.anime.nextAiringEpisode.toString() + " | " + (mediaModel.anime.totalEpisodes
?: "~").toString()) else (mediaModel.anime?.totalEpisodes ?: "~").toString()
val chapters = " Chapters"
val totalEpisodesList =
if (mediaModel.anime?.nextAiringEpisode != null) (mediaModel.anime.nextAiringEpisode.toString()) else (mediaModel.anime?.totalEpisodes
?: "~").toString()
return OfflineAnimeModel(
title,
score,
totalEpisode,
totalEpisodesList,
watchedEpisodes,
type,
chapters,
isOngoing,
isUserScored,
coverUri,
bannerUri
)
} catch (e: Exception) {
Logger.log("Error loading media.json: ${e.message}")
Logger.log(e)
Injekt.get<CrashlyticsInterface>().logException(e)
return OfflineAnimeModel(
"unknown",
"0",
"??",
"??",
"??",
"movie",
"hmm",
isOngoing = false,
isUserScored = false,
null,
null
)
}
}
}
interface OfflineAnimeSearchListener {
fun onSearchQuery(query: String)
}

View File

@@ -0,0 +1,17 @@
package ani.dantotsu.download.anime
import android.net.Uri
data class OfflineAnimeModel(
val title: String,
val score: String,
val totalEpisode: String,
val totalEpisodeList: String,
val watchedEpisode: String,
val type: String,
val episodes: String,
val isOngoing: Boolean,
val isUserScored: Boolean,
val image: Uri?,
val banner: Uri?,
)

View File

@@ -0,0 +1,434 @@
package ani.dantotsu.download.manga
import android.Manifest
import android.app.Service
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.content.pm.PackageManager
import android.content.pm.ServiceInfo
import android.graphics.Bitmap
import android.os.Build
import android.os.IBinder
import android.widget.Toast
import androidx.core.app.ActivityCompat
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManagerCompat
import androidx.core.content.ContextCompat
import androidx.documentfile.provider.DocumentFile
import ani.dantotsu.R
import ani.dantotsu.connections.crashlytics.CrashlyticsInterface
import ani.dantotsu.download.DownloadedType
import ani.dantotsu.download.DownloadsManager
import ani.dantotsu.download.DownloadsManager.Companion.getSubDirectory
import ani.dantotsu.media.Media
import ani.dantotsu.media.MediaType
import ani.dantotsu.media.manga.ImageData
import ani.dantotsu.media.manga.MangaReadFragment.Companion.ACTION_DOWNLOAD_FAILED
import ani.dantotsu.media.manga.MangaReadFragment.Companion.ACTION_DOWNLOAD_FINISHED
import ani.dantotsu.media.manga.MangaReadFragment.Companion.ACTION_DOWNLOAD_PROGRESS
import ani.dantotsu.media.manga.MangaReadFragment.Companion.ACTION_DOWNLOAD_STARTED
import ani.dantotsu.media.manga.MangaReadFragment.Companion.EXTRA_CHAPTER_NUMBER
import ani.dantotsu.snackString
import ani.dantotsu.util.Logger
import com.anggrayudi.storage.file.deleteRecursively
import com.anggrayudi.storage.file.forceDelete
import com.anggrayudi.storage.file.openOutputStream
import com.google.gson.GsonBuilder
import com.google.gson.InstanceCreator
import eu.kanade.tachiyomi.data.notification.Notifications.CHANNEL_DOWNLOADER_PROGRESS
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SChapterImpl
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Deferred
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.async
import kotlinx.coroutines.awaitAll
import kotlinx.coroutines.launch
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import kotlinx.coroutines.withContext
import tachiyomi.core.util.lang.launchIO
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import java.net.HttpURLConnection
import java.net.URL
import java.util.Queue
import java.util.concurrent.ConcurrentLinkedQueue
class MangaDownloaderService : Service() {
private lateinit var notificationManager: NotificationManagerCompat
private lateinit var builder: NotificationCompat.Builder
private val downloadsManager: DownloadsManager = Injekt.get<DownloadsManager>()
private val downloadJobs = mutableMapOf<String, Job>()
private val mutex = Mutex()
private var isCurrentlyProcessing = false
override fun onBind(intent: Intent?): IBinder? {
// This is only required for bound services.
return null
}
override fun onCreate() {
super.onCreate()
notificationManager = NotificationManagerCompat.from(this)
builder = NotificationCompat.Builder(this, CHANNEL_DOWNLOADER_PROGRESS).apply {
setContentTitle("Manga Download Progress")
setSmallIcon(R.drawable.ic_download_24)
priority = NotificationCompat.PRIORITY_DEFAULT
setOnlyAlertOnce(true)
setProgress(0, 0, false)
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
startForeground(
NOTIFICATION_ID,
builder.build(),
ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC
)
} else {
startForeground(NOTIFICATION_ID, builder.build())
}
ContextCompat.registerReceiver(
this,
cancelReceiver,
IntentFilter(ACTION_CANCEL_DOWNLOAD),
ContextCompat.RECEIVER_EXPORTED
)
}
override fun onDestroy() {
super.onDestroy()
MangaServiceDataSingleton.downloadQueue.clear()
downloadJobs.clear()
MangaServiceDataSingleton.isServiceRunning = false
unregisterReceiver(cancelReceiver)
}
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
snackString("Download started")
val serviceScope = CoroutineScope(SupervisorJob() + Dispatchers.Default)
serviceScope.launch {
mutex.withLock {
if (!isCurrentlyProcessing) {
isCurrentlyProcessing = true
processQueue()
isCurrentlyProcessing = false
}
}
}
return START_NOT_STICKY
}
private fun processQueue() {
CoroutineScope(Dispatchers.Default).launch {
while (MangaServiceDataSingleton.downloadQueue.isNotEmpty()) {
val task = MangaServiceDataSingleton.downloadQueue.poll()
if (task != null) {
val job = launch { download(task) }
mutex.withLock {
downloadJobs[task.chapter] = job
}
job.join() // Wait for the job to complete before continuing to the next task
mutex.withLock {
downloadJobs.remove(task.chapter)
}
updateNotification() // Update the notification after each task is completed
}
if (MangaServiceDataSingleton.downloadQueue.isEmpty()) {
withContext(Dispatchers.Main) {
stopSelf() // Stop the service when the queue is empty
}
}
}
}
}
fun cancelDownload(chapter: String) {
CoroutineScope(Dispatchers.Default).launch {
mutex.withLock {
downloadJobs[chapter]?.cancel()
downloadJobs.remove(chapter)
MangaServiceDataSingleton.downloadQueue.removeAll { it.chapter == chapter }
updateNotification() // Update the notification after cancellation
}
}
}
private fun updateNotification() {
// Update the notification to reflect the current state of the queue
val pendingDownloads = MangaServiceDataSingleton.downloadQueue.size
val text = if (pendingDownloads > 0) {
"Pending downloads: $pendingDownloads"
} else {
"All downloads completed"
}
builder.setContentText(text)
if (ActivityCompat.checkSelfPermission(
this,
Manifest.permission.POST_NOTIFICATIONS
) != PackageManager.PERMISSION_GRANTED
) {
return
}
notificationManager.notify(NOTIFICATION_ID, builder.build())
}
suspend fun download(task: DownloadTask) {
try {
withContext(Dispatchers.Main) {
val notifi = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
ContextCompat.checkSelfPermission(
this@MangaDownloaderService,
Manifest.permission.POST_NOTIFICATIONS
) == PackageManager.PERMISSION_GRANTED
} else {
true
}
val deferredMap = mutableMapOf<Int, Deferred<Bitmap?>>()
builder.setContentText("Downloading ${task.title} - ${task.chapter}")
if (notifi) {
notificationManager.notify(NOTIFICATION_ID, builder.build())
}
getSubDirectory(
this@MangaDownloaderService,
MediaType.MANGA,
false,
task.title,
task.chapter
)?.deleteRecursively(this@MangaDownloaderService)
// Loop through each ImageData object from the task
var farthest = 0
for ((index, image) in task.imageData.withIndex()) {
if (deferredMap.size >= task.simultaneousDownloads) {
deferredMap.values.awaitAll()
deferredMap.clear()
}
deferredMap[index] = async(Dispatchers.IO) {
var bitmap: Bitmap? = null
var retryCount = 0
while (bitmap == null && retryCount < task.retries) {
bitmap = image.fetchAndProcessImage(
image.page,
image.source
)
retryCount++
}
if (bitmap != null) {
saveToDisk("$index.jpg", bitmap, task.title, task.chapter)
}
farthest++
builder.setProgress(task.imageData.size, farthest, false)
broadcastDownloadProgress(
task.chapter,
farthest * 100 / task.imageData.size
)
if (notifi) {
notificationManager.notify(NOTIFICATION_ID, builder.build())
}
bitmap
}
}
// Wait for any remaining deferred to complete
deferredMap.values.awaitAll()
builder.setContentText("${task.title} - ${task.chapter} Download complete")
.setProgress(0, 0, false)
notificationManager.notify(NOTIFICATION_ID, builder.build())
saveMediaInfo(task)
downloadsManager.addDownload(
DownloadedType(
task.title,
task.chapter,
MediaType.MANGA
)
)
broadcastDownloadFinished(task.chapter)
snackString("${task.title} - ${task.chapter} Download finished")
}
} catch (e: Exception) {
Logger.log("Exception while downloading file: ${e.message}")
snackString("Exception while downloading file: ${e.message}")
Injekt.get<CrashlyticsInterface>().logException(e)
broadcastDownloadFailed(task.chapter)
}
}
private fun saveToDisk(fileName: String, bitmap: Bitmap, title: String, chapter: String) {
try {
// Define the directory within the private external storage space
val directory = getSubDirectory(this, MediaType.MANGA, false, title, chapter)
?: throw Exception("Directory not found")
directory.findFile(fileName)?.forceDelete(this)
// Create a file reference within that directory for the image
val file =
directory.createFile("image/jpeg", fileName) ?: throw Exception("File not created")
// Use a FileOutputStream to write the bitmap to the file
file.openOutputStream(this, false).use { outputStream ->
if (outputStream == null) throw Exception("Output stream is null")
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream)
}
} catch (e: Exception) {
println("Exception while saving image: ${e.message}")
snackString("Exception while saving image: ${e.message}")
Injekt.get<CrashlyticsInterface>().logException(e)
}
}
@OptIn(DelicateCoroutinesApi::class)
private fun saveMediaInfo(task: DownloadTask) {
launchIO {
val directory =
getSubDirectory(this@MangaDownloaderService, MediaType.MANGA, false, task.title)
?: throw Exception("Directory not found")
directory.findFile("media.json")?.forceDelete(this@MangaDownloaderService)
val file = directory.createFile("application/json", "media.json")
?: throw Exception("File not created")
val gson = GsonBuilder()
.registerTypeAdapter(SChapter::class.java, InstanceCreator<SChapter> {
SChapterImpl() // Provide an instance of SChapterImpl
})
.create()
val mediaJson = gson.toJson(task.sourceMedia)
val media = gson.fromJson(mediaJson, Media::class.java)
if (media != null) {
media.cover = media.cover?.let { downloadImage(it, directory, "cover.jpg") }
media.banner = media.banner?.let { downloadImage(it, directory, "banner.jpg") }
val jsonString = gson.toJson(media)
withContext(Dispatchers.Main) {
try {
file.openOutputStream(this@MangaDownloaderService, false).use { output ->
if (output == null) throw Exception("Output stream is null")
output.write(jsonString.toByteArray())
}
} catch (e: android.system.ErrnoException) {
e.printStackTrace()
Toast.makeText(
this@MangaDownloaderService,
"Error while saving: ${e.localizedMessage}",
Toast.LENGTH_LONG
).show()
}
}
}
}
}
private suspend fun downloadImage(url: String, directory: DocumentFile, name: String): String? =
withContext(Dispatchers.IO) {
var connection: HttpURLConnection? = null
println("Downloading url $url")
try {
connection = URL(url).openConnection() as HttpURLConnection
connection.connect()
if (connection.responseCode != HttpURLConnection.HTTP_OK) {
throw Exception("Server returned HTTP ${connection.responseCode} ${connection.responseMessage}")
}
directory.findFile(name)?.forceDelete(this@MangaDownloaderService)
val file =
directory.createFile("image/jpeg", name) ?: throw Exception("File not created")
file.openOutputStream(this@MangaDownloaderService, false).use { output ->
if (output == null) throw Exception("Output stream is null")
connection.inputStream.use { input ->
input.copyTo(output)
}
}
return@withContext file.uri.toString()
} catch (e: Exception) {
e.printStackTrace()
withContext(Dispatchers.Main) {
Toast.makeText(
this@MangaDownloaderService,
"Exception while saving ${name}: ${e.message}",
Toast.LENGTH_LONG
).show()
}
null
} finally {
connection?.disconnect()
}
}
private fun broadcastDownloadStarted(chapterNumber: String) {
val intent = Intent(ACTION_DOWNLOAD_STARTED).apply {
putExtra(EXTRA_CHAPTER_NUMBER, chapterNumber)
}
sendBroadcast(intent)
}
private fun broadcastDownloadFinished(chapterNumber: String) {
val intent = Intent(ACTION_DOWNLOAD_FINISHED).apply {
putExtra(EXTRA_CHAPTER_NUMBER, chapterNumber)
}
sendBroadcast(intent)
}
private fun broadcastDownloadFailed(chapterNumber: String) {
val intent = Intent(ACTION_DOWNLOAD_FAILED).apply {
putExtra(EXTRA_CHAPTER_NUMBER, chapterNumber)
}
sendBroadcast(intent)
}
private fun broadcastDownloadProgress(chapterNumber: String, progress: Int) {
val intent = Intent(ACTION_DOWNLOAD_PROGRESS).apply {
putExtra(EXTRA_CHAPTER_NUMBER, chapterNumber)
putExtra("progress", progress)
}
sendBroadcast(intent)
}
private val cancelReceiver = object : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
if (intent.action == ACTION_CANCEL_DOWNLOAD) {
val chapter = intent.getStringExtra(EXTRA_CHAPTER)
chapter?.let {
cancelDownload(it)
}
}
}
}
data class DownloadTask(
val title: String,
val chapter: String,
val imageData: List<ImageData>,
val sourceMedia: Media? = null,
val retries: Int = 2,
val simultaneousDownloads: Int = 2,
)
companion object {
private const val NOTIFICATION_ID = 1103
const val ACTION_CANCEL_DOWNLOAD = "action_cancel_download"
const val EXTRA_CHAPTER = "extra_chapter"
}
}
object MangaServiceDataSingleton {
var imageData: List<ImageData> = listOf()
var sourceMedia: Media? = null
var downloadQueue: Queue<MangaDownloaderService.DownloadTask> = ConcurrentLinkedQueue()
@Volatile
var isServiceRunning: Boolean = false
}

View File

@@ -0,0 +1,108 @@
package ani.dantotsu.download.manga
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import androidx.cardview.widget.CardView
import ani.dantotsu.R
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
class OfflineMangaAdapter(
private val context: Context,
private var items: List<OfflineMangaModel>,
private val searchListener: OfflineMangaSearchListener
) : BaseAdapter() {
private val inflater: LayoutInflater =
context.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater
private var originalItems: List<OfflineMangaModel> = items
private var style: Int = PrefManager.getVal(PrefName.OfflineView)
override fun getCount(): Int {
return items.size
}
override fun getItem(position: Int): Any {
return items[position]
}
override fun getItemId(position: Int): Long {
return position.toLong()
}
override fun getView(position: Int, convertView: View?, parent: ViewGroup?): View {
val view: View = convertView ?: when (style) {
0 -> inflater.inflate(R.layout.item_media_large, parent, false) // large view
1 -> inflater.inflate(R.layout.item_media_compact, parent, false) // compact view
else -> inflater.inflate(R.layout.item_media_compact, parent, false) // compact view
}
val item = getItem(position) as OfflineMangaModel
val imageView = view.findViewById<ImageView>(R.id.itemCompactImage)
val titleTextView = view.findViewById<TextView>(R.id.itemCompactTitle)
val itemScore = view.findViewById<TextView>(R.id.itemCompactScore)
val ongoing = view.findViewById<CardView>(R.id.itemCompactOngoing)
val totalChapter = view.findViewById<TextView>(R.id.itemCompactTotal)
val typeImage = view.findViewById<ImageView>(R.id.itemCompactTypeImage)
val type = view.findViewById<TextView>(R.id.itemCompactRelation)
val typeView = view.findViewById<LinearLayout>(R.id.itemCompactType)
if (style == 0) {
val bannerView = view.findViewById<ImageView>(R.id.itemCompactBanner) // for large view
val chapters = view.findViewById<TextView>(R.id.itemTotal)
chapters.text = context.getString(R.string.chapters)
bannerView.setImageURI(item.banner ?: item.image)
totalChapter.text = item.totalChapter
} else if (style == 1) {
val readChapter =
view.findViewById<TextView>(R.id.itemCompactUserProgress) // for compact view
readChapter.text = item.readChapter
totalChapter.text = context.getString(R.string.total_divider, item.totalChapter)
}
// Bind item data to the views
typeImage.setImageResource(if (item.type == "Novel") R.drawable.ic_round_book_24 else R.drawable.ic_round_import_contacts_24)
type.text = item.type
typeView.visibility = View.VISIBLE
imageView.setImageURI(item.image)
titleTextView.text = item.title
itemScore.text = item.score
if (item.isOngoing) {
ongoing.visibility = View.VISIBLE
} else {
ongoing.visibility = View.GONE
}
return view
}
fun onSearchQuery(query: String) {
// Implement the filtering logic here, for example:
items = if (query.isEmpty()) {
// Return the original list if the query is empty
originalItems
} else {
// Filter the list based on the query
originalItems.filter { it.title.contains(query, ignoreCase = true) }
}
notifyDataSetChanged() // Notify the adapter that the data set has changed
}
fun setItems(items: List<OfflineMangaModel>) {
this.items = items
this.originalItems = items
notifyDataSetChanged()
}
fun notifyNewGrid() {
style = PrefManager.getVal(PrefName.OfflineView)
notifyDataSetChanged()
}
}

View File

@@ -0,0 +1,400 @@
package ani.dantotsu.download.manga
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.AlphaAnimation
import android.view.animation.LayoutAnimationController
import android.widget.AbsListView
import android.widget.AutoCompleteTextView
import android.widget.GridView
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.cardview.widget.CardView
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible
import androidx.core.view.marginBottom
import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecycleScope
import ani.dantotsu.R
import ani.dantotsu.bottomBar
import ani.dantotsu.connections.crashlytics.CrashlyticsInterface
import ani.dantotsu.currActivity
import ani.dantotsu.currContext
import ani.dantotsu.download.DownloadedType
import ani.dantotsu.download.DownloadsManager
import ani.dantotsu.download.DownloadsManager.Companion.compareName
import ani.dantotsu.download.DownloadsManager.Companion.getSubDirectory
import ani.dantotsu.initActivity
import ani.dantotsu.media.Media
import ani.dantotsu.media.MediaDetailsActivity
import ani.dantotsu.media.MediaType
import ani.dantotsu.navBarHeight
import ani.dantotsu.setSafeOnClickListener
import ani.dantotsu.settings.SettingsDialogFragment
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.snackString
import ani.dantotsu.util.Logger
import com.anggrayudi.storage.file.openInputStream
import com.google.android.material.card.MaterialCardView
import com.google.android.material.imageview.ShapeableImageView
import com.google.android.material.textfield.TextInputLayout
import com.google.gson.GsonBuilder
import com.google.gson.InstanceCreator
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SChapterImpl
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
class OfflineMangaFragment : Fragment(), OfflineMangaSearchListener {
private val downloadManager = Injekt.get<DownloadsManager>()
private var downloads: List<OfflineMangaModel> = listOf()
private lateinit var gridView: GridView
private lateinit var adapter: OfflineMangaAdapter
private lateinit var total: TextView
private var downloadsJob: Job = Job()
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
val view = inflater.inflate(R.layout.fragment_offline_page, container, false)
val textInputLayout = view.findViewById<TextInputLayout>(R.id.offlineMangaSearchBar)
textInputLayout.hint = "Manga"
val currentColor = textInputLayout.boxBackgroundColor
val semiTransparentColor = (currentColor and 0x00FFFFFF) or 0xA8000000.toInt()
textInputLayout.boxBackgroundColor = semiTransparentColor
val materialCardView = view.findViewById<MaterialCardView>(R.id.offlineMangaAvatarContainer)
materialCardView.setCardBackgroundColor(semiTransparentColor)
val typedValue = TypedValue()
requireContext().theme?.resolveAttribute(android.R.attr.windowBackground, typedValue, true)
val color = typedValue.data
val animeUserAvatar = view.findViewById<ShapeableImageView>(R.id.offlineMangaUserAvatar)
animeUserAvatar.setSafeOnClickListener {
val dialogFragment =
SettingsDialogFragment.newInstance(SettingsDialogFragment.Companion.PageType.OfflineMANGA)
dialogFragment.show((it.context as AppCompatActivity).supportFragmentManager, "dialog")
}
if (!(PrefManager.getVal(PrefName.ImmersiveMode) as Boolean)) {
view.rootView.fitsSystemWindows = true
}
textInputLayout.boxBackgroundColor = (color and 0x00FFFFFF) or 0x28000000
materialCardView.setCardBackgroundColor((color and 0x00FFFFFF) or 0x28000000)
val searchView = view.findViewById<AutoCompleteTextView>(R.id.animeSearchBarText)
searchView.addTextChangedListener(object : TextWatcher {
override fun afterTextChanged(s: Editable?) {
}
override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) {
}
override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {
onSearchQuery(s.toString())
}
})
var style: Int = PrefManager.getVal(PrefName.OfflineView)
val layoutList = view.findViewById<ImageView>(R.id.downloadedList)
val layoutcompact = view.findViewById<ImageView>(R.id.downloadedGrid)
var selected = when (style) {
0 -> layoutList
1 -> layoutcompact
else -> layoutList
}
selected.alpha = 1f
fun selected(it: ImageView) {
selected.alpha = 0.33f
selected = it
selected.alpha = 1f
}
layoutList.setOnClickListener {
selected(it as ImageView)
style = 0
PrefManager.setVal(PrefName.OfflineView, style)
gridView.visibility = View.GONE
gridView = view.findViewById(R.id.gridView)
adapter.notifyNewGrid()
grid()
}
layoutcompact.setOnClickListener {
selected(it as ImageView)
style = 1
PrefManager.setVal(PrefName.OfflineView, style)
gridView.visibility = View.GONE
gridView = view.findViewById(R.id.gridView1)
adapter.notifyNewGrid()
grid()
}
gridView =
if (style == 0) view.findViewById(R.id.gridView) else view.findViewById(R.id.gridView1)
total = view.findViewById(R.id.total)
grid()
return view
}
private fun grid() {
gridView.visibility = View.VISIBLE
val fadeIn = AlphaAnimation(0f, 1f)
fadeIn.duration = 300 // animations pog
gridView.layoutAnimation = LayoutAnimationController(fadeIn)
adapter = OfflineMangaAdapter(requireContext(), downloads, this)
getDownloads()
gridView.adapter = adapter
gridView.scheduleLayoutAnimation()
total.text =
if (gridView.count > 0) "Manga and Novels (${gridView.count})" else "Empty List"
gridView.setOnItemClickListener { _, _, position, _ ->
// Get the OfflineMangaModel that was clicked
val item = adapter.getItem(position) as OfflineMangaModel
val media =
downloadManager.mangaDownloadedTypes.firstOrNull { it.title.compareName(item.title) }
?: downloadManager.novelDownloadedTypes.firstOrNull { it.title.compareName(item.title) }
media?.let {
lifecycleScope.launch {
ContextCompat.startActivity(
requireActivity(),
Intent(requireContext(), MediaDetailsActivity::class.java)
.putExtra("media", getMedia(it))
.putExtra("download", true),
null
)
}
} ?: run {
snackString("no media found")
}
}
gridView.setOnItemLongClickListener { _, _, position, _ ->
// Get the OfflineMangaModel that was clicked
val item = adapter.getItem(position) as OfflineMangaModel
val type: MediaType =
if (downloadManager.mangaDownloadedTypes.any { it.title == item.title }) {
MediaType.MANGA
} else {
MediaType.NOVEL
}
// Alert dialog to confirm deletion
val builder =
androidx.appcompat.app.AlertDialog.Builder(requireContext(), R.style.MyPopup)
builder.setTitle("Delete ${item.title}?")
builder.setMessage("Are you sure you want to delete ${item.title}?")
builder.setPositiveButton("Yes") { _, _ ->
downloadManager.removeMedia(item.title, type)
getDownloads()
}
builder.setNegativeButton("No") { _, _ ->
// Do nothing
}
val dialog = builder.show()
dialog.window?.setDimAmount(0.8f)
true
}
}
override fun onSearchQuery(query: String) {
adapter.onSearchQuery(query)
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
initActivity(requireActivity())
val scrollTop = view.findViewById<CardView>(R.id.mangaPageScrollTop)
scrollTop.setOnClickListener {
gridView.smoothScrollToPositionFromTop(0, 0)
}
// Assuming 'scrollTop' is a view that you want to hide/show
scrollTop.visibility = View.GONE
gridView.setOnScrollListener(object : AbsListView.OnScrollListener {
override fun onScrollStateChanged(view: AbsListView, scrollState: Int) {
}
override fun onScroll(
view: AbsListView,
firstVisibleItem: Int,
visibleItemCount: Int,
totalItemCount: Int
) {
val first = view.getChildAt(0)
val visibility = first != null && first.top < 0
scrollTop.isVisible = visibility
scrollTop.translationY =
-(navBarHeight + bottomBar.height + bottomBar.marginBottom).toFloat()
}
})
}
override fun onResume() {
super.onResume()
getDownloads()
}
override fun onPause() {
super.onPause()
downloads = listOf()
}
override fun onDestroy() {
super.onDestroy()
downloads = listOf()
}
override fun onStop() {
super.onStop()
downloads = listOf()
}
private fun getDownloads() {
downloads = listOf()
if (downloadsJob.isActive) {
downloadsJob.cancel()
}
downloads = listOf()
downloadsJob = Job()
CoroutineScope(Dispatchers.IO + downloadsJob).launch {
val mangaTitles = downloadManager.mangaDownloadedTypes.map { it.title }.distinct()
val newMangaDownloads = mutableListOf<OfflineMangaModel>()
for (title in mangaTitles) {
val tDownloads = downloadManager.mangaDownloadedTypes.filter { it.title == title }
val download = tDownloads.first()
val offlineMangaModel = loadOfflineMangaModel(download)
newMangaDownloads += offlineMangaModel
}
downloads = newMangaDownloads
val novelTitles = downloadManager.novelDownloadedTypes.map { it.title }.distinct()
val newNovelDownloads = mutableListOf<OfflineMangaModel>()
for (title in novelTitles) {
val tDownloads = downloadManager.novelDownloadedTypes.filter { it.title == title }
val download = tDownloads.first()
val offlineMangaModel = loadOfflineMangaModel(download)
newNovelDownloads += offlineMangaModel
}
downloads += newNovelDownloads
withContext(Dispatchers.Main) {
adapter.setItems(downloads)
total.text =
if (gridView.count > 0) "Manga and Novels (${gridView.count})" else "Empty List"
adapter.notifyDataSetChanged()
}
}
}
/**
* Load media.json file from the directory and convert it to Media class
* @param downloadedType DownloadedType object
* @return Media object
*/
private suspend fun getMedia(downloadedType: DownloadedType): Media? {
return try {
val directory = getSubDirectory(
context ?: currContext()!!, downloadedType.type,
false, downloadedType.title
)
val gson = GsonBuilder()
.registerTypeAdapter(SChapter::class.java, InstanceCreator<SChapter> {
SChapterImpl() // Provide an instance of SChapterImpl
})
.create()
val media = directory?.findFile("media.json")
?: return null
val mediaJson =
media.openInputStream(context ?: currContext()!!)?.bufferedReader().use {
it?.readText()
}
gson.fromJson(mediaJson, Media::class.java)
} catch (e: Exception) {
Logger.log("Error loading media.json: ${e.message}")
Logger.log(e)
Injekt.get<CrashlyticsInterface>().logException(e)
null
}
}
private suspend fun loadOfflineMangaModel(downloadedType: DownloadedType): OfflineMangaModel {
val type = downloadedType.type.asText()
//load media.json and convert to media class with gson
try {
val directory = getSubDirectory(
context ?: currContext()!!, downloadedType.type,
false, downloadedType.title
)
val mediaModel = getMedia(downloadedType)!!
val cover = directory?.findFile("cover.jpg")
val coverUri: Uri? = if (cover?.exists() == true) {
cover.uri
} else null
val banner = directory?.findFile("banner.jpg")
val bannerUri: Uri? = if (banner?.exists() == true) {
banner.uri
} else null
val title = mediaModel.mainName()
val score = ((if (mediaModel.userScore == 0) (mediaModel.meanScore
?: 0) else mediaModel.userScore) / 10.0).toString()
val isOngoing =
mediaModel.status == currActivity()!!.getString(R.string.status_releasing)
val isUserScored = mediaModel.userScore != 0
val readChapter = (mediaModel.userProgress ?: "~").toString()
val totalChapter = "${mediaModel.manga?.totalChapters ?: "??"}"
val chapters = " Chapters"
return OfflineMangaModel(
title,
score,
totalChapter,
readChapter,
type,
chapters,
isOngoing,
isUserScored,
coverUri,
bannerUri
)
} catch (e: Exception) {
Logger.log("Error loading media.json: ${e.message}")
Logger.log(e)
Injekt.get<CrashlyticsInterface>().logException(e)
return OfflineMangaModel(
"unknown",
"0",
"??",
"??",
"movie",
"hmm",
isOngoing = false,
isUserScored = false,
null,
null
)
}
}
}
interface OfflineMangaSearchListener {
fun onSearchQuery(query: String)
}

View File

@@ -0,0 +1,16 @@
package ani.dantotsu.download.manga
import android.net.Uri
data class OfflineMangaModel(
val title: String,
val score: String,
val totalChapter: String,
val readChapter: String,
val type: String,
val chapters: String,
val isOngoing: Boolean,
val isUserScored: Boolean,
val image: Uri?,
val banner: Uri?
)

View File

@@ -0,0 +1,501 @@
package ani.dantotsu.download.novel
import android.Manifest
import android.app.Service
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.content.pm.PackageManager
import android.content.pm.ServiceInfo
import android.os.Build
import android.os.IBinder
import android.widget.Toast
import androidx.core.app.ActivityCompat
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManagerCompat
import androidx.core.content.ContextCompat
import androidx.documentfile.provider.DocumentFile
import ani.dantotsu.R
import ani.dantotsu.connections.crashlytics.CrashlyticsInterface
import ani.dantotsu.download.DownloadedType
import ani.dantotsu.download.DownloadsManager
import ani.dantotsu.download.DownloadsManager.Companion.getSubDirectory
import ani.dantotsu.media.Media
import ani.dantotsu.media.MediaType
import ani.dantotsu.media.novel.NovelReadFragment
import ani.dantotsu.snackString
import ani.dantotsu.util.Logger
import com.anggrayudi.storage.file.forceDelete
import com.anggrayudi.storage.file.openOutputStream
import com.google.gson.GsonBuilder
import com.google.gson.InstanceCreator
import eu.kanade.tachiyomi.data.notification.Notifications
import eu.kanade.tachiyomi.network.NetworkHelper
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SChapterImpl
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.launch
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import kotlinx.coroutines.withContext
import okhttp3.Request
import okio.buffer
import okio.sink
import tachiyomi.core.util.lang.launchIO
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import java.io.IOException
import java.net.HttpURLConnection
import java.net.URL
import java.util.Queue
import java.util.concurrent.ConcurrentLinkedQueue
class NovelDownloaderService : Service() {
private lateinit var notificationManager: NotificationManagerCompat
private lateinit var builder: NotificationCompat.Builder
private val downloadsManager: DownloadsManager = Injekt.get<DownloadsManager>()
private val downloadJobs = mutableMapOf<String, Job>()
private val mutex = Mutex()
private var isCurrentlyProcessing = false
private val networkHelper = Injekt.get<NetworkHelper>()
override fun onBind(intent: Intent?): IBinder? {
// This is only required for bound services.
return null
}
override fun onCreate() {
super.onCreate()
notificationManager = NotificationManagerCompat.from(this)
builder =
NotificationCompat.Builder(this, Notifications.CHANNEL_DOWNLOADER_PROGRESS).apply {
setContentTitle("Novel Download Progress")
setSmallIcon(R.drawable.ic_download_24)
priority = NotificationCompat.PRIORITY_DEFAULT
setOnlyAlertOnce(true)
setProgress(0, 0, false)
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
startForeground(
NOTIFICATION_ID,
builder.build(),
ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC
)
} else {
startForeground(NOTIFICATION_ID, builder.build())
}
ContextCompat.registerReceiver(
this,
cancelReceiver,
IntentFilter(ACTION_CANCEL_DOWNLOAD),
ContextCompat.RECEIVER_EXPORTED
)
}
override fun onDestroy() {
super.onDestroy()
NovelServiceDataSingleton.downloadQueue.clear()
downloadJobs.clear()
NovelServiceDataSingleton.isServiceRunning = false
unregisterReceiver(cancelReceiver)
}
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
snackString("Download started")
val serviceScope = CoroutineScope(SupervisorJob() + Dispatchers.Default)
serviceScope.launch {
mutex.withLock {
if (!isCurrentlyProcessing) {
isCurrentlyProcessing = true
processQueue()
isCurrentlyProcessing = false
}
}
}
return START_NOT_STICKY
}
private fun processQueue() {
CoroutineScope(Dispatchers.Default).launch {
while (NovelServiceDataSingleton.downloadQueue.isNotEmpty()) {
val task = NovelServiceDataSingleton.downloadQueue.poll()
if (task != null) {
val job = launch { download(task) }
mutex.withLock {
downloadJobs[task.chapter] = job
}
job.join() // Wait for the job to complete before continuing to the next task
mutex.withLock {
downloadJobs.remove(task.chapter)
}
updateNotification() // Update the notification after each task is completed
}
if (NovelServiceDataSingleton.downloadQueue.isEmpty()) {
withContext(Dispatchers.Main) {
stopSelf() // Stop the service when the queue is empty
}
}
}
}
}
fun cancelDownload(chapter: String) {
CoroutineScope(Dispatchers.Default).launch {
mutex.withLock {
downloadJobs[chapter]?.cancel()
downloadJobs.remove(chapter)
NovelServiceDataSingleton.downloadQueue.removeAll { it.chapter == chapter }
updateNotification() // Update the notification after cancellation
}
}
}
private fun updateNotification() {
// Update the notification to reflect the current state of the queue
val pendingDownloads = NovelServiceDataSingleton.downloadQueue.size
val text = if (pendingDownloads > 0) {
"Pending downloads: $pendingDownloads"
} else {
"All downloads completed"
}
builder.setContentText(text)
if (ActivityCompat.checkSelfPermission(
this,
Manifest.permission.POST_NOTIFICATIONS
) != PackageManager.PERMISSION_GRANTED
) {
return
}
notificationManager.notify(NOTIFICATION_ID, builder.build())
}
private suspend fun isEpubFile(urlString: String): Boolean {
return withContext(Dispatchers.IO) {
try {
val request = Request.Builder()
.url(urlString)
.head()
.build()
networkHelper.client.newCall(request).execute().use { response ->
val contentType = response.header("Content-Type")
val contentDisposition = response.header("Content-Disposition")
Logger.log("Content-Type: $contentType")
Logger.log("Content-Disposition: $contentDisposition")
// Return true if the Content-Type or Content-Disposition indicates an EPUB file
contentType == "application/epub+zip" ||
(contentDisposition?.contains(".epub") == true)
}
} catch (e: Exception) {
Logger.log("Error checking file type: ${e.message}")
false
}
}
}
private fun isAlreadyDownloaded(urlString: String): Boolean {
return urlString.contains("file://")
}
suspend fun download(task: DownloadTask) {
try {
withContext(Dispatchers.Main) {
val notifi = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
ContextCompat.checkSelfPermission(
this@NovelDownloaderService,
Manifest.permission.POST_NOTIFICATIONS
) == PackageManager.PERMISSION_GRANTED
} else {
true
}
broadcastDownloadStarted(task.originalLink)
if (notifi) {
builder.setContentText("Downloading ${task.title} - ${task.chapter}")
notificationManager.notify(NOTIFICATION_ID, builder.build())
}
if (!isEpubFile(task.downloadLink)) {
if (isAlreadyDownloaded(task.originalLink)) {
Logger.log("Already downloaded")
broadcastDownloadFinished(task.originalLink)
snackString("Already downloaded")
return@withContext
}
Logger.log("Download link is not an .epub file")
broadcastDownloadFailed(task.originalLink)
snackString("Download link is not an .epub file")
return@withContext
}
// Start the download
withContext(Dispatchers.IO) {
try {
val request = Request.Builder()
.url(task.downloadLink)
.build()
networkHelper.downloadClient.newCall(request).execute().use { response ->
// Ensure the response is successful and has a body
if (!response.isSuccessful) {
throw IOException("Failed to download file: ${response.message}")
}
val directory = getSubDirectory(
this@NovelDownloaderService,
MediaType.NOVEL,
false,
task.title,
task.chapter
) ?: throw Exception("Directory not found")
directory.findFile("0.epub")?.forceDelete(this@NovelDownloaderService)
val file = directory.createFile("application/epub+zip", "0.epub")
?: throw Exception("File not created")
//download cover
task.coverUrl?.let {
file.parentFile?.let { it1 -> downloadImage(it, it1, "cover.jpg") }
}
val outputStream =
this@NovelDownloaderService.contentResolver.openOutputStream(file.uri)
?: throw Exception("Could not open OutputStream")
val sink = outputStream.sink().buffer()
val responseBody = response.body
val totalBytes = responseBody.contentLength()
var downloadedBytes = 0L
val notificationUpdateInterval = 1024 * 1024 // 1 MB
val broadcastUpdateInterval = 1024 * 256 // 256 KB
var lastNotificationUpdate = 0L
var lastBroadcastUpdate = 0L
responseBody.source().use { source ->
while (true) {
val read = source.read(sink.buffer, 8192)
if (read == -1L) break
downloadedBytes += read
sink.emit()
// Update progress at intervals
if (downloadedBytes - lastNotificationUpdate >= notificationUpdateInterval) {
withContext(Dispatchers.Main) {
val progress =
(downloadedBytes * 100 / totalBytes).toInt()
builder.setProgress(100, progress, false)
if (notifi) {
notificationManager.notify(
NOTIFICATION_ID,
builder.build()
)
}
}
lastNotificationUpdate = downloadedBytes
}
if (downloadedBytes - lastBroadcastUpdate >= broadcastUpdateInterval) {
withContext(Dispatchers.Main) {
val progress =
(downloadedBytes * 100 / totalBytes).toInt()
Logger.log("Download progress: $progress")
broadcastDownloadProgress(task.originalLink, progress)
}
lastBroadcastUpdate = downloadedBytes
}
}
}
sink.close()
//if the file is smaller than 95% of totalBytes, it means the download was interrupted
if (file.length() < totalBytes * 0.95) {
throw IOException("Failed to download file: ${response.message}")
}
}
} catch (e: Exception) {
Logger.log("Exception while downloading .epub inside request: ${e.message}")
throw e
}
}
// Update notification for download completion
builder.setContentText("${task.title} - ${task.chapter} Download complete")
.setProgress(0, 0, false)
if (notifi) {
notificationManager.notify(NOTIFICATION_ID, builder.build())
}
saveMediaInfo(task)
downloadsManager.addDownload(
DownloadedType(
task.title,
task.chapter,
MediaType.NOVEL
)
)
broadcastDownloadFinished(task.originalLink)
snackString("${task.title} - ${task.chapter} Download finished")
}
} catch (e: Exception) {
Logger.log("Exception while downloading .epub: ${e.message}")
snackString("Exception while downloading .epub: ${e.message}")
Injekt.get<CrashlyticsInterface>().logException(e)
broadcastDownloadFailed(task.originalLink)
}
}
@OptIn(DelicateCoroutinesApi::class)
private fun saveMediaInfo(task: DownloadTask) {
launchIO {
val directory =
getSubDirectory(
this@NovelDownloaderService,
MediaType.NOVEL,
false,
task.title
) ?: throw Exception("Directory not found")
directory.findFile("media.json")?.forceDelete(this@NovelDownloaderService)
val file = directory.createFile("application/json", "media.json")
?: throw Exception("File not created")
val gson = GsonBuilder()
.registerTypeAdapter(SChapter::class.java, InstanceCreator<SChapter> {
SChapterImpl() // Provide an instance of SChapterImpl
})
.create()
val mediaJson = gson.toJson(task.sourceMedia)
val media = gson.fromJson(mediaJson, Media::class.java)
if (media != null) {
media.cover = media.cover?.let { downloadImage(it, directory, "cover.jpg") }
media.banner = media.banner?.let { downloadImage(it, directory, "banner.jpg") }
val jsonString = gson.toJson(media)
withContext(Dispatchers.Main) {
try {
file.openOutputStream(this@NovelDownloaderService, false).use { output ->
if (output == null) throw Exception("Output stream is null")
output.write(jsonString.toByteArray())
}
} catch (e: android.system.ErrnoException) {
e.printStackTrace()
Toast.makeText(
this@NovelDownloaderService,
"Error while saving: ${e.localizedMessage}",
Toast.LENGTH_LONG
).show()
}
}
}
}
}
private suspend fun downloadImage(url: String, directory: DocumentFile, name: String): String? =
withContext(
Dispatchers.IO
) {
var connection: HttpURLConnection? = null
Logger.log("Downloading url $url")
try {
connection = URL(url).openConnection() as HttpURLConnection
connection.connect()
if (connection.responseCode != HttpURLConnection.HTTP_OK) {
throw Exception("Server returned HTTP ${connection.responseCode} ${connection.responseMessage}")
}
directory.findFile(name)?.forceDelete(this@NovelDownloaderService)
val file =
directory.createFile("image/jpeg", name) ?: throw Exception("File not created")
file.openOutputStream(this@NovelDownloaderService, false).use { output ->
if (output == null) throw Exception("Output stream is null")
connection.inputStream.use { input ->
input.copyTo(output)
}
}
return@withContext file.uri.toString()
} catch (e: Exception) {
e.printStackTrace()
withContext(Dispatchers.Main) {
Toast.makeText(
this@NovelDownloaderService,
"Exception while saving ${name}: ${e.message}",
Toast.LENGTH_LONG
).show()
}
null
} finally {
connection?.disconnect()
}
}
private fun broadcastDownloadStarted(link: String) {
val intent = Intent(NovelReadFragment.ACTION_DOWNLOAD_STARTED).apply {
putExtra(NovelReadFragment.EXTRA_NOVEL_LINK, link)
}
sendBroadcast(intent)
}
private fun broadcastDownloadFinished(link: String) {
val intent = Intent(NovelReadFragment.ACTION_DOWNLOAD_FINISHED).apply {
putExtra(NovelReadFragment.EXTRA_NOVEL_LINK, link)
}
sendBroadcast(intent)
}
private fun broadcastDownloadFailed(link: String) {
val intent = Intent(NovelReadFragment.ACTION_DOWNLOAD_FAILED).apply {
putExtra(NovelReadFragment.EXTRA_NOVEL_LINK, link)
}
sendBroadcast(intent)
}
private fun broadcastDownloadProgress(link: String, progress: Int) {
val intent = Intent(NovelReadFragment.ACTION_DOWNLOAD_PROGRESS).apply {
putExtra(NovelReadFragment.EXTRA_NOVEL_LINK, link)
putExtra("progress", progress)
}
sendBroadcast(intent)
}
private val cancelReceiver = object : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
if (intent.action == ACTION_CANCEL_DOWNLOAD) {
val chapter = intent.getStringExtra(EXTRA_CHAPTER)
chapter?.let {
cancelDownload(it)
}
}
}
}
data class DownloadTask(
val title: String,
val chapter: String,
val downloadLink: String,
val originalLink: String,
val sourceMedia: Media? = null,
val coverUrl: String? = null,
val retries: Int = 2,
)
companion object {
private const val NOTIFICATION_ID = 1103
const val ACTION_CANCEL_DOWNLOAD = "action_cancel_download"
const val EXTRA_CHAPTER = "extra_chapter"
}
}
object NovelServiceDataSingleton {
var downloadQueue: Queue<NovelDownloaderService.DownloadTask> = ConcurrentLinkedQueue()
@Volatile
var isServiceRunning: Boolean = false
}

View File

@@ -1,151 +1,107 @@
package ani.dantotsu.download.video
import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.app.AlertDialog
import android.content.Context
import android.net.Uri
import androidx.media3.common.C
import androidx.media3.common.MediaItem
import androidx.media3.common.MimeTypes
import androidx.media3.common.TrackSelectionParameters
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Build
import androidx.annotation.OptIn
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import androidx.media3.common.util.UnstableApi
import androidx.media3.database.StandaloneDatabaseProvider
import androidx.media3.datasource.DataSource
import androidx.media3.datasource.HttpDataSource
import androidx.media3.datasource.cache.NoOpCacheEvictor
import androidx.media3.datasource.cache.SimpleCache
import androidx.media3.datasource.okhttp.OkHttpDataSource
import androidx.media3.exoplayer.DefaultRenderersFactory
import androidx.media3.exoplayer.offline.DownloadHelper
import androidx.media3.exoplayer.offline.DownloadManager
import androidx.media3.exoplayer.offline.DownloadService
import androidx.media3.exoplayer.scheduler.Requirements
import androidx.media3.ui.TrackSelectionDialogBuilder
import ani.dantotsu.R
import ani.dantotsu.defaultHeaders
import ani.dantotsu.logError
import ani.dantotsu.okHttpClient
import ani.dantotsu.download.DownloadedType
import ani.dantotsu.download.DownloadsManager
import ani.dantotsu.download.anime.AnimeDownloaderService
import ani.dantotsu.download.anime.AnimeServiceDataSingleton
import ani.dantotsu.media.Media
import ani.dantotsu.media.MediaType
import ani.dantotsu.parsers.Subtitle
import ani.dantotsu.parsers.SubtitleType
import ani.dantotsu.parsers.Video
import ani.dantotsu.parsers.VideoType
import java.io.File
import java.io.IOException
import java.util.concurrent.*
import ani.dantotsu.settings.saving.PrefManager
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
@SuppressLint("UnsafeOptInUsageError")
object Helper {
@SuppressLint("UnsafeOptInUsageError")
fun downloadVideo(context : Context, video: Video, subtitle: Subtitle?){
val dataSourceFactory = DataSource.Factory {
val dataSource: HttpDataSource = OkHttpDataSource.Factory(okHttpClient).createDataSource()
defaultHeaders.forEach {
dataSource.setRequestProperty(it.key, it.value)
}
video.file.headers.forEach {
dataSource.setRequestProperty(it.key, it.value)
}
dataSource
}
val mimeType = when (video.format) {
VideoType.M3U8 -> MimeTypes.APPLICATION_M3U8
VideoType.DASH -> MimeTypes.APPLICATION_MPD
else -> MimeTypes.APPLICATION_MP4
}
val builder = MediaItem.Builder().setUri(video.file.url).setMimeType(mimeType)
var sub: MediaItem.SubtitleConfiguration? = null
if (subtitle != null) {
sub = MediaItem.SubtitleConfiguration
.Builder(Uri.parse(subtitle.file.url))
.setSelectionFlags(C.SELECTION_FLAG_FORCED)
.setMimeType(
when (subtitle.type) {
SubtitleType.VTT -> MimeTypes.TEXT_VTT
SubtitleType.ASS -> MimeTypes.TEXT_SSA
SubtitleType.SRT -> MimeTypes.APPLICATION_SUBRIP
}
@OptIn(UnstableApi::class)
fun startAnimeDownloadService(
context: Context,
title: String,
episode: String,
video: Video,
subtitle: Subtitle? = null,
sourceMedia: Media? = null,
episodeImage: String? = null
) {
if (!isNotificationPermissionGranted(context)) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
ActivityCompat.requestPermissions(
context as Activity,
arrayOf(Manifest.permission.POST_NOTIFICATIONS),
1
)
.build()
}
}
if (sub != null) builder.setSubtitleConfigurations(mutableListOf(sub))
val mediaItem = builder.build()
val downloadHelper = DownloadHelper.forMediaItem(
context,
mediaItem,
DefaultRenderersFactory(context),
dataSourceFactory
val animeDownloadTask = AnimeDownloaderService.AnimeDownloadTask(
title,
episode,
video,
subtitle,
sourceMedia,
episodeImage
)
downloadHelper.prepare(object : DownloadHelper.Callback{
override fun onPrepared(helper: DownloadHelper) {
TrackSelectionDialogBuilder(context,"Select thingy",helper.getTracks(0).groups
) { _, overrides ->
val params = TrackSelectionParameters.Builder(context)
overrides.forEach{
params.addOverride(it.value)
}
helper.addTrackSelection(0, params.build())
MyDownloadService
DownloadService.sendAddDownload(
context,
MyDownloadService::class.java,
helper.getDownloadRequest(null),
false
)
}.apply {
setTheme(R.style.DialogTheme)
setTrackNameProvider {
if (it.frameRate > 0f) it.height.toString() + "p" else it.height.toString() + "p (fps : N/A)"
}
build().show()
}
}
override fun onPrepareError(helper: DownloadHelper, e: IOException) {
logError(e)
val downloadsManger = Injekt.get<DownloadsManager>()
val downloadCheck = downloadsManger
.queryDownload(title, episode, MediaType.ANIME)
if (downloadCheck) {
AlertDialog.Builder(context, R.style.MyPopup)
.setTitle("Download Exists")
.setMessage("A download for this episode already exists. Do you want to overwrite it?")
.setPositiveButton("Yes") { _, _ ->
PrefManager.getAnimeDownloadPreferences().edit()
.remove(animeDownloadTask.getTaskName())
.apply()
downloadsManger.removeDownload(
DownloadedType(
title,
episode,
MediaType.ANIME
)
) {
AnimeServiceDataSingleton.downloadQueue.offer(animeDownloadTask)
if (!AnimeServiceDataSingleton.isServiceRunning) {
val intent = Intent(context, AnimeDownloaderService::class.java)
ContextCompat.startForegroundService(context, intent)
AnimeServiceDataSingleton.isServiceRunning = true
}
}
}
.setNegativeButton("No") { _, _ -> }
.show()
} else {
AnimeServiceDataSingleton.downloadQueue.offer(animeDownloadTask)
if (!AnimeServiceDataSingleton.isServiceRunning) {
val intent = Intent(context, AnimeDownloaderService::class.java)
ContextCompat.startForegroundService(context, intent)
AnimeServiceDataSingleton.isServiceRunning = true
}
})
}
}
private var download: DownloadManager? = null
private const val DOWNLOAD_CONTENT_DIRECTORY = "downloads"
@Synchronized
@UnstableApi
fun downloadManager(context: Context): DownloadManager {
return download ?: let {
val database = StandaloneDatabaseProvider(context)
val downloadDirectory = File(getDownloadDirectory(context), DOWNLOAD_CONTENT_DIRECTORY)
val dataSourceFactory = DataSource.Factory {
val dataSource: HttpDataSource = OkHttpDataSource.Factory(okHttpClient).createDataSource()
defaultHeaders.forEach {
dataSource.setRequestProperty(it.key, it.value)
}
dataSource
}
DownloadManager(
private fun isNotificationPermissionGranted(context: Context): Boolean {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
return ActivityCompat.checkSelfPermission(
context,
database,
SimpleCache(downloadDirectory, NoOpCacheEvictor(), database),
dataSourceFactory,
Executor(Runnable::run)
).apply {
requirements = Requirements(Requirements.NETWORK or Requirements.DEVICE_STORAGE_NOT_LOW)
maxParallelDownloads = 3
}
Manifest.permission.POST_NOTIFICATIONS
) == PackageManager.PERMISSION_GRANTED
}
}
private var downloadDirectory: File? = null
@Synchronized
private fun getDownloadDirectory(context: Context): File {
if (downloadDirectory == null) {
downloadDirectory = context.getExternalFilesDir(null)
if (downloadDirectory == null) {
downloadDirectory = context.filesDir
}
}
return downloadDirectory!!
return true
}
}

View File

@@ -1,33 +0,0 @@
package ani.dantotsu.download.video
import android.app.Notification
import androidx.media3.common.util.UnstableApi
import androidx.media3.exoplayer.offline.Download
import androidx.media3.exoplayer.offline.DownloadManager
import androidx.media3.exoplayer.offline.DownloadNotificationHelper
import androidx.media3.exoplayer.offline.DownloadService
import androidx.media3.exoplayer.scheduler.PlatformScheduler
import androidx.media3.exoplayer.scheduler.Scheduler
import ani.dantotsu.R
@UnstableApi
class MyDownloadService : DownloadService(1, 1, "download_service", R.string.downloads, 0) {
companion object {
private const val JOB_ID = 1
private const val FOREGROUND_NOTIFICATION_ID = 1
}
override fun getDownloadManager(): DownloadManager = Helper.downloadManager(this)
override fun getScheduler(): Scheduler = PlatformScheduler(this, JOB_ID)
override fun getForegroundNotification(downloads: MutableList<Download>, notMetRequirements: Int): Notification =
DownloadNotificationHelper(this, "download_service").buildProgressNotification(
this,
R.drawable.monochrome,
null,
null,
downloads,
notMetRequirements
)
}

View File

@@ -27,13 +27,13 @@ import ani.dantotsu.connections.anilist.AnilistAnimeViewModel
import ani.dantotsu.connections.anilist.SearchResults
import ani.dantotsu.connections.anilist.getUserId
import ani.dantotsu.databinding.FragmentAnimeBinding
import ani.dantotsu.loadData
import ani.dantotsu.media.MediaAdaptor
import ani.dantotsu.media.ProgressAdapter
import ani.dantotsu.media.SearchActivity
import ani.dantotsu.navBarHeight
import ani.dantotsu.px
import ani.dantotsu.settings.UserInterfaceSettings
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.snackString
import ani.dantotsu.statusBarHeight
import kotlinx.coroutines.Dispatchers
@@ -47,8 +47,7 @@ import kotlin.math.min
class AnimeFragment : Fragment() {
private var _binding: FragmentAnimeBinding? = null
private val binding get() = _binding!!
private var uiSettings: UserInterfaceSettings = loadData("ui_settings") ?: UserInterfaceSettings()
private lateinit var animePageAdapter: AnimePageAdapter
val model: AnilistAnimeViewModel by activityViewModels()
@@ -94,7 +93,7 @@ class AnimeFragment : Fragment() {
binding.animePageRecyclerView.updatePaddingRelative(bottom = navBarHeight + 160f.px)
val animePageAdapter = AnimePageAdapter()
animePageAdapter = AnimePageAdapter()
var loading = true
if (model.notSet) {
@@ -208,13 +207,28 @@ class AnimeFragment : Fragment() {
animePageAdapter.updateRecent(MediaAdaptor(0, it, requireActivity()))
}
}
model.getMovies().observe(viewLifecycleOwner) {
if (it != null) {
animePageAdapter.updateMovies(MediaAdaptor(0, it, requireActivity()))
}
}
model.getTopRated().observe(viewLifecycleOwner) {
if (it != null) {
animePageAdapter.updateTopRated(MediaAdaptor(0, it, requireActivity()))
}
}
model.getMostFav().observe(viewLifecycleOwner) {
if (it != null) {
animePageAdapter.updateMostFav(MediaAdaptor(0, it, requireActivity()))
}
}
if (animePageAdapter.trendingViewPager != null) {
animePageAdapter.updateHeight()
model.getTrending().observe(viewLifecycleOwner) {
if (it != null) {
animePageAdapter.updateTrending(
MediaAdaptor(
if (uiSettings.smallView) 3 else 2,
if (PrefManager.getVal(PrefName.SmallView)) 3 else 2,
it,
requireActivity(),
viewPager = animePageAdapter.trendingViewPager
@@ -224,7 +238,8 @@ class AnimeFragment : Fragment() {
}
}
}
binding.animePageScrollTop.translationY = -(navBarHeight + bottomBar.height + bottomBar.marginBottom).toFloat()
binding.animePageScrollTop.translationY =
-(navBarHeight + bottomBar.height + bottomBar.marginBottom).toFloat()
}
}
@@ -263,8 +278,12 @@ class AnimeFragment : Fragment() {
}
model.loaded = true
model.loadTrending(1)
model.loadUpdated()
model.loadPopular("ANIME", sort = Anilist.sortBy[1])
model.loadAll()
model.loadPopular(
"ANIME", sort = Anilist.sortBy[1], onList = PrefManager.getVal(
PrefName.PopularAnimeList
)
)
}
live.postValue(false)
_binding?.animeRefresh?.isRefreshing = false
@@ -275,6 +294,13 @@ class AnimeFragment : Fragment() {
override fun onResume() {
if (!model.loaded) Refresh.activity[this.hashCode()]!!.postValue(true)
if (animePageAdapter.trendingViewPager != null) {
binding.root.requestApplyInsets()
binding.root.requestLayout()
}
if (this::animePageAdapter.isInitialized && _binding != null) {
animePageAdapter.updateNotificationCount()
}
super.onResume()
}
}

View File

@@ -3,62 +3,87 @@ package ani.dantotsu.home
import android.content.Intent
import android.os.Handler
import android.os.Looper
import android.util.TypedValue
import android.view.HapticFeedbackConstants
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.LayoutAnimationController
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible
import androidx.core.view.updateLayoutParams
import androidx.core.view.updatePadding
import androidx.lifecycle.MutableLiveData
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import androidx.viewpager2.widget.ViewPager2
import ani.dantotsu.media.GenreActivity
import ani.dantotsu.MediaPageTransformer
import ani.dantotsu.R
import ani.dantotsu.connections.anilist.Anilist
import ani.dantotsu.currContext
import ani.dantotsu.databinding.ItemAnimePageBinding
import ani.dantotsu.loadData
import ani.dantotsu.databinding.LayoutTrendingBinding
import ani.dantotsu.loadImage
import ani.dantotsu.media.CalendarActivity
import ani.dantotsu.media.GenreActivity
import ani.dantotsu.media.MediaAdaptor
import ani.dantotsu.media.SearchActivity
import ani.dantotsu.profile.ProfileActivity
import ani.dantotsu.px
import ani.dantotsu.setSafeOnClickListener
import ani.dantotsu.setSlideIn
import ani.dantotsu.setSlideUp
import ani.dantotsu.settings.SettingsDialogFragment
import ani.dantotsu.settings.UserInterfaceSettings
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.statusBarHeight
import com.google.android.material.card.MaterialCardView
import com.google.android.material.textfield.TextInputLayout
class AnimePageAdapter : RecyclerView.Adapter<AnimePageAdapter.AnimePageViewHolder>() {
val ready = MutableLiveData(false)
lateinit var binding: ItemAnimePageBinding
private lateinit var trendingBinding: LayoutTrendingBinding
private var trendHandler: Handler? = null
private lateinit var trendRun: Runnable
var trendingViewPager: ViewPager2? = null
private var uiSettings: UserInterfaceSettings = loadData("ui_settings") ?: UserInterfaceSettings()
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): AnimePageViewHolder {
val binding = ItemAnimePageBinding.inflate(LayoutInflater.from(parent.context), parent, false)
val binding =
ItemAnimePageBinding.inflate(LayoutInflater.from(parent.context), parent, false)
return AnimePageViewHolder(binding)
}
override fun onBindViewHolder(holder: AnimePageViewHolder, position: Int) {
binding = holder.binding
trendingViewPager = binding.animeTrendingViewPager
trendingBinding = LayoutTrendingBinding.bind(binding.root)
trendingViewPager = trendingBinding.trendingViewPager
binding.animeTitleContainer.updatePadding(top = statusBarHeight)
val textInputLayout = holder.itemView.findViewById<TextInputLayout>(R.id.searchBar)
val currentColor = textInputLayout.boxBackgroundColor
val semiTransparentColor = (currentColor and 0x00FFFFFF) or 0xA8000000.toInt()
textInputLayout.boxBackgroundColor = semiTransparentColor
val materialCardView =
holder.itemView.findViewById<MaterialCardView>(R.id.userAvatarContainer)
materialCardView.setCardBackgroundColor(semiTransparentColor)
val typedValue = TypedValue()
currContext()?.theme?.resolveAttribute(android.R.attr.windowBackground, typedValue, true)
val color = typedValue.data
if (uiSettings.smallView) binding.animeTrendingContainer.updateLayoutParams<ViewGroup.MarginLayoutParams> {
textInputLayout.boxBackgroundColor = (color and 0x00FFFFFF) or 0x28000000
materialCardView.setCardBackgroundColor((color and 0x00FFFFFF) or 0x28000000)
trendingBinding.titleContainer.updatePadding(top = statusBarHeight)
if (PrefManager.getVal(PrefName.SmallView)) trendingBinding.trendingContainer.updateLayoutParams<ViewGroup.MarginLayoutParams> {
bottomMargin = (-108f).px
}
updateAvatar()
binding.animeSearchBar.hint = "ANIME"
binding.animeSearchBarText.setOnClickListener {
trendingBinding.searchBar.hint = "ANIME"
trendingBinding.searchBarText.setOnClickListener {
ContextCompat.startActivity(
it.context,
Intent(it.context, SearchActivity::class.java).putExtra("type", "ANIME"),
@@ -66,14 +91,29 @@ class AnimePageAdapter : RecyclerView.Adapter<AnimePageAdapter.AnimePageViewHold
)
}
binding.animeSearchBar.setEndIconOnClickListener {
binding.animeSearchBarText.performClick()
trendingBinding.userAvatar.setSafeOnClickListener {
val dialogFragment =
SettingsDialogFragment.newInstance(SettingsDialogFragment.Companion.PageType.ANIME)
dialogFragment.show((it.context as AppCompatActivity).supportFragmentManager, "dialog")
}
trendingBinding.userAvatar.setOnLongClickListener { view ->
view.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS)
ContextCompat.startActivity(
view.context,
Intent(view.context, ProfileActivity::class.java)
.putExtra("userId", Anilist.userid), null
)
false
}
binding.animeUserAvatar.setSafeOnClickListener {
SettingsDialogFragment().show((it.context as AppCompatActivity).supportFragmentManager, "dialog")
trendingBinding.searchBar.setEndIconOnClickListener {
trendingBinding.searchBar.performClick()
}
trendingBinding.notificationCount.visibility =
if (Anilist.unreadNotificationCount > 0) View.VISIBLE else View.GONE
trendingBinding.notificationCount.text = Anilist.unreadNotificationCount.toString()
listOf(
binding.animePreviousSeason,
binding.animeThisSeason,
@@ -101,17 +141,22 @@ class AnimePageAdapter : RecyclerView.Adapter<AnimePageAdapter.AnimePageViewHold
)
}
binding.animeIncludeList.visibility = if(Anilist.userid!=null) View.VISIBLE else View.GONE
binding.animeIncludeList.isVisible = Anilist.userid != null
binding.animeIncludeList.isChecked = PrefManager.getVal(PrefName.PopularAnimeList)
binding.animeIncludeList.setOnCheckedChangeListener { _, isChecked ->
onIncludeListClick.invoke(isChecked)
PrefManager.setVal(PrefName.PopularAnimeList, isChecked)
}
if (ready.value == false)
ready.postValue(true)
}
lateinit var onSeasonClick : ((Int)->Unit)
lateinit var onSeasonLongClick : ((Int)->Boolean)
lateinit var onIncludeListClick : ((Boolean)->Unit)
lateinit var onSeasonClick: ((Int) -> Unit)
lateinit var onSeasonLongClick: ((Int) -> Boolean)
lateinit var onIncludeListClick: ((Boolean) -> Unit)
override fun getItemCount(): Int = 1
@@ -120,51 +165,118 @@ class AnimePageAdapter : RecyclerView.Adapter<AnimePageAdapter.AnimePageViewHold
}
fun updateTrending(adaptor: MediaAdaptor) {
binding.animeTrendingProgressBar.visibility = View.GONE
binding.animeTrendingViewPager.adapter = adaptor
binding.animeTrendingViewPager.offscreenPageLimit = 3
binding.animeTrendingViewPager.getChildAt(0).overScrollMode = RecyclerView.OVER_SCROLL_NEVER
binding.animeTrendingViewPager.setPageTransformer(MediaPageTransformer())
trendingBinding.trendingProgressBar.visibility = View.GONE
trendingBinding.trendingViewPager.adapter = adaptor
trendingBinding.trendingViewPager.offscreenPageLimit = 3
trendingBinding.trendingViewPager.getChildAt(0).overScrollMode =
RecyclerView.OVER_SCROLL_NEVER
trendingBinding.trendingViewPager.setPageTransformer(MediaPageTransformer())
trendHandler = Handler(Looper.getMainLooper())
trendRun = Runnable {
binding.animeTrendingViewPager.currentItem = binding.animeTrendingViewPager.currentItem + 1
trendingBinding.trendingViewPager.currentItem += 1
}
binding.animeTrendingViewPager.registerOnPageChangeCallback(
trendingBinding.trendingViewPager.registerOnPageChangeCallback(
object : ViewPager2.OnPageChangeCallback() {
override fun onPageSelected(position: Int) {
super.onPageSelected(position)
trendHandler!!.removeCallbacks(trendRun)
trendHandler!!.postDelayed(trendRun, 4000)
trendHandler?.removeCallbacks(trendRun)
if (PrefManager.getVal(PrefName.TrendingScroller)) {
trendHandler!!.postDelayed(trendRun, 4000)
}
}
}
)
binding.animeTrendingViewPager.layoutAnimation = LayoutAnimationController(setSlideIn(uiSettings), 0.25f)
binding.animeTitleContainer.startAnimation(setSlideUp(uiSettings))
binding.animeListContainer.layoutAnimation = LayoutAnimationController(setSlideIn(uiSettings), 0.25f)
binding.animeSeasonsCont.layoutAnimation = LayoutAnimationController(setSlideIn(uiSettings), 0.25f)
trendingBinding.trendingViewPager.layoutAnimation =
LayoutAnimationController(setSlideIn(), 0.25f)
trendingBinding.titleContainer.startAnimation(setSlideUp())
binding.animeListContainer.layoutAnimation =
LayoutAnimationController(setSlideIn(), 0.25f)
binding.animeSeasonsCont.layoutAnimation =
LayoutAnimationController(setSlideIn(), 0.25f)
}
fun updateRecent(adaptor: MediaAdaptor) {
binding.animeUpdatedProgressBar.visibility = View.GONE
binding.animeUpdatedRecyclerView.adapter = adaptor
binding.animeUpdatedRecyclerView.layoutManager =
LinearLayoutManager(binding.animeUpdatedRecyclerView.context, LinearLayoutManager.HORIZONTAL, false)
binding.animeUpdatedRecyclerView.visibility = View.VISIBLE
binding.apply {
init(
adaptor,
animeUpdatedRecyclerView,
animeUpdatedProgressBar,
animeRecently
)
animePopular.visibility = View.VISIBLE
animePopular.startAnimation(setSlideUp())
if (adaptor.itemCount == 0) {
animeRecentlyContainer.visibility = View.GONE
}
}
binding.animeRecently.visibility = View.VISIBLE
binding.animeRecently.startAnimation(setSlideUp(uiSettings))
binding.animeUpdatedRecyclerView.layoutAnimation = LayoutAnimationController(setSlideIn(uiSettings), 0.25f)
binding.animePopular.visibility = View.VISIBLE
binding.animePopular.startAnimation(setSlideUp(uiSettings))
}
fun updateMovies(adaptor: MediaAdaptor) {
binding.apply {
init(
adaptor,
animeMoviesRecyclerView,
animeMoviesProgressBar,
animeMovies
)
}
}
fun updateTopRated(adaptor: MediaAdaptor) {
binding.apply {
init(
adaptor,
animeTopRatedRecyclerView,
animeTopRatedProgressBar,
animeTopRated
)
}
}
fun updateMostFav(adaptor: MediaAdaptor) {
binding.apply {
init(
adaptor,
animeMostFavRecyclerView,
animeMostFavProgressBar,
animeMostFav
)
}
}
fun init(adaptor: MediaAdaptor, recyclerView: RecyclerView, progress: View, title: View) {
progress.visibility = View.GONE
recyclerView.adapter = adaptor
recyclerView.layoutManager =
LinearLayoutManager(
recyclerView.context,
LinearLayoutManager.HORIZONTAL,
false
)
recyclerView.visibility = View.VISIBLE
title.visibility = View.VISIBLE
title.startAnimation(setSlideUp())
recyclerView.layoutAnimation =
LayoutAnimationController(setSlideIn(), 0.25f)
}
fun updateAvatar() {
if (Anilist.avatar != null && ready.value == true) {
binding.animeUserAvatar.loadImage(Anilist.avatar)
trendingBinding.userAvatar.loadImage(Anilist.avatar)
trendingBinding.userAvatar.imageTintList = null
}
}
inner class AnimePageViewHolder(val binding: ItemAnimePageBinding) : RecyclerView.ViewHolder(binding.root)
fun updateNotificationCount() {
if (this::binding.isInitialized) {
trendingBinding.notificationCount.visibility =
if (Anilist.unreadNotificationCount > 0) View.VISIBLE else View.GONE
trendingBinding.notificationCount.text = Anilist.unreadNotificationCount.toString()
}
}
inner class AnimePageViewHolder(val binding: ItemAnimePageBinding) :
RecyclerView.ViewHolder(binding.root)
}

View File

@@ -5,11 +5,13 @@ import android.content.Intent
import android.graphics.drawable.Animatable
import android.os.Build
import android.os.Bundle
import android.view.HapticFeedbackConstants
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.LayoutAnimationController
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible
import androidx.core.view.updateLayoutParams
import androidx.core.view.updatePadding
import androidx.fragment.app.Fragment
@@ -21,23 +23,25 @@ import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import ani.dantotsu.R
import ani.dantotsu.Refresh
import ani.dantotsu.blurImage
import ani.dantotsu.bottomBar
import ani.dantotsu.connections.anilist.Anilist
import ani.dantotsu.connections.anilist.AnilistHomeViewModel
import ani.dantotsu.connections.anilist.getUserId
import ani.dantotsu.currContext
import ani.dantotsu.databinding.FragmentHomeBinding
import ani.dantotsu.loadData
import ani.dantotsu.loadImage
import ani.dantotsu.media.Media
import ani.dantotsu.media.MediaAdaptor
import ani.dantotsu.settings.SettingsDialogFragment
import ani.dantotsu.settings.UserInterfaceSettings
import ani.dantotsu.media.user.ListActivity
import ani.dantotsu.navBarHeight
import ani.dantotsu.profile.ProfileActivity
import ani.dantotsu.setSafeOnClickListener
import ani.dantotsu.setSlideIn
import ani.dantotsu.setSlideUp
import ani.dantotsu.settings.SettingsDialogFragment
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.snackString
import ani.dantotsu.statusBarHeight
import kotlinx.coroutines.Dispatchers
@@ -52,7 +56,11 @@ class HomeFragment : Fragment() {
private var _binding: FragmentHomeBinding? = null
private val binding get() = _binding!!
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View {
_binding = FragmentHomeBinding.inflate(inflater, container, false)
return binding.root
}
@@ -66,16 +74,20 @@ class HomeFragment : Fragment() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
val scope = lifecycleScope
var uiSettings = loadData<UserInterfaceSettings>("ui_settings") ?: UserInterfaceSettings()
fun load() {
if (activity != null && _binding != null) lifecycleScope.launch(Dispatchers.Main) {
binding.homeUserName.text = Anilist.username
binding.homeUserEpisodesWatched.text = Anilist.episodesWatched.toString()
binding.homeUserChaptersRead.text = Anilist.chapterRead.toString()
binding.homeUserAvatar.loadImage(Anilist.avatar)
if (!uiSettings.bannerAnimations) binding.homeUserBg.pause()
binding.homeUserBg.loadImage(Anilist.bg)
val bannerAnimations: Boolean = PrefManager.getVal(PrefName.BannerAnimations)
blurImage(
if (bannerAnimations) binding.homeUserBg else binding.homeUserBgNoKen,
Anilist.bg
)
binding.homeUserDataProgressBar.visibility = View.GONE
binding.homeNotificationCount.isVisible = Anilist.unreadNotificationCount > 0
binding.homeNotificationCount.text = Anilist.unreadNotificationCount.toString()
binding.homeAnimeList.setOnClickListener {
ContextCompat.startActivity(
@@ -94,40 +106,58 @@ class HomeFragment : Fragment() {
)
}
binding.homeUserAvatarContainer.startAnimation(setSlideUp(uiSettings))
binding.homeUserAvatarContainer.startAnimation(setSlideUp())
binding.homeUserDataContainer.visibility = View.VISIBLE
binding.homeUserDataContainer.layoutAnimation = LayoutAnimationController(setSlideUp(uiSettings), 0.25f)
binding.homeUserDataContainer.layoutAnimation =
LayoutAnimationController(setSlideUp(), 0.25f)
binding.homeAnimeList.visibility = View.VISIBLE
binding.homeMangaList.visibility = View.VISIBLE
binding.homeListContainer.layoutAnimation = LayoutAnimationController(setSlideIn(uiSettings), 0.25f)
binding.homeListContainer.layoutAnimation =
LayoutAnimationController(setSlideIn(), 0.25f)
}
else {
snackString(currContext()?.getString(R.string.please_reload))
}
}
binding.homeUserAvatarContainer.setSafeOnClickListener {
SettingsDialogFragment().show(parentFragmentManager, "dialog")
val dialogFragment =
SettingsDialogFragment.newInstance(SettingsDialogFragment.Companion.PageType.HOME)
dialogFragment.show(
(it.context as androidx.appcompat.app.AppCompatActivity).supportFragmentManager,
"dialog"
)
}
binding.homeUserAvatarContainer.setOnLongClickListener {
it.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS)
ContextCompat.startActivity(
requireContext(), Intent(requireContext(), ProfileActivity::class.java)
.putExtra("userId", Anilist.userid), null
)
false
}
binding.homeContainer.updateLayoutParams<ViewGroup.MarginLayoutParams> {
bottomMargin = navBarHeight
}
binding.homeUserBg.updateLayoutParams { height += statusBarHeight }
binding.homeUserBgNoKen.updateLayoutParams { height += statusBarHeight }
binding.homeTopContainer.updatePadding(top = statusBarHeight)
var reached = false
val duration = (uiSettings.animationSpeed * 200).toLong()
val duration = ((PrefManager.getVal(PrefName.AnimationSpeed) as Float) * 200).toLong()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
binding.homeScroll.setOnScrollChangeListener { _, _, _, _, _ ->
if (!binding.homeScroll.canScrollVertically(1)) {
reached = true
bottomBar.animate().translationZ(0f).setDuration(duration).start()
ObjectAnimator.ofFloat(bottomBar, "elevation", 4f, 0f).setDuration(duration).start()
ObjectAnimator.ofFloat(bottomBar, "elevation", 4f, 0f).setDuration(duration)
.start()
} else {
if (reached) {
bottomBar.animate().translationZ(12f).setDuration(duration).start()
ObjectAnimator.ofFloat(bottomBar, "elevation", 0f, 4f).setDuration(duration).start()
ObjectAnimator.ofFloat(bottomBar, "elevation", 0f, 4f).setDuration(duration)
.start()
}
}
}
@@ -138,7 +168,13 @@ class HomeFragment : Fragment() {
if (displayCutout != null) {
if (displayCutout.boundingRects.size > 0) {
height =
max(statusBarHeight, min(displayCutout.boundingRects[0].width(), displayCutout.boundingRects[0].height()))
max(
statusBarHeight,
min(
displayCutout.boundingRects[0].width(),
displayCutout.boundingRects[0].height()
)
)
}
}
}
@@ -189,13 +225,14 @@ class HomeFragment : Fragment() {
false
)
recyclerView.visibility = View.VISIBLE
recyclerView.layoutAnimation = LayoutAnimationController(setSlideIn(uiSettings), 0.25f)
recyclerView.layoutAnimation =
LayoutAnimationController(setSlideIn(), 0.25f)
} else {
empty.visibility = View.VISIBLE
}
title.visibility = View.VISIBLE
title.startAnimation(setSlideUp(uiSettings))
title.startAnimation(setSlideUp())
progress.visibility = View.GONE
}
}
@@ -278,25 +315,26 @@ class HomeFragment : Fragment() {
binding.homeRecommended
)
binding.homeUserAvatarContainer.startAnimation(setSlideUp(uiSettings))
binding.homeUserAvatarContainer.startAnimation(setSlideUp())
model.empty.observe(viewLifecycleOwner) {
binding.homeDantotsuContainer.visibility = if (it == true) View.VISIBLE else View.GONE
(binding.homeDantotsuIcon.drawable as Animatable).start()
binding.homeDantotsuContainer.startAnimation(setSlideUp(uiSettings))
binding.homeDantotsuContainer.startAnimation(setSlideUp())
binding.homeDantotsuIcon.setSafeOnClickListener {
(binding.homeDantotsuIcon.drawable as Animatable).start()
}
}
val array = arrayOf(
Runnable { runBlocking { model.setAnimeContinue() } },
Runnable { runBlocking { model.setAnimeFav() } },
Runnable { runBlocking { model.setAnimePlanned() } },
Runnable { runBlocking { model.setMangaContinue() } },
Runnable { runBlocking { model.setMangaFav() } },
Runnable { runBlocking { model.setMangaPlanned() } },
Runnable { runBlocking { model.setRecommendation() } }
"AnimeContinue",
"AnimeFav",
"AnimePlanned",
"MangaContinue",
"MangaFav",
"MangaPlanned",
"Recommendation"
)
val containers = arrayOf(
@@ -313,7 +351,6 @@ class HomeFragment : Fragment() {
live.observe(viewLifecycleOwner) {
if (it) {
scope.launch {
uiSettings = loadData<UserInterfaceSettings>("ui_settings") ?: UserInterfaceSettings()
withContext(Dispatchers.IO) {
//Get userData First
getUserId(requireContext()) {
@@ -322,9 +359,13 @@ class HomeFragment : Fragment() {
model.loaded = true
model.setListImages()
var empty = true
val homeLayoutShow: List<Boolean> =
PrefManager.getVal(PrefName.HomeLayoutShow)
runBlocking {
model.initHomePage()
}
(array.indices).forEach { i ->
if (uiSettings.homeLayoutShow[i]) {
array[i].run()
if (homeLayoutShow.elementAt(i)) {
empty = false
} else withContext(Dispatchers.Main) {
containers[i].visibility = View.GONE
@@ -341,6 +382,10 @@ class HomeFragment : Fragment() {
override fun onResume() {
if (!model.loaded) Refresh.activity[1]!!.postValue(true)
if (_binding != null) {
binding.homeNotificationCount.isVisible = Anilist.unreadNotificationCount > 0
binding.homeNotificationCount.text = Anilist.unreadNotificationCount.toString()
}
super.onResume()
}
}

View File

@@ -1,21 +1,35 @@
package ani.dantotsu.home
import android.app.AlertDialog
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.activity.result.contract.ActivityResultContracts
import androidx.documentfile.provider.DocumentFile
import androidx.fragment.app.Fragment
import ani.dantotsu.R
import ani.dantotsu.connections.anilist.Anilist
import ani.dantotsu.databinding.FragmentLoginBinding
import ani.dantotsu.openLinkInBrowser
import ani.dantotsu.settings.saving.internal.PreferenceKeystore
import ani.dantotsu.settings.saving.internal.PreferencePackager
import ani.dantotsu.toast
import ani.dantotsu.util.Logger
import com.google.android.material.textfield.TextInputEditText
class LoginFragment : Fragment() {
private var _binding: FragmentLoginBinding? = null
private val binding get() = _binding!!
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View {
_binding = FragmentLoginBinding.inflate(layoutInflater, container, false)
return binding.root
}
@@ -24,5 +38,100 @@ class LoginFragment : Fragment() {
binding.loginButton.setOnClickListener { Anilist.loginIntent(requireActivity()) }
binding.loginDiscord.setOnClickListener { openLinkInBrowser(getString(R.string.discord)) }
binding.loginGithub.setOnClickListener { openLinkInBrowser(getString(R.string.github)) }
binding.loginTelegram.setOnClickListener { openLinkInBrowser(getString(R.string.telegram)) }
val openDocumentLauncher =
registerForActivityResult(ActivityResultContracts.OpenDocument()) { uri ->
if (uri != null) {
try {
val jsonString =
requireActivity().contentResolver.openInputStream(uri)?.readBytes()
?: throw Exception("Error reading file")
val name =
DocumentFile.fromSingleUri(requireActivity(), uri)?.name ?: "settings"
//.sani is encrypted, .ani is not
if (name.endsWith(".sani")) {
passwordAlertDialog { password ->
if (password != null) {
val salt = jsonString.copyOfRange(0, 16)
val encrypted = jsonString.copyOfRange(16, jsonString.size)
val decryptedJson = try {
PreferenceKeystore.decryptWithPassword(
password,
encrypted,
salt
)
} catch (e: Exception) {
toast("Incorrect password")
return@passwordAlertDialog
}
if (PreferencePackager.unpack(decryptedJson))
restartApp()
} else {
toast("Password cannot be empty")
}
}
} else if (name.endsWith(".ani")) {
val decryptedJson = jsonString.toString(Charsets.UTF_8)
if (PreferencePackager.unpack(decryptedJson))
restartApp()
} else {
toast("Invalid file type")
}
} catch (e: Exception) {
Logger.log(e)
toast("Error importing settings")
}
}
}
binding.importSettingsButton.setOnClickListener {
openDocumentLauncher.launch(arrayOf("*/*"))
}
}
private fun passwordAlertDialog(callback: (CharArray?) -> Unit) {
val password = CharArray(16).apply { fill('0') }
// Inflate the dialog layout
val dialogView =
LayoutInflater.from(requireActivity()).inflate(R.layout.dialog_user_agent, null)
dialogView.findViewById<TextInputEditText>(R.id.userAgentTextBox)?.hint = "Password"
val subtitleTextView = dialogView.findViewById<TextView>(R.id.subtitle)
subtitleTextView?.visibility = View.VISIBLE
subtitleTextView?.text = "Enter your password to decrypt the file"
val dialog = AlertDialog.Builder(requireActivity(), R.style.MyPopup)
.setTitle("Enter Password")
.setView(dialogView)
.setPositiveButton("OK", null)
.setNegativeButton("Cancel") { dialog, _ ->
password.fill('0')
dialog.dismiss()
callback(null)
}
.create()
dialog.window?.setDimAmount(0.8f)
dialog.show()
// Override the positive button here
dialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
val editText = dialog.findViewById<TextInputEditText>(R.id.userAgentTextBox)
if (editText?.text?.isNotBlank() == true) {
editText.text?.toString()?.trim()?.toCharArray(password)
dialog.dismiss()
callback(password)
} else {
toast("Password cannot be empty")
}
}
}
private fun restartApp() {
val intent = Intent(requireActivity(), requireActivity().javaClass)
requireActivity().finish()
startActivity(intent)
}
}

View File

@@ -25,12 +25,12 @@ import ani.dantotsu.connections.anilist.AnilistMangaViewModel
import ani.dantotsu.connections.anilist.SearchResults
import ani.dantotsu.connections.anilist.getUserId
import ani.dantotsu.databinding.FragmentMangaBinding
import ani.dantotsu.loadData
import ani.dantotsu.media.MediaAdaptor
import ani.dantotsu.media.ProgressAdapter
import ani.dantotsu.navBarHeight
import ani.dantotsu.px
import ani.dantotsu.settings.UserInterfaceSettings
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.snackString
import ani.dantotsu.statusBarHeight
import kotlinx.coroutines.Dispatchers
@@ -43,12 +43,15 @@ import kotlin.math.min
class MangaFragment : Fragment() {
private var _binding: FragmentMangaBinding? = null
private val binding get() = _binding!!
private var uiSettings: UserInterfaceSettings = loadData("ui_settings") ?: UserInterfaceSettings()
private lateinit var mangaPageAdapter: MangaPageAdapter
val model: AnilistMangaViewModel by activityViewModels()
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View {
_binding = FragmentMangaBinding.inflate(inflater, container, false)
return binding.root
}
@@ -85,7 +88,7 @@ class MangaFragment : Fragment() {
binding.mangaPageRecyclerView.updatePaddingRelative(bottom = navBarHeight + 160f.px)
val mangaPageAdapter = MangaPageAdapter()
mangaPageAdapter = MangaPageAdapter()
var loading = true
if (model.notSet) {
model.notSet = false
@@ -100,7 +103,8 @@ class MangaFragment : Fragment() {
}
val popularAdaptor = MediaAdaptor(1, model.searchResults.results, requireActivity())
val progressAdaptor = ProgressAdapter(searched = model.searched)
binding.mangaPageRecyclerView.adapter = ConcatAdapter(mangaPageAdapter, popularAdaptor, progressAdaptor)
binding.mangaPageRecyclerView.adapter =
ConcatAdapter(mangaPageAdapter, popularAdaptor, progressAdaptor)
val layout = LinearLayoutManager(requireContext())
binding.mangaPageRecyclerView.layoutManager = layout
@@ -156,18 +160,44 @@ class MangaFragment : Fragment() {
})
mangaPageAdapter.ready.observe(viewLifecycleOwner) { i ->
if (i == true) {
model.getTrendingNovel().observe(viewLifecycleOwner) {
model.getPopularNovel().observe(viewLifecycleOwner) {
if (it != null) {
mangaPageAdapter.updateNovel(MediaAdaptor(0, it, requireActivity()))
}
}
model.getPopularManga().observe(viewLifecycleOwner) {
if (it != null) {
mangaPageAdapter.updateTrendingManga(MediaAdaptor(0, it, requireActivity()))
}
}
model.getPopularManhwa().observe(viewLifecycleOwner) {
if (it != null) {
mangaPageAdapter.updateTrendingManhwa(
MediaAdaptor(
0,
it,
requireActivity()
)
)
}
}
model.getTopRated().observe(viewLifecycleOwner) {
if (it != null) {
mangaPageAdapter.updateTopRated(MediaAdaptor(0, it, requireActivity()))
}
}
model.getMostFav().observe(viewLifecycleOwner) {
if (it != null) {
mangaPageAdapter.updateMostFav(MediaAdaptor(0, it, requireActivity()))
}
}
if (mangaPageAdapter.trendingViewPager != null) {
mangaPageAdapter.updateHeight()
model.getTrending().observe(viewLifecycleOwner) {
if (it != null) {
mangaPageAdapter.updateTrending(
MediaAdaptor(
if (uiSettings.smallView) 3 else 2,
if (PrefManager.getVal(PrefName.SmallView)) 3 else 2,
it,
requireActivity(),
viewPager = mangaPageAdapter.trendingViewPager
@@ -177,7 +207,8 @@ class MangaFragment : Fragment() {
}
}
}
binding.mangaPageScrollTop.translationY = -(navBarHeight + bottomBar.height + bottomBar.marginBottom).toFloat()
binding.mangaPageScrollTop.translationY =
-(navBarHeight + bottomBar.height + bottomBar.marginBottom).toFloat()
}
}
@@ -232,8 +263,12 @@ class MangaFragment : Fragment() {
}
model.loaded = true
model.loadTrending()
model.loadTrendingNovel()
model.loadPopular("MANGA", sort = Anilist.sortBy[1])
model.loadAll()
model.loadPopular(
"MANGA", sort = Anilist.sortBy[1], onList = PrefManager.getVal(
PrefName.PopularMangaList
)
)
}
live.postValue(false)
_binding?.mangaRefresh?.isRefreshing = false
@@ -244,6 +279,14 @@ class MangaFragment : Fragment() {
override fun onResume() {
if (!model.loaded) Refresh.activity[this.hashCode()]!!.postValue(true)
//make sure mangaPageAdapter is initialized
if (mangaPageAdapter.trendingViewPager != null) {
binding.root.requestApplyInsets()
binding.root.requestLayout()
}
if (this::mangaPageAdapter.isInitialized && _binding != null) {
mangaPageAdapter.updateNotificationCount()
}
super.onResume()
}

View File

@@ -3,61 +3,87 @@ package ani.dantotsu.home
import android.content.Intent
import android.os.Handler
import android.os.Looper
import android.util.TypedValue
import android.view.HapticFeedbackConstants
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.LayoutAnimationController
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible
import androidx.core.view.updateLayoutParams
import androidx.core.view.updatePadding
import androidx.lifecycle.MutableLiveData
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import androidx.viewpager2.widget.ViewPager2
import ani.dantotsu.media.GenreActivity
import ani.dantotsu.MediaPageTransformer
import ani.dantotsu.R
import ani.dantotsu.connections.anilist.Anilist
import ani.dantotsu.currContext
import ani.dantotsu.databinding.ItemMangaPageBinding
import ani.dantotsu.loadData
import ani.dantotsu.databinding.LayoutTrendingBinding
import ani.dantotsu.loadImage
import ani.dantotsu.media.GenreActivity
import ani.dantotsu.media.MediaAdaptor
import ani.dantotsu.media.SearchActivity
import ani.dantotsu.profile.ProfileActivity
import ani.dantotsu.px
import ani.dantotsu.setSafeOnClickListener
import ani.dantotsu.setSlideIn
import ani.dantotsu.setSlideUp
import ani.dantotsu.settings.SettingsDialogFragment
import ani.dantotsu.settings.UserInterfaceSettings
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.statusBarHeight
import com.google.android.material.card.MaterialCardView
import com.google.android.material.textfield.TextInputLayout
class MangaPageAdapter : RecyclerView.Adapter<MangaPageAdapter.MangaPageViewHolder>() {
val ready = MutableLiveData(false)
lateinit var binding: ItemMangaPageBinding
private lateinit var trendingBinding: LayoutTrendingBinding
private var trendHandler: Handler? = null
private lateinit var trendRun: Runnable
var trendingViewPager: ViewPager2? = null
private var uiSettings: UserInterfaceSettings = loadData("ui_settings") ?: UserInterfaceSettings()
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): MangaPageViewHolder {
val binding = ItemMangaPageBinding.inflate(LayoutInflater.from(parent.context), parent, false)
val binding =
ItemMangaPageBinding.inflate(LayoutInflater.from(parent.context), parent, false)
return MangaPageViewHolder(binding)
}
override fun onBindViewHolder(holder: MangaPageViewHolder, position: Int) {
binding = holder.binding
trendingViewPager = binding.mangaTrendingViewPager
trendingBinding = LayoutTrendingBinding.bind(binding.root)
trendingViewPager = trendingBinding.trendingViewPager
binding.mangaTitleContainer.updatePadding(top = statusBarHeight)
val textInputLayout = holder.itemView.findViewById<TextInputLayout>(R.id.searchBar)
val currentColor = textInputLayout.boxBackgroundColor
val semiTransparentColor = (currentColor and 0x00FFFFFF) or 0xA8000000.toInt()
textInputLayout.boxBackgroundColor = semiTransparentColor
val materialCardView =
holder.itemView.findViewById<MaterialCardView>(R.id.userAvatarContainer)
materialCardView.setCardBackgroundColor(semiTransparentColor)
val typedValue = TypedValue()
currContext()?.theme?.resolveAttribute(android.R.attr.windowBackground, typedValue, true)
val color = typedValue.data
if (uiSettings.smallView) binding.mangaTrendingContainer.updateLayoutParams<ViewGroup.MarginLayoutParams> {
textInputLayout.boxBackgroundColor = (color and 0x00FFFFFF) or 0x28000000
materialCardView.setCardBackgroundColor((color and 0x00FFFFFF) or 0x28000000)
trendingBinding.titleContainer.updatePadding(top = statusBarHeight)
if (PrefManager.getVal(PrefName.SmallView)) trendingBinding.trendingContainer.updateLayoutParams<ViewGroup.MarginLayoutParams> {
bottomMargin = (-108f).px
}
updateAvatar()
binding.mangaSearchBar.hint = "MANGA"
binding.mangaSearchBarText.setOnClickListener {
trendingBinding.notificationCount.isVisible = Anilist.unreadNotificationCount > 0
trendingBinding.notificationCount.text = Anilist.unreadNotificationCount.toString()
trendingBinding.searchBar.hint = "MANGA"
trendingBinding.searchBarText.setOnClickListener {
ContextCompat.startActivity(
it.context,
Intent(it.context, SearchActivity::class.java).putExtra("type", "MANGA"),
@@ -65,12 +91,23 @@ class MangaPageAdapter : RecyclerView.Adapter<MangaPageAdapter.MangaPageViewHold
)
}
binding.mangaUserAvatar.setSafeOnClickListener {
SettingsDialogFragment().show((it.context as AppCompatActivity).supportFragmentManager, "dialog")
trendingBinding.userAvatar.setSafeOnClickListener {
val dialogFragment =
SettingsDialogFragment.newInstance(SettingsDialogFragment.Companion.PageType.MANGA)
dialogFragment.show((it.context as AppCompatActivity).supportFragmentManager, "dialog")
}
trendingBinding.userAvatar.setOnLongClickListener { view ->
view.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS)
ContextCompat.startActivity(
view.context,
Intent(view.context, ProfileActivity::class.java)
.putExtra("userId", Anilist.userid), null
)
false
}
binding.mangaSearchBar.setEndIconOnClickListener {
binding.mangaSearchBarText.performClick()
trendingBinding.searchBar.setEndIconOnClickListener {
trendingBinding.searchBarText.performClick()
}
binding.mangaGenreImage.loadImage("https://s4.anilist.co/file/anilistcdn/media/manga/banner/105778-wk5qQ7zAaTGl.jpg")
@@ -94,16 +131,20 @@ class MangaPageAdapter : RecyclerView.Adapter<MangaPageAdapter.MangaPageViewHold
)
}
binding.mangaIncludeList.visibility = if(Anilist.userid!=null) View.VISIBLE else View.GONE
binding.mangaIncludeList.isVisible = Anilist.userid != null
binding.mangaIncludeList.isChecked = PrefManager.getVal(PrefName.PopularMangaList)
binding.mangaIncludeList.setOnCheckedChangeListener { _, isChecked ->
onIncludeListClick.invoke(isChecked)
}
PrefManager.setVal(PrefName.PopularMangaList, isChecked)
}
if (ready.value == false)
ready.postValue(true)
}
lateinit var onIncludeListClick : ((Boolean)->Unit)
lateinit var onIncludeListClick: ((Boolean) -> Unit)
override fun getItemCount(): Int = 1
@@ -112,49 +153,124 @@ class MangaPageAdapter : RecyclerView.Adapter<MangaPageAdapter.MangaPageViewHold
}
fun updateTrending(adaptor: MediaAdaptor) {
binding.mangaTrendingProgressBar.visibility = View.GONE
binding.mangaTrendingViewPager.adapter = adaptor
binding.mangaTrendingViewPager.offscreenPageLimit = 3
binding.mangaTrendingViewPager.getChildAt(0).overScrollMode = RecyclerView.OVER_SCROLL_NEVER
binding.mangaTrendingViewPager.setPageTransformer(MediaPageTransformer())
trendingBinding.trendingProgressBar.visibility = View.GONE
trendingBinding.trendingViewPager.adapter = adaptor
trendingBinding.trendingViewPager.offscreenPageLimit = 3
trendingBinding.trendingViewPager.getChildAt(0).overScrollMode =
RecyclerView.OVER_SCROLL_NEVER
trendingBinding.trendingViewPager.setPageTransformer(MediaPageTransformer())
trendHandler = Handler(Looper.getMainLooper())
trendRun = Runnable {
binding.mangaTrendingViewPager.currentItem = binding.mangaTrendingViewPager.currentItem + 1
trendingBinding.trendingViewPager.currentItem += 1
}
binding.mangaTrendingViewPager.registerOnPageChangeCallback(
trendingBinding.trendingViewPager.registerOnPageChangeCallback(
object : ViewPager2.OnPageChangeCallback() {
override fun onPageSelected(position: Int) {
super.onPageSelected(position)
trendHandler!!.removeCallbacks(trendRun)
trendHandler!!.postDelayed(trendRun, 4000)
trendHandler?.removeCallbacks(trendRun)
if (PrefManager.getVal(PrefName.TrendingScroller))
trendHandler!!.postDelayed(trendRun, 4000)
}
}
)
binding.mangaTrendingViewPager.layoutAnimation = LayoutAnimationController(setSlideIn(uiSettings), 0.25f)
binding.mangaTitleContainer.startAnimation(setSlideUp(uiSettings))
binding.mangaListContainer.layoutAnimation = LayoutAnimationController(setSlideIn(uiSettings), 0.25f)
trendingBinding.trendingViewPager.layoutAnimation =
LayoutAnimationController(setSlideIn(), 0.25f)
trendingBinding.titleContainer.startAnimation(setSlideUp())
binding.mangaListContainer.layoutAnimation =
LayoutAnimationController(setSlideIn(), 0.25f)
}
fun updateTrendingManga(adaptor: MediaAdaptor) {
binding.apply {
init(
adaptor,
mangaTrendingMangaRecyclerView,
mangaTrendingMangaProgressBar,
mangaTrendingManga
)
}
}
fun updateTrendingManhwa(adaptor: MediaAdaptor) {
binding.apply {
init(
adaptor,
mangaTrendingManhwaRecyclerView,
mangaTrendingManhwaProgressBar,
mangaTrendingManhwa
)
}
}
fun updateNovel(adaptor: MediaAdaptor) {
binding.mangaNovelProgressBar.visibility = View.GONE
binding.mangaNovelRecyclerView.adapter = adaptor
binding.mangaNovelRecyclerView.layoutManager =
LinearLayoutManager(binding.mangaNovelRecyclerView.context, LinearLayoutManager.HORIZONTAL, false)
binding.mangaNovelRecyclerView.visibility = View.VISIBLE
binding.apply {
init(
adaptor,
mangaNovelRecyclerView,
mangaNovelProgressBar,
mangaNovel
)
}
binding.mangaNovel.visibility = View.VISIBLE
binding.mangaNovel.startAnimation(setSlideUp(uiSettings))
binding.mangaNovelRecyclerView.layoutAnimation = LayoutAnimationController(setSlideIn(uiSettings), 0.25f)
binding.mangaPopular.visibility = View.VISIBLE
binding.mangaPopular.startAnimation(setSlideUp(uiSettings))
}
fun updateTopRated(adaptor: MediaAdaptor) {
binding.apply {
init(
adaptor,
mangaTopRatedRecyclerView,
mangaTopRatedProgressBar,
mangaTopRated
)
}
}
fun updateMostFav(adaptor: MediaAdaptor) {
binding.apply {
init(
adaptor,
mangaMostFavRecyclerView,
mangaMostFavProgressBar,
mangaMostFav
)
mangaPopular.visibility = View.VISIBLE
mangaPopular.startAnimation(setSlideUp())
}
}
fun init(adaptor: MediaAdaptor, recyclerView: RecyclerView, progress: View, title: View) {
progress.visibility = View.GONE
recyclerView.adapter = adaptor
recyclerView.layoutManager =
LinearLayoutManager(
recyclerView.context,
LinearLayoutManager.HORIZONTAL,
false
)
recyclerView.visibility = View.VISIBLE
title.visibility = View.VISIBLE
title.startAnimation(setSlideUp())
recyclerView.layoutAnimation =
LayoutAnimationController(setSlideIn(), 0.25f)
}
fun updateAvatar() {
if (Anilist.avatar != null && ready.value == true) {
binding.mangaUserAvatar.loadImage(Anilist.avatar)
trendingBinding.userAvatar.loadImage(Anilist.avatar)
trendingBinding.userAvatar.imageTintList = null
}
}
inner class MangaPageViewHolder(val binding: ItemMangaPageBinding) : RecyclerView.ViewHolder(binding.root)
fun updateNotificationCount() {
if (this::binding.isInitialized) {
trendingBinding.notificationCount.visibility =
if (Anilist.unreadNotificationCount > 0) View.VISIBLE else View.GONE
trendingBinding.notificationCount.text = Anilist.unreadNotificationCount.toString()
}
}
inner class MangaPageViewHolder(val binding: ItemMangaPageBinding) :
RecyclerView.ViewHolder(binding.root)
}

View File

@@ -1,29 +1,115 @@
package ani.dantotsu.home
import android.graphics.drawable.GradientDrawable
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.View
import android.view.ViewGroup
import androidx.activity.addCallback
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.core.view.doOnAttach
import androidx.core.view.updateLayoutParams
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.viewpager2.adapter.FragmentStateAdapter
import ani.dantotsu.R
import ani.dantotsu.ZoomOutPageTransformer
import ani.dantotsu.databinding.ActivityNoInternetBinding
import ani.dantotsu.isOnline
import ani.dantotsu.download.anime.OfflineAnimeFragment
import ani.dantotsu.download.manga.OfflineMangaFragment
import ani.dantotsu.initActivity
import ani.dantotsu.navBarHeight
import ani.dantotsu.startMainActivity
import ani.dantotsu.statusBarHeight
import ani.dantotsu.offline.OfflineFragment
import ani.dantotsu.selectedOption
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.snackString
import ani.dantotsu.themes.ThemeManager
import nl.joery.animatedbottombar.AnimatedBottomBar
class NoInternet : AppCompatActivity() {
private lateinit var binding: ActivityNoInternetBinding
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val binding = ActivityNoInternetBinding.inflate(layoutInflater)
ThemeManager(this).applyTheme()
binding = ActivityNoInternetBinding.inflate(layoutInflater)
setContentView(binding.root)
binding.refreshContainer.updateLayoutParams<ViewGroup.MarginLayoutParams> {
topMargin = statusBarHeight
bottomMargin = navBarHeight
val bottomBar = findViewById<AnimatedBottomBar>(R.id.navbar)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
val backgroundDrawable = bottomBar.background as GradientDrawable
val currentColor = backgroundDrawable.color?.defaultColor ?: 0
val semiTransparentColor = (currentColor and 0x00FFFFFF) or 0xE8000000.toInt()
backgroundDrawable.setColor(semiTransparentColor)
bottomBar.background = backgroundDrawable
}
binding.refreshButton.setOnClickListener {
if (isOnline(this)) {
startMainActivity(this)
bottomBar.background = ContextCompat.getDrawable(this, R.drawable.bottom_nav_gray)
var doubleBackToExitPressedOnce = false
onBackPressedDispatcher.addCallback(this) {
if (doubleBackToExitPressedOnce) {
finishAffinity()
}
doubleBackToExitPressedOnce = true
snackString(this@NoInternet.getString(R.string.back_to_exit))
Handler(Looper.getMainLooper()).postDelayed(
{ doubleBackToExitPressedOnce = false },
2000
)
}
binding.root.doOnAttach {
initActivity(this)
selectedOption = PrefManager.getVal(PrefName.DefaultStartUpTab)
binding.includedNavbar.navbarContainer.updateLayoutParams<ViewGroup.MarginLayoutParams> {
bottomMargin = navBarHeight
}
}
val navbar = binding.includedNavbar.navbar
ani.dantotsu.bottomBar = navbar
navbar.visibility = View.VISIBLE
val mainViewPager = binding.viewpager
mainViewPager.isUserInputEnabled = false
mainViewPager.adapter = ViewPagerAdapter(supportFragmentManager, lifecycle)
mainViewPager.setPageTransformer(ZoomOutPageTransformer())
navbar.setOnTabSelectListener(object :
AnimatedBottomBar.OnTabSelectListener {
override fun onTabSelected(
lastIndex: Int,
lastTab: AnimatedBottomBar.Tab?,
newIndex: Int,
newTab: AnimatedBottomBar.Tab
) {
navbar.animate().translationZ(12f).setDuration(200).start()
selectedOption = newIndex
mainViewPager.setCurrentItem(newIndex, false)
}
})
navbar.selectTabAt(selectedOption)
//supportFragmentManager.beginTransaction().replace(binding.fragmentContainer.id, OfflineFragment()).commit()
}
private class ViewPagerAdapter(fragmentManager: FragmentManager, lifecycle: Lifecycle) :
FragmentStateAdapter(fragmentManager, lifecycle) {
override fun getItemCount(): Int = 3
override fun createFragment(position: Int): Fragment {
return when (position) {
0 -> OfflineAnimeFragment()
2 -> OfflineMangaFragment()
else -> OfflineFragment()
}
}
}

View File

@@ -3,7 +3,10 @@ package ani.dantotsu.media
import java.io.Serializable
data class Author(
val id: String,
val name: String,
var yearMedia: MutableMap<String, ArrayList<Media>>? = null
var id: Int,
var name: String?,
var image: String?,
var role: String?,
var yearMedia: MutableMap<String, ArrayList<Media>>? = null,
var character: ArrayList<Character>? = null
) : Serializable

View File

@@ -12,9 +12,17 @@ import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.ConcatAdapter
import androidx.recyclerview.widget.GridLayoutManager
import ani.dantotsu.*
import androidx.recyclerview.widget.LinearLayoutManager
import ani.dantotsu.EmptyAdapter
import ani.dantotsu.R
import ani.dantotsu.Refresh
import ani.dantotsu.databinding.ActivityAuthorBinding
import ani.dantotsu.initActivity
import ani.dantotsu.navBarHeight
import ani.dantotsu.others.getSerialized
import ani.dantotsu.px
import ani.dantotsu.statusBarHeight
import ani.dantotsu.themes.ThemeManager
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
@@ -25,9 +33,10 @@ class AuthorActivity : AppCompatActivity() {
private val model: OtherDetailsViewModel by viewModels()
private var author: Author? = null
private var loaded = false
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
ThemeManager(this).applyTheme()
binding = ActivityAuthorBinding.inflate(layoutInflater)
setContentView(binding.root)
@@ -46,14 +55,15 @@ class AuthorActivity : AppCompatActivity() {
binding.studioClose.setOnClickListener {
onBackPressedDispatcher.onBackPressed()
}
model.getAuthor().observe(this) {
if (it != null) {
author = it
loaded = true
binding.studioProgressBar.visibility = View.GONE
binding.studioRecycler.visibility = View.VISIBLE
if (author!!.yearMedia.isNullOrEmpty()) {
binding.studioRecycler.visibility = View.GONE
}
val titlePosition = arrayListOf<Int>()
val concatAdapter = ConcatAdapter()
val map = author!!.yearMedia ?: return@observe
@@ -80,9 +90,19 @@ class AuthorActivity : AppCompatActivity() {
concatAdapter.addAdapter(MediaAdaptor(0, medias, this, true))
concatAdapter.addAdapter(EmptyAdapter(empty))
}
binding.studioRecycler.adapter = concatAdapter
binding.studioRecycler.layoutManager = gridLayoutManager
binding.charactersRecycler.visibility = View.VISIBLE
binding.charactersText.visibility = View.VISIBLE
binding.charactersRecycler.adapter =
CharacterAdapter(author!!.character ?: arrayListOf())
binding.charactersRecycler.layoutManager =
LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false)
if (author!!.character.isNullOrEmpty()) {
binding.charactersRecycler.visibility = View.GONE
binding.charactersText.visibility = View.GONE
}
}
}
val live = Refresh.activity.getOrPut(this.hashCode()) { MutableLiveData(true) }

View File

@@ -0,0 +1,58 @@
package ani.dantotsu.media
import android.app.Activity
import android.content.Intent
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.app.ActivityOptionsCompat
import androidx.core.content.ContextCompat
import androidx.core.util.Pair
import androidx.core.view.ViewCompat
import androidx.recyclerview.widget.RecyclerView
import ani.dantotsu.databinding.ItemCharacterBinding
import ani.dantotsu.loadImage
import ani.dantotsu.setAnimation
import java.io.Serializable
class AuthorAdapter(
private val authorList: ArrayList<Author>,
) : RecyclerView.Adapter<AuthorAdapter.AuthorViewHolder>() {
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): AuthorViewHolder {
val binding =
ItemCharacterBinding.inflate(LayoutInflater.from(parent.context), parent, false)
return AuthorViewHolder(binding)
}
override fun onBindViewHolder(holder: AuthorViewHolder, position: Int) {
val binding = holder.binding
setAnimation(binding.root.context, holder.binding.root)
val author = authorList[position]
binding.itemCompactRelation.text = author.role
binding.itemCompactImage.loadImage(author.image)
binding.itemCompactTitle.text = author.name
}
override fun getItemCount(): Int = authorList.size
inner class AuthorViewHolder(val binding: ItemCharacterBinding) :
RecyclerView.ViewHolder(binding.root) {
init {
itemView.setOnClickListener {
val author = authorList[bindingAdapterPosition]
ContextCompat.startActivity(
itemView.context,
Intent(
itemView.context,
AuthorActivity::class.java
).putExtra("author", author as Serializable),
ActivityOptionsCompat.makeSceneTransitionAnimation(
itemView.context as Activity,
Pair.create(
binding.itemCompactImage,
ViewCompat.getTransitionName(binding.itemCompactImage)!!
),
).toBundle()
)
}
}
}
}

View File

@@ -1,17 +1,25 @@
package ani.dantotsu.media
import android.annotation.SuppressLint
import android.os.Bundle
import android.util.TypedValue
import android.view.View
import android.view.ViewGroup
import android.view.Window
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.core.view.updateLayoutParams
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.lifecycleScope
import ani.dantotsu.R
import ani.dantotsu.Refresh
import ani.dantotsu.databinding.ActivityListBinding
import ani.dantotsu.hideSystemBarsExtendView
import ani.dantotsu.media.user.ListViewPagerAdapter
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
import ani.dantotsu.statusBarHeight
import ani.dantotsu.themes.ThemeManager
import com.google.android.material.tabs.TabLayout
import com.google.android.material.tabs.TabLayoutMediator
import kotlinx.coroutines.Dispatchers
@@ -24,28 +32,61 @@ class CalendarActivity : AppCompatActivity() {
private var selectedTabIdx = 1
private val model: OtherDetailsViewModel by viewModels()
@SuppressLint("SetTextI18n")
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
ThemeManager(this).applyTheme()
binding = ActivityListBinding.inflate(layoutInflater)
val typedValue = TypedValue()
theme.resolveAttribute(com.google.android.material.R.attr.colorSurface, typedValue, true)
val primaryColor = typedValue.data
val typedValue3 = TypedValue()
theme.resolveAttribute(com.google.android.material.R.attr.colorPrimary, typedValue3, true)
val primaryTextColor = typedValue3.data
val typedValue4 = TypedValue()
theme.resolveAttribute(com.google.android.material.R.attr.colorOutline, typedValue4, true)
val secondaryTextColor = typedValue4.data
window.statusBarColor = primaryColor
window.navigationBarColor = primaryColor
binding.listTabLayout.setBackgroundColor(primaryColor)
binding.listAppBar.setBackgroundColor(primaryColor)
binding.listTitle.setTextColor(primaryTextColor)
binding.listTabLayout.setTabTextColors(secondaryTextColor, primaryTextColor)
binding.listTabLayout.setSelectedTabIndicatorColor(primaryTextColor)
if (!(PrefManager.getVal(PrefName.ImmersiveMode) as Boolean)) {
this.window.statusBarColor =
ContextCompat.getColor(this, R.color.nav_bg_inv)
binding.root.fitsSystemWindows = true
} else {
binding.root.fitsSystemWindows = false
requestWindowFeature(Window.FEATURE_NO_TITLE)
hideSystemBarsExtendView()
binding.settingsContainer.updateLayoutParams<ViewGroup.MarginLayoutParams> {
topMargin = statusBarHeight
}
}
setContentView(binding.root)
window.statusBarColor = ContextCompat.getColor(this, R.color.nav_bg)
binding.listTitle.setText(R.string.release_calendar)
binding.listSort.visibility = View.GONE
binding.random.visibility = View.GONE
binding.listTabLayout.addOnTabSelectedListener(object : TabLayout.OnTabSelectedListener {
override fun onTabSelected(tab: TabLayout.Tab?) {
this@CalendarActivity.selectedTabIdx = tab?.position ?: 1
}
override fun onTabUnselected(tab: TabLayout.Tab?) { }
override fun onTabReselected(tab: TabLayout.Tab?) { }
override fun onTabUnselected(tab: TabLayout.Tab?) {}
override fun onTabReselected(tab: TabLayout.Tab?) {}
})
model.getCalendar().observe(this) {
if (it != null) {
binding.listProgressBar.visibility = View.GONE
binding.listViewPager.adapter = ListViewPagerAdapter(it.size, true,this)
binding.listViewPager.adapter = ListViewPagerAdapter(it.size, true, this)
val keys = it.keys.toList()
val values = it.values.toList()
val savedTab = this.selectedTabIdx
@@ -67,4 +108,4 @@ class CalendarActivity : AppCompatActivity() {
}
}
}
}

View File

@@ -9,10 +9,11 @@ data class Character(
val image: String?,
val banner: String?,
val role: String,
var isFav: Boolean,
var description: String? = null,
var age: String? = null,
var gender: String? = null,
var dateOfBirth: FuzzyDate? = null,
var roles: ArrayList<Media>? = null
var roles: ArrayList<Media>? = null,
val voiceActor: ArrayList<Author>? = null,
) : Serializable

Some files were not shown because too many files have changed in this diff Show More