1+ def supportVersion = " 25.3.1"
2+ def rxBindingVersion = " 0.4.0"
3+ def retrofitVersion = " 2.2.0"
4+ def okHttpVersion = " 3.7.0"
5+ def stethoVersion = " 1.5.0"
6+ def butterKnifeVersion = " 8.5.1"
7+ def daggerVersion = " 2.8"
8+ def routerVersion = " 0.2.3"
9+
10+ project. ext {
11+ android = [
12+ compileSdkVersion : 25 ,
13+ buildToolsVersion : " 25.0.2" ,
14+ applicationId : " com.baronzhang.android.modularization" ,
15+ minSdkVersion : 15 ,
16+ targetSdkVersion : 25 ,
17+ versionCode : 1 ,
18+ versionName : " 1.0"
19+ ]
20+
21+ dependencies = [
22+ // android-support
23+ " support-v4" : " com.android.support:support-v4:${ supportVersion} " ,
24+ " appcompat-v7" : " com.android.support:appcompat-v7:${ supportVersion} " ,
25+ " design" : " com.android.support:design:${ supportVersion} " ,
26+ " recyclerview-v7" : " com.android.support:recyclerview-v7:${ supportVersion} " ,
27+ " cardview-v7" : " com.android.support:cardview-v7:${ supportVersion} " ,
28+ " constraint-layout" : " com.android.support.constraint:constraint-layout:1.0.0-alpha7" ,
29+
30+ // java8-support
31+ " stream" : " com.annimon:stream:1.0.8" ,
32+
33+ // rx
34+ " rxandroid" : " io.reactivex:rxandroid:1.2.1" ,
35+ " rxbinding" : " com.jakewharton.rxbinding:rxbinding:${ rxBindingVersion} " ,
36+ " rxbinding-support-v4" : " com.jakewharton.rxbinding:rxbinding-support-v4:${ rxBindingVersion} " ,
37+ " rxbinding-appcompat-v7" : " com.jakewharton.rxbinding:rxbinding-appcompat-v7:${ rxBindingVersion} " ,
38+ " rxbinding-design" : " com.jakewharton.rxbinding:rxbinding-design:${ rxBindingVersion} " ,
39+ " rxbinding-recyclerview-v7" : " com.jakewharton.rxbinding:rxbinding-recyclerview-v7:${ rxBindingVersion} " ,
40+
41+ // retrofit
42+ " retrofit" : " com.squareup.retrofit2:retrofit:${ retrofitVersion} " ,
43+ " adapter-rxjava" : " com.squareup.retrofit2:adapter-rxjava:${ retrofitVersion} " ,
44+
45+ // dagger
46+ " dagger" : " com.google.dagger:dagger:${ daggerVersion} " ,
47+ " dagger-compiler" : " com.google.dagger:dagger-compiler:${ daggerVersion} " ,
48+
49+ // router
50+ " router" : " com.baronzhang.android:router-api:${ routerVersion} " ,
51+ " router-compiler" : " com.baronzhang.android:router-compiler:${ routerVersion} " ,
52+
53+ // butterKnife
54+ " butterknife" : " com.jakewharton:butterknife:${ butterKnifeVersion} " ,
55+ " butterknife-compiler" : " com.jakewharton:butterknife-compiler:${ butterKnifeVersion} " ,
56+
57+ // facebook
58+ " stetho" : " com.facebook.stetho:stetho:${ stethoVersion} " ,
59+ " stetho-okhttp3" : " com.facebook.stetho:stetho-okhttp3:${ stethoVersion} " ,
60+
61+ // okHttp3
62+ " okhttp3" : " com.squareup.okhttp3:okhttp:${ okHttpVersion} " ,
63+ " okhttp3-logging-interceptor" : " com.squareup.okhttp3:logging-interceptor:${ okHttpVersion} " ,
64+
65+ // others
66+ " ormlite-android" : " com.j256.ormlite:ormlite-android:5.0" ,
67+ " fastjson" : " com.alibaba:fastjson:1.2.31" ,
68+ " retrofit2-fastjson-converter" : " com.github.BaronZ88:Retrofit2-FastJson-Converter:1.2" ,
69+
70+ // test
71+ " junit" : " junit:junit:4.12"
72+ ]
73+ }
0 commit comments