[android] - added Kotlin dependencies to the test app
This commit is contained in:
committed by
Łukasz Paczos
parent
ec472cb45a
commit
3bd24e655f
@@ -53,6 +53,7 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation dependenciesList.kotlinLib
|
||||
api(project(':MapboxGLAndroidSDK'))
|
||||
implementation dependenciesList.mapboxJavaServices
|
||||
|
||||
@@ -82,3 +83,6 @@ apply from: "${rootDir}/gradle/gradle-checkstyle.gradle"
|
||||
apply from: "${rootDir}/gradle/gradle-lint.gradle"
|
||||
|
||||
|
||||
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
buildscript {
|
||||
apply from: "${rootDir}/gradle/dependencies.gradle"
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
@@ -6,7 +7,8 @@ buildscript {
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.1.2'
|
||||
classpath "com.jaredsburrows:gradle-license-plugin:0.8.41"
|
||||
classpath dependenciesList.licensesPlugin
|
||||
classpath dependenciesList.kotlinPlugin
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,8 +26,6 @@ subprojects {
|
||||
apply from: "${rootDir}/gradle/dependencies.gradle"
|
||||
}
|
||||
|
||||
apply from: "${rootDir}/gradle/dependencies.gradle"
|
||||
|
||||
// Load build system information. If this file does not exist, run
|
||||
// `make platform/android/gradle/configuration.gradle`
|
||||
apply from: "${rootDir}/gradle/configuration.gradle"
|
||||
|
||||
@@ -19,7 +19,9 @@ ext {
|
||||
mockito : '2.18.3',
|
||||
robolectric : '3.8',
|
||||
timber : '4.7.0',
|
||||
okhttp : '3.10.0'
|
||||
okhttp : '3.10.0',
|
||||
kotlin : '1.2.50',
|
||||
licenses : '0.8.41'
|
||||
]
|
||||
|
||||
dependenciesList = [
|
||||
@@ -51,6 +53,10 @@ ext {
|
||||
timber : "com.jakewharton.timber:timber:${versions.timber}",
|
||||
okhttp3 : "com.squareup.okhttp3:okhttp:${versions.okhttp}",
|
||||
leakCanaryDebug : "com.squareup.leakcanary:leakcanary-android:${versions.leakCanary}",
|
||||
leakCanaryRelease : "com.squareup.leakcanary:leakcanary-android-no-op:${versions.leakCanary}"
|
||||
leakCanaryRelease : "com.squareup.leakcanary:leakcanary-android-no-op:${versions.leakCanary}",
|
||||
|
||||
kotlinLib : "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}",
|
||||
kotlinPlugin : "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}",
|
||||
licensesPlugin : "com.jaredsburrows:gradle-license-plugin:${versions.licenses}"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user