Commit 1059b9c5 authored by Geoffrey Métais's avatar Geoffrey Métais

Enable Kotlin support

parent c74773ea
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.android_plugin_version = '3.0.1'
ext.kotlin_version = '1.2.0'
ext.kotlinx_version = '0.20'
repositories {
flatDir dirs: "gradle/plugins"
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath "com.android.tools.build:gradle:$android_plugin_version"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
......
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
android {
packagingOptions {
......@@ -199,6 +201,7 @@ dependencies {
implementation project(':medialibrary')
implementation project(':api')
implementation project(':axmlrpc')
// AppCompat
implementation "com.android.support:recyclerview-v7:$rootProject.ext.appCompatVersion"
implementation "com.android.support:design:$rootProject.ext.appCompatVersion"
implementation "com.android.support:support-annotations:$rootProject.ext.appCompatVersion"
......@@ -207,6 +210,17 @@ dependencies {
implementation "com.android.support:preference-leanback-v17:$rootProject.ext.appCompatVersion"
implementation "com.android.support.constraint:constraint-layout:$rootProject.ext.constraintLayoutVersion"
testImplementation 'junit:junit:4.12'
// Kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
kapt "com.android.databinding:compiler:$rootProject.ext.android_plugin_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$rootProject.ext.kotlinx_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$rootProject.ext.kotlinx_version"
}
kotlin {
experimental {
coroutines "enable"
}
}
static def buildTime() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment