build.gradle 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdkVersion 30
  6. buildToolsVersion "30.0.3"
  7. defaultConfig {
  8. applicationId "com.tjzhxx.union"
  9. minSdkVersion 19
  10. targetSdkVersion 30
  11. versionCode 5
  12. versionName "1.5"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. //dex分包属性设置
  15. multiDexEnabled true
  16. }
  17. /*签名信息*/
  18. signingConfigs {
  19. sign {
  20. storeFile file('/Users/yanghuaxiong/AndroidStudioProjects/git/workers_union/Untitled')
  21. storePassword "111111"
  22. keyAlias "key0"
  23. keyPassword "111111"
  24. }
  25. }
  26. buildTypes {
  27. release {
  28. minifyEnabled false
  29. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  30. }
  31. debug {
  32. minifyEnabled false
  33. signingConfig signingConfigs.sign
  34. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  35. }
  36. }
  37. compileOptions {
  38. sourceCompatibility JavaVersion.VERSION_1_8
  39. targetCompatibility JavaVersion.VERSION_1_8
  40. }
  41. }
  42. dependencies {
  43. implementation 'androidx.appcompat:appcompat:1.1.0'
  44. implementation 'com.google.android.material:material:1.1.0'
  45. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  46. testImplementation 'junit:junit:4.+'
  47. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  48. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  49. //图片加载框架
  50. implementation 'com.github.bumptech.glide:glide:4.12.0'
  51. annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
  52. implementation 'com.github.bumptech.glide:okhttp3-integration:4.12.0'
  53. //butterknife
  54. implementation 'com.jakewharton:butterknife:10.0.0'
  55. annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
  56. //rxjava2
  57. implementation 'io.reactivex.rxjava2:rxjava:2.1.3'
  58. implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
  59. //retrofit2
  60. implementation 'com.squareup.retrofit2:retrofit:2.3.0'
  61. implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
  62. //okhttp3
  63. implementation 'com.squareup.okhttp3:okhttp:4.2.2'
  64. implementation 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
  65. //控制Rxjava生命周期
  66. implementation 'com.uber.autodispose:autodispose:0.8.0'
  67. implementation 'com.uber.autodispose:autodispose-android-archcomponents:0.8.0'
  68. //下拉刷新上拉加载更多
  69. implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1' //核心必须依赖
  70. implementation 'com.scwang.smart:refresh-header-material:2.0.1' //经典刷新头
  71. implementation 'com.scwang.smart:refresh-footer-classics:2.0.1' //经典加载
  72. //轮播图
  73. implementation 'cn.bingoogolapple:bga-banner:2.1.7@aar'
  74. //gson
  75. implementation 'com.google.code.gson:gson:2.8.0'
  76. /*高德地图*/
  77. //3D地图so及jar
  78. implementation 'com.amap.api:3dmap:latest.integration'
  79. //定位功能
  80. // implementation 'com.amap.api:location:latest.integration'
  81. //dex分包引用
  82. implementation 'com.android.support:multidex:1.0.1'
  83. implementation project(':easyPhotos')
  84. //图片工具
  85. implementation 'com.github.chrisbanes:PhotoView:2.3.0'
  86. //微信支付
  87. implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+'
  88. }