AgentWeb 是一个基于的 Android WebView ,极度容易使用以及功能强大的库,提供了 Android WebView 一系列的问题解决方案 ,并且轻量和极度灵活,详细使用请参照上面的 Sample 。
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' // (可选)
AlertDialog
需要依赖 AppCompat
主题 。 setAgentWebParent
不支持 ConstraintLayout
。mAgentWeb.getWebLifeCycle().onPause();
会暂停应用内所有WebView
。minSdkVersion
低于等于16以下自定义WebView
请注意与 JS
之间通信安全。开源不易,你的支持是我更新的动力。
Copyright (C) Justson(https://github.com/Justson/AgentWeb)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.