Commit Graph

224 Commits

Author SHA1 Message Date
Shinokuni 1a92684c18 Migrade room and koin dependencies into version catalog 2024-03-30 19:35:43 +01:00
Shinokuni 6bf7cb00a8 Prevent HttpException being thrown when response code is 304
Todo: cover all non HTTP 200 cases where there is no need to throw an exception
2024-02-28 22:54:07 +01:00
Alexandre Alapetite d5d8b16148
Merge branch 'develop' into pr/Alkarex/163 2024-02-22 21:53:19 +01:00
Shinokuni a29b27801e Fix gradle full build step 2024-02-15 21:41:32 +01:00
Shinokuni 672de764de Improve AddFeedDialog looking and behaviour
- Add error management for URL TextField
- Add account dropdown
2024-01-14 00:57:22 +01:00
Shinokuni fffbf18ad9 Update android gradle plugin 2023-08-15 22:44:44 +02:00
Shinokuni d1e170a1b8 Add favicon recovery in HtmlParser 2023-08-15 14:55:36 +02:00
Shinokuni 4697219312 Use HttpException in LocalRSSDataSource 2023-08-01 21:54:18 +02:00
Shinokuni 35ad5dfbc4 Add FreshRSSDataSource kotlin migration with tests
This new data source is intended to replace the old java one
2023-08-01 21:40:47 +02:00
Shinokuni d673616bb4 Add OkHttp interceptor to raise exceptions for non-successfull requests 2023-07-27 22:55:28 +02:00
Shinokuni bda5896413 Rewrite HtmlParser in Kotlin with some tests 2023-07-22 19:44:44 +02:00
Shinokuni f7d1eea3ec Add new LocalRSSRepository with some tests 2023-07-21 22:29:52 +02:00
Shinokuni e372609298 Disable Niddler entirely 2023-03-03 19:50:10 +01:00
Shinokuni 55d982dd22 Update gradle and kotlin plugins 2023-02-20 19:13:06 +01:00
Alexandre Alapetite 7e5c0268ea
Fix FreshRSS get link
#fix https://github.com/readrops/Readrops/issues/162
#fix https://github.com/FreshRSS/FreshRSS/issues/4567
2022-08-31 12:47:30 +02:00
Shinokuni d655653361 Fix item state request not working 2022-02-25 19:49:10 +01:00
Shinokuni 856f0ef333 Add item state update request 2022-02-25 19:00:56 +01:00
Shinokuni 3d698b3051 Add tests for FeverDataSource login method 2021-12-30 21:53:00 +01:00
Shinokuni 53c5d2f56b Improve a little bit Fever login error handling 2021-12-29 13:12:41 +01:00
Shinokuni dcf58a537e Add Fever initial and classic synchronisation logic 2021-12-28 20:09:15 +01:00
Shinokuni fe57d5b2d7 Add items and items ids insertion for Fever synchronisation 2021-12-28 18:29:34 +01:00
Shinokuni 701c188cfa Map Fever folders to feeds with feeds_groups content parsing 2021-12-27 15:59:31 +01:00
Shinokuni 64b6fb0b4d Add basic Fever synchronisation with feeds and folders insertion 2021-12-27 14:03:52 +01:00
Shinokuni 0885a9a3e4 Fix Fever adapters not consuming data to the end 2021-12-27 13:41:01 +01:00
Shinokuni 562f11e2cc Add adapter for Fever favicons call 2021-12-25 19:08:49 +01:00
Shinokuni 5975458011 Add adapter for Fever items ids call 2021-12-25 19:08:25 +01:00
Shinokuni 76cd9355f8 Add adapter for Fever items call 2021-12-25 18:16:44 +01:00
Shinokuni 2396ba1f7e Add adapter for Fever feeds api call 2021-12-25 17:34:40 +01:00
Shinokuni 9189be9d93 Add adapter for Fever folders api call 2021-12-25 17:34:15 +01:00
Shinokuni eb6d487f8f Add proper login call with adapter for Fever api 2021-12-25 16:22:16 +01:00
Shinokuni 162fcfa75d Add initial files for Fever API implementation 2021-12-24 19:07:05 +01:00
Shinokuni 03d5ca7ca6 Merge branch 'master' into develop 2021-10-10 20:01:45 +02:00
Shinokuni 3d78b2a951 Fix items being fav locally randomly for FreshRSS account 2021-10-10 19:31:47 +02:00
Shinokuni beebed751f Add tests for credentials 2021-10-04 18:35:26 +02:00
Shinokuni 71df7a7a31 Replace SImpleXML with KonsumeXML and KotlinXMLBuilder 2021-09-22 22:50:54 +02:00
Shinokuni 4c86b17043 Move OPMLHelper class to app module 2021-09-20 19:56:34 +02:00
Shinokuni 5d03ea0580 Migrate koin to v3.0 2021-09-20 19:27:12 +02:00
Shinokuni f4628b5a49 Add jacoco implementation 2021-09-16 22:29:25 +02:00
Shinokuni b76ffb4fc6 Remove unused RSS resource 2021-09-04 18:22:44 +02:00
Shinokuni 8aec040fbc Remove old getRSSContentTYpe method 2021-09-04 18:18:53 +02:00
Shinokuni 6025202346 Use new adapters configuration in LocalRSSDataSource 2021-09-04 18:03:39 +02:00
Shinokuni 0ac0a1c347 Call JSONItemsAdapter in JSONFeedAdapter 2021-09-04 17:42:24 +02:00
Shinokuni 6f2aad79c0 Call RSS2ItemAdapter in RSS2FeedAdapter 2021-09-04 17:24:13 +02:00
Shinokuni d50d65384c Call RSS1ItemAdapter in RSS1FeedAdapter 2021-09-04 16:59:08 +02:00
Shinokuni 7a417e83de Call ATOMItemAdapter in ATOMFeedAdapter 2021-09-04 16:34:18 +02:00
Shinokuni 58122cb456 Merge branch 'develop' into feature/local_rss_memory_improvements 2021-09-04 15:16:33 +02:00
Shinokuni 63a8891880 Fix tests 2021-09-02 13:54:27 +02:00
Shinokuni 1654d32211 MIgrate Account entity to kotlin 2021-09-01 19:41:45 +02:00
Shinokuni 40c3a52948 Migrate Folder entity to kotlin 2021-09-01 19:01:32 +02:00
Shinokuni 61f8798be5 Migrate Feed entity to kotlin 2021-09-01 18:46:54 +02:00
Shinokuni 4539fdff92 Remove kapt declaration from API module 2021-08-18 19:04:10 +02:00
Shinokuni 83aa9c8a31 Fix RSS1 root parsing 2021-08-17 21:46:17 +02:00
Shinokuni f6b9791bfd Make xml adapters compile 2021-08-17 21:45:16 +02:00
Shinokuni 767662df59 Xml adapters now receive a Konsumer object instead of an input stream 2021-08-17 21:18:03 +02:00
Shinokuni 655ab2bc83 Guess RSS type by using konsume-xml instead of reading content by hand 2021-08-15 16:28:17 +02:00
Shinokuni 1533f67de8 Merge retrofit and retrofit services declarations in ApiModule 2021-08-14 19:46:54 +02:00
Shinokuni 137e591573 Migrate last java classes from API module to kotlin except data sources 2021-07-20 19:58:45 +02:00
Shinokuni a5501b2524 Migrate java classes from services pacakge to Kotlin except data sources 2021-07-20 19:30:26 +02:00
Shinokuni 25ebc8305d Add tests for FreshRSS adapters 2021-07-20 15:38:05 +02:00
Shinokuni be90fa8d99 Add tests for Nextcloud News adapters 2021-07-19 18:52:54 +02:00
Shinokuni 7a51364f48 Migrate API module instrumented tests into simple unit tests 2021-07-19 17:30:10 +02:00
Shinokuni 3c752b777a Remove moshi codegen, use manual adapters instead 2021-07-19 17:11:54 +02:00
Shinokuni d51c7ed90a Fix OPML export not working with API 29+ 2021-07-16 17:34:03 +02:00
Shinokuni bd333afbf2 Fix failing test 2021-07-11 16:25:11 +02:00
Shinokuni 629ca050a3 Remove url building in AuthInterceptor 2021-07-08 19:05:25 +02:00
Shinokuni 8c9b2b2ab1 Nextcloud News : get read/unread starred items at initial synchronisation 2021-07-05 21:00:40 +02:00
Shinokuni 42cb3adee9 Update dependencies 2021-07-03 19:44:42 +02:00
Shinokuni bdc277f216 Fix failing tests 2021-07-02 19:13:49 +02:00
Shinokuni cbff42b4f2 Remove jcenter dependency 2021-07-02 18:56:11 +02:00
Shinokuni f412ae2f1e Get starred items separately only for initial synchronisation and fetch starred items ids everytime 2021-04-20 23:22:32 +02:00
Shinokuni 2411449863 Add a new table which merge FreshRSS items read/star state 2021-04-20 23:19:12 +02:00
Shinokuni fa7b7346cd Improve some adapters syntax 2021-04-14 17:58:33 +02:00
Shinokuni 0c9c601d41 Add new synchronization process for FreshRSS with read state and starred items sync 2020-12-28 15:48:32 +01:00
Shinokuni 009dda1d00 Fix FreshRSS items ids parsing 2020-12-18 18:16:23 +01:00
Shinokuni c3a94b9003 Update kotlin gradle plugin 2020-11-24 23:23:26 +01:00
Shinokuni 7270ed0f85 Remove unused class 2020-11-22 23:24:50 +01:00
Shinokuni e9e1a94401 Merge branch 'master' into develop 2020-11-22 19:03:10 +01:00
Shinokuni f2607c307c Replace Nextcloud News /user depreciated api call by /ocs/v1.php/cloud/users/{userId} 2020-11-15 19:13:21 +01:00
Shinokuni 1cba1b6e17 Accept null value for Nextcloud News feed attribute folderId 2020-11-11 22:22:07 +01:00
Shinokuni cec3c467cf Accept null value for Nextcloud News feed attribute folderId. Fixes #87 2020-11-11 21:59:05 +01:00
Shinokuni a8e3a689d5 Move api androidTest/ tests to test/
It's useless to make an instrumented test if Context is only used to retrieve a resource file. It can be done with classLoader
2020-11-09 22:00:55 +01:00
Shinokuni e548b44ac8 Fix LocalRSSDataSource tests 2020-11-07 13:43:24 +01:00
Shinokuni f2daac5068 Move Niddler instantiation in api module 2020-11-03 21:13:38 +01:00
Shinokuni cfa764e78b Sync FreshRSS items star state 2020-11-02 22:35:57 +01:00
Shinokuni da6b68fd2e Use a different retrofit builder for each service 2020-10-27 21:30:26 +01:00
Shinokuni 04e2f3eadb Add star/unstar api calls for FreshRSS 2020-10-25 21:27:11 +01:00
Shinokuni 9ceb5e6dd7 Add star/unstar api calls for Nextcloud News 2020-10-25 19:14:01 +01:00
Shinokuni 847a9d2004 Fix LocalRSSDataSource tests 2020-10-25 14:03:49 +01:00
Shinokuni 86c58b9280 Wrap Freshrss and Nextcloud News adapters code in a try/catch to throw ParseException 2020-10-25 12:49:19 +01:00
Shinokuni 39e613e7e6 Fix url being rewritten for not freshrss/nextcloud news http calls 2020-10-25 11:56:20 +01:00
Shinokuni 412ec3f1b8 Rename LibUtils to ApiUtils 2020-10-23 21:33:27 +02:00
Shinokuni 5e76eb4134 Reorganize api utils package 2020-10-23 21:30:34 +02:00
Shinokuni afce72bbe1 Add tests for AuthInterceptor 2020-10-23 19:44:13 +02:00
Shinokuni fcfff57e1d Merge branch 'develop' into feature/di 2020-10-23 19:08:52 +02:00
Shinokuni 6294b5556f Delete unused code 2020-10-21 21:42:22 +02:00
Shinokuni f3330ba07d Remove last references to the old http manager 2020-10-19 22:54:29 +02:00
Shinokuni 725cb291ef Fix FreshRSS and Nextcloud News authentications 2020-10-16 12:36:24 +02:00
Shinokuni 49c5ba06b3 Inject AuthInterceptor to deal with retrofit dynamic url and credentials 2020-10-15 19:04:50 +02:00
Shinokuni add729f5e2 Add Koin with api, db and app modules 2020-10-13 22:11:13 +02:00
Shinokuni 9b5dddeff4 Don't build repositories and data sources dependencies in them 2020-10-11 22:31:55 +02:00