2023-07-30 18:10:23 -04:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
2023-01-11 13:31:20 -05:00
|
|
|
buildscript {
|
|
|
|
ext {
|
2023-11-09 12:02:28 -05:00
|
|
|
fragment_version = "1.6.2"
|
2023-09-12 17:53:18 -04:00
|
|
|
lifecycle_version = '2.6.2'
|
2023-10-22 17:29:05 -04:00
|
|
|
compose_ui_version = '1.5.4'
|
2023-12-19 15:54:18 -05:00
|
|
|
nav_version = '2.7.6'
|
2023-01-11 13:31:20 -05:00
|
|
|
room_version = "2.4.3"
|
2023-12-02 14:14:15 -05:00
|
|
|
accompanist_version = '0.32.0'
|
2023-11-24 10:32:15 -05:00
|
|
|
coil_version = '2.5.0'
|
2023-12-02 14:14:15 -05:00
|
|
|
vico_version = '1.13.1'
|
2023-11-21 13:29:48 -05:00
|
|
|
media3_version = '1.2.0'
|
2023-09-12 17:53:18 -04:00
|
|
|
core_ktx_version = '1.12.0'
|
2023-09-29 13:57:10 -04:00
|
|
|
material3_version = '1.1.2'
|
2023-01-11 13:31:20 -05:00
|
|
|
}
|
2023-05-10 11:16:47 -04:00
|
|
|
dependencies {
|
2023-09-18 17:15:17 -04:00
|
|
|
classpath 'com.google.gms:google-services:4.4.0'
|
2023-05-10 11:16:47 -04:00
|
|
|
}
|
2023-08-22 11:16:31 -04:00
|
|
|
}
|
|
|
|
|
2023-01-11 13:31:20 -05:00
|
|
|
plugins {
|
2024-01-05 15:23:17 -05:00
|
|
|
id 'com.android.application' version '8.2.1' apply false
|
|
|
|
id 'com.android.library' version '8.2.1' apply false
|
2023-11-03 17:11:16 -04:00
|
|
|
id 'org.jetbrains.kotlin.android' version '1.9.10' apply false
|
|
|
|
id 'org.jetbrains.kotlin.jvm' version '1.9.10' apply false
|
|
|
|
id 'org.jetbrains.kotlin.plugin.serialization' version '1.9.10' apply false
|
2023-08-16 17:58:25 -04:00
|
|
|
id 'androidx.benchmark' version '1.1.1' apply false
|
2023-03-07 19:09:26 +01:00
|
|
|
}
|
|
|
|
|
2023-07-30 18:10:23 -04: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 19:09:26 +01:00
|
|
|
into { new File(rootProject.rootDir, '.git/hooks') }
|
|
|
|
fileMode 0777
|
|
|
|
}
|
2023-06-06 15:49:52 -04:00
|
|
|
tasks.getByPath(':app:preBuild').dependsOn installGitHook
|
|
|
|
|
|
|
|
subprojects {
|
2023-07-30 18:10:23 -04:00
|
|
|
tasks.withType(KotlinCompile).configureEach {
|
2023-06-06 15:49:52 -04: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"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|