Updated on 2026-08-14

This commit is contained in:
Tangem 2023-06-06 14:26:31 +03:00
parent 8262c72f40
commit 99b4c180cc
4 changed files with 36 additions and 11 deletions

View file

@ -73,4 +73,29 @@ val assembleQA by tasks.registering {
dependsOn(assembleInternalQA)
dependsOn(assembleExternalQA)
}
val generateComposeMetrics by tasks.registering {
group = "other"
description = "Build external APK and generates compose metrics to 'build/compose-metrics' directory"
subprojects {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
compilerOptions {
val outputDirectory = "${project.buildDir.absolutePath}/compose_metrics"
// Metrics
freeCompilerArgs.addAll(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=$outputDirectory",
)
// Reports
freeCompilerArgs.addAll(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=$outputDirectory",
)
}
}
}
finalizedBy(assembleExternalQA)
}

View file

@ -6,7 +6,7 @@
androidGradlePlugin = "7.4.2"
firebaseCrashlytics = "2.9.4"
googleServices = "4.3.10"
kotlin = "1.8.10"
kotlin = "1.8.21"
# endregion Classpath
# region AndroidX
@ -21,14 +21,14 @@ androidx-paging = "3.1.1"
# endregion AndroidX
# region Compose
compose-compiler = "1.4.3"
compose-runtime = "1.3.3"
compose-foundation = "1.3.1"
compose-material = "1.4.2"
compose-compiler = "1.4.7"
compose-runtime = "1.4.3"
compose-foundation = "1.4.3"
compose-material = "1.4.3"
compose-material3 = "1.1.0"
compose-constraint = "1.0.1"
compose-navigation = "2.5.3"
compose-accompanist = "0.28.0"
compose-accompanist = "0.30.1"
compose-paging = "1.0.0-alpha18"
# endregion Compose

View file

@ -1,6 +1,6 @@
#Tue Mar 07 14:45:01 MSK 2023
distributionBase = GRADLE_USER_HOME
distributionUrl = https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
distributionUrl = https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionPath = wrapper/dists
zipStorePath = wrapper/dists
zipStoreBase = GRADLE_USER_HOME

View file

@ -12,12 +12,12 @@ import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
class ConfigurationPlugin : Plugin<Project> {
override fun apply(target: Project) {
target.plugins.all(startConfigurationAction(project = target))
override fun apply(project: Project) {
project.configure()
project.plugins.all(startPluginConfigurationAction(project))
}
private fun startConfigurationAction(project: Project) = Action<Plugin<*>> {
project.configure()
private fun startPluginConfigurationAction(project: Project) = Action<Plugin<*>> {
when (this) {
is AppPlugin -> {
project.configure<AppExtension> { configure(project) }