72 lines
2.4 KiB
Groovy
72 lines
2.4 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
apply from: 'dependencies.gradle'
|
|
|
|
buildscript {
|
|
ext.kotlin_version = '1.1.4-3'
|
|
repositories {
|
|
maven { url "https://maven.google.com" }
|
|
maven { url "https://dl.bintray.com/thelasterstar/maven/" } //weiboSDK
|
|
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
jcenter()
|
|
}
|
|
dependencies {
|
|
classpath "com.android.tools.build:gradle:2.3.3"
|
|
|
|
// for tinker
|
|
// classpath 'com.tencent.tinker:tinker-patch-gradle-plugin:1.8.1'
|
|
|
|
// bugly for tinker
|
|
classpath "com.tencent.bugly:tinker-support:1.0.8"
|
|
|
|
// for apkChannelPackage https://github.com/ltlovezh/ApkChannelPackage
|
|
classpath "com.leon.channel:plugin:1.0.5"
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
maven { url "https://maven.google.com" }
|
|
maven { url "https://dl.bintray.com/thelasterstar/maven/" }//weiboSDK
|
|
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
jcenter()
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
subproject ->
|
|
afterEvaluate {
|
|
if ((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {
|
|
if (!android.compileSdkVersion) {
|
|
android {
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
}
|
|
}
|
|
android {
|
|
buildToolsVersion rootProject.ext.buildToolsVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
|
|
// for those defined in AndroidManifest.xml
|
|
manifestPlaceholders = [
|
|
manifestApplicationId : "${applicationId}",
|
|
tencentAppId : "${TENCENT_APPID}",
|
|
]
|
|
}
|
|
lintOptions.abortOnError false
|
|
|
|
packagingOptions {
|
|
exclude 'META-INF/NOTICE'
|
|
exclude 'META-INF/LICENSE'
|
|
exclude 'META-INF/DEPENDENCIES'
|
|
exclude 'META-INF/services/javax.annotation.processing.Processor'
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
} |