2017-05-27 21:05:27 +00:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
|
|
|
buildscript {
|
2018-09-09 17:44:01 +00:00
|
|
|
ext {
|
2018-09-25 18:47:38 +00:00
|
|
|
kotlin_version = '1.2.51'
|
|
|
|
android_version = '28.0.0'
|
2018-09-09 17:44:01 +00:00
|
|
|
}
|
2017-05-27 21:05:27 +00:00
|
|
|
repositories {
|
|
|
|
jcenter()
|
2017-09-02 10:51:11 +00:00
|
|
|
google()
|
2017-10-21 18:10:19 +00:00
|
|
|
maven {
|
|
|
|
url "https://jitpack.io"
|
|
|
|
}
|
2017-05-27 21:05:27 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2018-10-12 18:36:18 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:3.2.1'
|
2017-05-27 21:05:27 +00:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
2017-05-28 00:29:42 +00:00
|
|
|
// For likebutton only
|
|
|
|
maven { url "https://jitpack.io" }
|
|
|
|
|
2017-05-27 21:05:27 +00:00
|
|
|
maven { url 'https://maven.google.com' }
|
|
|
|
jcenter()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task clean(type: Delete) {
|
|
|
|
delete rootProject.buildDir
|
|
|
|
}
|
2017-06-11 10:04:39 +00:00
|
|
|
|
|
|
|
project.ext.preDexLibs = !project.hasProperty('disablePreDex')
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
project.plugins.whenPluginAdded { plugin ->
|
2018-04-07 15:19:41 +00:00
|
|
|
if ("com.android.build.gradle.AppPlugin" == plugin.class.name) {
|
2017-06-11 10:04:39 +00:00
|
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
2018-04-07 15:19:41 +00:00
|
|
|
} else if ("com.android.build.gradle.LibraryPlugin" == plugin.class.name) {
|
2017-06-11 10:04:39 +00:00
|
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|