Skip to content

Commit

Permalink
修复7.0以下安卓版本机器无法打包har的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
darkal committed Nov 15, 2018
1 parent 48449b3 commit 10aa448
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {
storeFile file('./darkal.jks')
storePassword '333333'
v1SigningEnabled true
v2SigningEnabled true
v2SigningEnabled false
}
}
dexOptions {
Expand All @@ -22,7 +22,7 @@ android {
defaultConfig {
applicationId "cn.darkal.networkdiagnosis"
minSdkVersion 14
targetSdkVersion 23
targetSdkVersion 22
versionCode 31
versionName "3.2.31"
// Enabling multidex support.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void setDomain(String domain) {
this.domain = domain;
}

@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.ssZ")
public Date getExpires() {
return expires;
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/net/lightbody/bmp/core/har/HarEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void setPageref(String pageref) {
this.pageref = pageref;
}

@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ssZ")
public Date getStartedDateTime() {
return startedDateTime;
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/net/lightbody/bmp/core/har/HarPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void setId(String id) {
this.id = id;
}

@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.ssZ")
public Date getStartedDateTime() {
return startedDateTime;
}
Expand Down

0 comments on commit 10aa448

Please sign in to comment.