Skip to content

Commit ef89220

Browse files
committed
Convert to Kotlin DSL
1 parent 6b4078f commit ef89220

File tree

2 files changed

+47
-46
lines changed

2 files changed

+47
-46
lines changed

android/build.gradle

Lines changed: 0 additions & 46 deletions
This file was deleted.

android/build.gradle.kts

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import org.jetbrains.kotlin.config.KotlinCompilerVersion
2+
3+
plugins {
4+
id("com.android.application")
5+
id("kotlin-android")
6+
}
7+
8+
android {
9+
compileSdkVersion(30)
10+
11+
defaultConfig {
12+
applicationId = "playground.android"
13+
minSdkVersion(21)
14+
targetSdkVersion(30)
15+
versionCode = 1
16+
versionName = "1.0"
17+
18+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
19+
}
20+
21+
buildTypes {
22+
named("release"){
23+
isMinifyEnabled = false
24+
setProguardFiles(listOf(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"))
25+
}
26+
}
27+
compileOptions {
28+
sourceCompatibility = JavaVersion.VERSION_1_8
29+
targetCompatibility = JavaVersion.VERSION_1_8
30+
}
31+
kotlinOptions {
32+
jvmTarget = "1.8"
33+
}
34+
}
35+
36+
dependencies {
37+
38+
implementation(kotlin("stdlib", "_"))
39+
implementation("androidx.core:core-ktx:1.5.0")
40+
implementation("androidx.appcompat:appcompat:1.3.0")
41+
implementation("androidx.constraintlayout:constraintlayout:2.0.4")
42+
implementation("com.google.android.material:material:1.3.0")
43+
androidTestImplementation("androidx.test.ext:junit:1.1.2")
44+
androidTestImplementation("androidx.test.espresso:espresso-core:3.3.0")
45+
testImplementation("junit:junit:4.+")
46+
implementation("app.cash.contour:contour:1.1.0")
47+
}

0 commit comments

Comments
 (0)