| group = "{{androidIdentifier}}" |
| version = "1.0-SNAPSHOT" |
| |
| buildscript { |
| val kotlinVersion = "{{kotlinVersion}}" |
| repositories { |
| google() |
| mavenCentral() |
| } |
| |
| dependencies { |
| classpath("com.android.tools.build:gradle:{{agpVersion}}") |
| classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") |
| } |
| } |
| |
| allprojects { |
| repositories { |
| google() |
| mavenCentral() |
| } |
| } |
| |
| plugins { |
| id("com.android.library") |
| } |
| |
| android { |
| namespace = "{{androidIdentifier}}" |
| |
| compileSdk = {{compileSdkVersion}} |
| |
| compileOptions { |
| sourceCompatibility = JavaVersion.VERSION_17 |
| targetCompatibility = JavaVersion.VERSION_17 |
| } |
| |
| sourceSets { |
| getByName("main") { |
| java.srcDirs("src/main/kotlin") |
| } |
| getByName("test") { |
| java.srcDirs("src/test/kotlin") |
| } |
| } |
| |
| defaultConfig { |
| minSdk = {{minSdkVersion}} |
| } |
| |
| testOptions { |
| unitTests { |
| isIncludeAndroidResources = true |
| all { |
| it.useJUnitPlatform() |
| |
| it.outputs.upToDateWhen { false } |
| |
| it.testLogging { |
| events("passed", "skipped", "failed", "standardOut", "standardError") |
| showStandardStreams = true |
| } |
| } |
| } |
| } |
| } |
| |
| kotlin { |
| compilerOptions { |
| jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17 |
| } |
| } |
| |
| dependencies { |
| testImplementation("org.jetbrains.kotlin:kotlin-test") |
| testImplementation("org.mockito:mockito-core:5.0.0") |
| } |