Skip to content

2.1.5-rx2

Choose a tag to compare

@JessYanCodingJessYanCoding released this 23 Jul 12:08
  1. 改善 AppDelegate 结构,使 AppDelegate.Lifecycle 改名为 AppLifecycles
  2. 增加 AppLifecycles#attachBaseContext(Context) 方法,可以做一些 MultiDex 的初始化和插件化框架等框架的初始化,在 ConfigModule#injectAppLifecycle(Context, List) 中使用
  3. 增加 项目启动后仍可以改变 RetrofitBaseUrl 的功能,详情请查看 DemoGlobalConfiguration
  4. 增加 RequestInterceptor 可控制日志打印等级的功能,可使用 GlobalConfigModule.Builder#printHttpLogLevel(RequestInterceptor.Level) 控制框架 Http 信息打印的级别
  5. 增加 RepositoryManager#clearAllCache() 方法,可清理 RxCache 中的所有缓存
  6. 修复 Demo 中出现 Fragment 内存泄漏的问题
  7. 优化当使用者在 XML 中使用 标签,静态生成 Fragment 时出现的兼容问题
  8. 优化 proguard-rules.pro
  9. 优化 GlobalConfiguration 中 配置 ToolBar 的模块,为了提高 Fragment 的兼容性,将逻辑从 onActivityCreated 移动到 onActivityStarted
  10. 优化 Demo 中配置 Timber 部分,使使用者可以将 MVPArms 的日志打印框架随意切换到 Logger 或其他日志打印框架
  11. 优化 RequestInterceptor ,使框架 Http 日志打印,可解析 XML 格式的结果
  12. 优化 AppManager#getCurrentActivity() 方法,降低值为 null 的概率
  13. 提升 框架所使用的部分三方库的版本
  14. 提升 Support-Libraryv25.4.0 ,注意需要在根目录的 build.gradle 中加入:
 allprojects {
     repositories {
         jcenter()
         maven { url "https://maven.google.com" }
     }
 }