Commit Graph

90 Commits

Author SHA1 Message Date
Ammar Githam 29d2b894d8 Interchange UserService and UserRepository names. Check description.
As per the sample provided at https://github.com/android/architecture-components-samples/tree/main/GithubBrowserSample, the Retrofit interfaces should be named Services and the classes using the services are Repositories.

Once all are properly named, we can move the db repositories inside the repositories package.
2021-06-09 08:40:13 +09:00
Ammar Githam 003beec5b6 Convert RecentSearchDao, RecentSearchDataSource and RecentSearchRepository to kotlin 2021-06-08 21:15:27 +09:00
Austin Huang 544d9f87bc
fix various comments bugs
1. redo ChildCommentsFetchResponse structure, stress-tested
2. navigation on more graph again
3. proper "next page" handling
2021-06-07 18:10:48 -04:00
Ammar Githam 76b246573d Convert FavoriteDao, FavoriteDataSource and FavoriteRepository to kotlin 2021-06-07 06:54:12 +09:00
Ammar Githam 6b499e3dfc Migrate DirectMessagesService to object 2021-06-06 20:11:36 +09:00
Ammar Githam 143a0ce259 Convert GraphQLRepository and GraphQLService to kotlin 2021-06-06 13:14:29 +09:00
Ammar Githam a2bd2e4b53 Convert UserRepository and UserService to kotlin 2021-06-06 10:11:30 +09:00
Ammar Githam e56e4c17c9 Migrate MediaService to object 2021-06-06 09:43:19 +09:00
Ammar Githam 3f09c7d173 Convert User to kotlin 2021-06-05 19:58:01 +09:00
Ammar Githam faf299f6f0 Preparation for adding ProfileFragmentViewModel 2021-06-05 19:36:00 +09:00
Ammar Githam b997504602 Convert MediaRepository and MediaService to kotlin. 2021-06-04 07:17:24 +09:00
Ammar Githam bcec6d373c Fix comment replies cursor 2021-06-01 18:16:54 +09:00
Ammar Githam cc1741005b DirectMessagesRepository migrated to suspend functions 2021-06-01 06:45:36 +09:00
Ammar Githam 741a997424 More suspend funs 2021-05-31 22:16:18 +09:00
Ammar Githam 87e6e4440f Convert to kotlin, suspend funs, and viewModelScope 2021-05-31 20:55:22 +09:00
Ammar Githam 68bc9a7543 Rename .java to .kt 2021-05-31 20:55:22 +09:00
Austin Huang e8ce2898b6
Merge branch 'master' of https://github.com/austinhuang0131/instagrabber 2021-05-29 10:47:52 -04:00
Austin Huang 890139a287
comments redo (logged-in endpoint) 2021-05-29 10:46:23 -04:00
Ammar Githam 3db7b53757 Convert DirectThreadViewModel to kotlin and fix ThreadManager 2021-05-29 23:14:04 +09:00
Ammar Githam ddac623184 Rename .java to .kt 2021-05-29 23:14:03 +09:00
Ammar Githam 59750b1026 Convert DM managers to kotlin 2021-05-29 22:22:28 +09:00
Ammar Githam 77965f9634 Convert FavoritesViewModel to kotlin and optimise code 2021-05-25 07:36:47 +09:00
Ammar Githam 39687136dc Rename .java to .kt 2021-05-25 07:36:47 +09:00
Ammar Githam ce31554687 Fix Caption de-serialization 2021-05-25 02:08:46 +09:00
Ammar Githam 841c3bdbda Convert to kotlin 2021-05-25 01:58:37 +09:00
Austin Huang 7e00dcc1b7
more #1309 2021-05-23 21:34:19 -04:00
Ammar Githam c784ca937d Fix FriendshipStatus variable names 2021-05-23 20:17:52 +09:00
Ammar Githam d7462109db Convert to kotlin 2021-05-23 16:48:27 +09:00
Ammar Githam 742b696d17 Share posts via DM. Resolves part of austinhuang0131/barinsta#537 2021-05-23 15:57:01 +09:00
Ammar Githam 13bfc9cb84 Convert some retrofit response classes to kotlin 2021-05-23 06:26:33 +09:00
Ammar Githam 17fb608c34 Convert some more classes to kotlin 2021-05-22 20:10:53 +09:00
Ammar Githam 84e93431ae Add Kotlin and convert some model classes to kotlin 2021-05-22 17:58:18 +09:00
Austin Huang f89f0ef542
add a simple user constructor 2021-05-15 12:52:31 -04:00
Ammar Githam 074ee18c9d Improve comments viewer ui and ux. Update ui for likes viewer and follows viewer. 2021-05-02 18:16:25 +09:00
Ammar Githam c859669ac1 Add search fragment with recent searches 2021-04-14 00:17:23 +09:00
Ammar Githam 1fdd9077d5 Remove invalid gifs before submitting to adapter. Fixes https://github.com/austinhuang0131/barinsta/issues/1013 2021-04-09 19:36:11 +09:00
Ammar Githam 666a36ff20 Fix crash when fetching self profile info is slow 2021-03-31 21:43:20 +09:00
Ammar Githam 7dc9583e51 Null checks. Fixes https://github.com/austinhuang0131/barinsta/issues/905 2021-03-29 22:48:55 +09:00
Ammar Githam 6bed9bf28c Fix double voice message 2021-03-25 19:47:33 +09:00
Austin Huang 1dd78b7d91
reorganize responses 2021-03-22 14:51:44 -04:00
Austin Huang e9239c31b0
migrate ProfileFetcher 2021-03-21 21:18:07 -04:00
Ammar Githam 839e30a4e5 Add delete option in post view. Fixes 1 part of https://github.com/austinhuang0131/barinsta/issues/289 2021-03-21 01:14:57 +09:00
Ammar Githam 9cdbd89328 Add manual mark as seen menu item in thread when auto mark is disabled 2021-03-20 21:04:49 +09:00
Ammar Githam 6f67dadb31 Handle new created threads using inbox manager 2021-03-20 12:40:51 +09:00
Austin Huang 383ffce89f
better handling for own profile 2021-03-18 16:34:26 -04:00
Ammar Githam 565a8d3dd6 Null check current user. Fixes 1 part of https://github.com/austinhuang0131/barinsta/issues/816 2021-03-18 21:50:39 +09:00
Austin Huang fbb5c244ae
patrol certain error strings 2021-03-17 15:09:00 -04:00
Ammar Githam dfa3a50893 Auto mark dm seen if enabled in settings. Fixes https://github.com/austinhuang0131/barinsta/issues/797 2021-03-18 01:41:29 +09:00
Austin Huang a55def53c5
restore dm button on profiles 2021-03-16 20:04:53 -04:00
Ammar Githam 6d73528387 Send stickers and gifs in DM 2021-03-16 01:48:39 +09:00