all-open-dependecies -> kts
This commit is contained in:
parent
4aecd28aaf
commit
0084ca06a1
3 changed files with 16 additions and 4 deletions
|
@ -17,6 +17,6 @@ repositories {
|
|||
|
||||
dependencies {
|
||||
implementation("com.android.tools.build:gradle:${KtsBuildVersions.gradle}")
|
||||
// implementation("com.android.tools.build:gradle-api:${KtsBuildVersions.gradle}")
|
||||
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${KtsBuildVersions.kotlin}")
|
||||
implementation(kotlin("gradle-plugin", version = KtsBuildVersions.kotlin))
|
||||
implementation(kotlin("allopen", version = KtsBuildVersions.kotlin))
|
||||
}
|
12
buildSrc/src/main/kotlin/all-open-dependencies.gradle.kts
Normal file
12
buildSrc/src/main/kotlin/all-open-dependencies.gradle.kts
Normal 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")
|
||||
}
|
|
@ -2,13 +2,13 @@ plugins {
|
|||
id("com.android.library")
|
||||
id("kotlin-android")
|
||||
id("kotlin-kapt")
|
||||
id("kotlin-allopen")
|
||||
//id("kotlin-allopen")
|
||||
id("kotlin-parcelize")
|
||||
id("kotlinx-serialization")
|
||||
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/jacoco_global.gradle")
|
||||
|
||||
|
|
Loading…
Reference in a new issue