Infinity-For-Lemmy/app/build.gradle

186 lines
7.0 KiB
Groovy
Raw Normal View History

2018-07-26 17:04:44 +02:00
apply plugin: 'com.android.application'
android {
compileSdkVersion 30
2018-07-26 17:04:44 +02:00
defaultConfig {
applicationId "ml.docilealligator.infinityforreddit"
minSdkVersion 21
targetSdkVersion 30
2021-05-05 09:56:42 +02:00
versionCode 64
versionName "4.3.0-beta4"
2019-02-21 10:24:23 +01:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
2020-12-23 23:35:41 +01:00
arguments = [eventBusIndex: 'ml.docilealligator.infinityforreddit.EventBusIndex']
}
}
2018-07-26 17:04:44 +02:00
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
2020-07-09 17:44:49 +02:00
minifiedRelease {
initWith buildTypes.release
zipAlignEnabled true
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
2018-07-26 17:04:44 +02:00
}
compileOptions {
2020-04-22 18:09:10 +02:00
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
bundle {
language {
enableSplit = false
}
}
2018-07-26 17:04:44 +02:00
}
dependencies {
2020-12-23 23:35:41 +01:00
/** AndroidX **/
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.biometric:biometric:1.2.0-alpha03'
2020-12-23 23:36:22 +01:00
implementation 'androidx.browser:browser:1.3.0'
2019-02-21 10:24:23 +01:00
implementation 'androidx.cardview:cardview:1.0.0'
2020-11-11 10:40:09 +01:00
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
def lifecycleVersion = "2.3.1"
2020-12-23 23:35:41 +01:00
implementation "androidx.lifecycle:lifecycle-livedata:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycleVersion"
2020-04-22 18:09:10 +02:00
annotationProcessor "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion"
implementation 'androidx.paging:paging-runtime:3.0.0'
2020-04-22 18:09:10 +02:00
implementation 'androidx.preference:preference:1.1.1'
def roomVersion = "2.3.0"
2020-04-22 18:09:10 +02:00
implementation "androidx.room:room-runtime:$roomVersion"
annotationProcessor "androidx.room:room-compiler:$roomVersion"
implementation 'androidx.work:work-runtime:2.5.0'
implementation 'com.google.android.material:material:1.4.0-beta01'
implementation "androidx.viewpager2:viewpager2:1.1.0-alpha01"
2020-04-22 18:09:10 +02:00
2020-12-23 23:35:41 +01:00
/** ExoPlayer **/
def exoplayerVersion = "2.10.8"
implementation "com.google.android.exoplayer:exoplayer-core:$exoplayerVersion"
implementation "com.google.android.exoplayer:exoplayer-dash:$exoplayerVersion"
implementation "com.google.android.exoplayer:exoplayer-hls:$exoplayerVersion"
implementation "com.google.android.exoplayer:exoplayer-ui:$exoplayerVersion"
def toroVersion = "3.7.0.2010003"
implementation "im.ene.toro3:toro:$toroVersion"
implementation("im.ene.toro3:toro-ext-exoplayer:$toroVersion") {
exclude module: 'extension-ima'
}
/** Third-party **/
/**** 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'
2020-12-23 23:35:41 +01:00
2020-12-23 23:36:22 +01:00
// HTTP clients
2020-12-23 23:35:41 +01:00
def retrofitVersion = "2.9.0"
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
implementation "com.squareup.retrofit2:converter-scalars:$retrofitVersion"
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
2020-12-23 23:35:41 +01:00
// Dependency injection
def daggerVersion = "2.34"
2020-12-23 23:35:41 +01:00
implementation "com.google.dagger:dagger:$daggerVersion"
annotationProcessor "com.google.dagger:dagger-compiler:$daggerVersion"
// Binding
// NOTE: Deprecated in favor of viewbinding
def butterknifeVersion = "10.2.3"
implementation "com.jakewharton:butterknife:$butterknifeVersion"
annotationProcessor "com.jakewharton:butterknife-compiler:$butterknifeVersion"
// Events
def eventbusVersion = "3.2.0"
implementation "org.greenrobot:eventbus:$eventbusVersion"
annotationProcessor "org.greenrobot:eventbus-annotation-processor:$eventbusVersion"
// TransactionTooLargeException avoidance
2020-12-23 23:36:22 +01:00
implementation 'com.github.livefront:bridge:v1.3.0'
2020-12-23 23:35:41 +01:00
// Bundle-saving without boilerplate
// NOTE: Deprecated
def stateVersion = "1.4.1"
implementation "com.evernote:android-state:$stateVersion"
annotationProcessor "com.evernote:android-state-processor:$stateVersion"
// Object to JSON
// NOTE: Replace with Squareup's Moshi?
implementation 'com.google.code.gson:gson:2.8.6'
/**** User Interface (frontend) ****/
//Image loading
def glideVersion = "4.12.0"
2020-12-23 23:35:41 +01:00
implementation "com.github.bumptech.glide:glide:$glideVersion"
annotationProcessor "com.github.bumptech.glide:compiler:$glideVersion"
2020-12-23 23:36:22 +01:00
implementation 'jp.wasabeef:glide-transformations:4.3.0'
2020-04-22 18:09:10 +02:00
implementation 'com.github.santalu:aspect-ratio-imageview:1.0.9'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.21'
2020-12-23 23:36:22 +01:00
def bivVersion = "1.7.0"
2020-12-23 23:35:41 +01:00
implementation "com.github.Piasy.BigImageViewer:BigImageViewer:$bivVersion"
implementation "com.github.Piasy.BigImageViewer:GlideImageLoader:$bivVersion"
implementation "com.github.Piasy.BigImageViewer:GlideImageViewFactory:$bivVersion"
// Markdown
def markwonVersion = "4.6.2"
2020-12-23 23:35:41 +01:00
implementation "io.noties.markwon:core:$markwonVersion"
implementation "io.noties.markwon:ext-strikethrough:$markwonVersion"
implementation "io.noties.markwon:linkify:$markwonVersion"
implementation "io.noties.markwon:recycler-table:$markwonVersion"
implementation "io.noties.markwon:simple-ext:$markwonVersion"
2021-02-24 15:46:44 +01:00
implementation "io.noties.markwon:html:$markwonVersion"
2020-12-23 23:35:41 +01:00
implementation 'com.atlassian.commonmark:commonmark-ext-gfm-tables:0.14.0'
implementation 'me.saket:better-link-movement-method:2.2.0'
2020-12-23 23:35:41 +01:00
// Animations
implementation 'com.airbnb.android:lottie:3.4.4'
// Loading ProgressBar
implementation 'com.lsjwzh:materialloadingprogressbar:0.5.8-RELEASE'
// SearchView
2020-05-28 16:16:07 +02:00
implementation 'com.github.Ferfalk:SimpleSearchView:0.1.4'
2020-12-23 23:35:41 +01:00
// Customizable TextView
2020-04-22 18:09:10 +02:00
implementation 'com.libRG:customtextview:2.4'
2020-12-23 23:35:41 +01:00
// Dismiss gesturing
implementation 'com.r0adkll:slidableactivity:2.1.0'
implementation 'com.thefuntasty.hauler:core:3.1.0'
// Bottom sheet with rounded corners
implementation 'com.github.Deishelon:RoundedBottomSheet:1.0.1'
2020-12-23 23:35:41 +01:00
// FlowLayout (auto-spacing)
2020-12-23 23:36:22 +01:00
implementation 'com.nex3z:flow-layout:1.3.3'
2020-12-23 23:35:41 +01:00
// RecyclerView fast scrolling
2020-12-23 23:36:22 +01:00
implementation 'me.zhanghai.android.fastscroll:library:1.1.5'
2020-12-23 23:35:41 +01:00
// Crash screen
2020-12-02 12:13:11 +01:00
implementation 'com.melegy.redscreenofdeath:red-screen-of-death:0.1.2'
2020-04-22 18:09:10 +02:00
2021-03-06 04:33:35 +01:00
implementation 'net.lingala.zip4j:zip4j:2.7.0'
implementation 'org.apache.commons:commons-io:1.3.2'
2021-04-02 09:21:15 +02:00
implementation "androidx.startup:startup-runtime:1.0.0"
implementation 'com.github.FunkyMuse:Crashy:1.1.0'
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
2020-05-05 21:04:19 +02:00
2020-12-23 23:35:41 +01:00
/**** Builds and flavors ****/
// debugImplementation because LeakCanary should only run in debug builds.
//debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.5'
2018-07-26 17:04:44 +02:00
}