2020-06-12 15:44:45 +02:00
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
id("kotlin-android")
|
|
|
|
id("kotlin-android-extensions")
|
|
|
|
id("kotlin-kapt")
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2020-09-04 19:51:09 +02:00
|
|
|
compileSdkVersion(30)
|
2020-06-12 15:44:45 +02:00
|
|
|
defaultConfig {
|
|
|
|
applicationId = "at.connyduck.pixelcat"
|
2020-06-12 19:36:32 +02:00
|
|
|
minSdkVersion(24)
|
2020-09-04 19:51:09 +02:00
|
|
|
targetSdkVersion(30)
|
2020-06-12 15:44:45 +02:00
|
|
|
versionCode = 1
|
2020-09-29 21:55:56 +02:00
|
|
|
versionName = "0.0 snapshot1"
|
2020-06-12 15:44:45 +02:00
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
getByName("release") {
|
|
|
|
isMinifyEnabled = true
|
2020-09-05 11:03:01 +02:00
|
|
|
isShrinkResources = true
|
|
|
|
proguardFiles("shrinker-rules.pro")
|
2020-06-12 15:44:45 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
|
|
|
androidExtensions {
|
|
|
|
features = setOf("parcelize")
|
|
|
|
}
|
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
viewBinding = true
|
|
|
|
}
|
|
|
|
|
2020-09-21 17:12:54 +02:00
|
|
|
packagingOptions {
|
|
|
|
exclude("LICENSE_OFL")
|
|
|
|
exclude("LICENSE_UNICODE")
|
|
|
|
exclude("okhttp3/internal/publicsuffix/NOTICE")
|
|
|
|
exclude("DebugProbesKt.bin")
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets["main"].java.srcDir("src/main/kotlin")
|
2020-09-21 19:07:39 +02:00
|
|
|
sourceSets["test"].java.srcDir("src/test/kotlin")
|
2020-09-21 17:12:54 +02:00
|
|
|
}
|
2020-06-12 15:44:45 +02:00
|
|
|
|
|
|
|
tasks {
|
|
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
2020-09-04 19:06:47 +02:00
|
|
|
val lifecycleVersion = "2.3.0-alpha07"
|
|
|
|
val roomVersion = "2.3.0-alpha02"
|
|
|
|
val okHttpVersion = "4.8.1"
|
2020-06-12 15:44:45 +02:00
|
|
|
val retrofitVersion = "2.9.0"
|
2020-09-04 19:06:47 +02:00
|
|
|
val moshiVersion = "1.10.0"
|
|
|
|
val daggerVersion = "2.28.3"
|
2020-09-21 19:07:39 +02:00
|
|
|
val jUnitVersion = "5.7.0"
|
2020-06-12 15:44:45 +02:00
|
|
|
|
2020-09-29 20:41:39 +02:00
|
|
|
implementation(kotlin("stdlib-jdk7"))
|
2020-06-12 15:44:45 +02:00
|
|
|
|
2020-09-21 17:12:54 +02:00
|
|
|
implementation("androidx.core:core-ktx:1.5.0-alpha03")
|
2020-09-04 19:06:47 +02:00
|
|
|
implementation("androidx.appcompat:appcompat:1.3.0-alpha02")
|
|
|
|
implementation("androidx.activity:activity-ktx:1.2.0-alpha08")
|
|
|
|
implementation("androidx.fragment:fragment-ktx:1.3.0-alpha08")
|
2020-08-15 10:52:31 +02:00
|
|
|
implementation("com.google.android.material:material:1.3.0-alpha02")
|
2020-09-04 19:06:47 +02:00
|
|
|
implementation("androidx.constraintlayout:constraintlayout:2.0.1")
|
2020-06-27 21:04:37 +02:00
|
|
|
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
|
2020-08-15 10:52:31 +02:00
|
|
|
implementation("androidx.recyclerview:recyclerview:1.2.0-alpha05")
|
2020-06-12 15:44:45 +02:00
|
|
|
implementation("androidx.annotation:annotation:1.1.0")
|
|
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion")
|
|
|
|
implementation("androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion")
|
|
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion")
|
|
|
|
implementation("androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion")
|
|
|
|
implementation("androidx.preference:preference:1.1.1")
|
2020-09-21 17:12:54 +02:00
|
|
|
implementation("androidx.emoji:emoji-bundled:1.2.0-alpha01")
|
2020-09-14 17:58:02 +02:00
|
|
|
implementation("androidx.paging:paging-runtime-ktx:3.0.0-alpha06")
|
2020-06-12 15:44:45 +02:00
|
|
|
implementation("androidx.viewpager2:viewpager2:1.0.0")
|
|
|
|
|
|
|
|
implementation("androidx.room:room-ktx:$roomVersion")
|
|
|
|
kapt("androidx.room:room-compiler:$roomVersion")
|
|
|
|
|
|
|
|
implementation("com.squareup.okhttp3:okhttp:$okHttpVersion")
|
|
|
|
implementation("com.squareup.okhttp3:logging-interceptor:$okHttpVersion")
|
|
|
|
|
|
|
|
implementation("com.squareup.retrofit2:retrofit:$retrofitVersion")
|
|
|
|
implementation("com.squareup.retrofit2:converter-moshi:$retrofitVersion")
|
2020-06-17 20:29:40 +02:00
|
|
|
|
2020-06-12 15:44:45 +02:00
|
|
|
implementation("com.squareup.moshi:moshi-kotlin:$moshiVersion")
|
|
|
|
implementation("com.squareup.moshi:moshi-adapters:$moshiVersion")
|
|
|
|
kapt("com.squareup.moshi:moshi-kotlin-codegen:$moshiVersion")
|
|
|
|
|
2020-08-16 12:45:47 +02:00
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9")
|
2020-06-12 15:44:45 +02:00
|
|
|
|
|
|
|
implementation("com.fxn769:pix:1.4.4")
|
2020-06-17 20:29:40 +02:00
|
|
|
|
2020-06-12 19:58:15 +02:00
|
|
|
implementation("com.github.yalantis:ucrop:2.2.5")
|
2020-06-12 15:44:45 +02:00
|
|
|
|
|
|
|
implementation("me.relex:circleindicator:2.1.4")
|
|
|
|
|
2020-09-29 20:41:39 +02:00
|
|
|
implementation("io.coil-kt:coil:1.0.0-rc3")
|
2020-06-12 15:44:45 +02:00
|
|
|
|
|
|
|
implementation("com.github.connyduck:sparkbutton:4.0.0")
|
|
|
|
|
|
|
|
implementation("com.google.dagger:dagger:$daggerVersion")
|
|
|
|
kapt("com.google.dagger:dagger-compiler:$daggerVersion")
|
|
|
|
implementation("com.google.dagger:dagger-android-support:$daggerVersion")
|
|
|
|
kapt("com.google.dagger:dagger-android-processor:$daggerVersion")
|
|
|
|
|
2020-09-21 19:07:39 +02:00
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:$jUnitVersion")
|
|
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$jUnitVersion")
|
|
|
|
|
|
|
|
testImplementation("com.squareup.okhttp3:mockwebserver:$okHttpVersion")
|
2020-06-12 15:44:45 +02:00
|
|
|
}
|