Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 1.78 KB

todo.md

File metadata and controls

48 lines (29 loc) · 1.78 KB

项目in progress

  • 查询 API
  • GoogleSample 1: ToDo (MVP& Kotlin& Dagger)
  • GoogleSample 2: GithubBrowser (项目分析学习)

组件

  • dagger
  • retrofit
  • kotlin-android-extensions(or DataBindingUtil)
  • mockito or espresso地址

Retrofit:

  1. 创建本App的Service接口, 包含同一个域名下所有需要组合的的函数方法功能实现
  2. [不必需]可以将Service接口中的方法分开成不同对象, 分别组建相关联的Repository对象存储库(用来处理某一分类对象); 如有本地化的需要, 在此处可以构建二级缓存模式提供仓库的资源数据(GoogleSamples的GithubBrowserSample采用了LiveData与Retrofit框架处理本地化和远程资源)
  3. Retrofit.Builder().build().create(xx)构建出Service的实现类的实例(GoogleSample编写了GithubServiceTest类测试,是一个完整的逻辑)

注: