1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-12-25 06:06:59 +00:00
Commit Graph

1137 Commits

Author SHA1 Message Date
Ammar Githam
63df44624e Add update favorite logic in ProfileFragmentViewModel and corresponding test 2021-06-24 20:41:48 +09:00
Ammar Githam
edb03ba3d8 Update ProfileFragmentViewModel and tests 2021-06-24 20:12:37 +09:00
Ammar Githam
976c9a86b6 Update ProfileFragmentViewModel 2021-06-23 22:07:38 +09:00
Ammar Githam
1ebf7a2e4b Update ProfileFragmentViewModel 2021-06-23 20:52:45 +09:00
Austin Huang
b1628492f5
convert some utils to kotlin 2021-06-22 19:23:41 -04:00
Austin Huang
9b76051dd5
Rename .java to .kt 2021-06-22 19:23:40 -04:00
Austin Huang
5c97bea3c2
trial: check downloaded using contentResolver.query
https://redd.it/bbejc4
2021-06-22 19:11:20 -04:00
Austin Huang
3dcc791cba
convert downloadutils to kotlin 2021-06-22 16:06:14 -04:00
Austin Huang
a7cb82354e
Rename .java to .kt 2021-06-22 16:06:13 -04:00
Austin Huang
44a20bb59a
close #1450 2021-06-22 13:19:55 -04:00
Austin Huang
832641603a
validate uri before writing pref
also made pref summary up-to-date
2021-06-22 12:12:42 -04:00
Austin Huang
d031998123
show proper error for download category 2021-06-22 12:11:16 -04:00
Austin Huang
ac4bb2e027
fix first-account crash due to backup? 2021-06-22 12:09:52 -04:00
Austin Huang
65624f0b42
patch downloaded check 2021-06-21 23:42:14 -04:00
Austin Huang
4a93d65253
proper share link chooser 2021-06-21 15:55:24 -04:00
Austin Huang
f04a5bd2c6
disable unfinished dm share profile 2021-06-21 15:44:28 -04:00
Austin Huang
3db95163f8
fix not detecting downloaded video 2021-06-20 15:07:15 -04:00
Austin Huang
ad69f7d382
saf cleanup, close #1439 2021-06-20 14:30:08 -04:00
Austin Huang
13dc310c5d
fix some string handling 2021-06-19 17:49:55 -04:00
Austin Huang
808c841e65
possible anonymous fix? 2021-06-19 17:25:40 -04:00
Austin Huang
dcd00ce60b
restore stories autoplay; close #1409 (main) 2021-06-19 12:39:58 -04:00
Austin Huang
c2ac61986f
close #1362 2021-06-19 12:10:56 -04:00
Austin Huang
7e45716e61
convert some utils to kotlin 2021-06-19 11:21:47 -04:00
Austin Huang
138a938423
Rename .java to .kt 2021-06-19 11:21:16 -04:00
Austin Huang
18de019c0d
remove legacy write-storage parts 2021-06-19 11:21:16 -04:00
Austin Huang
f657f61aa7
proper self-profile handling when offline; close #1328 2021-06-18 20:00:42 -04:00
Austin Huang
f340ab3d4c
add arabic, cc. @rex07 2021-06-18 17:59:28 -04:00
Austin Huang
e6ca59e4b4
chore: user-agent 2021-06-18 17:53:43 -04:00
Austin Huang
f33e371ee0
chore: strings 2021-06-18 17:51:01 -04:00
Austin Huang
7345ecefd0
option to disable auto backup; close #1433 2021-06-18 16:08:32 -04:00
Austin Huang
15e5d39f6b
convert SettingsHelper to kotlin (auto) 2021-06-18 14:15:46 -04:00
Austin Huang
95d3fb107a
Rename .java to .kt 2021-06-18 13:38:50 -04:00
Austin Huang
d4a20510ec
close #1339 2021-06-17 23:39:13 -04:00
Austin Huang
5ab794941e
convert switch back to if-then (auto) 2021-06-16 12:52:20 -04:00
Austin Huang
d76018596d
share profile by dm: preparation 2021-06-15 13:27:58 -04:00
Austin Huang
8edac65015
prepare broadcast options for profile/story 2021-06-14 21:54:14 -04:00
Austin Huang
079ce76bc3
simplify sharing media to dm 2021-06-14 21:41:11 -04:00
Austin Huang
64f421ad4f
pluralize dm recipient options, part 2 2021-06-14 21:41:02 -04:00
Austin Huang
a45844b50e
simplify replying to stories
no need to create thread before sending
2021-06-14 21:13:12 -04:00
Austin Huang
e89c1ac9ef
pluralize dm recipient options
as used in the official client
2021-06-14 21:12:52 -04:00
Austin Huang
95b90ab72f
Merge pull request #934 from ammargitham/support-android-11
Migrate to SAF (Storage Access Framework)
2021-06-14 13:53:30 -04:00
Austin Huang
bf22b86723
fix downloadworker; now functional 2021-06-13 22:22:53 -04:00
Austin Huang
c47272792e
resolve gson crash 2021-06-13 22:09:07 -04:00
Austin Huang
6ed9e8458f
initialize downloadutils on launch 2021-06-13 20:51:22 -04:00
Austin Huang
2038f57472
preference and post support (not functional) 2021-06-13 17:58:25 -04:00
Austin Huang
b287f96415
made pr buildable (not functional) 2021-06-13 17:21:34 -04:00
Austin Huang
f961c422ca
Merge branch 'master' into pr/934 2021-06-13 12:02:51 -04:00
Austin Huang
0d7db5237f
Merge pull request #1374 from Vonter/restore_scroll_favorites
Save and Restore scroll position on Favorites Tab - Issue #1359
2021-06-13 11:46:17 -04:00
Ammar Githam
70ffac3025 Add some ProfileFragmentViewModel logic and tests 2021-06-13 20:52:03 +09:00
Ammar Githam
1d9eb43442 Make currentUser in AppStateViewModel a Resource 2021-06-13 20:01:09 +09:00
Ammar Githam
de9a1e06a9 Add FavoriteRepository to ProfileFragmentViewModel constructor 2021-06-12 13:22:49 +09:00
Ammar Githam
77868838b9 Update how FavoriteDataSource and FavoriteRepository get initialised 2021-06-12 13:19:25 +09:00
Ammar Githam
8253328788 Add AccountRepository to ProfileFragmentViewModel constructor 2021-06-12 13:04:55 +09:00
Ammar Githam
06508ca78d Update how AccountDataSource and AccountRepository get initialised 2021-06-12 13:02:15 +09:00
Ammar Githam
dad2260ea2 Add GraphQLRepository to ProfileFragmentViewModel constructor 2021-06-12 12:43:15 +09:00
Ammar Githam
205e21b07c Move GraphQLService object to GraphQLRepository constructor parameter. 2021-06-12 12:39:55 +09:00
Ammar Githam
69b685ae0d Interchange GraphQLService and GraphQLRepository names. 2021-06-12 12:34:50 +09:00
Ammar Githam
2a0295e325 Add MediaRepository to ProfileFragmentViewModel constructor 2021-06-12 10:07:31 +09:00
Ammar Githam
58e0863de5 Move MediaService object to MediaRepository constructor parameter. 2021-06-12 10:03:21 +09:00
Ammar Githam
b2cbc18dbb Interchange MediaService and MediaRepository names. 2021-06-12 09:53:38 +09:00
Ammar Githam
02cb1f5db5 Add StoriesRepository to ProfileFragmentViewModel constructor 2021-06-12 08:54:00 +09:00
Ammar Githam
3d69148d9b Move StoriesService object to StoriesRepository constructor parameter. 2021-06-12 08:49:49 +09:00
Ammar Githam
4f8de4e7df Fix compile error 2021-06-12 08:42:12 +09:00
Ammar Githam
1191b416ce Interchange StoriesService and StoriesRepository names. 2021-06-12 08:37:22 +09:00
Austin Huang
8bb0fba4cb
close #1397 2021-06-11 12:24:25 -04:00
Ammar Githam
8f218b9515 Add FriendshipRepository to ProfileFragmentViewModel constructor 2021-06-10 17:03:24 +09:00
Ammar Githam
e1532eb4b8 Move FriendService object to FriendshipRepository constructor parameter. 2021-06-10 16:50:25 +09:00
Ammar Githam
0126fca36d Interchange FriendshipService and FriendshipRepository names. 2021-06-10 16:16:41 +09:00
Ammar Githam
ed8ca2da02 More groundwork for ProfileFragmentViewModel 2021-06-09 09:09:40 +09:00
Ammar Githam
eaac191588 Remove BaseService. Since RetrofitFactory was introduced, BaseService does nothing. 2021-06-09 08:46:34 +09:00
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
Austin Huang
6e2e3c139c
close #1336 2021-06-08 12:08:32 -04:00
Ammar Githam
54ff196bb1 Convert AppDatabase to kotlin 2021-06-08 22:39:00 +09:00
Ammar Githam
66b60e6830 Rename .java to .kt 2021-06-08 22:39:00 +09:00
Ammar Githam
d4bf5a57c2 Convert db entities to kotlin 2021-06-08 22:24:27 +09:00
Ammar Githam
34e2ba429c Convert Converters to kotlin 2021-06-08 21:29:47 +09:00
Ammar Githam
b7d74964fa Rename .java to .kt 2021-06-08 21:29:47 +09:00
Ammar Githam
64567359b7 Remove unused RepositoryCallback interface 2021-06-08 21:16:50 +09:00
Ammar Githam
003beec5b6 Convert RecentSearchDao, RecentSearchDataSource and RecentSearchRepository to kotlin 2021-06-08 21:15:27 +09:00
Ammar Githam
c49b44f212 Rename .java to .kt 2021-06-08 21:15:27 +09:00
Ammar Githam
22041df256 Convert DMLastNotifiedDao, DMLastNotifiedDataSource and DMLastNotifiedRepository to kotlin 2021-06-08 20:51:59 +09:00
Ammar Githam
3d0b18e422 Rename .java to .kt 2021-06-08 20:51:59 +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
Vonter
ae23dd74ba Merge branch 'austinhuang0131:master' into restore_scroll_favorites 2021-06-07 23:02:11 +05:30
Vonter
257d707c14
Change favorites tab scroll position restore to use StateRestorationPolicy 2021-06-07 22:16:17 +05:30
Ammar Githam
4381d49aa9 Merge remote-tracking branch 'upstream/master' 2021-06-07 06:54:36 +09:00
Ammar Githam
76b246573d Convert FavoriteDao, FavoriteDataSource and FavoriteRepository to kotlin 2021-06-07 06:54:12 +09:00
Austin Huang
7f7db43870
Merge branch 'master' of https://github.com/austinhuang0131/instagrabber 2021-06-06 15:43:52 -04:00
Austin Huang
5e631749b3
close #1384 2021-06-06 14:49:04 -04:00
Ammar Githam
c647e22293 Convert AccountDao, AccountDataSource and AccountRepository to kotlin 2021-06-06 20:59:56 +09:00
Ammar Githam
4a099ef20a Rename .java to .kt 2021-06-06 20:59:56 +09:00
Ammar Githam
6b499e3dfc Migrate DirectMessagesService to object 2021-06-06 20:11:36 +09:00
Ammar Githam
cae457aa9a Convert StoriesRepository and StoriesService to kotlin 2021-06-06 19:29:21 +09:00
Ammar Githam
a2cc4573e1 Rename .java to .kt 2021-06-06 19:29:21 +09:00
Ammar Githam
cf65ed0fc5 Convert FriendshipRepository and FriendshipService to kotlin 2021-06-06 14:18:27 +09:00
Ammar Githam
7769aa220f Rename .java to .kt 2021-06-06 14:18:26 +09:00
Ammar Githam
143a0ce259 Convert GraphQLRepository and GraphQLService to kotlin 2021-06-06 13:14:29 +09:00
Ammar Githam
dd3562116b Rename .java to .kt 2021-06-06 13:14:28 +09:00
Ammar Githam
a2bd2e4b53 Convert UserRepository and UserService to kotlin 2021-06-06 10:11:30 +09:00
Ammar Githam
6b24c907dd Rename .java to .kt 2021-06-06 10:11:30 +09:00