Skip to content

Commit

Permalink
Added Kotlin to dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
timusus committed Mar 14, 2018
1 parent 804cafa commit 04ca724
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ buildscript {
}

apply plugin: Dependencies.BuildPlugins.androidApplication
apply plugin: Dependencies.BuildPlugins.kotlin
apply plugin: Dependencies.BuildPlugins.dexCount
apply plugin: Dependencies.BuildPlugins.fabric
apply plugin: Dependencies.BuildPlugins.playPublisher
Expand All @@ -26,6 +27,7 @@ repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url "https://jitpack.io" }
maven { url 'http://oss.sonatype.org/content/repositories/snapshots' }
mavenCentral()
}

@Nullable
Expand Down Expand Up @@ -206,6 +208,9 @@ dependencies {

implementation fileTree(include: '*.jar', dir: 'libs')

// Kotlin
implementation Dependencies.kotlin

// Google libs
implementation Dependencies.Google.cardView
implementation Dependencies.Google.design
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ buildscript {
classpath Dependencies.Plugins.playPublisher
classpath Dependencies.Plugins.gradleVersions
classpath Dependencies.Plugins.playServices
classpath Dependencies.Plugins.kotlin
}
}

Expand Down
7 changes: 7 additions & 0 deletions buildSrc/src/main/kotlin/dependencies/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ object Dependencies {
const val billing = "1.0"
}

// Kotlin

const val kotlin = "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${Plugins.Versions.kotlin}"

// NanoHttp - https://github.com/NanoHttpd/nanohttpd (Various)
const val nanoHttp = "org.nanohttpd:nanohttpd-webserver:${Versions.nanoHttp}"

Expand Down Expand Up @@ -73,6 +77,7 @@ object Dependencies {

object Versions {
const val androidGradlePlugin = "3.2.0-alpha04"
const val kotlin = "1.2.30"
const val dexcountGradlePlugin = "0.8.2"
const val fabricGradlePlugin = "1.+"
const val playPublisher = "1.2.0"
Expand All @@ -81,6 +86,7 @@ object Dependencies {
}

const val android = "com.android.tools.build:gradle:${Versions.androidGradlePlugin}"
const val kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}"
const val dexcount = "com.getkeepsafe.dexcount:dexcount-gradle-plugin:${Versions.dexcountGradlePlugin}"
const val fabric = "io.fabric.tools:gradle:${Versions.fabricGradlePlugin}"
const val playPublisher = "com.github.triplet.gradle:play-publisher:${Versions.playPublisher}"
Expand Down Expand Up @@ -240,6 +246,7 @@ object Dependencies {

const val androidApplication = "com.android.application"
const val androidLibrary = "com.android.library"
const val kotlin = "kotlin-android"
const val dexCount = "com.getkeepsafe.dexcount"
const val fabric = "io.fabric"
const val playPublisher = "com.github.triplet.play"
Expand Down

0 comments on commit 04ca724

Please sign in to comment.