build.gradle 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 26
  4. buildToolsVersion '26.0.2'
  5. useLibrary 'org.apache.http.legacy'
  6. defaultConfig {
  7. applicationId "com.example.administrator.driversystem"
  8. minSdkVersion 15
  9. targetSdkVersion 26
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  13. multiDexEnabled true
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  19. }
  20. }
  21. }
  22. dependencies {
  23. compile 'com.android.support:multidex:1.0.1'//分包设置
  24. compile fileTree(include: ['*.jar'], dir: 'libs')
  25. compile 'com.desperado:customerlib:1.0.5'
  26. compile project(':okhttplib')
  27. compile 'com.android.support:appcompat-v7:26.1.0'
  28. testCompile 'junit:junit:4.12'
  29. compile 'org.apache.httpcomponents:httpcore:4.4.2'
  30. compile 'com.squareup.okhttp3:okhttp-ws:3.3.1'
  31. /***websocket***/
  32. compile 'com.alibaba:fastjson:1.1.52.android'
  33. compile 'com.squareup.retrofit2:retrofit:2.0.0'
  34. compile 'com.squareup.retrofit2:adapter-rxjava:2.0.0'
  35. compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'
  36. //ConverterFactory的Gson依赖包
  37. compile 'com.squareup.retrofit2:converter-scalars:2.0.0-beta4'
  38. //ConverterFactory的String依赖包
  39. compile project(':customerview')
  40. //底部导航
  41. compile 'com.hjm:BottomTabBar:1.0.0'
  42. compile 'com.facebook.fresco:fresco:0.12.0'
  43. compile project(':photogallery')
  44. //引入谷歌地图
  45. compile 'com.google.android.gms:play-services:10.2.1'
  46. //fresco手势放大缩小
  47. compile 'me.relex:photodraweeview:1.0.0'
  48. //图片加载
  49. compile 'com.github.bumptech.glide:glide:3.7.0'
  50. }
  51. configurations.all {
  52. resolutionStrategy.eachDependency { DependencyResolveDetails details ->
  53. def requested = details.requested
  54. if (requested.group == 'com.android.support') {
  55. if (!requested.name.startsWith("multidex")) {
  56. details.useVersion '26.1.0'
  57. }
  58. }
  59. }
  60. }