2020-06-10 19:16:11 +00:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
plugins {
|
2023-07-04 17:26:04 +00:00
|
|
|
id("org.jlleitschuh.gradle.ktlint") version "11.5.0"
|
2023-06-26 02:00:40 +00:00
|
|
|
id("com.github.ben-manes.versions") version "0.47.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 {
|
2023-05-26 12:35:47 +00:00
|
|
|
classpath("com.android.tools.build:gradle:8.0.2")
|
2023-07-01 01:14:24 +00:00
|
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22")
|
2023-01-20 19:11:47 +00:00
|
|
|
classpath("com.google.gms:google-services:4.3.15")
|
2023-03-03 19:30:19 +00:00
|
|
|
classpath("com.google.firebase:firebase-appdistribution-gradle:4.0.0")
|
2023-05-22 15:50:13 +00:00
|
|
|
classpath("de.mannodermaus.gradle.plugins:android-junit5:1.9.3.0")
|
2023-07-01 01:14:24 +00:00
|
|
|
classpath("com.github.triplet.gradle:play-publisher:3.8.4")
|
2023-07-19 19:35:11 +00:00
|
|
|
classpath("com.google.dagger:hilt-android-gradle-plugin:2.47")
|
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)
|
|
|
|
}
|
2023-06-26 13:05:17 +00:00
|
|
|
|
|
|
|
tasks.register("versionFile").configure {
|
|
|
|
group = "publishing"
|
|
|
|
doLast {
|
|
|
|
File(projectDir, "version.txt").writeText(project.version.toString())
|
|
|
|
}
|
|
|
|
}
|