build.gradle 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. apply plugin: 'com.android.application'
  2. android {
  3. signingConfigs {
  4. debug {
  5. storeFile file('../hsh.jks')
  6. storePassword 'hsh123'
  7. keyAlias '海盛海维保'
  8. keyPassword 'hsh123'
  9. }
  10. release {
  11. storeFile file('../hsh.jks')
  12. storePassword 'hsh123'
  13. keyAlias '海盛海维保'
  14. keyPassword 'hsh123'
  15. }
  16. }
  17. compileSdkVersion 28
  18. buildToolsVersion "28.0.3"
  19. defaultConfig {
  20. applicationId "com.all.maintenance"
  21. minSdkVersion 16
  22. targetSdkVersion 28
  23. versionCode 1
  24. versionName "1.0"
  25. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  26. multiDexEnabled true
  27. ndk {
  28. abiFilters 'armeabi'
  29. }
  30. manifestPlaceholders = [
  31. JPUSH_PKGNAME: applicationId,
  32. JPUSH_APPKEY : "f34b0841ed238a48c7687a99", //JPush 上注册的包名对应的 Appkey.
  33. JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
  34. ]
  35. }
  36. buildTypes {
  37. release {
  38. minifyEnabled false
  39. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  40. }
  41. }
  42. allprojects {
  43. repositories {
  44. maven { url "https://jitpack.io" }
  45. jcenter()
  46. flatDir {
  47. dirs 'libs'
  48. }
  49. }
  50. }
  51. sourceSets {
  52. main {
  53. jniLibs.srcDirs = ['libs']
  54. }
  55. debug.setRoot('build-types/debug')
  56. release.setRoot('build-types/release')
  57. }
  58. compileOptions {
  59. sourceCompatibility JavaVersion.VERSION_1_8
  60. targetCompatibility JavaVersion.VERSION_1_8
  61. }
  62. }
  63. dependencies {
  64. androidTestImplementation 'androidx.test:runner:1.2.0'
  65. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  66. implementation 'com.google.android.material:material:1.0.0'
  67. implementation 'androidx.appcompat:appcompat:1.0.0'
  68. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  69. implementation fileTree(include: ['*.jar'], dir: 'libs')
  70. testImplementation 'junit:junit:4.12'
  71. implementation 'com.google.code.gson:gson:2.8.5'
  72. //分包
  73. implementation 'com.android.support:multidex:1.0.3'
  74. //注解框架
  75. implementation 'com.jakewharton:butterknife:10.1.0'
  76. annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
  77. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  78. //刷新
  79. implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-28'
  80. //网络请求
  81. implementation 'com.lzy.net:okgo:2.1.4'
  82. //hawk
  83. implementation 'com.github.orhanobut:hawk:1.21'
  84. //loading
  85. implementation 'com.airbnb.android:lottie:2.6.0'
  86. //adapter
  87. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46'
  88. //权限申请
  89. implementation 'com.mylhyl:acp:1.2.0'
  90. //图片加载
  91. implementation 'com.github.bumptech.glide:glide:4.8.0'
  92. annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
  93. //仿微信拍照摄像 https://github.com/CJT2325/CameraView
  94. implementation 'cjt.library.wheel:camera:1.1.9'
  95. //图片视频选择器
  96. implementation project(path: ':photolibrary')
  97. //视频
  98. implementation project(path: ':nicevideoplayer')
  99. //极光推送
  100. implementation 'cn.jiguang.sdk:jpush:3.1.7'
  101. implementation 'cn.jiguang.sdk:jcore:1.2.6'
  102. //高德地图
  103. implementation 'com.amap.api:3dmap:latest.integration'
  104. //高德定位
  105. implementation 'com.amap.api:location:latest.integration'
  106. //高德搜索
  107. implementation 'com.amap.api:search:latest.integration'
  108. //鲁班压缩
  109. implementation 'top.zibin:Luban:1.1.8'
  110. //曲线图
  111. implementation 'com.github.PhilJay:MPAndroidChart:v3.0.0'
  112. //时间选择器
  113. implementation 'com.contrarywind:Android-PickerView:4.1.6'
  114. }