File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
src/main/kotlin/com/github/azurapi/azurapikotlin Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ plugins {
99}
1010
1111group = " com.github.AzurApi"
12- version = " 2.0.0 "
12+ version = " 2.0.1 "
1313
1414java {
1515 sourceCompatibility = JavaVersion .VERSION_1_8
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ package com.github.azurapi.azurapikotlin.api
44 * API info
55 */
66object AtagoInfo {
7- const val VERSION = " 2.0.0 "
7+ const val VERSION = " 2.0.1 "
88}
Original file line number Diff line number Diff 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} )" )
You can’t perform that action at this time.
0 commit comments