Infinity-For-Lemmy/app/build.gradle

190 lines
7.1 KiB
Groovy
Raw Normal View History

plugins {
id 'com.android.application'
}
2018-07-26 17:04:44 +02:00
android {
2022-09-10 10:21:58 +02:00
compileSdk 32
2018-07-26 17:04:44 +02:00
defaultConfig {
applicationId "ml.docilealligator.infinityforreddit"
minSdk 21
2022-09-10 10:21:58 +02:00
targetSdk 32
2022-09-06 17:01:45 +02:00
versionCode 103
versionName "5.3.1"
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 {
2021-09-25 03:28:42 +02:00
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
lint {
disable 'MissingTranslation'
}
bundle {
language {
enableSplit = false
}
}
2018-07-26 17:04:44 +02:00
}
dependencies {
2020-12-23 23:35:41 +01:00
/** AndroidX **/
2022-09-09 17:25:07 +02:00
implementation 'androidx.appcompat:appcompat:1.5.0'
2021-12-16 12:50:12 +01:00
implementation 'androidx.biometric:biometric:1.2.0-alpha04'
implementation 'androidx.browser:browser:1.4.0'
2019-02-21 10:24:23 +01:00
implementation 'androidx.cardview:cardview:1.0.0'
2022-07-13 16:05:19 +02:00
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
2021-10-13 15:00:24 +02:00
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
2022-09-09 17:25:07 +02:00
def lifecycleVersion = "2.5.1"
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion"
2020-12-23 23:35:41 +01:00
implementation "androidx.lifecycle:lifecycle-livedata:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-process:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-runtime:$lifecycleVersion"
2021-09-25 03:07:26 +02:00
implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycleVersion"
2022-09-10 10:21:58 +02:00
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion"
2022-09-09 17:25:07 +02:00
def pagingVersion = '3.1.1'
2021-09-25 03:07:26 +02:00
implementation "androidx.paging:paging-runtime:$pagingVersion"
implementation "androidx.paging:paging-guava:$pagingVersion"
2022-07-13 16:05:19 +02:00
implementation 'androidx.preference:preference:1.2.0'
2021-09-25 03:10:15 +02:00
implementation 'androidx.recyclerview:recyclerview:1.2.1'
2022-09-09 17:25:07 +02:00
def roomVersion = "2.4.3"
2020-04-22 18:09:10 +02:00
implementation "androidx.room:room-runtime:$roomVersion"
annotationProcessor "androidx.room:room-compiler:$roomVersion"
2022-07-13 16:05:19 +02:00
implementation "androidx.room:room-guava:$roomVersion"
2021-09-25 03:10:15 +02:00
implementation 'androidx.viewpager2:viewpager2:1.1.0-beta01'
implementation 'androidx.work:work-runtime:2.7.1'
2022-09-09 17:25:07 +02:00
implementation 'com.google.android.material:material:1.8.0-alpha01'
2020-04-22 18:09:10 +02:00
2020-12-23 23:35:41 +01:00
/** ExoPlayer **/
2022-09-08 16:41:35 +02:00
def exoplayerVersion = "2.18.1"
2020-12-23 23:35:41 +01:00
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"
2022-09-06 17:01:45 +02:00
implementation "com.google.android.exoplayer:exoplayer-smoothstreaming:$exoplayerVersion"
2020-12-23 23:35:41 +01:00
/** Third-party **/
/**** Backend logic ****/
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"
2021-09-04 17:41:44 +02:00
implementation "com.squareup.retrofit2:adapter-guava:$retrofitVersion"
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
2020-12-23 23:35:41 +01:00
// Dependency injection
2021-12-16 12:50:12 +01:00
def daggerVersion = '2.40.5'
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.3.1"
2020-12-23 23:35:41 +01:00
implementation "org.greenrobot:eventbus:$eventbusVersion"
annotationProcessor "org.greenrobot:eventbus-annotation-processor:$eventbusVersion"
// TransactionTooLargeException avoidance
2021-09-25 03:10:15 +02:00
implementation 'com.github.livefront:bridge:v2.0.2'
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?
2021-12-16 12:50:12 +01:00
implementation 'com.google.code.gson:gson:2.8.9'
2020-12-23 23:35:41 +01:00
2021-09-25 03:07:26 +02:00
// Java library for zip files and streams
2021-09-25 03:10:15 +02:00
implementation 'net.lingala.zip4j:zip4j:2.9.0'
2021-09-25 03:07:26 +02:00
// IO functionality
2021-09-25 03:10:15 +02:00
implementation 'commons-io:commons-io:2.5'
2021-09-25 03:07:26 +02:00
// Crash reporting
2021-09-25 03:10:15 +02:00
implementation 'com.github.FunkyMuse:Crashy:1.2.0'
2021-09-25 03:07:26 +02:00
2020-12-23 23:35:41 +01:00
/**** 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'
2021-09-25 03:10:15 +02:00
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.23'
def bivVersion = "1.8.1"
implementation "com.github.piasy:BigImageViewer:$bivVersion"
implementation "com.github.piasy:GlideImageLoader:$bivVersion"
implementation "com.github.piasy:GlideImageViewFactory:$bivVersion"
2020-12-23 23:35:41 +01:00
// 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"
implementation "io.noties.markwon:html:$markwonVersion"
implementation "io.noties.markwon:inline-parser:$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
2021-12-16 12:50:12 +01:00
implementation 'com.airbnb.android:lottie:4.2.2'
2020-12-23 23:35:41 +01:00
// Loading ProgressBar
implementation 'com.lsjwzh:materialloadingprogressbar:0.5.8-RELEASE'
// 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'
2021-09-25 03:10:15 +02:00
implementation 'app.futured.hauler:hauler:5.0.0'
2020-12-23 23:35:41 +01:00
// 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
implementation 'me.zhanghai.android.fastscroll:library:1.1.8'
2020-12-23 23:35:41 +01:00
2021-12-16 12:50:12 +01:00
implementation 'com.otaliastudios:zoomlayout:1.9.0'
2021-10-14 13:46:28 +02:00
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.
2021-09-25 03:07:26 +02:00
//debugImplementation 'com.squareup.leakcanary:leakcanary-android:x.y'
2018-07-26 17:04:44 +02:00
}