123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- apply plugin: 'com.android.application'
- android {
- signingConfigs {
- release {
- keyAlias 'student'
- keyPassword '123456'
- storeFile file('../document/student.jks')
- storePassword '123456'
- }
- }
- compileSdkVersion rootProject.ext.compileSdkVersion
- defaultConfig {
- applicationId "com.hooli.histudent"
- minSdkVersion rootProject.ext.minSdkVersion
- targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode rootProject.ext.versionCode
- versionName rootProject.ext.versionName
- multiDexEnabled true
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- flavorDimensions "default"
- }
- productFlavors {
- _web {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_web"]
- }
- _qq {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_qq"]
- }
- _360 {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_360"]
- }
- _baidu {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_baidu"]
- }
- _xiaomi {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_xiaomi"]
- }
- _huawei {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_huawei"]
- }
- _ali {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_ali"]
- }
- _samsung {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_samsung"]
- }
- _oppo {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_oppo"]
- }
- _vivo {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_vivo"]
- }
- _lenovo {
- manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_lenovo"]
- }
- }
- buildTypes {
- debug {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- release {
- minifyEnabled true
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- // use java8 parse
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- lintOptions {
- disable 'GoogleAppIndexingWarning'
- }
- }
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- // support库
- implementation "com.android.support:appcompat-v7:$rootProject.supportVersion"
- implementation "com.android.support:recyclerview-v7:$rootProject.supportVersion"
- implementation "com.android.support:design:$rootProject.supportVersion"
- implementation "com.android.support.constraint:constraint-layout:$rootProject.constraintVersion"
- // 智齿
- implementation "com.sobot.chat:sobotsdk:$rootProject.zhiChiVersion"
- // glide
- implementation "com.github.bumptech.glide:glide:$rootProject.glideVersion"
- annotationProcessor "com.github.bumptech.glide:compiler:$rootProject.glideVersion"
- implementation "jp.wasabeef:glide-transformations:$rootProject.glideTfVersion"
- // implementation "com.github.bumptech.glide:okhttp3-integration:$rootProject.glideLogVersion"
- implementation "com.android.support:multidex:$rootProject.mulVersion"
- implementation "com.orhanobut:logger:$rootProject.logVersion"
- // 沉浸式状态栏
- implementation "com.gyf.immersionbar:immersionbar:$rootProject.barVersion"
- // 列表
- implementation("com.yanzhenjie:recyclerview-swipe:$rootProject.listVersion") {
- exclude group: 'com.android.support'
- }
- // 万能列表适配器
- implementation "com.github.CymChad:BaseRecyclerViewAdapterHelper:$rootProject.adapterVersion"
- // ButterKnife
- implementation "com.jakewharton:butterknife:$rootProject.butterknifeVersion"
- annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.butterknifeVersion"
- // 流式布局
- implementation "com.hyman:flowlayout-lib:$rootProject.flowlayoutVersion"
- // 轮播图
- implementation "com.youth.banner:banner:$rootProject.binnerVersion"
- // 老虎机效果
- implementation "com.github.YvesCheung:RollingText:$rootProject.rollingtexthLayout"
- // dialog
- implementation("com.github.hss01248:DialogUtil:$rootProject.dialogVersion") {
- exclude group: 'com.android.support'
- }
- // 版本更新
- implementation "com.allenliu.versionchecklib:library:$rootProject.updateVersion"
- // 微信支付
- implementation "com.tencent.mm.opensdk:wechat-sdk-android-without-mta:$rootProject.weChatVersion"
- // 二维码
- implementation("cn.yipianfengye.android:zxing-library:$rootProject.zXingVersion") {
- exclude group: 'com.android.support'
- }
- // rx click
- implementation "com.jakewharton.rxbinding2:rxbinding:$rootProject.rxBindVersion"
- // 屏幕适配
- implementation "me.jessyan:autosize:$rootProject.autosizeVersion"
- // Json动画
- implementation "com.airbnb.android:lottie:$rootProject.lottieVersion"
- // 友盟统计
- implementation "com.umeng.sdk:analytics:$rootProject.umengVersion"
- // JPush
- implementation files('libs/jcore-android-1.2.1.jar')
- implementation files('libs/jpush-android-3.1.3.jar')
- // 网络请求库
- implementation project(':lib_http')
- // tab切换
- implementation project(':lib_tab')
- // 友盟分享
- implementation project(':lib_umeng')
- //选择器
- implementation project(':lib_WheelPicker')
- //图片选择剪切
- implementation project(':lib_picture_selecter')
- implementation 'cn.jzvd:jiaozivideoplayer:6.4.1'
- // 检测过度绘制
- // debugImplementation "com.github.moduth:blockcanary-android:$rootProject.blockVersion"
- // releaseImplementation "com.github.moduth:blockcanary-no-op:$rootProject.blockVersion"
- // 检测内存溢出
- // debugImplementation "com.squareup.leakcanary:leakcanary-android:$rootProject.leakVersion"
- // releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$rootProject.leakVersion"
- // 单元测试
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'com.android.support.test:runner:1.0.2'
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
- }
|