MCPcopy Index your code
hub / github.com/Justson/AgentWeb

github.com/Justson/AgentWeb @v5.1.1-androidx

repository ↗ · DeepWiki ↗ · release v5.1.1-androidx ↗ · + Follow
1,306 symbols 3,391 edges 132 files 191 documented · 15%
README
  <img src="https://github.com/Justson/AgentWeb/raw/v5.1.1-androidx/img/logo.png"></img>

AgentWeb 介绍

AgentWeb 是一个基于的 Android WebView ,极度容易使用以及功能强大的库,提供了 Android WebView 一系列的问题解决方案 ,并且轻量和极度灵活,详细使用请参照上面的 Sample 。

Gradle 引入

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
  • Androidx

```groovy implementation 'com.github.Justson.AgentWeb:agentweb-core:v5.0.6-androidx' // (必选) implementation 'com.github.Justson.AgentWeb:agentweb-filechooser:v5.0.6-androidx' // (可选) implementation 'com.github.Justson:Downloader:v5.0.4-androidx'

```

相关

注意事项

  • 支付宝使用需要引入支付宝SDK ,并在项目中依赖 , 微信支付不需要做任何操作。
  • AgentWeb 内部使用了 AlertDialog 需要依赖 AppCompat 主题 。
  • setAgentWebParent 不支持 ConstraintLayout
  • mAgentWeb.getWebLifeCycle().onPause();会暂停应用内所有WebView
  • minSdkVersion 低于等于16以下自定义WebView请注意与 JS 之间通信安全。

文档帮助

有问题或者有更好的建议

赞赏

开源不易,你的支持是我更新的动力。

License

License

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.

Extension points exported contracts — how you extend this code

WebLifeCycle (Interface)
@author cenxiaozhong @date 2017/5/30 @since 1.0.0 [5 implementers]
agentweb-core/src/main/java/com/just/agentweb/WebLifeCycle.java
FragmentKeyDown (Interface)
Created by cenxiaozhong source code https://github.com/Justson/AgentWeb [2 implementers]
sample/src/main/java/com/just/agentweb/sample/base/FragmentKeyDown.java
FileCompressEngine (Interface)
(no doc) [1 implementers]
agentweb-filechooser/src/main/java/com/just/agentweb/filechooser/FileCompressor.java
BaseIndicatorSpec (Interface)
@author cenxiaozhong @since 1.0.0 [4 implementers]
agentweb-core/src/main/java/com/just/agentweb/BaseIndicatorSpec.java
Api (Interface)
@author xiaozhongcen @date 20-8-18 @since 1.0.0 [1 implementers]
sample/src/main/java/com/just/agentweb/sample/api/Api.java
IWebLayout (Interface)
@author cenxiaozhong @date 2017/7/1 @update 4.0.0 @since 1.0.0 [4 implementers]
agentweb-core/src/main/java/com/just/agentweb/IWebLayout.java
FragmentKeyDown (Interface)
Created by cenxiaozhong on 2017/5/23. source code https://github.com/Justson/AgentWeb [1 implementers]
sample/src/main/java/com/just/agentweb/sample/common/FragmentKeyDown.java
LayoutParamsOffer (Interface)
@author cenxiaozhong @date 2017/5/12 @since 1.0.0 [4 implementers]
agentweb-core/src/main/java/com/just/agentweb/LayoutParamsOffer.java

Core symbols most depended-on inside this repo

get
called by 124
agentweb-core/src/main/java/com/just/agentweb/AgentWeb.java
i
called by 86
agentweb-core/src/main/java/com/just/agentweb/LogUtils.java
call
called by 69
agentweb-core/src/main/java/com/just/agentweb/JsCallJava.java
isDebug
called by 46
agentweb-core/src/main/java/com/just/agentweb/LogUtils.java
apply
called by 31
agentweb-core/src/main/java/com/just/agentweb/JsCallback.java
getWebView
called by 30
agentweb-core/src/main/java/com/just/agentweb/WebCreator.java
e
called by 30
agentweb-core/src/main/java/com/just/agentweb/LogUtils.java
show
called by 27
agentweb-core/src/main/java/com/just/agentweb/BaseIndicatorSpec.java

Shape

Method 1,053
Class 136
Function 88
Interface 27
Enum 2

Languages

Java93%
TypeScript7%

Modules by API surface

sample/src/main/assets/jquery/jquery-3.2.1.min.js86 symbols
agentweb-core/src/main/java/com/just/agentweb/AgentWeb.java68 symbols
agentweb-filechooser/src/main/java/com/just/agentweb/filechooser/FileChooser.java56 symbols
agentweb-core/src/main/java/com/just/agentweb/AgentWebUtils.java54 symbols
sample/src/main/java/com/just/agentweb/sample/fragment/AgentWebFragment.java44 symbols
agentweb-core/src/main/java/com/just/agentweb/AgentWebView.java42 symbols
agentweb-core/src/main/java/com/just/agentweb/DefaultWebClient.java38 symbols
sample/src/main/java/com/just/agentweb/sample/base/BaseAgentWebActivity.java30 symbols
agentweb-core/src/main/java/com/just/agentweb/WebChromeClientDelegate.java30 symbols
sample/src/main/java/com/just/agentweb/sample/activity/NativeDownloadActivity.java29 symbols
sample/src/main/java/com/just/agentweb/sample/base/BaseAgentWebFragment.java25 symbols
agentweb-core/src/main/java/com/just/agentweb/DefaultUIController.java24 symbols

For agents

$ claude mcp add AgentWeb \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact