|
| 1 | +ext { |
| 2 | + |
| 3 | + android = [ |
| 4 | + compileSdkVersion : 27, |
| 5 | + buildToolsVersion : "27.0.3", |
| 6 | + minSdkVersion : 14, |
| 7 | + targetSdkVersion : 27, |
| 8 | + versionCode : 156, |
| 9 | + versionName : "2.4.1" |
| 10 | + ] |
| 11 | + |
| 12 | + version = [ |
| 13 | + androidSupportSdkVersion: "27.1.0", |
| 14 | + retrofitSdkVersion : "2.4.0", |
| 15 | + dagger2SdkVersion : "2.15", |
| 16 | + glideSdkVersion : "4.6.1", |
| 17 | + butterknifeSdkVersion : "8.8.1", |
| 18 | + rxlifecycleSdkVersion : "1.0", |
| 19 | + rxlifecycle2SdkVersion : "2.2.1", |
| 20 | + espressoSdkVersion : "3.0.1", |
| 21 | + canarySdkVersion : "1.5.4" |
| 22 | + ] |
| 23 | + |
| 24 | + dependencies = [ |
| 25 | + //support |
| 26 | + "appcompat-v7" : "com.android.support:appcompat-v7:${version["androidSupportSdkVersion"]}", |
| 27 | + "design" : "com.android.support:design:${version["androidSupportSdkVersion"]}", |
| 28 | + "support-v4" : "com.android.support:support-v4:${version["androidSupportSdkVersion"]}", |
| 29 | + "cardview-v7" : "com.android.support:cardview-v7:${version["androidSupportSdkVersion"]}", |
| 30 | + "annotations" : "com.android.support:support-annotations:${version["androidSupportSdkVersion"]}", |
| 31 | + "recyclerview-v7" : "com.android.support:recyclerview-v7:${version["androidSupportSdkVersion"]}", |
| 32 | + |
| 33 | + //network |
| 34 | + "retrofit" : "com.squareup.retrofit2:retrofit:${version["retrofitSdkVersion"]}", |
| 35 | + "retrofit-converter-gson" : "com.squareup.retrofit2:converter-gson:${version["retrofitSdkVersion"]}", |
| 36 | + "retrofit-adapter-rxjava" : "com.squareup.retrofit2:adapter-rxjava:${version["retrofitSdkVersion"]}", |
| 37 | + "retrofit-adapter-rxjava2" : "com.squareup.retrofit2:adapter-rxjava2:${version["retrofitSdkVersion"]}", |
| 38 | + "okhttp3" : "com.squareup.okhttp3:okhttp:3.10.0", |
| 39 | + "okhttp-urlconnection" : "com.squareup.okhttp:okhttp-urlconnection:2.0.0", |
| 40 | + "glide" : "com.github.bumptech.glide:glide:${version["glideSdkVersion"]}", |
| 41 | + "glide-compiler" : "com.github.bumptech.glide:compiler:${version["glideSdkVersion"]}", |
| 42 | + "glide-loader-okhttp3" : "com.github.bumptech.glide:okhttp3-integration:${version["glideSdkVersion"]}", |
| 43 | + "picasso" : "com.squareup.picasso:picasso:2.5.2", |
| 44 | + |
| 45 | + //view |
| 46 | + "autolayout" : "com.zhy:autolayout:1.4.5", |
| 47 | + "butterknife" : "com.jakewharton:butterknife:${version["butterknifeSdkVersion"]}", |
| 48 | + "butterknife-compiler" : "com.jakewharton:butterknife-compiler:${version["butterknifeSdkVersion"]}", |
| 49 | + "pickerview" : "com.contrarywind:Android-PickerView:3.2.5", |
| 50 | + "photoview" : "com.github.chrisbanes.photoview:library:1.2.3", |
| 51 | + "numberprogressbar" : "com.daimajia.numberprogressbar:library:1.2@aar", |
| 52 | + "nineoldandroids" : "com.nineoldandroids:library:2.4.0", |
| 53 | + "paginate" : "com.github.markomilos:paginate:0.5.1", |
| 54 | + "vlayout" : "com.alibaba.android:vlayout:1.1.0@aar", |
| 55 | + |
| 56 | + //rx1 |
| 57 | + "rxandroid" : "io.reactivex:rxandroid:1.2.1", |
| 58 | + "rxjava" : "io.reactivex:rxjava:1.3.0", |
| 59 | + "rxlifecycle" : "com.trello:rxlifecycle:${version["rxlifecycleSdkVersion"]}", |
| 60 | + "rxlifecycle-components" : "com.trello:rxlifecycle-components:${version["rxlifecycleSdkVersion"]}", |
| 61 | + "rxcache" : "com.github.VictorAlbertos.RxCache:runtime:1.7.0-1.x", |
| 62 | + "rxcache-jolyglot-gson" : "com.github.VictorAlbertos.Jolyglot:gson:0.0.3", |
| 63 | + "rxbinding-recyclerview-v7": "com.jakewharton.rxbinding:rxbinding-recyclerview-v7:1.0.1", |
| 64 | + "rxpermissions" : "com.tbruyelle.rxpermissions:rxpermissions:0.9.4@aar", |
| 65 | + "rxerrorhandler" : "me.jessyan:rxerrorhandler:1.0.1", |
| 66 | + |
| 67 | + //rx2 |
| 68 | + "rxandroid2" : "io.reactivex.rxjava2:rxandroid:2.0.2", |
| 69 | + "rxjava2" : "io.reactivex.rxjava2:rxjava:2.1.12", |
| 70 | + "rxlifecycle2" : "com.trello.rxlifecycle2:rxlifecycle:${version["rxlifecycle2SdkVersion"]}", |
| 71 | + "rxlifecycle2-android" : "com.trello.rxlifecycle2:rxlifecycle-android:${version["rxlifecycle2SdkVersion"]}", |
| 72 | + "rxlifecycle2-components" : "com.trello.rxlifecycle2:rxlifecycle-components:${version["rxlifecycle2SdkVersion"]}", |
| 73 | + "rxcache2" : "com.github.VictorAlbertos.RxCache:runtime:1.8.3-2.x", |
| 74 | + "rxpermissions2" : "com.tbruyelle.rxpermissions2:rxpermissions:0.9.5@aar", |
| 75 | + "rxerrorhandler2" : "me.jessyan:rxerrorhandler:2.1.1", |
| 76 | + |
| 77 | + //tools |
| 78 | + "dagger2" : "com.google.dagger:dagger:${version["dagger2SdkVersion"]}", |
| 79 | + "dagger2-android" : "com.google.dagger:dagger-android:${version["dagger2SdkVersion"]}", |
| 80 | + "dagger2-android-support" : "com.google.dagger:dagger-android-support:${version["dagger2SdkVersion"]}", |
| 81 | + "dagger2-compiler" : "com.google.dagger:dagger-compiler:${version["dagger2SdkVersion"]}", |
| 82 | + "dagger2-android-processor": "com.google.dagger:dagger-android-processor:${version["dagger2SdkVersion"]}", |
| 83 | + "androideventbus" : "org.simple:androideventbus:1.0.5.1", |
| 84 | + "otto" : "com.squareup:otto:1.3.8", |
| 85 | + "gson" : "com.google.code.gson:gson:2.8.2", |
| 86 | + "multidex" : "com.android.support:multidex:1.0.1", |
| 87 | + "javax.annotation" : "javax.annotation:jsr250-api:1.0", |
| 88 | + "arouter" : "com.alibaba:arouter-api:1.3.1", |
| 89 | + "arouter-compiler" : "com.alibaba:arouter-compiler:1.1.4", |
| 90 | + "progressmanager" : "me.jessyan:progressmanager:1.5.0", |
| 91 | + "retrofit-url-manager" : "me.jessyan:retrofit-url-manager:1.2.5", |
| 92 | + "lifecyclemodel" : "me.jessyan:lifecyclemodel:1.0.1", |
| 93 | + |
| 94 | + //test |
| 95 | + "junit" : "junit:junit:4.12", |
| 96 | + "androidJUnitRunner" : "android.support.test.runner.AndroidJUnitRunner", |
| 97 | + "runner" : "com.android.support.test:runner:1.0.1", |
| 98 | + "espresso-core" : "com.android.support.test.espresso:espresso-core:${version["espressoSdkVersion"]}", |
| 99 | + "espresso-contrib" : "com.android.support.test.espresso:espresso-contrib:${version["espressoSdkVersion"]}", |
| 100 | + "espresso-intents" : "com.android.support.test.espresso:espresso-intents:${version["espressoSdkVersion"]}", |
| 101 | + "mockito-core" : "org.mockito:mockito-core:1.+", |
| 102 | + "timber" : "com.jakewharton.timber:timber:4.7.0", |
| 103 | + "logger" : "com.orhanobut:logger:2.2.0", |
| 104 | + "canary-debug" : "com.squareup.leakcanary:leakcanary-android:${version["canarySdkVersion"]}", |
| 105 | + "canary-release" : "com.squareup.leakcanary:leakcanary-android-no-op:${version["canarySdkVersion"]}", |
| 106 | + "umeng-analytics" : "com.umeng.analytics:analytics:6.0.1" |
| 107 | + ] |
| 108 | + |
| 109 | + |
| 110 | +} |
0 commit comments