From 21d0a38446defb23af33c11bacf55db2613ab3f2 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 5 Oct 2016 18:31:46 +0200 Subject: [PATCH] add kotlin --- app/build.gradle | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 223a5ff5d..57bad5047 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,5 +1,7 @@ apply plugin: 'com.android.application' apply plugin: 'android-apt' +apply plugin: 'kotlin-android' +apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 23 @@ -24,6 +26,10 @@ android { signingConfig signingConfigs.release } } + + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + } } dependencies { @@ -38,6 +44,22 @@ dependencies { apt 'com.jakewharton:butterknife-compiler:8.0.1' } +repositories { + mavenCentral() +} + +buildscript { + ext.kotlin_version = '1.0.3' + repositories { + mavenCentral() + } + + dependencies { + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version" + } +} + def Properties props = new Properties() def propFile = new File('signing.properties') if (propFile.canRead()) {