Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching toots - attempt 2 #809

Merged
merged 34 commits into from
Jan 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0d4b17c
Initial timeline cache implementation
charlag May 26, 2018
f2a5c6a
Fix build/DI errors for caching
charlag Aug 31, 2018
b5ee496
Rename timeline entities tables. Add migration. Add DB scheme file.
charlag Sep 9, 2018
ae084fb
Fix uniqueness problem, change offline strategy, improve mapping
charlag Sep 23, 2018
5890736
Try to merge in new statuses, fix bottom loading, fix saving spans.
charlag Sep 30, 2018
7c589da
Fix reblogs IDs, fix inserting elements from top
charlag Oct 2, 2018
9ac8a4c
Send one more request to get latest timeline statuses
charlag Oct 2, 2018
9ab3d5e
Give Timeline placeholders string id. Rewrite Either in Kotlin
charlag Oct 7, 2018
018adb7
Initial placeholder implementation for caching
charlag Oct 7, 2018
b0c2495
Fix crash on removing overlap statuses
charlag Oct 8, 2018
4d53562
Migrate counters to long
charlag Oct 8, 2018
21d7548
Remove unused counters. Add minimal TimelineDAOTest
charlag Oct 8, 2018
0115702
Fix bug with placeholder ID
charlag Oct 8, 2018
0fab646
Update cache in response to events. Refactor TimelineCases
charlag Oct 8, 2018
294a5ec
Fix crash, reduce number of placeholders
charlag Oct 10, 2018
f049602
Fix crash, fix filtering, improve placeholder handling
charlag Oct 10, 2018
690bb83
Fix migration, add 8-9 migration test
charlag Oct 12, 2018
1424646
Fix initial timeline update, remove more placeholders
charlag Oct 20, 2018
46d2280
Add cleanup for old statuses
charlag Oct 21, 2018
55b5eeb
Fix cleanup
charlag Oct 21, 2018
f297f31
Delete ExampleInstrumentedTest
charlag Oct 21, 2018
e2fe261
Improve timeline UX regarding caching
charlag Oct 22, 2018
b3404fc
Fix typos
charlag Oct 22, 2018
76648f2
Fix initial timeline update
charlag Oct 27, 2018
ea03cfa
Cleanup/fix initial timeline update
charlag Oct 28, 2018
6714bfe
Workaround for weird behavior of first post on initial tl update.
charlag Oct 28, 2018
82185d5
Change counter types back to int
charlag Nov 1, 2018
19460c3
Clear timeline cache on logout
charlag Nov 1, 2018
58e26a0
Fix loading when timeline is completely empty
charlag Nov 11, 2018
751ad13
Fix androidx migration issues
charlag Dec 22, 2018
6612d8b
Fix tests
charlag Dec 26, 2018
bb83f79
Apply caching feedback
charlag Jan 8, 2019
65313c3
Save account emojis to cache
charlag Jan 8, 2019
5559cb6
Fix warnings and bugs
charlag Jan 10, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ dependencies {
implementation 'androidx.preference:preference:1.1.0-alpha02'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.5.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.squareup.okhttp3:okhttp:3.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0'
Expand All @@ -112,6 +113,7 @@ dependencies {
//room
implementation 'androidx.room:room-runtime:2.0.0'
kapt 'androidx.room:room-compiler:2.0.0'
implementation 'android.arch.persistence.room:rxjava2:1.1.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
testImplementation 'junit:junit:4.12'
implementation "com.google.dagger:dagger:$daggerVersion"
Expand All @@ -124,6 +126,8 @@ dependencies {
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
androidTestImplementation('android.arch.persistence.room:testing:1.1.1')
androidTestImplementation "androidx.test.ext:junit:1.1.0"
debugImplementation 'im.dino:dbinspector:3.4.1@aar'
implementation 'io.reactivex.rxjava2:rxjava:2.2.4'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
Expand Down
Loading