1、升级support v4 系列到24.1.0

2、增加混淆配置,release默认启用
This commit is contained in:
CsHeng
2017-05-10 15:22:50 +08:00
parent bd2ce2e82d
commit 11c6f33392
22 changed files with 250 additions and 72 deletions

View File

@ -117,13 +117,13 @@ public class TimestampUtils {
long base = BASE;
for (String key : getIntervalMap().keySet()) {
if (Pattern.matches(key, url)) {
Utils.log("url add base = " + url);
// Utils.log("url add base = " + url);
base += getIntervalMap().get(key);
break;
}
}
long now = System.currentTimeMillis();
Utils.log("url now timestamp = " + now);
// Utils.log("url now timestamp = " + now);
return (long) (Math.ceil((now - base) / cd) * cd + base);
}
@ -146,11 +146,11 @@ public class TimestampUtils {
}
if (url.contains("?")) {
String u = url + "&timestamp=" + getTimestamp(url, cd);
Utils.log("url = " + u);
// Utils.log("url = " + u);
return u;
} else {
String u = url + "?timestamp=" + getTimestamp(url, cd);
Utils.log("url = " + u);
// Utils.log("url = " + u);
return u;
}
}