123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- apply plugin: 'com.android.application'
- android {
- compileSdkVersion rootProject.ext.compileSdkVersion
- buildToolsVersion rootProject.ext.buildToolsVersion
- dexOptions {
- incremental true
- javaMaxHeapSize "4g"
- }
- aaptOptions {
- cruncherEnabled = false
- useNewCruncher = false
- }
- defaultConfig {
- applicationId "com.kuxuan.moneynote"
- minSdkVersion rootProject.ext.minSdkVersion
- targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode rootProject.ext.versionCode
- versionName rootProject.ext.versionName
- multiDexEnabled true
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- }
- aaptOptions {
- cruncherEnabled = false
- }
- //签名
- signingConfigs {
- myConfig {
- storeFile file("bangnidai.jks") //签名文件
- storePassword "bangnidai123"
- keyAlias "bangnidai"
- keyPassword "bangnidai123" //签名密码
- }
- }
- buildTypes {
- // release {
- // signingConfig signingConfigs.myConfig
- // minifyEnabled true
- // //开启shrinkResources去除无用资源
- // shrinkResources true
- // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- // applicationVariants.all { variant ->
- // variant.outputs.each { output ->
- // if (output.outputFile != null && output.outputFile.name.endsWith('.apk')
- // && 'release'.equals(variant.buildType.name)) {
- // def apkFile = new File(
- // output.outputFile.getParent(),
- // "qianduoduo${variant.flavorName}_v${variant.versionName}_${releaseTime()}.apk")
- // output.outputFile = apkFile
- // }
- // }
- // }
- // }
- release {
- signingConfig signingConfigs.myConfig
- multiDexEnabled true
- minifyEnabled false
- proguardFiles 'proguard-rules.pro'
- applicationVariants.all { variant ->
- // 更新至Android Studio 3.3 gradle 4.10.1
- variant.outputs.all {
- outputFileName = "qianduoduo_${variant.flavorName}_${variant.versionCode}-${variant.versionName}-${releaseTime()}.apk"
- }
- // variant.outputs.each { output ->
- // if (output.outputFile != null && output.outputFile.name.endsWith('.apk')
- // && 'release'.equals(variant.buildType.name)) {
- // def apkFile = new File(
- // output.outputFile.getParent(),
- // "xiaohuazhu${variant.flavorName}_v${variant.versionName}_${releaseTime()}.apk")
- // output.outputFile = apkFile
- // }
- // }
- // }
- }
- }
- debug {
- signingConfig signingConfigs.myConfig
- minifyEnabled false
- proguardFiles 'proguard-rules.pro'
- }
- }
- flavorDimensions "default"
- productFlavors {
- yingyongbao {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1001"]
- buildConfigField 'String', 'CHANNLE', '"1001"'
- buildConfigField 'String', 'LUNCH_AD_ID', '"33"'
- buildConfigField 'String', 'MAIN_AD_ID', '"33"'
- }
- vivo {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1002"]
- buildConfigField 'String', 'CHANNLE', '"1002"'
- buildConfigField 'String', 'LUNCH_AD_ID', '"31"'
- buildConfigField 'String', 'MAIN_AD_ID', '"31"'
- }
- oppo {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1003"]
- buildConfigField 'String', 'CHANNLE', '"1003"'
- buildConfigField 'String', 'LUNCH_AD_ID', '"34"'
- buildConfigField 'String', 'MAIN_AD_ID', '"34"'
- }
- xiaomi {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1005"]
- buildConfigField 'String', 'CHANNLE', '"1005"'
- buildConfigField 'String', 'LUNCH_AD_ID', '"36"'
- buildConfigField 'String', 'MAIN_AD_ID', '"36"'
- }
- huawei {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1004"]
- buildConfigField 'String', 'CHANNLE', '"1004"'
- buildConfigField 'String', 'LUNCH_AD_ID', '"35"'
- buildConfigField 'String', 'MAIN_AD_ID', '"35"'
- }
- baidu {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1006"]
- buildConfigField 'String', 'CHANNLE', '"1006"'
- buildConfigField 'String', 'LUNCH_AD_ID', '"37"'
- buildConfigField 'String', 'MAIN_AD_ID', '"37"'
- }
- c360 {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "1000"]
- buildConfigField 'String', 'CHANNLE', '"1000"'
- buildConfigField 'String', 'LUNCH_AD_ID', '"32"'
- buildConfigField 'String', 'MAIN_AD_ID', '"32 "'
- }
- }
- }
- def releaseTime() {
- return new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC"))
- }
- repositories {
- flatDir {
- dirs 'libs'
- }
- }
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
- exclude group: 'com.android.support', module: 'support-annotations'
- })
- implementation "com.android.support:support-v4:$rootProject.androidSupportVersion"
- implementation "com.github.bumptech.glide:glide:$rootProject.glideVersion"
- implementation "com.android.support:appcompat-v7:$rootProject.androidSupportVersion"
- implementation "net.qiujuer.genius:ui:$rootProject.geniusVersion"
- implementation "net.qiujuer.genius:res:$rootProject.geniusVersion"
- implementation "com.squareup.okhttp3:logging-interceptor:$rootProject.logging_interceptorVersion"
- implementation "com.squareup.retrofit2:retrofit:$rootProject.retrofitVersion"
- implementation "com.squareup.retrofit2:converter-gson:$rootProject.retrofitVersion"
- implementation "com.squareup.retrofit2:adapter-rxjava2:$rootProject.retrofitVersion"
- implementation "com.android.support:design:$rootProject.androidSupportVersion"
- implementation "io.reactivex.rxjava2:rxjava:$rootProject.rxjavaVersion"
- implementation "io.reactivex.rxjava2:rxandroid:$rootProject.rxandroidVersion"
- implementation "com.github.addappcn:android-pickers:$rootProject.androidpickerVersion"
- implementation files('libs/SocialSDK_QQ_Simplify.jar')
- implementation files('libs/umeng_social_api.jar')
- implementation files('libs/umeng_social_net.jar')
- implementation files('libs/umeng_social_tool.jar')
- implementation files('libs/umeng_shareboard_widget.jar')
- implementation files('libs/umeng_social_shareboard.jar')
- // compile files('libs/umeng-analytics-7.4.0.jar')
- // compile files('libs/umeng-common-1.4.0.jar')
- implementation 'com.umeng.umsdk:analytics:8.0.0'
- implementation 'com.umeng.umsdk:common:2.0.0'
- implementation 'com.umeng.umsdk:utdid:1.1.5.3'
- implementation 'com.classic.common:multiple-status-view:1.3'
- implementation 'com.google.code.gson:gson:2.8.0'
- implementation 'org.greenrobot:eventbus:3.1.1'
- implementation 'com.jakewharton:butterknife:7.0.1'
- annotationProcessor 'com.jakewharton:butterknife:7.0.1'
- implementation 'com.zhy:autolayout:1.4.5'
- implementation 'com.lcodecorex:tkrefreshlayout:1.0.7'
- implementation 'com.github.PhilJay:MPAndroidChart:v3.0.2'
- implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30'
- implementation 'com.android.support.constraint:constraint-layout:1.0.2'
- implementation 'com.jzxiang.pickerview:TimePickerDialog:1.0.1'
- implementation 'com.github.anzaizai:EasySwipeMenuLayout:1.1.4'
- testImplementation 'junit:junit:4.12'
- implementation files('libs/SocialSDK_WeChat_Simplify.jar')
- implementation 'com.github.yalantis:ucrop:2.2.1'
- implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.17'
- // implementation 'me.panpf:sketch-gif:2.6.1'
- implementation "de.hdodenhof:circleimageview:$rootProject.circleimageviewVersion"
- implementation project(':MoneyNote_Sqlite')
- implementation project(':kuxuanactivitymd')
- implementation 'com.github.tbruyelle:rxpermissions:0.10.2'
- implementation project(':AdKuxuanMod')
- implementation project(':guide')
- implementation files('libs/MiPush_SDK_Client_3_6_2.jar')
- implementation 'org.jaaksi:pickerview:1.0.1'
- //蒙版库
- //动画效果
- implementation 'com.facebook.rebound:rebound:0.3.8'
- implementation files('libs/alipaySdk-20180601.jar')
- //穿山甲广告
- implementation(name: 'open_ad_sdk', ext: 'aar')
- implementation(name: 'captcha-release_v3.1.1', ext: 'aar')
- implementation files('libs/android-query-full.0.26.7.jar')
- implementation files('libs/hmssdk-2.6.3.306.jar')
- implementation files('libs/com.coloros.mcssdk.jar')
- implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.6'
- implementation 'com.alibaba:fastjson:1.2.54'
- implementation 'com.alibaba:fastjson:1.1.70.android'
- implementation 'com.android.support:multidex:1.0.0'
- //数据库依赖
- implementation 'org.greenrobot:greendao-generator:3.2.2'
- implementation 'org.greenrobot:greendao:3.2.2'
- implementation 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.0.2'
- }
|