File tree Expand file tree Collapse file tree 5 files changed +14
-6
lines changed
library/src/main/java/com/qiniu/android Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 2828* 应广大用户需求,升级到 okhttp4
2929* 修复文件空指针异常
3030
31- # 7.4.5 (同v7.6.3code ,okhttp3.12.6)
31+ # 7.4.6 (同v7.6.4code ,okhttp3.12.6)
3232# 7.4.3(同v7.5.0code,okhttp3.12.6)
3333
3434# 7.4.2
Original file line number Diff line number Diff line change @@ -16,16 +16,16 @@ https://github.com/qiniudemo/qiniu-lab-android
1616| ------------ | -----------------| ------------------------|
1717| 7.6.x | Android 5.0+ | okhttp 4+ |
1818| 7.5.x | Android 5.0+ | okhttp 4+ |
19- | 7.4.5 | Android 4.0+ | okhttp 3.12.6 |
19+ | 7.4.6 | Android 4.0+ | okhttp 3.12.6 |
2020| 7.3.x | Android 2.3+ | okhttp 3.11.0 |
2121| 7.2.x | Android 2.3+ | okhttp 3+ |
2222| 7.1.x | Android 2.3+ | okhttp 2.6+ |
2323| 7.0.8,7.0.9 | Android 2.2+ | android-async-http 1.4.9 |
2424| 7.0.7 | Android 2.2+ | android-async-http 1.4.8 |
2525
2626### 注意
27- * 推荐使用最新版:7.6.3 ,7.6.3使用okhttp4.2.2
28- * 7.4.5是在7 .6.3版本上降低okhttp版本 ,其他功能不变,AndroidNetwork.getMobileDbm()可以获取手机信号强度,需要如下权限(API>=18时生效)
27+ * 推荐使用最新版:7.6.4 ,7.6.3使用okhttp4.2.2
28+ * 7.4.6是在7 .6.4版本上降低okhttp版本 ,其他功能不变,AndroidNetwork.getMobileDbm()可以获取手机信号强度,需要如下权限(API>=18时生效)
2929```
3030 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
3131 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ public static class ReqInfo {
3939 private long tid ;
4040 //在AutoZone或者dnsprefetch之后,根据host得到区域,如果自定义域名且本次没有dns预取,字段将为空
4141 private String target_region_id ;
42+ private String current_region_id ;
4243 private String error_type ;
4344 private String error_description ;
4445 private String up_type ;
@@ -312,6 +313,13 @@ public long getRequest_elapsed_time() {
312313 public void setPrefetched_ip_count (long prefetched_ip_count ) {
313314 this .prefetched_ip_count = prefetched_ip_count ;
314315 }
316+ public void setCurrent_region_id (String current_region_id ) {
317+ this .current_region_id = current_region_id ;
318+ }
319+
320+ public String getCurrent_region_id () {
321+ return current_region_id ;
322+ }
315323 }
316324
317325 public static class BlockInfo {
Original file line number Diff line number Diff line change 22
33
44public final class Constants {
5- public static final String VERSION = "7.6.3 " ;
5+ public static final String VERSION = "7.6.4 " ;
66
77 public static final String UTF_8 = "utf-8" ;
88}
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ public static byte[] toByteArray(Object obj) {
161161 } finally {
162162 bos .close ();
163163 }
164- } catch (IOException ex ) {
164+ } catch (Exception ex ) {
165165 ex .printStackTrace ();
166166 }
167167 return bytes ;
You can’t perform that action at this time.
0 commit comments