2020-06-10 19:16:11 +00:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
plugins {
|
2022-08-30 00:29:51 +00:00
|
|
|
id("org.jlleitschuh.gradle.ktlint") version "11.0.0"
|
2022-10-19 18:57:23 +00:00
|
|
|
id("com.github.ben-manes.versions") version "0.43.0"
|
2020-06-10 19:16:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
google()
|
2020-10-18 02:57:22 +00:00
|
|
|
gradlePluginPortal()
|
2020-06-10 19:16:11 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2022-10-19 18:57:13 +00:00
|
|
|
classpath("com.android.tools.build:gradle:7.3.1")
|
2022-03-15 14:15:14 +00:00
|
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10")
|
2022-09-24 20:06:29 +00:00
|
|
|
classpath("com.google.gms:google-services:4.3.14")
|
2022-08-04 22:43:47 +00:00
|
|
|
classpath("com.google.firebase:firebase-appdistribution-gradle:3.0.3")
|
2022-07-17 03:25:58 +00:00
|
|
|
classpath("de.mannodermaus.gradle.plugins:android-junit5:1.8.2.1")
|
2021-11-29 13:06:18 +00:00
|
|
|
classpath("com.github.triplet.gradle:play-publisher:3.7.0")
|
2022-10-01 21:12:32 +00:00
|
|
|
classpath("com.google.dagger:hilt-android-gradle-plugin:2.44")
|
2020-06-10 19:16:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
2020-06-11 17:15:50 +00:00
|
|
|
apply(plugin = "org.jlleitschuh.gradle.ktlint")
|
|
|
|
|
2020-06-10 19:16:11 +00:00
|
|
|
tasks.withType<KotlinCompile>().configureEach {
|
|
|
|
kotlinOptions {
|
2021-08-07 01:41:30 +00:00
|
|
|
jvmTarget = "11"
|
2020-06-10 19:16:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-14 03:46:49 +00:00
|
|
|
gradle.projectsEvaluated {
|
|
|
|
project(":app").tasks.matching { it.name.startsWith("publish") }.configureEach {
|
|
|
|
mustRunAfter(project(":wear").tasks.matching { it.name.startsWith("publish") })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-10 19:16:11 +00:00
|
|
|
tasks.register("clean").configure {
|
|
|
|
delete("build")
|
|
|
|
}
|
|
|
|
|
|
|
|
ktlint {
|
|
|
|
android.set(true)
|
|
|
|
}
|