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 {
|
2019-04-06 10:42:25 +00:00
|
|
|
kotlin_version = '1.3.21'
|
2018-10-12 18:51:36 +00:00
|
|
|
android_version = '1.0.0'
|
2019-04-06 10:42:25 +00:00
|
|
|
androidx_version = '1.0.2'
|
2018-10-12 20:04:47 +00:00
|
|
|
lifecycle_version = '2.0.0'
|
2019-04-06 10:42:25 +00:00
|
|
|
room_version = '2.1.0-alpha06'
|
|
|
|
work_version = "1.0.1-rc01"
|
2018-09-09 17:44:01 +00:00
|
|
|
}
|
2017-05-27 21:05:27 +00:00
|
|
|
repositories {
|
2017-09-02 10:51:11 +00:00
|
|
|
google()
|
2018-10-12 20:50:43 +00:00
|
|
|
jcenter()
|
2017-10-21 18:10:19 +00:00
|
|
|
maven {
|
|
|
|
url "https://jitpack.io"
|
|
|
|
}
|
2017-05-27 21:05:27 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2019-04-06 10:42:25 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:3.3.2'
|
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" }
|
|
|
|
|
2018-10-12 20:50:43 +00:00
|
|
|
google()
|
2017-05-27 21:05:27 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|