{"id":17210684,"url":"https://github.com/justson/agentwebx5","last_synced_at":"2025-04-06T22:11:13.560Z","repository":{"id":86015179,"uuid":"96015781","full_name":"Justson/AgentWebX5","owner":"Justson","description":"AgentWebX5 是基于腾讯X5 的一个Web库","archived":false,"fork":false,"pushed_at":"2018-05-05T15:25:42.000Z","size":1517,"stargazers_count":436,"open_issues_count":15,"forks_count":88,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-30T21:08:59.387Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Justson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-02T10:17:51.000Z","updated_at":"2025-02-11T15:46:36.000Z","dependencies_parsed_at":"2023-03-10T10:30:53.397Z","dependency_job_id":null,"html_url":"https://github.com/Justson/AgentWebX5","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justson%2FAgentWebX5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justson%2FAgentWebX5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justson%2FAgentWebX5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Justson%2FAgentWebX5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Justson","download_url":"https://codeload.github.com/Justson/AgentWebX5/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557767,"owners_count":20958047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T02:55:01.859Z","updated_at":"2025-04-06T22:11:13.542Z","avatar_url":"https://github.com/Justson.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n## AgentWebX5 介绍（该库不再维护）\n\n基于腾讯X5内核版的 [AgentWeb](https://github.com/Justson/AgentWeb) ，简单易用 ， 带有进度条 、 支持文件上传 、 下载 、 简化 Javascript 通信 、 链式调用  、性能更优 。更多使用请参照上面的 sample 。 \n\n## AgentWebX5 功能\n1. 支持进度条以及自定义进度条\n2. 支持文件下载\n3. 支持文件下载断点续传\n4. 支持下载通知形式提示进度\n5. 简化 Javascript 通信 \n6. 支持 Android 4.4 Kitkat 以及其他版本文件上传\n7. 支持注入 Cookies\n8. 支持全屏播放视频\n9. 支持调起微信支付\n10. 支持调起支付宝\n11. 默认支持定位\n12. 支持传入IWebLayout(下拉回弹效果)\n\n## 引入\n\n* Gradle \n   \n   ```\n   compile 'com.just.agentwebX5:agentwebX5:2.0.0'\n   ```\n* Maven\n\t\n\t```\n\t\u003cdependency\u003e\n \t  \u003cgroupId\u003ecom.just.agentwebX5\u003c/groupId\u003e\n \t  \u003cartifactId\u003eagentwebX5\u003c/artifactId\u003e\n\t  \u003cversion\u003e2.0.0\u003c/version\u003e\n\t  \u003ctype\u003epom\u003c/type\u003e\n\t\u003c/dependency\u003e\n\t```\n\n## Android WebView\n如果你更喜欢Android WebView ，请切换到这个仓库\n[AgentWeb](https://github.com/Justson/AgentWeb)\n\n## 使用\n\n1. 下载腾讯X5内核最新 [SDK](https://x5.tencent.com/tbs/) 导入项目中并依赖。\n2. 引入 `AgentWebX5`\n3. 需要全局初始化X5内核 `QbSdk.initX5Environment(getApplicationContext(),  cb);`\n\n## 注意事项 \n1. AgentWebX5 内部并没有直接依赖X5库 ，需要用户到[腾讯X5官网](https://x5.tencent.com/tbs/)下载 ， 并在项目中依赖该库 。\n2. 由于使用的是 X5 内核，不是 Google 官方控件， 所以很多第三方开源组件不支持 。\n3. 支付宝需要引入[支付宝SDK](https://open.alipay.com/platform/home.htm)项目中依赖上支付宝SDK即可 ,微信支付不需要做任何操作。\n4. 注意权限 。\n5. 注意腾讯X5库官方升级并替换成最新的库。 \n6. [onJsAlert 阻塞 ](https://github.com/Justson/AgentWebX5/issues/21)\n\n## 问答\n\n### AgentWeb 和 AgentWebX5 有什么区别吗？\nAgentWebX5 和 AgentWeb 区别在于 AgentWeb 依赖于系统 WebView ，而 AgentWebX5 依赖是腾讯X5内核 ， AgentWebX5 是把 AgentWeb 内部 Android系统提供的WebView 替换成了X5库WebView 。\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustson%2Fagentwebx5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustson%2Fagentwebx5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustson%2Fagentwebx5/lists"}