GearApplication

Introduction: 使用 OkHttp3(OkHttp) + Retrofit2 + Rxjava(RxAndroid) +Rxlifecycle +Rxbus 构建的 DEMO 项目
More: Author   ReportBugs   
Tags:
Retrofit2-Rxjava-Rxbus-

LICENSE

GearApplication

使用 OkHttp3(OkHttp) + Retrofit2 + Rxjava(RxAndroid) +Rxlifecycle2 +Rxbus 构建的 DEMO 项目

主要模块使用 MVP+MVVM 的方式构建,按照功能分包

可直接导入项目并运行

Gearlibrary 主项目基础架构框架

集成 OkHttp3(OkHttp) + Retrofit2 + Rxjava2(RxAndroid2) +Rxbus 事件总线由 rxbus 负责 Retrofit2,Fresco 网络访问由 OkHttp3 负责

简书:http://www.jianshu.com/users/02266b406caa/latest_articles

GearApifinder-compiler 自动生成相关类框架

GearApifinder-annotation 自动生成类框架 annotation

GearApplication 引用

    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile project(':gearlibrary')
    compile 'com.android.support:support-v4:23.4.0'
    compile 'com.android.support:design:23.1.1'
    compile 'com.android.support:cardview-v7:23.4.0'

    compile 'com.jcodecraeer:xrecyclerview:1.2.7'

    compile 'com.github.bumptech.glide:glide:3.7.0'

    compile 'com.github.bumptech.glide:okhttp3-integration:1.4.0@aar'

    compile 'com.trello.rxlifecycle2:rxlifecycle:2.0.1'
    compile 'com.trello.rxlifecycle2:rxlifecycle-android:2.0.1'
    compile 'com.trello.rxlifecycle2:rxlifecycle-components:2.0.1'

    compile 'com.google.android.gms:play-services-appindexing:8.4.0'
    annotationProcessor 'com.google.guava:guava:19.0'
    compile 'com.google.dagger:dagger:2.4'
    annotationProcessor 'com.google.dagger:dagger-compiler:2.4'
    provided 'javax.annotation:jsr250-api:1.0'

    annotationProcessor project(':gearapifinder-compiler')

    testCompile 'junit:junit:4.12'

gearlibrary 引用

    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:23.3.0'
    compile 'com.android.support:recyclerview-v7:23.1.1'

    compile 'com.squareup.okhttp3:okhttp:3.4.1'
    compile 'com.squareup.okio:okio:1.9.0'

    compile 'com.google.code.gson:gson:2.7'

    compile 'io.reactivex.rxjava2:rxjava:2.0.2'
    compile 'io.reactivex.rxjava2:rxandroid:2.0.1'

    compile 'com.squareup.retrofit2:retrofit:2.1.0'
    compile 'com.squareup.retrofit2:converter-gson:2.1.0'
    compile 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0-RC3'
    compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'

    compile project(':gearapifinder-annotation')

使用 library 框架

compile 'com.joker.gear:com-joker-gear:1.5.1'
Apps
About Me
GitHub: Trinea
Facebook: Dev Tools