下载项目导入 Android Studio ,展开如下:
core
simple
项目分为 core、simple,core 提供了核心的功能,simple 是作为使用者需要实现的自定义功能,代码不多。
1、Core
cache:缓存,读写等功能;
network:网络操作,下载、接口访问等,Container API;
route:路由协议,入口;
utils:工具类;
io:io 操作类,很重要;
view:对 WebView 封装,各种拦截等功能都在这里;
2、Simple
Demo 项目,程序入口;
widget:主要实现 RexxarWidget 相关功能;
ContainerAPI :自定义 Api;
assets:本地的路由文件,默认预装使用;
3、依赖
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.squareup.okhttp3:okhttp:3.2.0'
compile 'com.jakewharton:disklrucache:2.0.2'
compile 'com.mcxiaoke.next:task:1.2.+'
compile 'com.google.code.gson:gson:2.3.1'
compile 'de.greenrobot:eventbus:2.4.1'
compile 'com.jakewharton:butterknife:6.1.0'
依赖了以上库,不算多,都是一些常用的库,也没有 gradle 相关操作,本文就不多介绍这部分了。
Rexxar Android 系列学习其他文章
Rexxar Android 系列学习(1) 项目结构
Rexxar Android 系列学习(2) 路由协议
Rexxar Android 系列学习(3) Native 和 web 交互
Rexxar Android 系列学习(4) 错误处理
Rexxar Android 系列学习(5) 过滤拦截
Rexxar Android 系列学习(6) 缓存机制









网友评论