2023-01-19 22:15:01 +01:00
|
|
|
@Suppress("DSL_SCOPE_VIOLATION")
|
|
|
|
plugins {
|
|
|
|
`kotlin-dsl`
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
gradlePluginPortal()
|
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
2023-02-11 18:13:04 +01:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2023-01-19 22:15:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-01-24 17:45:28 +01:00
|
|
|
compileOnly("com.android.tools.build:gradle:${libs.versions.agp.get()}")
|
|
|
|
compileOnly("org.jetbrains.kotlin:kotlin-gradle-plugin:${libs.versions.kotlin.get()}")
|
2023-01-19 22:15:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
gradlePlugin {
|
|
|
|
@Suppress("DSL_SCOPE_VIOLATION")
|
|
|
|
plugins {
|
|
|
|
register("TwoFasComposePlugin") {
|
|
|
|
id = "twofas.compose"
|
|
|
|
implementationClass = "com.twofasapp.buildlogic.TwoFasComposePlugin"
|
|
|
|
}
|
|
|
|
|
|
|
|
register("TwoFasAndroidLibraryPlugin") {
|
|
|
|
id = "twofas.androidLibrary"
|
|
|
|
implementationClass = "com.twofasapp.buildlogic.TwoFasAndroidLibraryPlugin"
|
|
|
|
}
|
|
|
|
|
|
|
|
register("TwoFasAndroidApplicationPlugin") {
|
|
|
|
id = "twofas.androidApplication"
|
|
|
|
implementationClass = "com.twofasapp.buildlogic.TwoFasAndroidApplicationPlugin"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|