Skip to content

Commit d15674e

Browse files
committed
Fix json version parsing
1 parent 0d10e81 commit d15674e

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 2.0.1 (2019-12-11)
4+
5+
### Bug fixes
6+
7+
- Fix json version parsing
8+
39
## 2.0.0 (2019-12-09)
410

511
### Breaking changes

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99
}
1010

1111
group = "com.github.AzurApi"
12-
version = "2.0.0"
12+
version = "2.0.1"
1313

1414
java {
1515
sourceCompatibility = JavaVersion.VERSION_1_8

src/main/kotlin/com/github/azurapi/azurapikotlin/api/AtagoInfo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ package com.github.azurapi.azurapikotlin.api
44
* API info
55
*/
66
object AtagoInfo {
7-
const val VERSION = "2.0.0"
7+
const val VERSION = "2.0.1"
88
}

src/main/kotlin/com/github/azurapi/azurapikotlin/json/Takao.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Takao {
7171
*/
7272
private fun getRemoteDatabaseVersion(): Pair<Int, Date> {
7373
try {
74-
jsonVersion = loadJSON(TakaoInfo.JSON_VERSION)
74+
jsonVersion = loadJSON(TakaoInfo.JSON_VERSION).getJSONObject("ships")
7575
return Pair(jsonVersion.getInt("version-number"), Date(jsonVersion.getLong("last-data-refresh-date")))
7676
} catch (e: Exception) {
7777
throw DatabaseException("Could not retrieve database version: (${e.message})")

0 commit comments

Comments
 (0)