123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- apply plugin: 'com.android.application'
- android {
- compileSdkVersion 26
- buildToolsVersion '26.0.2'
- useLibrary 'org.apache.http.legacy'
- defaultConfig {
- applicationId "com.example.administrator.driversystem"
- minSdkVersion 15
- targetSdkVersion 26
- versionCode 1
- versionName "1.0"
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- multiDexEnabled true
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- }
- dependencies {
- compile 'com.android.support:multidex:1.0.1'//分包设置
- compile fileTree(include: ['*.jar'], dir: 'libs')
- compile 'com.desperado:customerlib:1.0.5'
- compile project(':okhttplib')
- compile 'com.android.support:appcompat-v7:26.1.0'
- testCompile 'junit:junit:4.12'
- compile 'org.apache.httpcomponents:httpcore:4.4.2'
- compile 'com.squareup.okhttp3:okhttp-ws:3.3.1'
- /***websocket***/
- compile 'com.alibaba:fastjson:1.1.52.android'
- compile 'com.squareup.retrofit2:retrofit:2.0.0'
- compile 'com.squareup.retrofit2:adapter-rxjava:2.0.0'
- compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'
- //ConverterFactory的Gson依赖包
- compile 'com.squareup.retrofit2:converter-scalars:2.0.0-beta4'
- //ConverterFactory的String依赖包
- compile project(':customerview')
- //底部导航
- compile 'com.hjm:BottomTabBar:1.0.0'
- compile 'com.facebook.fresco:fresco:0.12.0'
- compile project(':photogallery')
- //引入谷歌地图
- compile 'com.google.android.gms:play-services:10.2.1'
- //fresco手势放大缩小
- compile 'me.relex:photodraweeview:1.0.0'
- //图片加载
- compile 'com.github.bumptech.glide:glide:3.7.0'
- }
- configurations.all {
- resolutionStrategy.eachDependency { DependencyResolveDetails details ->
- def requested = details.requested
- if (requested.group == 'com.android.support') {
- if (!requested.name.startsWith("multidex")) {
- details.useVersion '26.1.0'
- }
- }
- }
- }
|