Skip to content

Instantly share code, notes, and snippets.

@nksaroj
Last active September 6, 2018 13:16
Show Gist options
  • Save nksaroj/dd9209ab4647d7c388f862abefa21634 to your computer and use it in GitHub Desktop.
Save nksaroj/dd9209ab4647d7c388f862abefa21634 to your computer and use it in GitHub Desktop.
Kotlin DSL
plugins {
id("com.android.application")
kotlin("android")
kotlin("android.extensions")
}
android {
compileSdkVersion(28)
defaultConfig {
applicationId = "sk.android.com.kotlindsl"
minSdkVersion(15)
targetSdkVersion(28)
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
getByName("release") {
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
}
}
}
dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.61")
implementation("androidx.appcompat:appcompat:1.0.0-rc02")
implementation("androidx.constraintlayout:constraintlayout:2.0.0-alpha2")
testImplementation("junit:junit:4.12")
androidTestImplementation("androidx.test:runner:1.1.0-alpha4")
androidTestImplementation("androidx.test.espresso:espresso-core:3.1.0-alpha4")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment