Commit Graph

700 Commits

Author SHA1 Message Date
shunf4 3c97441d36 fix: set updating to false when refresh failed 2020-11-09 02:23:45 +08:00
Shinokuni 28dda2f1b5
Merge pull request #82 from shunf4/fix/notifperm_crash
fix "You can't request ViewModel before onCreate call error" in NotificationPermissionActivity
2020-11-07 18:43:12 +01:00
shunf4 36ac0c7247 fix: fix "You can't request ViewModel before onCreate call error" 2020-11-07 21:04:17 +08: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 81de8985c8 Sync Nextcloud News items star state 2020-10-27 21:29:19 +01:00
Shinokuni 97ae58305c Add action to star/fav an item 2020-10-26 22:02:39 +01:00
Shinokuni 9406416ce7 Add drawer favorites item to display starred/favorites items 2020-10-26 14:14:50 +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 537490252b Fix HtmlParser tests 2020-10-25 12:58:29 +01:00
Shinokuni 39e613e7e6 Fix url being rewritten for not freshrss/nextcloud news http calls 2020-10-25 11:56:20 +01:00
Shinokuni e37853a619 Replace Single<Boolean> by Completable for login call 2020-10-24 19:24:19 +02:00
Shinokuni ecdc714316 Reorganize app module files by feature 2020-10-23 23:00:43 +02: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 45c9121946 Inject SharedPreferences 2020-10-23 21:16:48 +02:00
Shinokuni fcfff57e1d Merge branch 'develop' into feature/di 2020-10-23 19:08:52 +02:00
Shinokuni e32b20bc87 Remove last references to Database singleton 2020-10-23 18:51:01 +02:00
Shinokuni 6294b5556f Delete unused code 2020-10-21 21:42:22 +02:00
Shinokuni 5c88a3f467 FIx koin context starting twice 2020-10-21 21:31:08 +02:00
Riku Viitanen 2d23369de7 Fix typo: newsest -> newest 2020-10-21 01:53:38 +03:00
Shinokuni c780f26533 Fix broken tests 2020-10-20 22:43:49 +02:00
Shinokuni aa59f890bb Inject Glide 2020-10-20 22:04:00 +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 950c8506ad Inject viewModels in activities and fragments 2020-10-16 11:58:00 +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
Shinokuni 343562657b Fix test dependencies build error 2020-10-07 22:10:44 +02:00
Shinokuni c26a2da6a7 Refactor and update gradle dependencies 2020-10-06 22:45:19 +02:00
Shinokuni b6d4f9296d Move isRSSType() method to LocalRSSHelper 2020-10-06 22:15:19 +02:00
Shinokuni 52fda0f8d8 Remove local RSS header image manual parsing 2020-10-06 21:43:09 +02:00
Shinokuni 604ccb3544 Merge branch 'develop' into feature/rss-manual-parsing 2020-10-05 22:40:27 +02:00
Shinokuni eb58311040 Log LocalFeedRepository.addFeeds() exceptions 2020-10-05 22:11:48 +02:00
Shinokuni 63497bd049 Always parse feed and items in the same time to detect malformed feeds 2020-10-04 22:17:52 +02:00
Shinokuni 90071f5830 Merge branch 'master' into develop 2020-10-01 19:30:14 +02:00
Shinokuni d4e546b6c1 Fix rss url parsing bug 2020-10-01 19:29:59 +02:00
Shinokuni 5998fa9126 Delete unused code 2020-09-20 18:17:43 +02:00
Shinokuni 6a1ddaeabb Use LocalRSSDataSource isUrlRSSResource 2020-09-20 18:12:05 +02:00
Shinokuni 82c29d0732 Use new LocalRSSDataSource in LocalFeedRepository 2020-09-17 22:15:33 +02:00
Shinokuni 15e1723893 Move cleanText method to api package 2020-09-13 12:38:51 +02:00
Shinokuni c15f093a1b Add an option to open item url in custom tab 2020-09-06 23:09:59 +02:00
Shinokuni 85fcf03e64 Use clear text mode for the feed url text input in AddFeedActivity 2020-09-05 14:23:48 +02:00
Shinokuni d59e38ee9d Use project level okhttp client with glide 2020-09-05 14:05:16 +02:00
Shinokuni 752135621d Move DateUtils in api package 2020-08-30 16:39:08 +02:00
Shinokuni 6c6653e443 Deactivate niddler by default 2020-08-23 22:12:37 +02:00
Shinokuni e370abbb43 Request storage permission only with APIs <= 28 2020-08-23 22:09:13 +02:00
Shinokuni 76d5e29589 Use scope storage with API >= 29 for OPML export 2020-08-23 21:51:09 +02:00
Shinokuni 594a0a67fa Use more mime types to open opml files 2020-08-16 23:04:26 +02:00
Shinokuni f7a78df815 Migrate FeedsAdapter to viewBinding 2020-08-11 22:41:57 +02:00
Shinokuni 93be8b92b9 Migrate ItemActivity to viewBinding 2020-08-11 21:58:38 +02:00
Shinokuni f41f430a52 Migrate MainActivity to viewBinding 2020-08-11 21:27:31 +02:00
Shinokuni 74447b1671 Use a null key for feeds without folders 2020-08-10 22:01:51 +02:00
Shinokuni f014284316 Merge OPMLMatcher code into OPMLParser 2020-08-02 15:16:05 +02:00
Shinokuni a01e740807 Bump app version and add changelog 2020-08-01 15:40:49 +02:00
Shinokuni dfe3dc9924 Fix read later icon color 2020-07-29 15:20:55 +02:00
Shinokuni 024aa04a60 Fix Nextcloud News login error message 2020-07-29 12:20:06 +02:00
Shinokuni 1695c3baf6 Fix webview crash in lollipop 2020-07-28 14:09:27 +02:00
Shinokuni 323bf976d7 Revamp splash backgorund 2020-07-28 14:01:08 +02:00
Shinokuni 04eb496d9e Add support for drawables in ReadropsItemTouchCallback 2020-07-27 21:13:21 +02:00
Shinokuni 0d00f8db0b Fix 401 error when adding a new account 2020-07-26 14:24:31 +02:00
Shinokuni 9aab727e1d Fix feeds permissions switch state bug 2020-07-25 15:28:51 +02:00
Shinokuni dee7f6e9ad Don't use too much bright or dark feeds colors 2020-07-25 14:33:32 +02:00
Shinokuni 7314440534 Fix account not having its credentials when syncing with the worker and catch all exceptions to avoid zombie notification 2020-07-25 11:52:06 +02:00
Shinokuni 67e7322555 Update work manager 2020-07-24 19:38:38 +02:00
Shinokuni 71ccf98d63 Add synchronize menu item 2020-07-19 15:19:05 +02:00
Shinokuni 4956a7f3b9 Forgot changed imports 2020-07-19 11:16:24 +02:00
Shinokuni 295a34203e Rename module readropslibrary to api 2020-07-19 10:40:53 +02:00
Shinokuni b54c80437d Add support for common RSS date format without timezone 2020-07-18 14:31:54 +02:00
Shinokuni 465838d4b6 Add support for zzz timezone format 2020-07-18 12:36:51 +02:00
Shinokuni c1edc939a0 Replace ViewModelProviders.of() by ViewModelProvider() 2020-07-17 20:55:00 +02:00
Shinokuni b433d28177 Add support for another date format 2020-07-14 22:12:33 +02:00
Shinokuni b98b8853ec <enclosure> tag attributes aren't required 2020-07-14 21:28:33 +02:00
Shinokuni 9839f320e2 Fix RSS multiple <creator> tags error 2020-07-14 16:36:57 +02:00
Shinokuni d9652c725b Handle the absence of guid tag for RSS 2.0 items 2020-07-14 15:13:46 +02:00
Shinokuni 0122400c85 Fix Jsoup 403 error (fixes #71) 2020-07-13 22:03:43 +02:00
Shinokuni 442c257593 Use viewbinding with custom views 2020-07-13 19:33:11 +02:00
Shinokuni 2bc5438348 Migration from databinding to viewbinding 2020-07-13 19:23:02 +02:00
Shinokuni c968c53441 Remove 15 mins sync interval 2020-07-12 22:03:24 +02:00
Shinokuni cad3b6f59b Set the current account at the top of the list in Add Feed Activity 2020-07-11 16:09:19 +02:00
Shinokuni a8764e91f5 Use the choosen interval as the worker initial delay 2020-07-11 15:49:42 +02:00
Shinokuni e39c16d635 Setup Niddler 2020-07-10 21:09:22 +02:00
Shinokuni 489051b67f Update french translations 2020-07-10 19:27:59 +02:00
Shinokuni f0ccb92946 Update gradle and kotlin plugins 2020-07-10 17:59:15 +02:00
Shinokuni 36770546b0 Resolve forgotten merge conflict 2020-07-10 17:43:46 +02:00
Shinokuni 76e126093f Set the good account when opening the app from a notification 2020-04-20 22:47:29 +02:00
Shinokuni 3c40d8eb23
Merge pull request #64 from spadarian/show_image_caption
Added option to show image title or alt as caption
2020-04-20 22:12:06 +02:00
José Padarian 4d94d6bced Reformatting 2020-04-19 14:45:55 +10:00
Shinokuni fb48608068 Fix item activity reopening itself after syncing when the app is opened by a sync result notification 2020-04-17 21:51:50 +02:00
Shinokuni dad51d334a
Merge pull request #65 from spadarian/password_helper
Added password helper
2020-04-16 19:25:12 +02:00
José Padarian 6b56e914b3 Changed from DialogFragment to MaterialDialog 2020-04-14 09:35:00 +10:00
José Padarian 65f89f6d2f Better accountType comparison 2020-04-14 09:07:33 +10:00
Shinokuni a08796d20d Fix some NC News parsing bugs 2020-04-13 22:28:24 +02:00
Shinokuni ade8567258 Merge branch 'master' into develop 2020-04-13 19:01:16 +02:00
Shinokuni bb62fd7995 Bump app version to 1.1.4 2020-04-12 21:46:53 +02:00
José Padarian 7db8c6d662 Added password helper (closes #58) 2020-04-12 23:47:03 +10:00
José Padarian f70a0551b4 Added option to show image title or alt as caption 2020-04-12 19:46:12 +10:00
Shinokuni bf48caf694 Fix FreshRSS folder id parsing bug 2020-04-11 21:39:35 +02:00
Shinokuni 467c619590 Fix app crash when using an account url without http scheme 2020-04-09 22:00:17 +02:00
Shinokuni 0d520e3c1f Fix feeds being deleted when adding a new feed with a NC News account 2020-04-09 21:20:19 +02:00
Shinokuni f885038c67 For multiple accounts sync result case, just return a title 2020-03-30 21:13:36 +02:00
Shinokuni dd4579fbd0 Update some gradle dependencies 2020-03-29 21:34:18 +02:00
Shinokuni 93b9336045 Avoid certain cases where all feeds notifications permissions could be set unnecessarily in notifications permissions activity 2020-03-29 19:48:20 +02:00
Shinokuni d5e5bb7abb User the right key for account id 2020-03-29 15:55:53 +02:00
Shinokuni 2955a3d60c Modify enable all feeds permissions switch label 2020-03-29 13:50:02 +02:00
Shinokuni 4aa7ae7e4c Fix synchronization between feeds notifications permissions switches and enables all feeds notifications switch 2020-03-28 18:45:37 +01:00
Shinokuni 6d0ebf063b Display an information dialog on account notifications switch check when
automatic synchronization is disabled
2020-03-28 18:18:38 +01:00
Shinokuni b359d6c3f8 Fix click synchronization between the switch and the item view in notification permission layout 2020-03-25 21:15:25 +01:00
Shinokuni 6600090525 Add a switch to enable disable all feeds notifications 2020-03-24 22:36:50 +01:00
Shinokuni 2d809f3c6b Various little UI improvements for notifications activity 2020-03-24 21:28:08 +01:00
Shinokuni 31baff2772 Fix feed notification switch enabled on item view click with account notifications disabled 2020-03-24 21:02:47 +01:00
Shinokuni 46a0aa0741 Don't abort when lint task fails 2020-03-22 18:22:37 +01:00
Shinokuni b4ffbd94a7 Add buildToolsVersion property to gradle files 2020-03-20 22:14:26 +01:00
Shinokuni 5b192ae291 Merge branch 'master' into develop 2020-03-20 22:05:31 +01:00
Shinokuni afdf0224da Delete unused dependency 2020-03-20 21:44:40 +01:00
Shinokuni 896a626eb6 Add more tests for sync result notification content 2020-03-20 19:51:58 +01:00
Shinokuni c949ed58f5 Sync result notification now respects account and feed notification permissions 2020-03-15 18:47:04 +01:00
Shinokuni 65aca8eb5d Enable notifications by account and disable feed notification permission switches if account notifications are disabled 2020-03-14 19:33:38 +01:00
Shinokuni 9d1d9a31fe Improve notification permission layout 2020-03-14 15:55:47 +01:00
Shinokuni 4987a70efa Add notifications permission list 2020-03-14 15:21:17 +01:00
Shinokuni c4848fc7c6 Add notification permission activity 2020-03-14 14:35:53 +01:00
Shinokuni 2f7fd36511 Fix item not having an id for one item sync result notification case 2020-03-11 21:15:43 +01:00
Shinokuni 8eda0ce669 Handle failed auto synchronizations 2020-03-09 21:45:42 +01:00
Shinokuni 86c9f82f6d Fix item activity not opening when clicking on sync result notification with the app closed 2020-03-09 21:03:10 +01:00
Shinokuni a2a2afa895 enable sync result notification actions only for one item case 2020-03-08 22:13:14 +01:00
Shinokuni 1b99d93739 Use MainActivity as a single instance to open item on sync result notification click 2020-03-08 22:09:24 +01:00
Shinokuni b2a51825e2 Add big text to sync result notification 2020-03-08 21:35:23 +01:00
Shinokuni 70a9dff3ba Fix sync result notification color 2020-03-08 21:28:56 +01:00
Shinokuni 87feb0a5bd Fix item activity not opening when clicking on one item sync result notification 2020-03-08 21:26:56 +01:00
Shinokuni ed2af2125c Improve SyncResultAnalyser tests 2020-03-03 22:14:04 +01:00
Shinokuni e232d2973c Update gradle dependencies 2020-02-27 22:33:38 +01:00
Shinokuni 4ef8388c16 Fix account icon not displayed in sync result notification one account multiple feeds case 2020-02-23 13:40:58 +01:00
Shinokuni 66616b5759 Bump app version to 1.1.3 2020-02-22 17:57:42 +01:00
Shinokuni 1676e9f637 Add actions for single result notification case 2020-02-22 14:56:12 +01:00
Shinokuni ffeb955a82 Open item when sync result notification is single item case 2020-02-21 22:19:33 +01:00
Shinokuni 88f6915931 Fix some sonar issues 2020-02-21 21:39:25 +01:00
Shinokuni a960f59e2f Fix drawer crash for api below 24 2020-02-15 18:34:46 +01:00
Shinokuni 0a73c8a6a1 Fix drawer crash for api below 24 2020-02-15 18:34:21 +01:00
Shinokuni dfaec3bdb1 Fix existing items not having their read state updated after syncing 2020-02-15 14:48:35 +01:00
Shinokuni 5b376b4ce7 Use singleTop behavior for MainActivity 2020-02-15 13:45:54 +01:00
Shinokuni 54566bbc4e Check feed icon url nullability 2020-02-15 13:37:26 +01:00
Shinokuni 4f2618021e Ad network constraint to sync worker 2020-02-15 13:21:41 +01:00
Shinokuni 071e57ac89 Add tests for sync results notification 2020-02-12 22:53:52 +01:00
Shinokuni 2453f35179 Add local account sync result notification 2020-02-11 19:31:35 +01:00
Shinokuni 46712f4c5e Add another case for sync result notification 2020-02-11 16:18:30 +01:00
Shinokuni 1052b453a8 Fix feed being null when there is only one new item for sync result notification 2020-02-10 17:46:18 +01:00
Shinokuni 05f8fc56a7 Change sync channel importance and set auto-cancel to sync result notification 2020-02-10 16:40:31 +01:00