Skip to content

Commit 97461ff

Browse files
committed
chore(agentweb): publish new version 4.1.1
1 parent a86624c commit 97461ff

File tree

8 files changed

+1267
-1326
lines changed

8 files changed

+1267
-1326
lines changed

README-ENGLISH.md

Lines changed: 4 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,12 @@ AgentWeb Sample shows AgentWeb library powerful features, detailed link, please
1818

1919

2020
* Gradle
21-
21+
2222
```
23-
api 'com.just.agentweb:agentweb:4.0.3-beta' // (Required)
24-
api 'com.just.agentweb:filechooser:4.0.3-beta'// (optional)
25-
api 'com.just.agentweb:download:4.0.3-beta' // (optional)
26-
api 'com.github.Justson:Downloader:v4.0.3'// (optional)
23+
api 'com.just.agentweb:agentweb:4.1.1' // (Required)
24+
api 'com.just.agentweb:filechooser:4.1.1'// (optional)
25+
api 'com.github.Justson:Downloader:v4.1.1'// (optional)
2726
```
28-
* Maven
29-
30-
```
31-
<dependency>
32-
<groupId>com.just.agentweb</groupId>
33-
<artifactId>agentweb</artifactId>
34-
<version>4.0.2</version>
35-
<type>pom</type>
36-
</dependency>
37-
38-
```
39-
4027

4128

4229
## use
@@ -117,15 +104,6 @@ Window.android.callAndroid () / / call the Java layer AndroidInterface class cal
117104
    }
118105
```
119106

120-
* #### <del>File upload processing</del>
121-
```java
122-
    @Override
123-
    Protected void onActivityResult (int requestCode, int resultCode, Intent data) {
124-
        MAgentWeb.uploadFileResult (requestCode, resultCode, data);
125-
        Super.onActivityResult (requestCode, resultCode, data);
126-
 }
127-
```
128-
129107
* #### full screen video playback
130108
```
131109
<! - If your application needs to use the video, then please use the AgentWeb Activity corresponding to the list file to add the following configuration ->
@@ -243,38 +221,6 @@ Java injection class do not proguard, such as sample inside the AndroidInterface
243221
-keepclassmembers class com.just.library.agentweb.AndroidInterface {*;}
244222
```
245223

246-
## update log
247-
* v_3.0.0 update
248-
* Add MiddlewareWebChromeBase middleware, support multiple WebChromeClient.
249-
* Add `MiddleWareWebClientBase` middleware, support multiple` WebViewClient`.
250-
* Added the default onResult page, and supports custom onResult page.
251-
* Join `AgentWebUIController`, unified control UI.
252-
* Support for blocking unknown pages.
253-
* Support to tune other applications.
254-
* v_2.0.1 update
255-
* Support for parallel download, repair # 114 # 109.
256-
* v_2.0.0 update
257-
* Join dynamic rights.
258-
* Take pictures.
259-
* v_1.2.6 update
260-
* Fixed Android 4.4 following layout disordered.
261-
* v_1.2.5 Prompt message support configuration.
262-
* Prompt message support configuration.
263-
* v_1.2.4 update
264-
* Support incoming IWebLayout, support pull-down rebound, pull-down refresh effect.
265-
* v_1.2.3 update
266-
* Added download onResult callback.
267-
* v_1.2.2 update
268-
* Fixed known bug.
269-
* v_1.2.1 update
270-
* Support tune Alipay, WeChat payment.
271-
* v_1.2.0 update
272-
* Full support for full screen video.
273-
* v_1.1.2 update
274-
* Improve the function .
275-
276-
277-
278224
## Thank you
279225

280226
* [SafeWebView](https://github.com/seven456/SafeWebView)

README.md

Lines changed: 5 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ AgentWeb 是一个基于的 Android WebView ,极度容易使用以及功能强
1717
* Gradle
1818

1919
```
20-
api 'com.just.agentweb:agentweb:4.0.3-beta' // (必选)
21-
api 'com.just.agentweb:filechooser:4.0.3-beta'// (可选)
22-
api 'com.just.agentweb:download:4.0.3-beta' // (可选)
23-
api 'com.github.Justson:Downloader:v4.0.3'// (可选)
20+
api 'com.just.agentweb:agentweb:4.1.1' // (必选)
21+
api 'com.just.agentweb:filechooser:4.1.1'// (可选)
22+
api 'com.github.Justson:Downloader:v4.1.1'// (可选)
2423
```
2524

2625
## 相关
@@ -155,61 +154,6 @@ if (!mAgentWeb.back()){
155154
mAgentWeb.getWebCreator().getWebView();
156155
```
157156

