学习进度条66

qmui

1. 引入库

最新的库会上传到 JCenter 仓库上,请确保配置了 JCenter 仓库源,然后直接引用:

 

def qmui_arch_version = '2.0.0-alpha10'

implementation "com.qmuiteam:arch:$qmui_arch_version"

kapt "com.qmuiteam:arch-compiler:$qmui_arch_version" // use annotationProcessor if java

2. 在 Application 里初始化

override fun onCreate() {

super.onCreate()

    QMUISwipeBackActivityManager.init(this)

}

然后就可以使用 arch 库提供的 QMUIFragment、QMUIFragmentActivity、QMUIActivity 来作为基础类构建自己的界面了。

 

3. proguard

-keep class **_FragmentFinder { *; }

-keep class androidx.fragment.app.* { *; }

 

-keep class com.qmuiteam.qmui.arch.record.RecordIdClassMap { *; }

-keep class com.qmuiteam.qmui.arch.record.RecordIdClassMapImpl { *; }

 

-keep class com.qmuiteam.qmui.arch.scheme.SchemeMap {*;}

-keep class com.qmuiteam.qmui.arch.scheme.SchemeMapImpl {*;}

 

posted @ 2021-05-08 12:32  独倚高楼凭栏醉  阅读(45)  评论(0编辑  收藏  举报