Update AGP, reorganize libraries

This commit is contained in:
TacoTheDank 2021-09-24 21:07:26 -04:00
parent b0f33815d8
commit 0f4ced5669
3 changed files with 23 additions and 33 deletions

View File

@ -47,23 +47,23 @@ dependencies {
implementation 'androidx.browser:browser:1.3.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0-beta02'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
def lifecycleVersion = "2.2.0"
implementation "androidx.lifecycle:lifecycle-common-java8:2.3.1"
implementation "androidx.lifecycle:lifecycle-livedata:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-process:2.3.1"
implementation "androidx.lifecycle:lifecycle-runtime:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
annotationProcessor "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion"
implementation 'androidx.paging:paging-runtime:3.0.1'
implementation "androidx.paging:paging-guava:3.0.1"
implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycleVersion"
def pagingVersion = "3.0.1"
implementation "androidx.paging:paging-runtime:$pagingVersion"
implementation "androidx.paging:paging-guava:$pagingVersion"
implementation 'androidx.preference:preference:1.1.1'
def roomVersion = "2.3.0"
implementation "androidx.room:room-runtime:$roomVersion"
annotationProcessor "androidx.room:room-compiler:$roomVersion"
implementation 'androidx.startup:startup-runtime:1.0.0'
implementation 'androidx.viewpager2:viewpager2:1.1.0-alpha01'
implementation 'androidx.work:work-runtime:2.5.0'
implementation 'com.google.android.material:material:1.3.0-rc01'
implementation "androidx.viewpager2:viewpager2:1.1.0-alpha01"
/** ExoPlayer **/
def exoplayerVersion = "2.10.8"
@ -81,10 +81,6 @@ dependencies {
/**** Backend logic ****/
// Reactive stuff for event and async related
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'io.reactivex.rxjava2:rxjava:2.2.21'
// HTTP clients
def retrofitVersion = "2.9.0"
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
@ -121,6 +117,15 @@ dependencies {
// NOTE: Replace with Squareup's Moshi?
implementation 'com.google.code.gson:gson:2.8.6'
// Java library for zip files and streams
implementation 'net.lingala.zip4j:zip4j:2.7.0'
// IO functionality
implementation 'org.apache.commons:commons-io:1.3.2'
// Crash reporting
implementation 'com.github.FunkyMuse:Crashy:1.1.0'
/**** User Interface (frontend) ****/
@ -172,19 +177,8 @@ dependencies {
// RecyclerView fast scrolling
implementation 'me.zhanghai.android.fastscroll:library:1.1.5'
implementation 'net.lingala.zip4j:zip4j:2.7.0'
implementation 'org.apache.commons:commons-io:1.3.2'
implementation "androidx.startup:startup-runtime:1.0.0"
implementation 'com.github.FunkyMuse:Crashy:1.1.0'
implementation "androidx.lifecycle:lifecycle-process:2.3.1"
implementation "androidx.lifecycle:lifecycle-common-java8:2.3.1"
implementation 'androidx.palette:palette:1.0.0'
/**** Builds and flavors ****/
// debugImplementation because LeakCanary should only run in debug builds.
//debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.5'
//debugImplementation 'com.squareup.leakcanary:leakcanary-android:x.y'
}

View File

@ -50,12 +50,6 @@ public class AcknowledgementFragment extends Fragment {
acknowledgements.add(new Acknowledgement("Glide",
"A fast and efficient open source media management and image loading framework for Android",
Uri.parse("https://github.com/bumptech/glide")));
acknowledgements.add(new Acknowledgement("RxAndroid",
"Android specific bindings for RxJava 2",
Uri.parse("https://github.com/ReactiveX/RxAndroid")));
acknowledgements.add(new Acknowledgement("RxJava",
"Reactive extensions for the JVM",
Uri.parse("https://github.com/ReactiveX/RxJava")));
acknowledgements.add(new Acknowledgement("Retrofit",
"Type-safe HTTP client for Android and Java by Square, Inc.",
Uri.parse("https://github.com/square/retrofit")));

View File

@ -3,10 +3,12 @@
buildscript {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'com.android.tools.build:gradle:7.0.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
@ -16,9 +18,9 @@ buildscript {
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
mavenCentral()
maven { url "https://jitpack.io" }
jcenter()
}
}