mirror of
https://github.com/xcc3641/SeeWeather.git
synced 2026-10-17 05:21:18 +08:00
92 lines
2.9 KiB
Groovy
92 lines
2.9 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'me.tatarka.retrolambda'
|
|
|
|
android {
|
|
def app = rootProject.ext.android
|
|
|
|
compileSdkVersion app.compileSdkVersion
|
|
buildToolsVersion app.buildToolsVersion
|
|
|
|
defaultConfig {
|
|
applicationId app.applicationId
|
|
minSdkVersion app.minSdkVersion
|
|
targetSdkVersion app.targetSdkVersion
|
|
versionCode app.versionCode
|
|
versionName app.versionName
|
|
resConfigs app.resConfigs
|
|
|
|
buildConfigField "String", "$rootProject.ext.weather.name", "\"$rootProject.ext.weather.value\""
|
|
buildConfigField "String", "$rootProject.ext.fir.name", "\"$rootProject.ext.fir.value\""
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
shrinkResources false
|
|
}
|
|
debug {
|
|
debuggable true
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
//使用JAVA8语法解析
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
lintOptions {
|
|
disable 'InvalidPackage', 'MissingTranslation', 'ExtraTranslation'
|
|
}
|
|
|
|
dexOptions {
|
|
javaMaxHeapSize "4g"
|
|
}
|
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/services/javax.annotation.processing.Processor'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile fileTree(include: ['*.jar'], dir: 'libs')
|
|
// 默认 UI
|
|
compile 'com.android.support:appcompat-v7:25.3.1'
|
|
compile 'com.android.support:design:25.3.1'
|
|
compile 'com.android.support:cardview-v7:25.3.1'
|
|
compile 'com.android.support:support-v4:25.3.1'
|
|
// Rx
|
|
compile 'io.reactivex.rxjava2:rxjava:2.1.0'
|
|
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
|
|
compile 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.4'
|
|
compile 'com.trello.rxlifecycle2:rxlifecycle:2.0.1'
|
|
compile 'com.trello.rxlifecycle2:rxlifecycle-android:2.0.1'
|
|
compile 'com.trello.rxlifecycle2:rxlifecycle-components:2.0.1'
|
|
// network
|
|
compile 'com.google.code.gson:gson:2.8.0'
|
|
compile 'com.squareup.retrofit2:retrofit:2.2.0'
|
|
compile 'com.squareup.retrofit2:converter-gson:2.2.0'
|
|
compile 'com.squareup.retrofit2:adapter-rxjava2:2.2.0'
|
|
compile 'com.squareup.okhttp3:okhttp:3.7.0'
|
|
compile 'com.github.bumptech.glide:glide:3.7.0'
|
|
|
|
compile 'com.jakewharton:butterknife:8.5.1'
|
|
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
|
|
|
|
// assist
|
|
debugCompile 'com.github.markzhai:blockcanary-android:1.5.0'
|
|
releaseCompile 'com.github.markzhai:blockcanary-no-op:1.5.0'
|
|
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.1'
|
|
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
|
|
|
|
compile 'com.github.xcc3641:watcher:1.0'
|
|
compile 'com.facebook.stetho:stetho:1.5.0'
|
|
compile 'com.facebook.stetho:stetho-okhttp3:1.5.0'
|
|
|
|
//share
|
|
compile 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:1.1.6'
|
|
}
|
|
|