| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- apply plugin: 'com.android.application'
- apply plugin: 'com.getkeepsafe.dexcount'
- apply plugin: 'me.tatarka.retrolambda'
- android {
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- signingConfigs {
- config {
- storeFile file('C:/sigin/applicationsignname[20150409]')
- storePassword '13237658359'
- keyAlias 'jie-20150409'
- keyPassword '13237658359'
- }
- }
- compileSdkVersion rootProject.ext.android.compileSdkVersion
- buildToolsVersion rootProject.ext.android.buildToolsVersion
- defaultConfig {
- applicationId project.applicationId
- minSdkVersion rootProject.ext.android.minSdkVersion
- targetSdkVersion rootProject.ext.android.targetSdkVersion
- versionCode rootProject.ext.android.versionCode
- versionName rootProject.ext.android.versionName
- multiDexEnabled true
- signingConfig signingConfigs.config
- // 默认是umeng的渠道
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "umeng"]
- ndk {
- abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
- }
- }
- useLibrary 'org.apache.http.legacy'
- lintOptions {
- abortOnError false
- }
- packagingOptions {
- exclude 'META-INF/LICENSE.txt'
- exclude 'META-INF/NOTICE.txt'
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
- signingConfig signingConfigs.config
- }
- debug {
- signingConfig signingConfigs.config
- }
- }
- productFlavors { // Gradle 多渠道打包
- baidu {}
- wandoujia {}
- xiaomi {}
- tencent {}
- taobao {}
- }
- productFlavors.all {
- flavor -> flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name]
- }
- //给apk添加对应的版本号:这里暂时注释但保留
- // applicationVariants.all { variant ->
- // variant.outputs.each { output ->
- // def outputFile = output.outputFile
- // if (outputFile != null && outputFile.name.endsWith('.apk')) {
- // def fileName = outputFile.name.replace(".apk", "-${defaultConfig.versionName}.apk")
- // output.outputFile = new File(outputFile.parent, fileName)
- // }
- // }
- // }
- }
- dependencies {
- compile fileTree(include: ['*.jar'], dir: 'libs')
- //依赖库
- testCompile deps.junit
- compile deps.appcompatV7
- compile deps.cardviewV7
- compile deps.design
- compile deps.multidex
- compile deps.fastjson
- compile(deps.stetho) {
- force = true
- }
- compile deps.circleimageview
- compile deps.jodatime
- compile deps.systembartint
- compile deps.photoView
- compile deps.tagGroup
- compile deps.analytics
- compile deps.activityOnCrash
- compile deps.stickyListHeaders
- compile deps.stickyGridHeaders
- compile deps.materialDialogs
- androidTestCompile deps.leakcanaryNp
- debugCompile deps.leakcanary
- releaseCompile deps.leakcanaryNp
- //project
- compile project(':pullToRefershLibraryMy')
- compile project(':MPAndroidChart')
- compile project(':libedittextformlibrary')
- compile project(':libfloatingactionbutton')
- compile project(':libbdupdatesdk')
- compile project(':library-swipemenu_lv')
- compile project(':library-viewpager-indicator')
- compile project(':lib-zxing')
- compile project(':library-refreshlayout')
- compile 'com.squareup.okhttp3:okhttp:3.8.1'
- compile project(':android-pdf-viewer')
- }
- buildscript {
- repositories {
- mavenCentral()
- }
- dependencies {
- classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.4'
- }
- }
- dexcount {
- format = "json"
- includeClasses = false
- includeFieldCount = true
- includeTotalMethodCount = false
- orderByMethodCount = false
- verbose = false
- maxTreeDepth = Integer.MAX_VALUE
- teamCityIntegration = false
- enableForInstantRun = false
- }
|