项目地址
GitCode - 开发者的代码家园
项目简介
AgentWeb 是一个基于的 Android WebView ,极度容易使用以及功能强大的库,提供了 Android WebView 一系列的问题解决方案 ,并且轻量和极度灵活,详细使用请参照上面的 Sample 。
Gradle 引入
allprojects {repositories {mavenCentral()maven { url 'https://jitpack.io' }}
}
- Androidx
implementation 'io.github.justson:agentweb-core:v5.1.1-androidx' implementation 'io.github.justson:agentweb-filechooser:v5.1.1-androidx' // (可选)implementation 'com.github.Justson:Downloader:v5.0.4-androidx' // (可选)
相关
- flying-pigeon跨进程IPC组件
- AgentWebX5
- WebView 进度条
- Downloader 一个轻量的文件下载器
注意事项
- 支付宝使用需要引入支付宝SDK ,并在项目中依赖 , 微信支付不需要做任何操作。
- AgentWeb 内部使用了 AlertDialog 需要依赖 AppCompat 主题 。
- setAgentWebParent 不支持 ConstraintLayout 。
- mAgentWeb.getWebLifeCycle().onPause();会暂停应用内所有WebView 。
- minSdkVersion 低于等于16以下自定义WebView请注意与 JS 之间通信安全。
文档帮助
- Wiki(不全)
- Sample(推荐,详细)
- 更新日志