all-open-dependecies -> kts

This commit is contained in:
Milos Kozak 2023-10-14 19:49:48 +02:00
parent 4aecd28aaf
commit 0084ca06a1
3 changed files with 16 additions and 4 deletions

View file

@ -17,6 +17,6 @@ repositories {
dependencies { dependencies {
implementation("com.android.tools.build:gradle:${KtsBuildVersions.gradle}") implementation("com.android.tools.build:gradle:${KtsBuildVersions.gradle}")
// implementation("com.android.tools.build:gradle-api:${KtsBuildVersions.gradle}") implementation(kotlin("gradle-plugin", version = KtsBuildVersions.kotlin))
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${KtsBuildVersions.kotlin}") implementation(kotlin("allopen", version = KtsBuildVersions.kotlin))
} }

View file

@ -0,0 +1,12 @@
plugins {
id("com.android.library")
id("kotlin-android")
id("kotlin-kapt")
id("kotlin-allopen")
}
allOpen {
// allows mocking for classes w/o directly opening them for release builds
annotation("app.aaps.annotations.OpenForTesting")
}

View file

@ -2,13 +2,13 @@ plugins {
id("com.android.library") id("com.android.library")
id("kotlin-android") id("kotlin-android")
id("kotlin-kapt") id("kotlin-kapt")
id("kotlin-allopen") //id("kotlin-allopen")
id("kotlin-parcelize") id("kotlin-parcelize")
id("kotlinx-serialization") id("kotlinx-serialization")
id("android-module-dependencies") id("android-module-dependencies")
id("all-open-dependencies")
} }
apply(from = "${project.rootDir}/core/main/allopen_dependencies.gradle")
apply(from = "${project.rootDir}/core/main/test_dependencies.gradle") apply(from = "${project.rootDir}/core/main/test_dependencies.gradle")
apply(from = "${project.rootDir}/core/main/jacoco_global.gradle") apply(from = "${project.rootDir}/core/main/jacoco_global.gradle")