158-
* ### 文件下载监听
159-
```java
160-
protected DownloadListenerAdapter mDownloadListenerAdapter = new DownloadListenerAdapter() {
161-
162-
163-
@Override
164-
public boolean onStart(String url, String userAgent, String contentDisposition, String mimetype, long contentLength, AgentWebDownloader.Extra extra) {
165-
extra.setOpenBreakPointDownload(true)
166-
.setIcon(R.drawable.ic_file_download_black_24dp)
167-
.setConnectTimeOut(6000)
168-
.setBlockMaxTime(2000)
169-
.setDownloadTimeOut(60L * 5L * 1000L)
170-
.setAutoOpen(true)
171-
.setForceDownload(false);
172-
return false;
173-
}
174-
175-
176-
@Override
177-
public void onBindService(String url, DownloadingService downloadingService) {
178-
super.onBindService(url, downloadingService);
179-
mDownloadingService = downloadingService;
180-
LogUtils.i(TAG, "onBindService:" + url + " DownloadingService:" + downloadingService);
181-
}
182-
183-
184-
@Override
185-
public void onUnbindService(String url, DownloadingService downloadingService) {
186-
super.onUnbindService(url, downloadingService);
187-
mDownloadingService = null;
188-
LogUtils.i(TAG, "onUnbindService:" + url);
189-
}
190-
191-
192-
@Override
193-
public void onProgress(String url, long loaded, long length, long usedTime) {
194-
int mProgress = (int) ((loaded) / Float.valueOf(length) * 100);
195-
LogUtils.i(TAG, "onProgress:" + mProgress);
196-
super.onProgress(url, loaded, length, usedTime);
197-
}
198-
199-
200-
@Override
201-
public boolean onResult(String path, String url, Throwable throwable) {
202-
if (null == throwable) {
203-
//do you work
204-
} else {
205-
206-
}
207-
return false;
208-
}
209-
};
210-
```
211-
212-
213157
* #### 查看 Cookies
214158
```java
215159
String cookies=AgentWebConfig.getCookiesByUrl(targetUrl);
@@ -327,60 +271,7 @@ Java 注入类不要混淆 , 例如 sample 里面的 AndroidInterface 类 ,
327271
* [Wiki](https://github.com/Justson/AgentWeb/wiki)(不全)
328272
* `Sample`(推荐,详细)
329273

330-
## 更新日志
331-
332-
* v_4.0.3 更新
333-
* 部分手机下载过程中~声音一直响 [#523](https://github.com/Justson/AgentWeb/issues/523)
334-
* 抽离[Downloader](https://github.com/Justson/Downloader)
335-
* 放弃反射回调WebViewClient#methods,使用洋葱模型的Middleware代替
336-
337-
* v_4.0.2 更新
338-
* 修复断点续传时进度计算错误
339-
* 修复无法通过`Extra`关闭进度通知
340-
341-
* v_4.0.0 更新
342-
* `AgentWeb` 拆分出 `AgentWeb-Download` 、 `AgentWeb-FileChooser` 、`AgentWeb-core` 三个库,用户可以按需选择
343-
* 重新设计了 `AgentWeb-Download`
344-
* 删除了 `DownloadListener` 、`DefaultMsgConfig` 以及相关API
345-
* 旧废弃的API,4.0.0 直接删除,不在提供兼容
346-
* 部分类和API重命名
347-
* `Fragment`和`Activity`构建一致。[#227](https://github.com/Justson/AgentWeb/issues/227)
348-
* 从AgentWeb-core删除 `BaseAgentWebFragment`和`BaseAgentWebActivity` ,于Sample形式提供参考
349-
* v_3.1.0 更新
350-
* `WebProgress` 进度条动画更细腻
351-
* 修复部分机型拍照文件大小为0情况
352-
* 更新了`FileUpLoadChooserImpl`
353-
* v_3.0.0 更新
354-
* 加入 `MiddlewareWebChromeBase` 中间件 ,支持多个 `WebChromeClient`
355-
* 加入 `MiddlewareWebClientBase`中间件 , 支持多个 `WebViewClient`
356-
* 加入了默认的错误页,并支持自定义错误页
357-
* 加入 `AgentWebUIController` ,统一控制UI
358-
* 支持拦截未知的页面
359-
* 支持调起其他应用
360-
* v_2.0.1 更新
361-
* 支持并行下载 , 修复 #114 #109
362-
* v_2.0.0 更新
363-
* 加入动态权限
364-
* 拍照
365-
* v_1.2.6 更新
366-
* 修复Android 4.4以下布局错乱
367-
* v_1.2.5 提示信息支持配置
368-
* 提示信息支持配置
369-
* v_1.2.4 更新
370-
* 支持传入 IWebLayout ,支持下拉回弹,下拉刷新效果
371-
* v_1.2.3 更新
372-
* 新增下载结果回调
373-
* v_1.2.2 更新
374-
* 修复已知 Bug
375-
* v_1.2.1 更新
376-
* 支持调起支付宝 , 微信支付
377-
* v_1.2.0 更新
378-
* 全面支持全屏视频
379-
* v_1.1.2 更新
380-
* 完善功能
381-
382-
383-
274+
#### [更新日志](./releasenote.md)
384275

385276
## 致谢
386277
* [SafeWebView](https://github.com/seven456/SafeWebView)
@@ -394,7 +285,7 @@ Java 注入类不要混淆 , 例如 sample 里面的 AndroidInterface 类 ,
394285

395286

396287
## 关于我
397-
一个位于深圳的 Android 开发者 , 如果你有问题 ,或者工作机会, 请联系 Email : [email protected]
288+
一个位于深圳的 Android 开发者 , 如果你有问题 , 请联系 Email : [email protected]
398289

399290
## 赞赏
400291
如果你喜欢了 `AgentWeb` 的设计 , 你也可以请作者喝一杯咖啡。

agentweb-core/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ publish {
4747
userOrg = 'just'
4848
groupId = 'com.just.agentweb'
4949
artifactId = 'agentweb'
50-
publishVersion = '4.0.3-beta'
50+
publishVersion = '4.1.1'
5151
desc = 'very easy to build you web page'
5252
website = "https://github.com/Justson/AgentWeb"
5353

agentweb-filechooser/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ publish {
4242
userOrg = 'just'
4343
groupId = 'com.just.agentweb'
4444
artifactId = 'filechooser'
45-
publishVersion = '4.0.3-beta'
45+
publishVersion = '4.1.1'
4646
desc = 'very easy to build you web page'
4747
website = "https://github.com/Justson/AgentWeb"
4848

releasenote.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
* v_4.1.1 更新
2+
* [#587](https://github.com/Justson/AgentWeb/pull/587) input 支持视屏拍摄
3+
* [#614](https://github.com/Justson/AgentWeb/pull/614)修复上传文件选择的兼容性bug
4+
* 重构了Download
5+
* 最小SDK提升到了 14
6+
7+
* v_4.0.3 更新
8+
* 部分手机下载过程中~声音一直响 [#523](https://github.com/Justson/AgentWeb/issues/523)
9+
* 抽离[Downloader](https://github.com/Justson/Downloader)
10+
* 放弃反射回调WebViewClient#methods,使用洋葱模型的Middleware代替
11+
12+
* v_4.0.2 更新
13+
* 修复断点续传时进度计算错误
14+
* 修复无法通过`Extra`关闭进度通知
15+
16+
* v_4.0.0 更新
17+
* `AgentWeb` 拆分出 `AgentWeb-Download` 、 `AgentWeb-FileChooser` 、`AgentWeb-core` 三个库,用户可以按需选择
18+
* 重新设计了 `AgentWeb-Download`
19+
* 删除了 `DownloadListener` 、`DefaultMsgConfig` 以及相关API
20+
* 旧废弃的API,4.0.0 直接删除,不在提供兼容
21+
* 部分类和API重命名
22+
* `Fragment`和`Activity`构建一致。[#227](https://github.com/Justson/AgentWeb/issues/227)
23+
* 从AgentWeb-core删除 `BaseAgentWebFragment`和`BaseAgentWebActivity` ,于Sample形式提供参考
24+
* v_3.1.0 更新
25+
* `WebProgress` 进度条动画更细腻
26+
* 修复部分机型拍照文件大小为0情况
27+
* 更新了`FileUpLoadChooserImpl`
28+
* v_3.0.0 更新
29+
* 加入 `MiddlewareWebChromeBase` 中间件 ,支持多个 `WebChromeClient`
30+
* 加入 `MiddlewareWebClientBase`中间件 , 支持多个 `WebViewClient`
31+
* 加入了默认的错误页,并支持自定义错误页
32+
* 加入 `AgentWebUIController` ,统一控制UI
33+
* 支持拦截未知的页面
34+
* 支持调起其他应用
35+
* v_2.0.1 更新
36+
* 支持并行下载 , 修复 #114 #109
37+
* v_2.0.0 更新
38+
* 加入动态权限
39+
* 拍照
40+
* v_1.2.6 更新
41+
* 修复Android 4.4以下布局错乱
42+
* v_1.2.5 提示信息支持配置
43+
* 提示信息支持配置
44+
* v_1.2.4 更新
45+
* 支持传入 IWebLayout ,支持下拉回弹,下拉刷新效果
46+
* v_1.2.3 更新
47+
* 新增下载结果回调
48+
* v_1.2.2 更新
49+
* 修复已知 Bug
50+
* v_1.2.1 更新
51+
* 支持调起支付宝 , 微信支付
52+
* v_1.2.0 更新
53+
* 全面支持全屏视频
54+
* v_1.1.2 更新
55+
* 完善功能
56+

sample/build.gradle

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,13 @@ dependencies {
5959
})
6060
compile "com.android.support:appcompat-v7:${SUPPORT_LIB_VERSION}"
6161
compile "com.android.support:design:${SUPPORT_LIB_VERSION}"
62-
implementation 'com.github.Justson:Downloader:v4.0.3'
62+
implementation 'com.github.Justson:Downloader:v4.1.1'
6363
// compile "com.android.support:support-v4:${SUPPORT_LIB_VERSION}"
6464
testCompile 'junit:junit:4.12'
65-
compile project(':agentweb-core')
66-
// compile project(':agentweb-download')
67-
compile project(':agentweb-filechooser')
68-
// api 'com.just.agentweb:agentweb:4.0.3-beta'
69-
// api 'com.just.agentweb:filechooser:4.0.3-beta'
70-
// api 'com.just.agentweb:download:4.0.3-beta'
65+
// compile project(':agentweb-core')
66+
// compile project(':agentweb-filechooser')
67+
api 'com.just.agentweb:agentweb:4.1.1'
68+
api 'com.just.agentweb:filechooser:4.1.1'
7169
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.1'
7270
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
7371
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'

0 commit comments

Comments
 (0)