From 6372099cb2c3d9f6c4556c1bd5f0d8c82394f375 Mon Sep 17 00:00:00 2001 From: J-Jamet Date: Mon, 17 Dec 2018 16:04:35 +0100 Subject: [PATCH] Add Kotlin dependency --- app/build.gradle | 3 +++ build.gradle | 2 ++ 2 files changed, 5 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index c6f8d334e..25ef83ac2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,4 +1,6 @@ apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 27 @@ -81,6 +83,7 @@ def spongycastleVersion = "1.58.0.0" def permissionDispatcherVersion = "3.1.0" dependencies { + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation "com.android.support:appcompat-v7:$supportVersion" implementation "com.android.support:design:$supportVersion" implementation "com.android.support:preference-v7:$supportVersion" diff --git a/build.gradle b/build.gradle index 4b688ce6c..27693ce68 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,6 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { + ext.kotlin_version = '1.3.11' repositories { jcenter() maven { @@ -10,6 +11,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:3.2.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } }