mirror of
https://github.com/openMF/mobile-wallet.git
synced 2026-02-06 11:36:57 +00:00
56 lines
1.8 KiB
Plaintext
56 lines
1.8 KiB
Plaintext
import org.jetbrains.kotlin.commonizer.OptimisticNumberCommonizationEnabledKey.alias
|
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath(libs.google.oss.licenses.plugin) {
|
|
exclude(group = "com.google.protobuf")
|
|
}
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
alias(libs.plugins.android.application) apply false
|
|
alias(libs.plugins.android.library) apply false
|
|
alias(libs.plugins.android.test) apply false
|
|
alias(libs.plugins.kotlin.jvm) apply false
|
|
alias(libs.plugins.kotlin.serialization) apply false
|
|
alias(libs.plugins.kotlin.parcelize) apply false
|
|
alias(libs.plugins.dependencyGuard) apply false
|
|
alias(libs.plugins.firebase.crashlytics) apply false
|
|
alias(libs.plugins.firebase.perf) apply false
|
|
alias(libs.plugins.gms) apply false
|
|
alias(libs.plugins.hilt) apply false
|
|
alias(libs.plugins.ksp) apply false
|
|
alias(libs.plugins.roborazzi) apply false
|
|
alias(libs.plugins.secrets) apply false
|
|
alias(libs.plugins.room) apply false
|
|
alias(libs.plugins.kotlin.android) apply false
|
|
}
|
|
|
|
val runLintOnAllModules by tasks.registering {
|
|
group = "verification"
|
|
description = "Runs the Android lint task on all submodules."
|
|
doLast {
|
|
println("Lint checks completed for all modules.")
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
afterEvaluate {
|
|
if (plugins.hasPlugin("com.android.application") || plugins.hasPlugin("com.android.library")) {
|
|
val lintTaskName = "lintDebug${name.capitalize()}"
|
|
val subprojectPath = path
|
|
tasks.register(lintTaskName) {
|
|
group = "verification"
|
|
description = "Runs lintDebug on the $name module."
|
|
dependsOn("$subprojectPath:lintDebug")
|
|
}
|
|
}
|
|
}
|
|
}
|