amethyst/build.gradle

56 lines
2.1 KiB
Groovy
Raw Normal View History

2023-07-30 22:10:23 +00:00
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2023-01-11 18:31:20 +00:00
buildscript {
ext {
2023-07-30 22:10:23 +00:00
fragment_version = "1.6.1"
2023-03-30 20:53:13 +00:00
lifecycle_version = '2.6.1'
2023-05-09 17:20:59 +00:00
compose_ui_version = '1.4.3'
2023-06-13 14:52:29 +00:00
nav_version = "2.6.0"
2023-01-11 18:31:20 +00:00
room_version = "2.4.3"
accompanist_version = '0.30.1'
2023-05-23 00:04:33 +00:00
coil_version = '2.4.0'
2023-07-30 22:10:23 +00:00
vico_version = '1.7.3'
exoplayer_version = '1.1.0'
media3_version = '1.1.0'
2023-01-11 18:31:20 +00:00
}
dependencies {
classpath 'com.google.gms:google-services:4.3.15'
}
2023-01-11 18:31:20 +00:00
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
2023-07-30 22:10:23 +00:00
id 'com.android.application' version '8.1.0' apply false
id 'com.android.library' version '8.1.0' apply false
id 'org.jetbrains.kotlin.android' version '1.9.0' apply false
id 'org.jetbrains.kotlin.jvm' version '1.9.0' apply false
id 'androidx.benchmark' version '1.1.1' apply false
id 'org.jetbrains.kotlin.plugin.serialization' version '1.9.0' apply false
2023-03-07 18:09:26 +00:00
}
2023-07-30 22:10:23 +00:00
tasks.register('installGitHook', Copy) {
2023-03-08 19:17:04 +00:00
from new File(rootProject.rootDir, 'git-hooks/pre-commit')
from new File(rootProject.rootDir, 'git-hooks/pre-push')
2023-03-07 18:09:26 +00:00
into { new File(rootProject.rootDir, '.git/hooks') }
fileMode 0777
}
2023-06-06 19:49:52 +00:00
tasks.getByPath(':app:preBuild').dependsOn installGitHook
subprojects {
2023-07-30 22:10:23 +00:00
tasks.withType(KotlinCompile).configureEach {
2023-06-06 19:49:52 +00:00
kotlinOptions {
if (project.findProperty("composeCompilerReports") == "true") {
freeCompilerArgs += [
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" +
project.buildDir.absolutePath + "/compose_compiler"
]
}
if (project.findProperty("composeCompilerMetrics") == "true") {
freeCompilerArgs += [
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" +
project.buildDir.absolutePath + "/compose_compiler"
]
}
}
}
}