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 {
|
2017-09-02 08:02:35 +00:00
|
|
|
ext.kotlin_version = '1.1.4-3'
|
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 {
|
2017-10-21 18:10:19 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:3.0.0-rc2'
|
2017-05-27 21:05:27 +00:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
|
|
|
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
|
|
// in the individual module build.gradle files
|
2017-07-02 06:19:07 +00:00
|
|
|
classpath 'com.google.gms:google-services:3.1.0'
|
2017-10-21 18:10:19 +00:00
|
|
|
|
|
|
|
// Not the official version https://stackoverflow.com/questions/46525040/sonarqube-android-not-working-for-gradle-3-0-0/46813528#46813528
|
|
|
|
classpath "com.github.Shusshu:sonar-scanner-gradle:feature~support-android-gradle-3-SNAPSHOT"
|
2017-05-27 21:05:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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 ->
|
|
|
|
if ("com.android.build.gradle.AppPlugin".equals(plugin.class.name)) {
|
|
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
|
|
|
} else if ("com.android.build.gradle.LibraryPlugin".equals(plugin.class.name)) {
|
|
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|