feat: add kotlin support (#896)

Co-authored-by: Joshua Chandler <joshchandler88@gmail.com>
This commit is contained in:
エリス
2020-01-27 16:14:58 +09:00
committed by GitHub
parent d01ed80a61
commit dee1e77d0b
6 changed files with 56 additions and 3 deletions

View File

@@ -17,6 +17,8 @@
*/
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 29
@@ -51,4 +53,9 @@ dependencies {
implementation 'com.android.support:appcompat-v7:26.1.0'
testImplementation 'junit:junit:4.12'
testImplementation 'org.json:json:20140107'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
repositories {
jcenter()
}

View File

@@ -19,6 +19,8 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()
@@ -29,6 +31,7 @@ buildscript {
// in the individual module build.gradle files
classpath 'com.android.tools.build:gradle:3.5.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}