build.gradle 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. apply plugin: 'com.android.application'
  2. android {
  3. signingConfigs {
  4. release {
  5. keyAlias 'student'
  6. keyPassword '123456'
  7. storeFile file('../document/student.jks')
  8. storePassword '123456'
  9. }
  10. }
  11. compileSdkVersion rootProject.ext.compileSdkVersion
  12. defaultConfig {
  13. applicationId "com.hooli.histudent"
  14. minSdkVersion rootProject.ext.minSdkVersion
  15. targetSdkVersion rootProject.ext.targetSdkVersion
  16. versionCode rootProject.ext.versionCode
  17. versionName rootProject.ext.versionName
  18. multiDexEnabled true
  19. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  20. flavorDimensions "default"
  21. }
  22. productFlavors {
  23. _web {
  24. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_web"]
  25. }
  26. _qq {
  27. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_qq"]
  28. }
  29. _360 {
  30. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_360"]
  31. }
  32. _baidu {
  33. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_baidu"]
  34. }
  35. _xiaomi {
  36. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_xiaomi"]
  37. }
  38. _huawei {
  39. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_huawei"]
  40. }
  41. _ali {
  42. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_ali"]
  43. }
  44. _samsung {
  45. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_samsung"]
  46. }
  47. _oppo {
  48. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_oppo"]
  49. }
  50. _vivo {
  51. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_vivo"]
  52. }
  53. _lenovo {
  54. manifestPlaceholders = [UMENG_CHANNEL_VALUE: "_lenovo"]
  55. }
  56. }
  57. buildTypes {
  58. debug {
  59. minifyEnabled false
  60. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  61. }
  62. release {
  63. minifyEnabled true
  64. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  65. }
  66. }
  67. compileOptions {
  68. // use java8 parse
  69. sourceCompatibility JavaVersion.VERSION_1_8
  70. targetCompatibility JavaVersion.VERSION_1_8
  71. }
  72. lintOptions {
  73. disable 'GoogleAppIndexingWarning'
  74. }
  75. }
  76. dependencies {
  77. implementation fileTree(include: ['*.jar'], dir: 'libs')
  78. // support库
  79. implementation "com.android.support:appcompat-v7:$rootProject.supportVersion"
  80. implementation "com.android.support:recyclerview-v7:$rootProject.supportVersion"
  81. implementation "com.android.support:design:$rootProject.supportVersion"
  82. implementation "com.android.support.constraint:constraint-layout:$rootProject.constraintVersion"
  83. // 智齿
  84. implementation "com.sobot.chat:sobotsdk:$rootProject.zhiChiVersion"
  85. // glide
  86. implementation "com.github.bumptech.glide:glide:$rootProject.glideVersion"
  87. annotationProcessor "com.github.bumptech.glide:compiler:$rootProject.glideVersion"
  88. implementation "jp.wasabeef:glide-transformations:$rootProject.glideTfVersion"
  89. // implementation "com.github.bumptech.glide:okhttp3-integration:$rootProject.glideLogVersion"
  90. implementation "com.android.support:multidex:$rootProject.mulVersion"
  91. implementation "com.orhanobut:logger:$rootProject.logVersion"
  92. // 沉浸式状态栏
  93. implementation "com.gyf.immersionbar:immersionbar:$rootProject.barVersion"
  94. // 列表
  95. implementation("com.yanzhenjie:recyclerview-swipe:$rootProject.listVersion") {
  96. exclude group: 'com.android.support'
  97. }
  98. // 万能列表适配器
  99. implementation "com.github.CymChad:BaseRecyclerViewAdapterHelper:$rootProject.adapterVersion"
  100. // ButterKnife
  101. implementation "com.jakewharton:butterknife:$rootProject.butterknifeVersion"
  102. annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.butterknifeVersion"
  103. // 流式布局
  104. implementation "com.hyman:flowlayout-lib:$rootProject.flowlayoutVersion"
  105. // 轮播图
  106. implementation "com.youth.banner:banner:$rootProject.binnerVersion"
  107. // 老虎机效果
  108. implementation "com.github.YvesCheung:RollingText:$rootProject.rollingtexthLayout"
  109. // dialog
  110. implementation("com.github.hss01248:DialogUtil:$rootProject.dialogVersion") {
  111. exclude group: 'com.android.support'
  112. }
  113. // 版本更新
  114. implementation "com.allenliu.versionchecklib:library:$rootProject.updateVersion"
  115. // 微信支付
  116. implementation "com.tencent.mm.opensdk:wechat-sdk-android-without-mta:$rootProject.weChatVersion"
  117. // 二维码
  118. implementation("cn.yipianfengye.android:zxing-library:$rootProject.zXingVersion") {
  119. exclude group: 'com.android.support'
  120. }
  121. // rx click
  122. implementation "com.jakewharton.rxbinding2:rxbinding:$rootProject.rxBindVersion"
  123. // 屏幕适配
  124. implementation "me.jessyan:autosize:$rootProject.autosizeVersion"
  125. // Json动画
  126. implementation "com.airbnb.android:lottie:$rootProject.lottieVersion"
  127. // 友盟统计
  128. implementation "com.umeng.sdk:analytics:$rootProject.umengVersion"
  129. // JPush
  130. implementation files('libs/jcore-android-1.2.1.jar')
  131. implementation files('libs/jpush-android-3.1.3.jar')
  132. // 网络请求库
  133. implementation project(':lib_http')
  134. // tab切换
  135. implementation project(':lib_tab')
  136. // 友盟分享
  137. implementation project(':lib_umeng')
  138. //选择器
  139. implementation project(':lib_WheelPicker')
  140. //图片选择剪切
  141. implementation project(':lib_picture_selecter')
  142. implementation 'cn.jzvd:jiaozivideoplayer:6.4.1'
  143. // 检测过度绘制
  144. // debugImplementation "com.github.moduth:blockcanary-android:$rootProject.blockVersion"
  145. // releaseImplementation "com.github.moduth:blockcanary-no-op:$rootProject.blockVersion"
  146. // 检测内存溢出
  147. // debugImplementation "com.squareup.leakcanary:leakcanary-android:$rootProject.leakVersion"
  148. // releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$rootProject.leakVersion"
  149. // 单元测试
  150. testImplementation 'junit:junit:4.12'
  151. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  152. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  153. }