From 45f67457fa6bf49fdf2648e1dc3a3802beac41b4 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Thu, 27 Dec 2018 11:29:02 +0800 Subject: Use Android Paging Library to load and display best posts. Loading best posts in a specific subreddit is broken. Fixed a bug which is PostViewModel's data becoming null after the app restart. Add notch support for Android Pie. --- app/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/build.gradle') diff --git a/app/build.gradle b/app/build.gradle index 317de2a4..c9d61af9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -16,6 +16,10 @@ android { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } + compileOptions { + sourceCompatibility = '1.8' + targetCompatibility = '1.8' + } } repositories { @@ -66,4 +70,5 @@ dependencies { annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1' implementation 'com.github.santalu:aspect-ratio-imageview:1.0.6' implementation 'com.felipecsl:gifimageview:2.2.0' + implementation "android.arch.paging:runtime:1.0.1" } -- cgit v1.2.3