Skip to content

Commit

Permalink
Fix nullable qualifier, and build
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Baverstock committed Jul 18, 2019
1 parent b2542c9 commit 965007a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ Read more about the App Bundle format and Bundletool's usage at
Documentation of bundletool commands can be found at:
https://developer.android.com/studio/command-line/bundletool

## Build

Build with: ./gradlew executableJar

## Releases

Latest release: [0.10.1](https://github.com/google/bundletool/releases)
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,13 @@ public static Version of(String version) {
.build();
}

String nullableQualifier = matcher.group("qualifier");
return Version.builder()
.setFullVersion(version)
.setMajorVersion(Integer.parseInt(matcher.group("major")))
.setMinorVersion(Integer.parseInt(matcher.group("minor")))
.setRevisionVersion(Integer.parseInt(matcher.group("revision")))
.setQualifier(matcher.group("qualifier"))
.setQualifier(nullableQualifier != null ? nullableQualifier : "")
.build();
}

Expand Down

0 comments on commit 965007a

Please sign in to comment.