Compare commits

...
519 Commits
Author SHA1 Message Date
davidoskky 4b9899c04e Remove login information from update request
Removed the username and password in the GET /update request.
The endpoint does not require authentication and it is unsafe to transmit login credentials over GET requests.
2025-04-12 23:00:24 +02:00
davidoskky e9e2b6415f Support SSE for source updates
This uses the Server Side Events added in Selfoss API 6.1.0 when calling GET /update
This change only supports the new response format but provides no change for the users.
The older versions are still supported.
2025-04-12 22:59:48 +02:00
AmineB ceba58e98f Merge pull request 'Fix alignment changes resetting reader article position' (#190) from davidoskky/ReaderForSelfoss-multiplatform:alignment into master
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#190
2025-03-16 13:14:44 +00:00
davidoskky c3ee07dd85 Refactor star icon handling
Extracted all favorite handling to two functions. Makes it a little bit more readable.
2025-03-12 16:07:49 +01:00
davidoskky 93d99192b3 Don't restart activity changing alignment
When changing alignment in the reader we were restarting the reader activity to reload. Doing this led to reloading the article which was initially opened every time you changed alignment. Now, when changing the alignment we retain all existing fragments but command all of them to update their alignment setting.
2025-03-12 16:07:49 +01:00
giteadrone 359dec2ca0 Changelog for v125030711 2025-03-12 11:39:57 +00:00
AmineB 62354ec70a Merge pull request 'fix: initial status loading issues.' (#192) from connectivity into master
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#192
2025-03-12 11:20:14 +00:00
AmineB 18a17251ac chore: check changes for translations and android. 2025-03-11 22:20:07 +01:00
AmineB 5e91724ee2 fix: initial status loading issues. 2025-03-11 22:04:42 +01:00
AmineB 212d259a33 Merge pull request 'chore: new connectivity dep. Closes #84.' (#189) from connectivity into master
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#189
2025-03-11 13:48:57 +00:00
AmineB 3bf60f1146 chore: new connectivity dep. Closes #84. 2025-03-10 21:11:39 +01:00
giteadrone ef13e300f0 Changelog for v125030681 2025-03-09 17:41:13 +00:00
AmineB f170d1157d chore: do not send reports on simulators. 2025-03-09 18:17:41 +01:00
AmineB af4752f0f0 Merge pull request 'chore: do not send reports on simulators.' (#188) from chore-acra-simulator into master
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#188
2025-03-09 17:11:28 +00:00
AmineB f0fa1a17b6 chore: do not send reports on simulators. 2025-03-09 18:07:14 +01:00
AmineB bb84d1541c Merge pull request 'fix: Url validation was not failing login. Added tests.' (#186) from fix-invalid-url into master
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#186
2025-03-09 16:54:18 +00:00
AmineB c9227b2c1c Merge pull request 'chore: crowding ci integration.' (#187) from chore-crowdin-ci into master
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#187
2025-03-09 16:54:02 +00:00
AmineB 6eaad0c7c5 chore: we don't need to check if the url is valid in upsert screen. 2025-03-09 16:24:38 +01:00
AmineB a1c98aa7d0 fix: Url validation was not failing login. Added tests. 2025-03-09 16:24:38 +01:00
AmineB d5ec118679 chore: crowding ci integration. 2025-03-09 16:19:59 +01:00
davidoskkyandAmineB a1c0241a58 Show a confirmation dialog before deleting sources (#185)
## Types of changes

- [ x ] I have read the **CONTRIBUTING** document.
- [ x ] My code follows the code style of this project.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [ x ] All new and existing tests passed.
- [ x ] This is **NOT** translation related.

This is implements feature #156

I added a confirmation dialogue which pops up after tapping the delete source button. The popup displays the full name of the source to be deleted and allows the user to decide not to delete the source to prevent erroneous deletions.

I moved most of the logic into the viewholder. Can be easily reverted if you prefer.

All tests pass. I tested correct behavior in emulated versions of android API 25, 34 and 35.

Co-authored-by: Amine <amine.bouabdallaoui@pm.me>
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#185
Co-authored-by: davidoskky <davidoskky@yahoo.it>
Co-committed-by: davidoskky <davidoskky@yahoo.it>
2025-03-09 13:49:32 +00:00
giteadrone f38936f9b4 Changelog for v125020581 2025-02-27 21:08:25 +00:00
AmineB a90ccec707 fix: url can be empty ? 2025-02-27 21:40:06 +01:00
giteadrone 2564b19726 Changelog for v125020471 2025-02-16 14:43:28 +00:00
AmineB 61c7bb20cc chore: no more docker-compose. 2025-02-16 15:17:51 +01:00
AmineB 6a0f5baf0a bump: gradle plugin. 2025-02-16 14:57:34 +01:00
AmineB 39f9505c00 Merge pull request 'fix: check index exists.' (#183) from fix-index into master
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#183
2025-02-16 13:37:42 +00:00
AmineB 6a6d447456 fix: check index exists. 2025-02-16 13:57:42 +01:00
giteadrone 0bb4fe6aed Changelog for v125020411 2025-02-10 20:16:56 +00:00
AmineB 7df4c3368c Merge pull request 'bump' (#182) from bump into master
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#182
2025-02-10 19:35:40 +00:00
AmineB c69635b5ae chore: non transiant R classes. 2025-02-09 22:27:53 +01:00
AmineB 3a829df70e Merge pull request 'fix: One more missing context.' (#181) from fix-one-more-context into master
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#181
2025-02-09 20:44:29 +00:00
AmineB 7a0202689f bump 2025-02-09 21:44:02 +01:00
AmineB b20f6888f5 fix: One more missing context. 2025-02-09 14:42:17 +01:00
AmineB 6b96eb358d Merge pull request 'chore: more context issues.' (#180) from context-again into master
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#180
2025-01-29 14:50:22 +00:00
AmineB dfc1bf9fa3 chore: more context issues. 2025-01-29 13:43:35 +01:00
giteadrone b173664ff0 Changelog for v125010241 2025-01-24 22:06:19 +00:00
AmineB bc20a421ae Merge pull request 'fix: Link not opening.' (#178) from fix-open-link into master
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#178
2025-01-24 21:48:14 +00:00
AmineB 794500355a refactor: context fragments issues. 2025-01-24 21:44:20 +01:00
AmineB 44f9dd53d3 logs: Context issues. 2025-01-24 21:10:01 +01:00
AmineB 717d6b664c fix: Handle empty url issue, again. 2025-01-24 21:04:15 +01:00
AmineB e23289a3dc fix: Link not opening. 2025-01-24 20:56:04 +01:00
giteadrone 2f5ebe2420 Changelog for v125010201 2025-01-20 07:41:09 +00:00
AmineB 1893904135 fix: Handle empty url issue. 2025-01-19 14:49:37 +01:00
AmineB a4cb28ba81 Merge pull request 'Removed the floating bar.' (#177) from floating-bar into master
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#177
2025-01-19 13:35:18 +00:00
AmineB ae3cada1c7 chore: changing actions in reader fragment. 2025-01-19 12:54:25 +00:00
giteadrone 309500276f Changelog for v125010131 2025-01-13 16:19:05 +00:00
AmineB ce255b23cd fix: reload the adapter when it's needed. Fixes #128. (#176)
## Types of changes

- [ ] I have read the **CONTRIBUTING** document.
- [ ] My code follows the code style of this project.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
- [ ] This is **NOT** translation related.

This closes issue #XXX

This is implements feature #YYY

This finishes chore #ZZZ

Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#176
Co-authored-by: Amine <amine.bouabdallaoui@pm.me>
Co-committed-by: Amine <amine.bouabdallaoui@pm.me>
2025-01-13 15:08:39 +00:00
AmineB 3b3a575dae feat: basic auth and images loading. Fixes #172. (#175)
## Types of changes

- [ ] I have read the **CONTRIBUTING** document.
- [ ] My code follows the code style of this project.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
- [ ] This is **NOT** translation related.

This closes issue #XXX

This is implements feature #YYY

This finishes chore #ZZZ

Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#175
Co-authored-by: Amine <amine.bouabdallaoui@pm.me>
Co-committed-by: Amine <amine.bouabdallaoui@pm.me>
2025-01-13 07:39:13 +00:00
giteadrone 7bcf4574b4 Changelog for v125010111 2025-01-11 20:54:28 +00:00
AmineB c79ab5e92b Debug trying to fix context issues. (#174)
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#174
Co-authored-by: Amine <amine.bouabdallaoui@pm.me>
Co-committed-by: Amine <amine.bouabdallaoui@pm.me>
2025-01-11 20:35:27 +00:00
giteadrone 54dbda76ab Changelog for v125010031 2025-01-03 09:09:18 +00:00
AmineB 11c39ae87c Merge pull request 'Bump dependencies' (#173) from upgarde into master
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#173
2025-01-03 08:41:15 +00:00
AmineB 6645902ec8 chore: "faster" action. 2025-01-03 09:19:12 +01:00
AmineB 0a07a5dfad fastlane: icon change. 2025-01-03 09:18:06 +01:00
AmineB d88d38fd3b chore: ignoring a pixel issue. 2025-01-02 20:53:00 +01:00
AmineB 28fe38aa17 test: fixed an ui test issue. 2025-01-02 20:32:53 +01:00
AmineB d524c30732 fix: center the loading thing. 2024-12-31 15:31:47 +01:00
AmineB 8c00aa65da test: items displaying. 2024-12-31 15:23:26 +01:00
AmineB ae81261cb1 bump: sqldelight. 2024-12-31 12:37:36 +01:00
AmineB 03c567ee33 bump: material, desugar jdk, jsoup, kodein, settings, napier, mock. 2024-12-31 11:45:11 +01:00
AmineB d23dd82fc2 bump: androix and coroutines. 2024-12-31 11:06:36 +01:00
AmineB 2e7a168424 bump: ktor. Closes #67. 2024-12-31 10:03:21 +01:00
giteadrone 5bc2f614af Changelog for v124123651 2024-12-30 22:54:15 +00:00
AmineB 934c112db5 Merge pull request 'Bugfixes' (#171) from bugfixes into master
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#171
2024-12-30 22:32:11 +00:00
AmineB ad7549a89f config: crowdin 2024-12-30 23:20:03 +01:00
AmineB fb9ceecabd chore: can links be empty ? 2024-12-30 22:45:18 +01:00
AmineB 61b9fd30e0 fix: Context issues in article fragment. 2024-12-30 22:37:36 +01:00
AmineB 806e56e20b fix: Context issues in fragment sheet. 2024-12-30 22:12:38 +01:00
AmineB cd8b7aaf9d fix: build. 2024-12-30 22:12:21 +01:00
AmineB c25ad7621e chore: compile issue fix. 2024-12-30 15:07:35 +01:00
AmineB 63da3b9fe7 chore: filter some bugs. 2024-12-30 15:07:18 +01:00
AmineB 1d99eeb633 bugfix: catch users using something other than selfoss. 2024-12-30 13:51:45 +01:00
AmineB 162a350a8f bugfix: No browser, no link. 2024-12-30 13:51:14 +01:00
AmineB 27c1bba146 translations 2024-12-30 13:49:42 +01:00
AmineB b7f3a9877a chore: remove log. 2024-12-30 12:58:34 +01:00
AmineB 47f78754dc translation 2024-12-30 12:48:42 +01:00
giteadrone 1bdfb143ac Changelog for v124123641 2024-12-29 22:02:12 +00:00
AmineB d81ced3964 Chore: no tests on build. 2024-12-29 22:37:59 +01:00
AmineB fbafece1fa Merge pull request 'testing' (#170) from testing into master
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#170
2024-12-29 21:23:52 +00:00
AmineB cbed8f07cb fix: Displaying fixes. Fixes #155 2024-12-29 22:13:45 +01:00
AmineB f54fcc3ba1 test: coverage 2024-12-29 21:35:12 +01:00
aminecmi aad93ef722 chore: update and use multiplatform datetime 2024-12-21 20:32:58 +01:00
giteadrone 9e83af0302 Changelog for v124123421 2024-12-07 17:41:21 +00:00
aminecmi 24b86e66b4 fix: Trying to fix the serialization issue. 2024-12-07 18:20:49 +01:00
giteadrone 641c444061 Changelog for v124113311 2024-11-26 20:40:47 +00:00
administrateurandaminecmi 0902c61544 chore: update versions. (#165)
## Types of changes

- [ ] I have read the **CONTRIBUTING** document.
- [ ] My code follows the code style of this project.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
- [ ] This is **NOT** translation related.

This closes issue #XXX

This is implements feature #YYY

This finishes chore #ZZZ

Co-authored-by: aminecmi <aminecmi@gmail.com>
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#165
Co-authored-by: administrateur <administrateur@hidden.hidden>
Co-committed-by: administrateur <administrateur@hidden.hidden>
2024-11-26 20:19:43 +00:00
aminecmi 6790152a0b chore: fastlane changelog. 2024-11-26 21:06:57 +01:00
aminecmi 46d1ba418e chore: fastlane fixes. 2024-11-26 21:03:31 +01:00
giteadrone 436373d0ad Changelog for v124113301 2024-11-25 22:23:23 +01:00
aminecmi 5b9b51c02d chore: Gitea Action 2024-11-25 21:55:48 +01:00
administrateur b81abe384a Merge pull request 'chore: Gitea Action' (#164) from runner into master
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#164
2024-11-23 14:14:45 +00:00
aminecmi 851f862dbe chore: Gitea Action 2024-11-23 14:54:45 +01:00
aminecmi 8d7e302af8 chore: Readme update. 2024-11-20 20:45:06 +01:00
AmineB 236e1cca90 Fix recycleview article positions (#163)
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#163
Reviewed-by: Amine Bouabdallaoui <amineb@hidden.hidden>
2024-11-20 09:32:29 +01:00
davidoskky 3a33cb4510 Provide method to update items in the home
Removed in the previous commit, the item adapter accepts a method to update the articles list in the home page.
Renamed the method to make its objective more clear.
Removed a debugging log.
Reverted change to function name.
2024-11-20 01:28:47 +01:00
davidoskky 0bf9ca9a49 Fix recycleview article positions
The articles were being opened by setting a click listener on the binding.
In card view this was being done through a function and as such it used the overall viewbind of the view rather than the binding of the item viewholder.
Now the functions are more explicit to avoid future errors.
Pulled up a few members from ItemCardAdapter and ItemListAdapter to ItemAdapter.
2024-11-19 01:50:58 +01:00
aminecmi 61e0087894 Changelog for v124041081 [CI SKIP] 2024-04-17 10:57:12 +00:00
aminecmi 1ec05d9913 chore: comment. 2024-04-17 12:39:45 +02:00
aminecmi 859bd91bbb fix: Last time fixing the parsing date hack before moving it to os version. 2024-04-17 12:22:33 +02:00
aminecmi 204b736c53 Changelog for v124030731 [CI SKIP] 2024-03-13 19:51:14 +00:00
aminecmi f24609c143 fix: Basic auth and password can have non whitspace characters. Fixes 142. 2024-03-13 20:31:24 +01:00
aminecmi b94d7dc537 Changelog for v124020451 [CI SKIP] 2024-02-14 19:54:05 +00:00
aminecmi 41910cc4cd fix: Fixed handling of position in card adapter. 2024-02-13 21:31:02 +01:00
aminecmi db166ca9d4 Changelog for v124010301 [CI SKIP] 2024-01-30 19:36:37 +00:00
aminecmi db0d5a4a85 fix: This may fix the oom errors. 2024-01-29 20:55:29 +01:00
aminecmi 3bc0d7cf95 Changelog for v124010191 [CI SKIP] 2024-01-19 21:16:23 +00:00
aminecmi 8f464d95fd fix: moving listeners. 2024-01-19 21:32:43 +01:00
aminecmi 5ccd6a3368 chore: removed a useless log. 2024-01-19 21:32:43 +01:00
aminecmi cdbded246e Changelog for v124010032 [CI SKIP] 2024-01-03 22:16:35 +00:00
aminecmi 750c7758bd fix: Another date format thing. 2024-01-03 23:07:57 +01:00
aminecmi 22f8b14ecd Changelog for v124010031 [CI SKIP] 2024-01-03 21:46:48 +00:00
aminecmi 6e27d6d4e6 fix: Checking if selfoss instance. 2024-01-03 22:28:57 +01:00
aminecmi 14ff4dbd05 fix: handle three characters lenght hexcode colors. 2024-01-03 21:35:58 +01:00
aminecmi 390c2d0cf3 Changelog for v123113311 [CI SKIP] 2023-11-27 20:48:32 +00:00
aminecmi e58914ef58 chore: Source tracker url in the menu. 2023-11-27 21:31:46 +01:00
aminecmi a03f08fca1 fix: Handle kodein proguard rules. 2023-11-27 21:31:26 +01:00
aminecmi 8e9b87f00c Changelog for v123102961 [CI SKIP] 2023-10-23 21:11:15 +00:00
aminecmi f765224a86 chore: domain changes. 2023-10-21 23:41:17 +02:00
aminecmi 14d2219eb8 Changelog for v123102852 [CI SKIP] 2023-10-12 18:48:06 +00:00
aminecmi 137580ccf9 chore: lint cleaning. 2023-10-12 20:38:01 +02:00
aminecmi f101d22f54 Changelog for v123102841 [CI SKIP] 2023-10-12 20:13:17 +02:00
aminecmi 68aedb7641 chore: verbose. 2023-10-11 21:13:10 +02:00
754d526b49 chore: cleaning ci steps and upgrading dependencies.
## Types of changes

- [ ] I have read the **CONTRIBUTING** document.
- [ ] My code follows the code style of this project.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
- [ ] This is **NOT** translation related.

This closes issue #XXX

This is implements feature #YYY

This finishes chore #ZZZ

Co-authored-by: davidoskky <davidoskky@yahoo.it>
Co-authored-by: aminecmi <aminecmi@gmail.com>
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/150
2023-10-10 20:52:26 +00:00
Amine Louveau c458871569 feat: Self signed ssl support.
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/141
2023-09-17 18:28:47 +00:00
davidoskky 056825aa0c Revert xmlns changes 2023-09-17 12:01:32 +02:00
davidoskky 16b19fc5ce Revert version upgrades 2023-09-17 11:59:08 +02:00
davidoskky 4ad4a23ed8 Revert to private functions 2023-09-12 00:38:37 +02:00
davidoskky d8c215eacc Reintroduce removed parameter 2023-09-12 00:36:56 +02:00
davidoskky 2b446ab22b Revert dependency version changes 2023-09-12 00:36:04 +02:00
davidoskky a029d8a7dc Move api client creation function within api class 2023-09-10 21:33:28 +02:00
davidoskky 4482234e1a Remove unused strings file 2023-09-10 21:15:04 +02:00
davidoskky b5de30f561 Add translations 2023-09-10 21:14:43 +02:00
davidoskky 70ad5f322c Handle most HTTP client creation in common code 2023-09-10 21:14:43 +02:00
davidoskky d167092c83 Add a login switch to disable SSL verification 2023-09-10 20:24:22 +02:00
davidoskky c4f4bafe85 Add a switch in the login screen to disable SSL 2023-07-13 14:55:48 +02:00
davidoskky ed06b22a77 Tentative self signed ssl support 2023-07-13 14:55:48 +02:00
aminecmi 172362b533 Changelog for v123061811 [CI SKIP] 2023-06-30 19:06:44 +00:00
aminecmi ad72cb6f56 feat: Added confirmation dialog for disconnect item menu. 2023-06-30 20:37:43 +02:00
aminecmi 9057ee0052 Changelog for v123061651 [CI SKIP] 2023-06-14 18:23:59 +00:00
aminecmi 50d0b44315 i18n: Translation update. 2023-06-13 20:52:42 +02:00
aminecmi 21b08ed384 i18n: Translation update. 2023-06-13 20:26:36 +02:00
aminecmi 993c4d2ee9 i18n: Translation update. 2023-06-12 20:50:26 +02:00
aminecmi 57a9d51027 fix: avoid trying to open invalid image urls. 2023-06-12 20:34:35 +02:00
aminecmi 673f0edb8b Changelog for v123051471 [CI SKIP] 2023-05-27 19:25:35 +00:00
aminecmi 7f96798f13 fix: images could be null. 2023-05-27 21:06:56 +02:00
aminecmi 6e5704a45b fix: Check if color is not empty before parsing it. 2023-05-27 21:02:25 +02:00
aminecmi 495591159f chore: Removed unused log. 2023-05-27 21:01:54 +02:00
aminecmi 718fe7c5ee Changelog for v123051331 [CI SKIP] 2023-05-13 20:24:57 +00:00
aminecmi ecd23213f9 fix: illegal input. 2023-05-13 22:14:25 +02:00
aminecmi e6baed8cb4 Changelog for v123051321 [CI SKIP] 2023-05-12 19:19:35 +00:00
aminecmi c87abec0b9 debug: Debug null context. 2023-05-12 20:31:40 +02:00
Amine Louveau 0aba41d8bf Changelog for v123051301 [CI SKIP] 2023-05-10 19:36:31 +00:00
Amine Louveauandaminecmi 2a2d1047b4 feat: Basic auth from url. Fixes #142 (#143)
Co-authored-by: aminecmi <aminecmi@gmail.com>
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/143
2023-05-10 19:19:11 +00:00
aminecmi 66ef1ccf32 debug: Debug index out of bound exception. 2023-05-10 20:50:13 +02:00
aminecmi 677ede5bc7 Changelog for v123051211 [CI SKIP] 2023-05-01 18:26:12 +00:00
aminecmi 996a7ed22c fix: Sometimes url isn't even defined. 2023-04-30 18:41:15 +02:00
Amine Louveau 85208c4e5a Changelog for v123041021 [CI SKIP] 2023-04-12 19:01:21 +00:00
Amine Louveau 5cfec50cba fix: 'Enable Core Library Desugaring to support older Android versions' (#138) from davidoskky/ReaderForSelfoss-multiplatform:desugaring into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/138
2023-04-12 18:26:37 +00:00
davidoskky 76ad71e1dc Enable Core Library Desugaring to support older Android versions 2023-04-12 16:29:47 +02:00
davidoskky 0277fb507c Changelog for v123030851 [CI SKIP] 2023-03-26 18:21:43 +00:00
davidoskky 8d7d3174aa chore: replace textDrawable library (#136)
## Types of changes

- [x] I have read the **CONTRIBUTING** document.
- [x] My code follows the code style of this project.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [x] All new and existing tests passed.
- [x] This is **NOT** translation related.

This closes issue #120

Removed the dependency `com.amulyakhare.textdrawable` and slightly simplified the logic required to set circular images.

Co-authored-by: davidoskky <davidoskky@yahoo.it>
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/136
Co-authored-by: davidoskky <davidoskky@hidden.hidden>
Co-committed-by: davidoskky <davidoskky@hidden.hidden>
2023-03-26 11:12:01 +00:00
aminecmi 00eb3333fe refactor: Remove slow login check. Closes #135. 2023-03-25 20:28:30 +01:00
aminecmi 629ca01d99 ci: send the mapping file after a release. 2023-03-17 10:10:38 +01:00
aminecmi c2d8681ce8 Changelog for v123030751 [CI SKIP] 2023-03-16 19:41:34 +00:00
aminecmi 08f79cb148 debug: added a lot to pinpoint the url issue. 2023-03-16 20:26:36 +01:00
davidoskky e21906e70d feat: Use /sources/stats in the home (#133)
## Types of changes

- [x] I have read the **CONTRIBUTING** document.
- [x] My code follows the code style of this project.
- [ ] I have updated the documentation accordingly.
- [x] I have added tests to cover my changes.
- [x] All new and existing tests passed.
- [x] This is **NOT** translation related.

This is implements feature #131 and it will allow implementing #132
With this, public mode functions perfectly and also has source filtering.

Co-authored-by: davidoskky <davidoskky@yahoo.it>
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/133
Co-authored-by: davidoskky <davidoskky@hidden.hidden>
Co-committed-by: davidoskky <davidoskky@hidden.hidden>
2023-03-13 16:26:54 +00:00
aminecmi 9d2cc32bc9 Changelog for v123030681 [CI SKIP] 2023-03-09 20:27:08 +00:00
aminecmi d9d057c8dc fix: Unread and starred can be null. 2023-03-09 20:46:09 +01:00
aminecmi 1f3fa0c4a6 Fixed version number issue. 2023-03-05 21:02:03 +01:00
aminecmi dea3def385 Changelog for v123030621 [CI SKIP] 2023-03-03 20:07:52 +00:00
aminecmi f72ef2f5d4 fix: url required issue. 2023-03-03 20:39:33 +01:00
aminecmi f28cb759df fix: Canvas reused issue. 2023-03-03 20:39:20 +01:00
aminecmi b9d69c3e64 Changelog for v123020572 [CI SKIP] 2023-02-26 19:13:41 +00:00
aminecmi c2a1c9eaac fix: requirecontext issues ? 2023-02-26 16:05:26 +01:00
aminecmi bf37209a15 debug: activity not found exception. 2023-02-26 15:40:58 +01:00
aminecmi 2c558fe6fd Changelog for v123020571 [CI SKIP] 2023-02-26 07:49:16 +00:00
aminecmi ad88011454 chore: remove errors logging. 2023-02-25 22:57:59 +01:00
aminecmi 559c17bc1d fix: quickfix for url param not provided for some sources. 2023-02-25 22:46:04 +01:00
Amine Louveau ab9c46f0eb Update 'CHANGELOG.md' 2023-02-21 15:00:37 +00:00
Amine Louveau aa799d2ca8 Changelog for v123020523 [CI SKIP] 2023-02-21 14:49:14 +00:00
Amine Louveau 177c978474 fix: Git changelog. 2023-02-21 14:05:32 +00:00
Amine Louveau 39b9991413 Changelog for v123020522 [CI SKIP] 2023-02-21 13:25:11 +00:00
Amine Louveau b303f110f1 fix: still fixing changelog versions. 2023-02-21 12:59:38 +00:00
Amine Louveau f851941a6a Changelog for v123020521 [CI SKIP] 2023-02-21 11:31:18 +00:00
Amine Louveau a313552976 fix: change changelog version on release. 2023-02-21 11:20:43 +00:00
aminecmi 6ac97ed3fe Changelog for v123020491 [CI SKIP] 2023-02-20 09:39:40 +00:00
aminecmi d583b937b7 fix: Fixed acra bug reporting. 2023-02-20 10:29:00 +01:00
aminecmi 15b9a2d935 Changelog for v123010301 [CI SKIP] 2023-02-18 20:01:03 +00:00
aminecmi 5a8ce15961 Chore: acra config. 2023-02-18 20:38:06 +01:00
davidoskky e1c64cef46 Changelog for v123010281 [CI SKIP] 2023-01-30 19:55:23 +00:00
davidoskky ee064f3cb4 improvement: Improve right to left support (#130)
Co-authored-by: davidoskky <davidoskky@hidden.hidden>
Co-committed-by: davidoskky <davidoskky@hidden.hidden>
2023-01-29 12:55:28 +00:00
davidoskky 3e46e2ff29 Changelog for v123010261 [CI SKIP] 2023-01-28 10:57:06 +00:00
davidoskky f28e702549 feat: Handle public instances (#126)
Co-authored-by: davidoskky <davidoskky@hidden.hidden>
Co-committed-by: davidoskky <davidoskky@hidden.hidden>
2023-01-28 10:25:28 +00:00
aminecmi fc31a4399c ci: Pull request should trigger ci. 2023-01-28 11:23:00 +01:00
Amine Louveau 9b23053b66 fix: Complete the disconnection before redirecting to the login screen
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/129
2023-01-28 11:20:19 +01:00
davidoskky 389a04d250 Complete the disconnection before redirecting to the login screen 2023-01-27 14:21:33 +01:00
Amine Louveau 40e1d1478b Changelog for v123010241 [CI SKIP] 2023-01-26 10:55:43 +00:00
Amine Louveau 2154ff3c33 Merge pull request 'feat: swipe down to close images' (#122) from davidoskky/ReaderForSelfoss-multiplatform:swipe_down into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/122
2023-01-26 10:42:15 +00:00
davidoskky 2245565f95 Remove unnecessary definition 2023-01-25 21:25:32 +01:00
davidoskky 014858f06b Remove unused import 2023-01-25 20:40:20 +01:00
davidoskky 3f1f86a78e Adjust the image closing animation 2023-01-25 10:34:03 +01:00
davidoskky a549169a7c Add a dark hue to the underlying article when swiping to close images 2023-01-25 10:27:38 +01:00
davidoskky be7cae365a Rename activity style to avoid interferences 2023-01-25 02:09:41 +01:00
davidoskky cef3b2e593 Adapt the style of the image activity to the rest of the application 2023-01-25 01:54:35 +01:00
davidoskky ae927ebc57 Resolve issues when swiping down to close images 2023-01-25 00:46:43 +01:00
Amine Louveau 90532cf501 Changelog for v123010041 [CI SKIP] 2023-01-24 12:41:52 +00:00
Amine Louveau ab0678d61e Merge pull request 'scroll-tag-filters' (#124) from scroll-tag-filters into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/124
2023-01-23 21:42:42 +00:00
aminecmi a1b7d22d26 fix: added POST_NOTIFICATIONS to fix notifications issues. 2023-01-23 22:32:52 +01:00
aminecmi 29eae4b1f6 fix: scrollable filter sheet. 2023-01-23 21:13:10 +01:00
aminecmi f5bbc63481 enhancement: Ellipsize chips text. 2023-01-23 21:12:56 +01:00
davidoskky ddc72d85b0 Close the image fragment only if the image has been dragged down 2023-01-21 16:37:25 +01:00
davidoskky 68bbf5b2d3 Animate swipe down to close images 2023-01-20 16:36:52 +01:00
aminecmi 95e76a55da Cleaning. 2023-01-12 22:01:36 +01:00
davidoskky 2b6659f4ec Swipe down to close images 2023-01-11 22:28:14 +01:00
aminecmi e0c118a73e Changelog for v122123641 [CI SKIP] 2023-01-04 19:27:56 +00:00
aminecmi 4e61b2aed6 feat: Disable the failing source in the filter sheet. 2023-01-03 21:35:21 +01:00
aminecmi ba2758c0a3 feat: Display the source error in the sources list. 2023-01-03 21:28:40 +01:00
aminecmi c718b966a1 Changelog for v122123631 [CI SKIP] 2022-12-30 19:24:48 +00:00
aminecmi 99438e142f build: Added back maven repos (see https://gitlab.com/fdroid/fdroiddata/-/commit/1fb9d60dc58511abc2bb4eb321977922a0682c8b#note_1223925153) 2022-12-30 20:10:08 +01:00
aminecmi 4d8076c3cf build: Added back maven repos (see https://gitlab.com/fdroid/fdroiddata/-/commit/1fb9d60dc58511abc2bb4eb321977922a0682c8b#note_1223925153) 2022-12-29 21:34:13 +01:00
aminecmi db75c5b74a debug: trying to resolve Canvas: trying to use a recycled bitmap. 2022-12-29 20:40:39 +01:00
aminecmi 966a082147 fix: NPE may be caused by the binding or the title that was null. 2022-12-29 20:35:03 +01:00
aminecmi cd20a5ec29 chore: Skip drone pipeline on changelog push. 2022-12-29 14:11:29 +01:00
aminecmi cc4c1c9201 Changelog for v122123621 2022-12-29 13:08:23 +00:00
aminecmi ff021d572c fix: Automatic CHANGELOG generation. 2022-12-29 13:11:23 +01:00
Amine Louveau 89992967be Merge pull request 'Sources Upsert' (#119) from sources-edit into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/119
2022-12-28 21:31:49 +00:00
aminecmi 3c68bde62b Source update screen. 2022-12-28 22:19:11 +01:00
aminecmi c38251f5b3 Sources menu. 2022-12-28 21:45:00 +01:00
aminecmi a01f6d2322 chore: Automatic CHANGELOG generation. 2022-12-28 21:43:56 +01:00
Amine Louveau 417a33eb25 Merge pull request 'Running migrations.' (#118) from fix-migration into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/118
2022-12-28 14:49:11 +00:00
aminecmi 2e7f7f23b3 No duplicate builds for PRs. 2022-12-28 15:34:22 +01:00
aminecmi e5e182761e Running migrations. 2022-12-28 15:27:17 +01:00
Amine Louveau a094d88799 Merge pull request 'Make the author field nullable' (#117) from davidoskky/ReaderForSelfoss-multiplatform:author into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/117
2022-12-28 14:25:36 +00:00
davidoskky e51915d1cd Include author field when updating the database 2022-12-28 14:25:56 +01:00
davidoskky 3a654f6ede Migrate the database table 2022-12-28 14:25:34 +01:00
davidoskky 5227751dca Make the author field nullable 2022-12-28 11:02:43 +01:00
aminecmi 27eafe4ff4 Delete sources from DB and reload items on source deletion. 2022-12-26 22:27:28 +01:00
aminecmi 8c83a9408b Drone should work better. 2022-12-26 22:26:28 +01:00
aminecmi fe2410f719 Handling author field. 2022-12-26 21:49:55 +01:00
aminecmi a5e86bfb77 Date format issues. 2022-12-26 15:02:19 +01:00
aminecmi 23be633798 Add api version to the reports. 2022-12-25 22:45:12 +01:00
aminecmi 813e0707d8 Date format issue. 2022-12-25 22:41:34 +01:00
aminecmi 9ed9bf07fc Items in repository. 2022-12-23 22:53:16 +01:00
aminecmi 47265c10d0 Trying nexus build. 2022-12-23 14:59:58 +01:00
aminecmi 5cc633246a Debugging images issues. 2022-12-22 20:28:49 +01:00
aminecmi 1f40385786 Context should not be null, but handle the case for now. 2022-12-19 22:08:28 +01:00
aminecmi eb2876324a This seems to be needed. 2022-12-19 20:47:04 +01:00
aminecmi 633b817d76 Remonving matomo. 2022-12-18 21:07:42 +01:00
aminecmi 2cfaa9b285 Logout fix. 2022-12-18 20:42:13 +01:00
aminecmi f42ae97326 Explicitly failing for non selfoss rss files. 2022-12-18 20:41:17 +01:00
aminecmi 3b0028164b Glide update + trying requests. 2022-12-17 22:25:23 +01:00
aminecmi 7420adeb5c Do not ignore git version. 2022-12-14 21:42:56 +01:00
aminecmi 316027ca3b Tag for build. 2022-12-14 21:26:33 +01:00
aminecmi 9d58fba5c9 Cleaning. 2022-12-14 21:07:03 +01:00
aminecmi 284c19ef89 More cleaning. 2022-12-14 20:54:48 +01:00
aminecmi 7cfd17231a Cleaning. 2022-12-13 22:22:31 +01:00
aminecmi 527830a5ae Merge branch 'sonar-qube' 2022-12-13 21:53:10 +01:00
aminecmi c4ed30f594 Fixes #112. 2022-12-13 21:32:48 +01:00
aminecmi 156c1681cf Fixes #111. 2022-12-13 21:19:05 +01:00
aminecmi 3593fbca78 Sonar scanner. 2022-12-13 21:11:38 +01:00
aminecmi 430fc8e8cb Fixes #110. 2022-12-13 20:40:50 +01:00
aminecmi 4fce19bad4 Trying to set code coverage. 2022-12-13 20:29:51 +01:00
Amine Louveau 49f5848e7b Merge pull request 'Fixes #108.' (#109) from bug/lateinit into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/109
2022-12-12 20:15:44 +00:00
aminecmi 90452100a4 Fixes #108. 2022-12-12 21:11:26 +01:00
aminecmi bf1196dd0f Translations. 2022-12-09 20:27:38 +01:00
aminecmi 4316dc6516 Removing hidden tags. 2022-12-09 20:23:01 +01:00
aminecmi 9833a66a64 Cleaning tags duplications. 2022-12-08 14:02:30 +01:00
aminecmi 797bf06a9c Retry to fix post login issues. 2022-12-08 13:09:02 +01:00
Amine Louveau d98b00533d Merge pull request 'filters' (#107) from filters into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/107
2022-12-07 19:13:46 +00:00
aminecmi bf8f7d8667 Cleaning. 2022-12-07 12:11:58 +01:00
aminecmi 89c570f34f Fixing tests. 2022-12-06 22:36:15 +01:00
aminecmi d6a562863a Big cleaning. 2022-12-06 22:18:38 +01:00
aminecmi a02f06fe2e Big drawer cleaning. 2022-12-06 21:39:41 +01:00
aminecmi 7b088d7bb4 Hidden tags. 2022-12-06 21:39:41 +01:00
aminecmi 477883ed39 Tags sources reset. 2022-12-06 21:39:41 +01:00
aminecmi 748ed41096 Filters working. 2022-12-06 21:39:41 +01:00
aminecmi 86c50d4881 Loading sources and tags. 2022-12-06 21:39:41 +01:00
aminecmi c4c92e6dd9 No need to login without password and username. 2022-12-06 21:39:32 +01:00
aminecmi 7f0ba193ec Fonts are a pain in the a$$. 2022-12-05 21:04:32 +01:00
aminecmi 87ed5b0fa8 Cleaning, and fixing socket timeout log. 2022-12-04 20:46:43 +01:00
aminecmi 6947743ac0 More details for silent reports. 2022-12-03 21:39:46 +01:00
Amine Louveau 07e3710d44 Merge pull request 'acra' (#104) from acra into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/104
2022-12-01 21:01:18 +00:00
aminecmi e68da7764f Settings for acra and analytics. Closes #98. 2022-12-01 21:30:20 +01:00
aminecmi c3ff894027 Initial integration. 2022-11-30 20:53:11 +01:00
Amine Louveau f09f731d30 Merge pull request 'Cookies login and logout.' (#103) from login into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/103
2022-11-30 10:04:13 +00:00
aminecmi 956c4341c7 Cookies login and logout. 2022-11-29 21:38:58 +01:00
aminecmi 7b68264dd7 Cleaning. 2022-11-21 20:20:27 +01:00
aminecmi cfcf030bf8 Removing gradle props. 2022-11-14 13:38:10 +01:00
aminecmi 0e7d7a5835 Conditionnal siteId 2022-11-14 13:18:20 +01:00
aminecmi 0856ebb889 Removing matomo url from build config. 2022-11-14 13:10:17 +01:00
Amine Louveau 25bf68cf0c Merge pull request 'Initial Matomo integration.' (#101) from login into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/101
2022-11-13 13:18:49 +00:00
aminecmi afc6f392c6 Initial Matomo integration. 2022-11-13 13:13:03 +01:00
Amine Louveau a0b5e2052b Merge pull request 'Fixed theme reload issues.' (#100) from fix-theme-reload into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/100
2022-11-11 20:29:08 +00:00
aminecmi 87d1ef2bce Fixed theme reload issues. 2022-11-11 20:51:49 +01:00
Amine Louveau 537a6d3a0b Merge pull request 'Checkerboard background for transparency in zoomed images' (#92) from davidoskky/ReaderForSelfoss-multiplatform:checkerboard into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/92
2022-11-11 19:29:40 +00:00
davidoskky dbe97f564e Revert imageview changes 2022-11-11 09:40:36 +01:00
aminecmi 3a3bf03114 Bigger checktile. 2022-11-10 21:41:55 +01:00
davidoskky c09a32e9ad Add checkerboard background to the images in the image view
A checkerboard is drawn beneath the image in the imageview to allow
a simpler viewing of images with transparency
2022-11-09 16:39:00 +01:00
davidoskky b02a588dff Add a checkerboard background drawable 2022-11-09 16:34:37 +01:00
Amine Louveau a4527940b8 Merge pull request 'Mercury issues fixing.' (#96) from mercury-common into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/96
2022-11-08 21:17:23 +00:00
aminecmi 9e8a25ed3e Fixing tests. 2022-11-08 22:02:20 +01:00
aminecmi 8ea46e146b Cleaning. 2022-11-08 21:54:12 +01:00
aminecmi 5ecf3c3f87 Mercury api in common code. 2022-11-08 21:31:40 +01:00
aminecmi 325f103417 Timeout. 2022-11-08 20:49:18 +01:00
Amine Louveau ab4b1ae644 Merge pull request 'Theme should automatically change on phone settings change.' (#95) from theme-update into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/95
2022-11-08 07:38:54 +00:00
aminecmi 87ea44754e Font update. 2022-11-07 22:36:20 +01:00
aminecmi 04dec50808 Theme should automatically change on phone settings change. 2022-11-07 22:07:35 +01:00
Amine Louveau e36189e2e7 Merge pull request 'About config upgrade.' (#93) from aboutconfig into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/93
2022-11-05 21:20:17 +00:00
aminecmi d6bdf510a4 About config upgrade. 2022-11-05 22:00:16 +01:00
Amine Louveau a464e93370 Merge pull request 'Immediately update bottom badges after reading or starring articles' (#91) from davidoskky/ReaderForSelfoss-multiplatform:badges into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/91
2022-11-02 19:06:48 +00:00
davidoskky 4b63afe62a Update badges tests 2022-11-01 21:51:46 +01:00
davidoskky ac4c4b9441 Merge branch 'master' into badges 2022-11-01 20:35:13 +00:00
Amine Louveau 16b10dc1b7 Merge pull request 'Show all sources in the sources list' (#90) from davidoskky/ReaderForSelfoss-multiplatform:sources into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/90
2022-11-01 20:30:30 +00:00
davidoskky 02d734eee8 Do not edit the repository items from outside the repository 2022-11-01 21:29:04 +01:00
davidoskky c5cdfc0d53 Update bottom bar badges through a state flow 2022-11-01 21:28:14 +01:00
davidoskky 6d610ed61a Fix repeating items in recyclerview 2022-11-01 19:53:22 +01:00
davidoskky 792950be7c Remove unreachable condition 2022-11-01 19:52:43 +01:00
Amine Louveau af8969ce4a Merge pull request 'Cleaning.' (#88) from cleaning into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/88
2022-10-31 20:42:20 +00:00
aminecmi 27c55e59a1 Cleaning still. 2022-10-31 21:28:11 +01:00
aminecmi 94a0747947 More cleaning. 2022-10-30 22:02:07 +01:00
aminecmi d862bfba4f Still cleaning. 2022-10-30 21:38:04 +01:00
aminecmi b0d1d9c29a No daemon 2022-10-30 21:27:53 +01:00
aminecmi 7b40a31979 Cleaning. 2022-10-30 21:21:43 +01:00
aminecmi 823a8c3692 Date formatter 2022-10-30 21:12:01 +01:00
aminecmi 5494978db8 Cleaning. 2022-10-29 22:58:25 +02:00
Amine Louveau 6076eb1cee Merge pull request 'chore/mock-multiplatform' (#86) from chore/mock-multiplatform into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/86
2022-10-29 12:10:51 +00:00
aminecmi 131101d2ee Date api issues. 2022-10-29 13:50:00 +02:00
aminecmi 62ad1f45ba Unit tests are on the android side. 2022-10-29 13:37:46 +02:00
aminecmi 402d18b889 Versions update. SettingsKey constants. 2022-10-28 20:32:23 +02:00
Amine Louveau e32699c93f Merge pull request 'ios/init' (#85) from ios/init into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/85
2022-10-24 18:18:16 +00:00
aminecmi 059a237b99 Commenting tests for now. 2022-10-23 20:39:09 +02:00
aminecmi d2bdbae6c8 Launching ios APP. 2022-10-23 20:38:43 +02:00
Amine Louveau 510fcbe47e Merge pull request 'Prevent crash when logging in' (#81) from davidoskky/ReaderForSelfoss-multiplatform:login_crash into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/81
2022-10-22 19:53:59 +00:00
davidoskky 667e9c1a5d Adjust tests to changes in the repository 2022-10-21 22:56:35 +02:00
davidoskky 53b1d1f8b2 Rework repository initialization 2022-10-21 22:42:32 +02:00
davidoskky c25e8889a4 Prevent crash when logging in 2022-10-17 19:35:52 +02:00
Amine Louveau 8b0bbe71c9 Merge pull request 'Allow offline filtering' (#75) from davidoskky/ReaderForSelfoss-multiplatform:offline_filters into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/75
2022-10-14 07:18:42 +00:00
davidoskky 8bfe14c019 Actually filter database items 2022-10-14 00:10:35 +02:00
davidoskky 208babbce3 Correct tests 2022-10-14 00:03:20 +02:00
davidoskky 02098a7aa9 Rearrange filtering steps 2022-10-11 00:52:12 +02:00
davidoskky d0a982f385 Add tests for offline filtering 2022-10-08 17:15:41 +02:00
davidoskky 1d1c121aab Filter items from database according to tag and source 2022-10-08 17:15:22 +02:00
davidoskky fe12819163 Correct database source title 2022-10-08 17:14:12 +02:00
Amine Louveau 023a30c008 Merge pull request 'Simplify sources and tags handling' (#70) from davidoskky/ReaderForSelfoss-multiplatform:drawer_data into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/70
2022-10-04 18:52:39 +00:00
Amine Louveau a2862a2587 Merge pull request 'Correct mechanism of mark and unmark snackbars' (#74) from davidoskky/ReaderForSelfoss-multiplatform:snackbar-mark into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/74
2022-10-04 18:43:44 +00:00
Amine Louveau 054e936657 Merge pull request 'Correct boolean serialization' (#73) from davidoskky/ReaderForSelfoss-multiplatform:swiping into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/73
2022-10-04 18:40:14 +00:00
davidoskky 1d2e5069b8 Avoid double snackbar generation 2022-10-04 16:47:13 +02:00
davidoskky a147646743 Correct mechanism of mark and unmark snackbars 2022-10-04 16:43:21 +02:00
davidoskky 32e7fc0038 Correct boolean serialization 2022-10-04 15:01:22 +02:00
davidoskky c15bf44032 Adjust repository tests 2022-10-02 01:01:39 +02:00
davidoskky 0bcd55bd4e Add translated strings 2022-10-01 22:51:09 +02:00
davidoskky ebef0b3511 Start monitoring connectivity status when the repository is initiated. 2022-10-01 22:43:48 +02:00
davidoskky 713ceb05bf Remove unnecessary data class 2022-09-30 15:07:17 +02:00
davidoskky dc8381b661 Add missing string 2022-09-30 15:00:25 +02:00
davidoskky b5b820c64b Remove database access from the Home 2022-09-30 15:00:01 +02:00
davidoskky f7055626d9 Start monitoring the connectivity before loading the Repository 2022-09-30 14:56:10 +02:00
Amine Louveau 6ec3e96909 Merge pull request 'Repository Unit Tests' (#50) from davidoskky/ReaderForSelfoss-multiplatform:repository_tests into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/50
2022-09-30 11:31:55 +00:00
davidoskky 22da30eaa8 Remove unnecessary call to api 2022-09-30 13:17:40 +02:00
davidoskky 79fd115f5e Only return new cached items 2022-09-30 13:16:42 +02:00
davidoskky 8dc3d319cd Cleanup 2022-09-30 11:59:08 +02:00
davidoskky 27bb056397 Cleanup 2022-09-30 11:49:31 +02:00
davidoskky f9ba13dc32 Always cache images in background 2022-09-30 11:23:43 +02:00
davidoskky 6f60ef4346 Remove unnecessary return value 2022-09-30 09:11:55 +02:00
davidoskky 28b950f467 Merge branch 'master' into repository_tests 2022-09-30 07:04:09 +00:00
davidoskky a9c7ec3dc1 Cache items in background without filtering 2022-09-30 01:19:28 +02:00
davidoskky 920d4ac1ef Correctly implement disabling sources update 2022-09-29 19:37:33 +02:00
davidoskky 0e96d313ec Add tags parameters explicitly 2022-09-29 19:09:09 +02:00
davidoskky 7211fdb1a3 Fix update remote tests 2022-09-29 18:58:00 +02:00
aminecmi 381d6acc82 Analyzing should be with the rest. 2022-09-29 15:34:12 +02:00
davidoskky d311c2cdeb Fix sources tests 2022-09-28 18:45:21 +02:00
davidoskky 219cae5d74 Fix tags tests 2022-09-28 18:22:06 +02:00
davidoskky 2968aee309 Fix badges tests 2022-09-28 09:43:28 +02:00
davidoskky 6cb4b35c93 Introduce useful assertions in repository instantiation tests 2022-09-28 09:14:47 +02:00
davidoskky 15ec0f2d26 Merge branch 'master' into repository_tests 2022-09-28 06:57:02 +00:00
davidoskky 4781e30da2 Remove unnecessary safe calls 2022-09-27 23:44:42 +02:00
davidoskky c8759cc035 Fix tags tests 2022-09-27 23:37:30 +02:00
davidoskky cb4f2f02ef Fix repository.tags() returning null 2022-09-27 23:26:44 +02:00
davidoskky 7517626ab7 Include database return definition within test function 2022-09-27 23:25:47 +02:00
davidoskky 41c951b659 Add test cases for repository instantiation cases 2022-09-27 23:16:30 +02:00
aminecmi ad279c6683 Translation. 2022-09-27 16:57:13 +02:00
aminecmi 5f0817ddb7 Formating issue. 2022-09-27 16:54:57 +02:00
aminecmi 7124cbcacd Fixed issue with drone failing silently.
Analyzation is now detached.
2022-09-27 16:53:18 +02:00
aminecmi 2a710a1a08 Translations. 2022-09-27 16:50:06 +02:00
Amine Louveau 82ec2445a1 Merge pull request 'chore/theme-cleaning' (#69) from chore/theme-cleaning into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/69
2022-09-27 14:37:23 +00:00
aminecmi cabb6d494d Cleaning. 2022-09-27 15:09:33 +02:00
aminecmi 5c12481813 Article viewer theming. 2022-09-27 12:36:01 +02:00
aminecmi b16f86dda1 All theme issues should be resolved. 2022-09-27 12:02:59 +02:00
aminecmi 2bc28db2cc Removed chrome custom tabs. 2022-09-27 11:23:16 +02:00
aminecmi bf1b680b4a Daark theme working. 2022-09-27 10:21:42 +02:00
davidoskky e2afff0b8e Add comment 2022-09-26 23:19:31 +02:00
davidoskky a382fc89ea Test item caching 2022-09-26 23:11:26 +02:00
davidoskky 3f0a3903ae Test refresh login information 2022-09-26 22:50:55 +02:00
davidoskky f46f98cef0 Test login 2022-09-26 22:46:37 +02:00
davidoskky bf6f1a917e Test update remote 2022-09-26 22:42:24 +02:00
davidoskky 71c0a4d340 Test delete source 2022-09-26 22:26:01 +02:00
davidoskky 63c550ead3 Test create source 2022-09-26 22:21:48 +02:00
Amine Louveau d81fb79b4f Merge pull request 'enhancement/too-many-calls' (#68) from enhancement/too-many-calls into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/68
2022-09-26 18:26:22 +00:00
aminecmi 144067d5b6 This helps a lot. 2022-09-26 16:16:40 +02:00
aminecmi 8106faa45c Only fetch intems if item caching is enabled. 2022-09-26 16:05:07 +02:00
aminecmi d9ef301e0f Warning. 2022-09-26 15:58:05 +02:00
aminecmi 90b52232ab Updating ktor and changing the engine. This speeds things a little bit too. 2022-09-26 15:54:11 +02:00
aminecmi 0f000ea359 Only sort if the data is from the DB. This speeds things a little bit. 2022-09-26 15:53:39 +02:00
aminecmi fb8f81a4c8 One call less. 2022-09-26 14:05:57 +02:00
Amine Louveau a76b3dd2a9 Merge pull request 'Theme refresh' (#65) from feature/55 into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/65
2022-09-26 06:54:28 +00:00
aminecmi 91aed5a777 Hacky way to fix #55. 2022-09-25 22:19:47 +02:00
davidoskky 366b2e10f1 Adjust tests to changes in the data models 2022-09-25 22:02:25 +02:00
aminecmi 8823cc6c6c Cleaning. 2022-09-25 21:39:57 +02:00
davidoskky d2436bb976 Merge branch 'master' into repository_tests
# Conflicts:
#	.drone.yml
2022-09-25 20:24:46 +02:00
Amine Louveau 74ef4da15b Merge pull request '2.18 serialization issues fix. Fixes #61.' (#64) from bugfix/old-version-serialization into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/64
2022-09-24 20:16:39 +00:00
aminecmi bd96c67788 2.18 serialization issues fix. Fixes #61. 2022-09-24 21:55:25 +02:00
Amine Louveau da71de6806 Merge pull request 'bugfix/ktor-404' (#62) from bugfix/ktor-404 into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/62
2022-09-24 14:55:44 +00:00
aminecmi 0264da8ccc Fixing #54. 2022-09-24 15:00:33 +02:00
aminecmi 270d959ee0 Cleaning. 2022-09-24 14:55:06 +02:00
aminecmi 6d11dfb80c Fixing #59. 2022-09-24 14:43:24 +02:00
aminecmi 4184bbb900 Update gradle. 2022-09-24 13:54:48 +02:00
davidoskky ef994460c1 get sources tests 2022-09-18 18:14:14 +02:00
davidoskky 758708e18d Tags tests 2022-09-17 22:04:24 +02:00
davidoskky c0381144d1 Add CI test step 2022-09-17 21:29:37 +02:00
davidoskky cda3ba6cb4 Test badge fetching 2022-09-16 12:04:05 +02:00
davidoskky a4636cc0c8 Add item fetching tests 2022-09-15 14:07:50 +02:00
aminecmi 4c12c9d570 added badge. 2022-09-14 14:54:13 +02:00
Amine Louveauandaminecmi f4db02521d drone-sign (#57)
## Types of changes

- [ ] I have read the **CONTRIBUTING** document.
- [ ] My code follows the code style of this project.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
- [ ] This is **NOT** translation related.

This closes issue #XXX

This is implements feature #YYY

This finishes chore #ZZZ

Co-authored-by: aminecmi <aminecmi@gmail.com>
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/57
2022-09-14 10:32:00 +00:00
aminecmi 01763556b1 Fixed release build issues. 2022-09-13 09:00:54 +02:00
davidoskky 60c24fc75a Check that the api is being used rather than the db 2022-09-10 09:37:14 +02:00
davidoskky 5853a19937 Normal items fetch test 2022-09-10 09:08:26 +02:00
davidoskky 99f2c04bf6 Initial testing setup 2022-09-09 13:43:53 +02:00
aminecmi e2411c00d8 Shorter description. 2022-09-08 19:00:19 +02:00
aminecmi 0473a5f7bc Changelog. 2022-09-07 21:43:46 +02:00
aminecmi d0d6a4378c Trying to fix fdroid build. 2022-09-07 21:24:38 +02:00
aminecmi 1dfa3c9f07 Version scripts. 2022-09-07 20:24:19 +02:00
Amine Louveau 815f00e764 Merge pull request 'Correctly handle the back button in settings' (#48) from davidoskky/ReaderForSelfoss-multiplatform:Settings_back into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/48
2022-09-06 18:20:38 +00:00
davidoskky bdc77ab8ef Remove unused lambda 2022-09-06 12:36:37 +02:00
davidoskky 6bd06cb458 Correctly handle the back button in settings 2022-09-06 12:28:31 +02:00
aminecmi e9e8bee6c9 Disable all the backups. 2022-08-29 15:37:43 +02:00
aminecmi ff6038dbd4 Removing the backup function for security reasons. 2022-08-28 13:41:48 +02:00
Amine Louveau 8146cff011 Merge pull request 'Closes #44' (#46) from chore/cleaning_drawer_data into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/46
2022-08-28 11:41:16 +00:00
aminecmi fc4c48dd12 Closes #44 2022-08-28 10:30:03 +02:00
aminecmi 94f1ec943c Cleaning. 2022-08-27 15:09:25 +02:00
Amine Louveau 0278540fb2 Merge pull request 'feature/api_timeout_and_settings_cleaning' (#45) from feature/api_timeout_and_settings_cleaning into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/45
2022-08-27 12:20:54 +00:00
aminecmi 109050d0cf Fixing a todo. 2022-08-27 13:06:16 +02:00
aminecmi 0392e1b406 Typo fix. 2022-08-27 13:00:19 +02:00
aminecmi 8b2be5c55c Refreshing settings. 2022-08-26 23:39:30 +02:00
aminecmi e6afb4702d Cleaning code. 2022-08-26 23:37:02 +02:00
aminecmi 8cf462a755 Fixing api version issue on login. 2022-08-26 23:37:02 +02:00
aminecmi 17293e5574 Removing self signed certificate (Closes #43) and removing http login (Closes #37) 2022-08-26 23:37:02 +02:00
aminecmi a99286a9b7 Really big settings cleaning. 2022-08-26 23:37:02 +02:00
aminecmi 5531034086 WIP: Big settings cleaning. 2022-08-26 23:37:01 +02:00
Amine Louveau fbcb428e96 Merge pull request 'Fetch api version on login' (#39) from davidoskky/ReaderForSelfoss-multiplatform:loginApi into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/39
2022-08-25 02:25:27 +00:00
davidoskky e281751bb0 Fetch api version on login 2022-08-24 23:26:49 +02:00
aminecmi 0eed9a8d07 Translations. 2022-08-24 14:41:57 +02:00
Amine Louveau 9603860bae Merge pull request 'chore/sonarqube-fixes' (#35) from chore/sonarqube-fixes into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/35
2022-08-24 12:37:37 +00:00
aminecmi 75b566a38d Some cleaning to handle actions on connection restore. 2022-08-24 13:58:24 +02:00
aminecmi fb572dbb27 Closes #36 2022-08-24 13:34:05 +02:00
aminecmi 34028949d7 More code cleaning. 2022-08-23 22:52:36 +02:00
aminecmi 44a0469b17 Fixes #25; 2022-08-23 22:46:48 +02:00
aminecmi c87473e8f1 Cache from settings. 2022-08-23 22:45:19 +02:00
aminecmi de43abf019 Fixed mercury issues. 2022-08-23 22:45:19 +02:00
aminecmi e60f3a9d91 Push everywhere ? 2022-08-23 22:45:19 +02:00
aminecmi 255fbcb12f Added build cache. 2022-08-23 22:45:19 +02:00
aminecmi 0caeb94e64 Translations. 2022-08-23 22:43:02 +02:00
Amine Louveau 6f6a42b878 Merge pull request 'DB caching.' (#33) from feature/sqldelight into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/33
2022-08-23 20:39:19 +00:00
aminecmi 67d54f0dd7 Big code cleaning. 2022-08-23 22:16:54 +02:00
aminecmi 437aa0abec Big code cleaning. 2022-08-23 22:03:33 +02:00
aminecmi 216c639a23 Closes #23 2022-08-23 20:47:07 +02:00
aminecmi 7258452625 Closes #23 2022-08-23 20:38:53 +02:00
aminecmi d0d82751e2 Filtering DB items. 2022-08-23 20:34:20 +02:00
aminecmi 3b8f4991e9 Inserting items in the DB. 2022-08-23 16:56:04 +02:00
aminecmi 2547ce824a Repository should be DB ok. 2022-08-23 16:19:24 +02:00
aminecmi 59eb399cfa File renaming. 2022-08-23 15:17:47 +02:00
aminecmi 495b101355 Replacing room with sqldelight. Big cleaning. 2022-08-23 15:12:01 +02:00
aminecmi afcc55e907 Urls. 2022-08-22 22:07:52 +02:00
aminecmi 0c570efc47 Urls. 2022-08-22 22:04:07 +02:00
aminecmi a23a4cea0e Translation. 2022-08-22 21:58:15 +02:00
aminecmi 78cb5d047f Translations. 2022-08-22 21:53:31 +02:00
Amine Louveau a9caaefb4d Merge pull request 'network' (#28) from davidoskky/ReaderForSelfoss-multiplatform:network into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/28
2022-08-22 19:01:15 +00:00
davidoskky 4c78b22614 Use the connectivity-status library from the repository rather than the local copy 2022-08-22 19:33:58 +02:00
davidoskky 1d5ab3205e Localize strings 2022-08-21 23:34:47 +02:00
davidoskky df4903cae5 Include the connectivity status library as a aar file 2022-08-21 23:34:47 +02:00
davidoskky 2a78be69b5 Send toast messages at the application level and not on a per activity basis 2022-08-21 23:34:45 +02:00
davidoskky 8c69bb8c3c Send a message regarding connectivity loss/retrieval on all activities 2022-08-21 23:34:17 +02:00
davidoskky 9203012a97 Include a local copy of the connectivity-status library to solve a bug 2022-08-21 23:34:17 +02:00
davidoskky 2a44162c5a Send toast messages to the home activity on connectivity changes 2022-08-21 23:34:17 +02:00
davidoskky 20588aab81 Add comment to remember the problem with the connectivity-status library 2022-08-21 23:34:17 +02:00
davidoskky 0c8e49214f Don't reset offline override before updating remote 2022-08-21 23:34:17 +02:00
davidoskky 97d5063339 Consider offline override before updating remote 2022-08-21 23:34:17 +02:00
davidoskky 7c37b183d7 Refactor functions 2022-08-21 23:34:17 +02:00
davidoskky 82c4a5a1f9 Don't send toast messages from the repository 2022-08-21 23:34:17 +02:00
davidoskky 47b7062e16 Remove unused function 2022-08-21 23:34:17 +02:00
davidoskky b9497ca939 Prepare the repository functions for DB implementation 2022-08-21 23:34:17 +02:00
davidoskky 1258ed3ad3 Don't create the mercury api if not connection is available 2022-08-21 23:34:17 +02:00
davidoskky d838f509d4 Stop monitoring the network when the app goes in background 2022-08-21 23:34:17 +02:00
davidoskky 3c5b606a02 Do not change the network override from within the repository 2022-08-21 23:34:17 +02:00
davidoskky d1481a1db6 Reintroduce network checks where required 2022-08-21 23:34:17 +02:00
davidoskky d654b1b0bd Refactor connectivity check 2022-08-21 23:34:17 +02:00
davidoskky f56861a3c2 Show a message when the network connection is lost 2022-08-21 23:34:17 +02:00
davidoskky 492e7e4aed Update todo comments 2022-08-21 23:34:17 +02:00
davidoskky 551a3e3caa Remove all connectivity checks outside the repository 2022-08-21 23:34:17 +02:00
davidoskky c224b8a0b3 Remove network checks from the home activity 2022-08-21 23:34:17 +02:00
davidoskky 13ea7a693b Do not fake offline mode when updating remote 2022-08-21 23:34:17 +02:00
davidoskky 0f3c48dd8e Handle the offline override in the repository 2022-08-21 23:34:17 +02:00
davidoskky d4c2373bac Simplify network connectivity status check 2022-08-21 23:34:17 +02:00
davidoskky 4f32097821 Perform network connectivity checks in the repository 2022-08-21 23:34:17 +02:00
davidoskky 37fa4a1a8e Add multiplatform connectivity check 2022-08-21 23:34:17 +02:00
Amine Louveau 112194dd4f Merge pull request 'Implement logging in the android application' (#32) from davidoskky/ReaderForSelfoss-multiplatform:logging into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/32
2022-08-20 18:18:48 +00:00
davidoskky 72d9ef92d2 Implement logging in the android application 2022-08-20 12:29:04 +02:00
Amine Louveau 1392e2a571 Merge pull request 'Fixing some sonarqube issues.' (#30) from chore/sonarqube-fixes into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/30
2022-08-17 19:10:47 +00:00
aminecmi e9cb3d2f37 Fixing some sonarqube issues. 2022-08-17 21:00:58 +02:00
Amine Louveau dec620a409 Merge pull request 'Changed ids to items.' (#29) from id-to-int into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/29
2022-08-17 14:31:11 +00:00
aminecmi 4d29ee0b92 Last fixes. 2022-08-17 16:16:11 +02:00
aminecmi 33333ca998 This may work. 2022-08-17 14:52:03 +02:00
aminecmi 8d87eef0fc More fixes. 2022-08-17 14:24:28 +02:00
aminecmi 5a26513ed7 These params need to be here too. 2022-08-17 14:06:56 +02:00
aminecmi 5b7f5225d8 Can't be detached because of a lock file. 2022-08-17 14:03:32 +02:00
aminecmi 03f53bf9c9 Detached scan 2022-08-17 11:04:44 +02:00
aminecmi e06e6d580d Detached scan. 2022-08-17 11:00:02 +02:00
aminecmi 63e8649512 Fixing issues with build. 2022-08-17 10:50:04 +02:00
aminecmi 6260c3fc06 Fixes and drone build should work. 2022-08-17 10:43:56 +02:00
Amine Louveau 77917dd940 Merge pull request 'drone' (#26) from drone into master
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/26
2022-08-16 19:10:52 +00:00
253 changed files with 11769 additions and 8586 deletions
-20
View File
@@ -1,20 +0,0 @@
kind: pipeline
type: docker
steps:
- name: build
image: mingc/android-build-box:latest
commands:
- ./gradlew build
- name: code-analysis
image: mingc/android-build-box:latest
failure: ignore
commands:
- ls -la
- ./gradlew sonarqube -Dsonar.projectKey=RFS2 -Dsonar.sources=. -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN
environment:
SONAR_HOST_URL:
from_secret: sonarScannerHostUrl
SONAR_LOGIN:
from_secret: sonarScannerLogin
+36
View File
@@ -0,0 +1,36 @@
root = true
[*]
insert_final_newline = true
[.editorconfig]
insert_final_newline = false
ij_kotlin_line_break_after_multiline_when_entry = false
[*.{kt,kts}]
# Disable wildcard imports entirely
ij_kotlin_name_count_to_use_star_import = 2147483647
ij_kotlin_name_count_to_use_star_import_for_members = 2147483647
end_of_line = lf
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true
ij_kotlin_imports_layout = *, java.**, javax.**, kotlin.**, ^
ij_kotlin_indent_before_arrow_on_new_line = false
ij_kotlin_line_break_after_multiline_when_entry = true
ij_kotlin_packages_to_use_import_on_demand = unset
indent_size = 4
indent_style = space
ktlint_argument_list_wrapping_ignore_when_parameter_count_greater_or_equal_than = unset
ktlint_chain_method_rule_force_multiline_when_chain_operator_count_greater_or_equal_than = 4
ktlint_class_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than = 1
ktlint_code_style = ktlint_official
ktlint_enum_entry_name_casing = upper_or_camel_cases
ktlint_function_naming_ignore_when_annotated_with = unset
ktlint_function_signature_body_expression_wrapping = multiline
ktlint_function_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than = 2
ktlint_ignore_back_ticked_identifier = false
ktlint_property_naming_constant_naming = screaming_snake_case
max_line_length = 140
[**/build]
ktlint = disabled
+10
View File
@@ -0,0 +1,10 @@
project_id_env: CROWDIN_PROJECT_ID
api_token_env: CROWDIN_PERSONAL_TOKEN
base_path: "../../../"
files:
- source: /androidApp/src/main/res/values/strings.xml
translation: /androidApp/src/main/res/values-%android_code%/%original_file_name%
translate_attributes: '0'
content_segmentation: '0'
preserve_hierarchy: true
@@ -0,0 +1,10 @@
version: '3'
services:
selfoss:
container_name: selfoss
image: rsprta/selfoss
network_mode: "host"
ports:
- "8888:8888"
+61
View File
@@ -0,0 +1,61 @@
name: Build
on:
workflow_call:
jobs:
BuildAndTestAndCoverage:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Check android app changes"
id: check-android-changes
uses: tj-actions/changed-files@v45
with:
files: |
androidApp/src/**
- name: Fetch tags
if: steps.check-android-changes.outputs.any_modified == 'true'
run: git fetch --tags -p
- uses: actions/setup-java@v4
if: steps.check-android-changes.outputs.any_modified == 'true'
with:
distribution: 'temurin'
java-version: '17'
cache: gradle
- uses: gradle/actions/setup-gradle@v3
if: steps.check-android-changes.outputs.any_modified == 'true'
- uses: android-actions/setup-android@v3
if: steps.check-android-changes.outputs.any_modified == 'true'
- name: Configure gradle...
if: steps.check-android-changes.outputs.any_modified == 'true'
run: mkdir -p ~/.gradle && echo "org.gradle.daemon=false\nignoreGitVersion=true" >> ~/.gradle/gradle.properties
- name: Build and test
if: steps.check-android-changes.outputs.any_modified == 'true'
run: ./gradlew build -x testReleaseUnitTest -x testDebugUnitTest -x testGithubConfigReleaseUnitTest -x testGithubConfigDebugUnitTest # These tests will be done
# TESTS ARE RUN LOCALLY
# - uses: KengoTODA/actions-setup-docker-compose@v1
# with:
# version: "2.23.3"
# - name: run selfoss
# run: |
# docker compose -f .gitea/workflows/assets/docker-compose.yml up -d
- name: coverage
if: steps.check-android-changes.outputs.any_modified == 'true'
run: |
./gradlew :koverHtmlReport
- uses: actions/upload-artifact@v3
if: steps.check-android-changes.outputs.any_modified == 'true'
with:
name: coverage
path: build/reports/kover/html
retention-days: 1
overwrite: true
include-hidden-files: true
# TESTS ARE RUN LOCALLY
# - name: Clean
# if: always()
# run: |
# docker compose -f .gitea/workflows/assets/docker-compose.yml stop
+128
View File
@@ -0,0 +1,128 @@
name: Create tag
on:
push:
branches:
- release
workflow_dispatch:
jobs:
build:
uses: ./.gitea/workflows/common_build.yml
createTagAndChangelog:
runs-on: ubuntu-latest
needs: build
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: master
- name: Config git
run: |
git config --global user.email aminecmi+giteadrone@pm.me
git config --global user.name giteadrone
- name: Creating the tag and generate changelog
run: |
git fetch --tags -p
PREV=$(git describe --tags --abbrev=0)
./build.sh --publish --from-ci
VER=$(git describe --tags --abbrev=0)
CHANGELOG=$(git log $PREV..HEAD --pretty="- %s")
echo "**$VER
$CHANGELOG
--------------------------------------------------------------------
$(cat CHANGELOG.md)" > CHANGELOG.md
git add CHANGELOG.md
touch ./fastlane/metadata/android/en\-US/changelogs/$VER.txt
echo "**$VER**
$CHANGELOG" > ./fastlane/metadata/android/en\-US/changelogs/$VER.txt
git add ./fastlane/metadata/android/en\-US/changelogs/$VER.txt
git commit -m "Changelog for $VER"
- name: Push changes
uses: appleboy/git-push-action@v1.0.0
with:
author_name: giteadrone
author_email: aminecmi+giteadrone@pm.me
remote: ${{ secrets.REMOTE_URL }}
followtags: true
ssh_key: ${{ secrets.PRIVATE_KEY }}
tags: true
branch: master
- name: copy file via ssh password
uses: appleboy/scp-action@v0.1.7
with:
host: amine-bouabdallaoui.fr
username: ubuntu
key: ${{ secrets.PRIVATE_KEY }}
source: "version.txt"
target: "/home/ubuntu/"
- name: deploy version file
uses: appleboy/ssh-action@v1.2.0
with:
host: amine-bouabdallaoui.fr
username: ubuntu
key: ${{ secrets.PRIVATE_KEY }}
script: cd /home/ubuntu && sudo rm -rf /var/www/amine/version.txt && sudo chown www-data:www-data ./version.txt && sudo mv version.txt /var/www/amine/
release:
runs-on: ubuntu-latest
needs: createTagAndChangelog
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch tags
id: version
run: |
git fetch --tags -p
PREV=$(git describe --tags --abbrev=0)
echo $PREV
echo "VERSION=$PREV" >> $GITHUB_OUTPUT
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: gradle
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Configure gradle...
run: mkdir -p ~/.gradle && echo "org.gradle.daemon=false\nignoreGitVersion=false\nsystemProp.org.gradle.internal.http.connectionTimeout=180000\nsystemProp.org.gradle.internal.http.socketTimeout=180000" >> ~/.gradle/gradle.properties
- name: setup go
uses: https://github.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
- name: Generate APK
run: ./gradlew :androidApp:assembleGithubConfigRelease
- name: Get Key
run: wget ${{ secrets.KEY_URL }}
- name: Zippalign
run: |
sdkmanager "build-tools;31.0.0"
ls $ANDROID_HOME/build-tools
$ANDROID_HOME/build-tools/31.0.0/zipalign -f -v 4 androidApp/build/outputs/apk/githubConfig/release/androidApp-githubConfig-release-unsigned.apk androidApp/build/outputs/apk/githubConfig/release/android-prod-released-ziped.apk
- name: Sigh
run: $ANDROID_HOME/build-tools/31.0.0/apksigner sign -v --out signed.apk --ks ./key --ks-key-alias ${{ secrets.KEY_ALIAS }} --ks-pass pass:${{ secrets.KEYSTORE_PASSWORD }} --v1-signing-enabled true --v2-signing-enabled true androidApp/build/outputs/apk/githubConfig/release/android-prod-released-ziped.apk
- name: Verify
run: $ANDROID_HOME/build-tools/31.0.0/apksigner verify signed.apk
- name: Release
uses: https://gitea.com/actions/gitea-release-action@main
with:
files: signed.apk
token: ${{ secrets.API_KEY }}
tag_name: ${{ steps.version.outputs.VERSION }}
name: ${{ steps.version.outputs.VERSION }}
- name: Send mail
uses: https://github.com/dawidd6/action-send-mail@v4
with:
connection_url: ${{ secrets.MAIL_CONNECTION }}
to: ${{ secrets.MAIL_TO }}
from: ${{ secrets.MAIL_FROM }}
subject: Mapping file
priority: high
convert_markdown: true
body: Nouveau fichier de mapping pour la version ${{ steps.version.outputs.VERSION }}
attachments: androidApp/build/outputs/mapping/githubConfigRelease/mapping.txt
+91
View File
@@ -0,0 +1,91 @@
name: Check PR code
on:
pull_request:
branches:
- master
- chore-crowdin-ci
jobs:
Lint:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: gradle
- name: Install klint
run: curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.5.0/ktlint && chmod a+x ktlint && mv ktlint /usr/local/bin/
- name: Install detekt
run: curl -sSLO https://github.com/detekt/detekt/releases/download/v1.23.7/detekt-cli-1.23.7.zip && unzip detekt-cli-1.23.7.zip
- name: Linting...
run: ktlint 'shared/**/*.kt' 'androidApp/**/*.kt' '!shared/build'
- name: Detecting...
run: ./detekt-cli-1.23.7/bin/detekt-cli -c detekt.yml --excludes '**/shared/build/**/*.kt'
translations:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Check translations changes"
id: check-translations-changes
uses: tj-actions/changed-files@v45
with:
files: |
androidApp/src/main/res/values/strings.xml
- name: upload translation sources
if: steps.check-api-changes.outputs.any_modified == 'true'
uses: crowdin/github-action@v2
with:
config: './.gitea/workflows/assets/crowdin.yml'
upload_sources: true
upload_translations: false
download_translations: false
create_pull_request: false
push_translations: false
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: wait
if: steps.check-api-changes.outputs.any_modified == 'true'
run: sleep 10s
- name: download translations
if: steps.check-api-changes.outputs.any_modified == 'true'
uses: crowdin/github-action@v2
with:
config: './.gitea/workflows/assets/crowdin.yml'
upload_sources: false
upload_translations: false
download_translations: true
create_pull_request: false
push_translations: false
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: Check for uncommitted changes
if: steps.check-api-changes.outputs.any_modified == 'true'
id: check-changes
uses: mskri/check-uncommitted-changes-action@v1.0.1
- name: Commit Changes
if: steps.check-api-changes.outputs.any_modified == 'true' && steps.check-changes.outputs.changes != ''
run: |
git config --global user.email aminecmi+giteadrone@pm.me
git config --global user.name giteadrone
git add ./androidApp/src/main/res/*
git commit -m "translation: translation files"
- name: Push changes
if: steps.check-api-changes.outputs.any_modified == 'true' && steps.check-changes.outputs.changes != ''
uses: appleboy/git-push-action@v1.0.0
with:
author_name: giteadrone
author_email: aminecmi+giteadrone@pm.me
remote: ${{ secrets.REMOTE_URL }}
ssh_key: ${{ secrets.PRIVATE_KEY }}
branch: ${{ github.head_ref || github.ref_name }}
build:
needs: Lint
uses: ./.gitea/workflows/common_build.yml
+9
View File
@@ -0,0 +1,9 @@
name: Check master code
on:
push:
branches:
- master
jobs:
build:
uses: ./.gitea/workflows/common_build.yml
+2 -27
View File
@@ -10,7 +10,7 @@ Please read the guidelines before contributing, and follow them (or try to) when
There are many ways to contribute to this project, you could [translate the app](https://crowdin.com/project/readerforselfoss), report bugs, request missing features, suggest enhancements and changes to existing ones. You also can improve the README with useful tips that could help the other users.
You can fork the repository, and [help me solve some issues](https://github.com/aminecmi/ReaderforSelfoss/issues?q=is%3Aissue+is%3Aopen+label%3A%22Up+For+Grabs%22) or [develop new things](https://github.com/aminecmi/ReaderforSelfoss/issues)
You can fork the repository, and [help me solve some issues](https://gitea.amine-bouabdallaoui.fr/Louvorg/ReaderForSelfoss-multiplatform/issues?q=is%3Aissue+is%3Aopen+label%3A%22Up+For+Grabs%22) or [develop new things](https://gitea.amine-bouabdallaoui.fr/Louvorg/ReaderForSelfoss-multiplatform/issues)
### What I can't help you with.
@@ -28,7 +28,7 @@ Always check if the web version of your instance is working.
### Pull requests
* Don't create a PR for translations. See [here](https://github.com/aminecmi/ReaderforSelfoss/pull/170#issuecomment-355715654) for an explanation why.
* Don't create a PR for translations.
* Please ask before starting to work on an issue. I may be working on it, or someone else could be doing so.
* Each pull request should implement **ONE** feature or bugfix. Keep in mind that you can submit as many PR as you want.
* Your code must be simple and clear enough to avoid using comments to explain what it does.
@@ -46,28 +46,3 @@ Always check if the web version of your instance is working.
I won't provide any selfoss instance url. If you want to help, but to not have one, you'll have to install one, and use it.
All the details to need are [here](https://selfoss.aditu.de/).
# Build the project
You can directly import this project into IntellIJ/Android Studio.
You'll have to:
- Define some parameters either in `~/.gradle/gradle.properties` or as gradle parameters (see the examples)
- appLoginUrl, appLoginUsername and appLoginPassword: url, username and password of a selfoss instance. **These are only used for tests. They can be empty if you don't test API calls.**
### Examples:
#### Inside ~/.gradle/gradle.properties
```
appLoginUrl="URL" # It can be empty.
appLoginUsername="LOGIN" # It can be empty.
appLoginPassword="PASS" # It can be empty.
```
#### As gradle parameters
```
./gradlew .... -P appLoginUrl="URL" -P appLoginUsername="LOGIN" -P appLoginPassword="PASS"
```
Internal Server Error - Amine's git
500 Internal Server Error

Gitea Version: 1.28.0+dev-215-g805697089e