Permalink
Fetching contributors…
Cannot retrieve contributors at this time
69 lines (60 sloc) 1.75 KB
buildscript {
ext.kotlin_version = '1.2.60'
repositories {
jcenter()
google()
}
dependencies {
classpath "com.android.tools.build:gradle:3.2.0-alpha18"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.17"
}
}
apply plugin: 'android'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'org.jetbrains.dokka-android'
android {
compileSdkVersion 27
signingConfigs {
release {
storeFile file("release.keystore")
storePassword System.getenv("KEYPWD")
keyAlias "releaseKey"
keyPassword System.getenv("KEYPWD")
}
}
buildTypes {
release {
minifyEnabled false
proguardFile getDefaultProguardFile('proguard-android.txt')
signingConfig signingConfigs.release
}
}
}
repositories {
jcenter()
google()
}
configurations {
ktlint
}
dependencies {
ktlint "com.github.shyiko:ktlint:0.26.0"
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:preference-v14:27.1.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
task ktlint(type: JavaExec, group: "verification") {
description = "Check Kotlin code style."
classpath = configurations.ktlint
main = "com.github.shyiko.ktlint.Main"
args "src/**/*.kt"
}
task ktlintFormat(type: JavaExec, group: "formatting") {
description = "Fix Kotlin code style deviations."
classpath = configurations.ktlint
main = "com.github.shyiko.ktlint.Main"
args "-F", "src/**/*.kt"
}