Skip to content

Commit

Permalink
Merge branch 'release/1.3.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
G00fY2 committed Oct 12, 2020
2 parents 91d17a1 + 5e71394 commit 44afa6f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ Pure Java (java.util), no dependencies, very small method count.
**Gradle:**
```
dependencies {
implementation 'com.g00fy2:versioncompare:1.3.5'
implementation 'com.g00fy2:versioncompare:1.3.6'
}
```
**Maven:**
```
<dependency>
<groupId>com.g00fy2</groupId>
<artifactId>versioncompare</artifactId>
<version>1.3.5</version>
<version>1.3.6</version>
</dependency>
```

Expand Down Expand Up @@ -89,7 +89,7 @@ suffix compare logic ||
## Sample App
![Image](https://raw.githubusercontent.com/G00fY2/version-compare/gh-pages/images/version_compare_sampleapp_framed.png)

**Try out the sample app to compare your version inputs: [Download APK](https://github.com/G00fY2/version-compare/releases/download/1.3.5/version-compare-1.3.5-sample.apk)**
**Try out the sample app to compare your version inputs: [Download APK](https://github.com/G00fY2/version-compare/releases/download/1.3.6/version-compare-1.3.6-sample.apk)**

## License
Copyright (C) 2018 Thomas Wirth
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.2'
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'
}
}
Expand Down
2 changes: 1 addition & 1 deletion versioncompare/deploy.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ext {
issueUrl = 'https://github.com/G00fY2/version-compare/issues'
gitUrl = 'https://github.com/G00fY2/version-compare.git'

libraryVersion = '1.3.5'
libraryVersion = '1.3.6'

developerId = 'g00fy2'
developerName = 'Thomas Wirth'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ private void initVersion() {
}
}
subversionNumbersWithoutTrailingZeros.addAll(subversionNumbers);
while (subversionNumbersWithoutTrailingZeros.lastIndexOf(0) >= 0) {
while (!subversionNumbersWithoutTrailingZeros.isEmpty() &&
subversionNumbersWithoutTrailingZeros.lastIndexOf(0) == subversionNumbersWithoutTrailingZeros.size() -1) {
subversionNumbersWithoutTrailingZeros.remove(subversionNumbersWithoutTrailingZeros.lastIndexOf(0));
}
if (suffixSb != null) suffix = suffixSb.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

@Parameters public static Collection<Object[]> data() {
return Arrays.asList(new Object[][] {
{ "1.1.1", "0.0.0" },
{ "1.1.1", "1.0.2" },
{ "1.2.3", "1.2.2" },
{ "12.4.567.3", "12.4.566.3" },
{ "12.4-beta", "12.4-alpha" },
Expand Down

0 comments on commit 44afa6f

Please sign in to comment.