Skip to content

Commit de7e046

Browse files
committed
Rename project to AzurApi-Kotlin
1 parent eb49327 commit de7e046

File tree

19 files changed

+46
-46
lines changed

19 files changed

+46
-46
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Kongou
1+
# AzurApi-Kotlin
22
A Kotlin wrapper for Azur Lane JSON

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
kotlin("jvm") version "1.3.61"
44
}
55

6-
group = "com.github.sylux6.kongou"
6+
group = "com.github.sylux6.azurapikotlin"
77
version = "v1.0.0"
88

99
repositories {

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
rootProject.name = 'Kongou'
1+
rootProject.name = 'AzurApi-Kotlin'
22

src/main/kotlin/com/github/sylux6/kongou/api/Kongou.kt renamed to src/main/kotlin/com/github/sylux6/azurapikotlin/api/Atago.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package com.github.sylux6.kongou.api
1+
package com.github.sylux6.azurapikotlin.api
22

33
/**
44
* API class
55
*/
6-
class Kongou {
6+
class Atago {
77

88
/**
99
* @since 1.0.0
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.github.sylux6.azurapikotlin.api
2+
3+
/**
4+
* API info
5+
*/
6+
object AtagoInfo {
7+
const val VERSION = "1.0.0"
8+
}

src/main/kotlin/com/github/sylux6/kongou/database/Haruna.kt renamed to src/main/kotlin/com/github/sylux6/azurapikotlin/database/Takao.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
package com.github.sylux6.kongou.database
1+
package com.github.sylux6.azurapikotlin.database
22

33
import com.github.kittinunf.fuel.httpGet
44
import com.github.kittinunf.fuel.json.responseJson
5-
import com.github.sylux6.kongou.internal.entities.Ship
6-
import com.github.sylux6.kongou.internal.exceptions.DatabaseException
7-
import com.github.sylux6.kongou.utils.ShipParser
5+
import com.github.sylux6.azurapikotlin.internal.entities.Ship
6+
import com.github.sylux6.azurapikotlin.internal.exceptions.DatabaseException
7+
import com.github.sylux6.azurapikotlin.utils.ShipParser
88
import org.json.JSONObject
99

1010
/**
1111
* JSON deserializer object
1212
*/
13-
object Haruna {
13+
object Takao {
1414

1515
private lateinit var database: JSONObject
1616
var shipsById = HashMap<String, Ship>()
@@ -21,7 +21,7 @@ object Haruna {
2121
}
2222

2323
fun loadJSON(): JSONObject {
24-
val (_, response, result) = HarunaInfo.JSON_SOURCE
24+
val (_, response, result) = TakaoInfo.JSON_SOURCE
2525
.httpGet()
2626
.responseJson()
2727
return if (response.statusCode == 200) {
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package com.github.sylux6.kongou.database
1+
package com.github.sylux6.azurapikotlin.database
22

33
/**
44
* JSON deserializer info
55
*/
6-
object HarunaInfo {
6+
object TakaoInfo {
77
const val VERSION = "1.0.0"
88
const val JSON_SOURCE = "https://raw.githubusercontent.com/jasperchua99/azur-json/master/ships/ships.json"
99
}

src/main/kotlin/com/github/sylux6/kongou/internal/entities/Ship.kt renamed to src/main/kotlin/com/github/sylux6/azurapikotlin/internal/entities/Ship.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.sylux6.kongou.internal.entities
1+
package com.github.sylux6.azurapikotlin.internal.entities
22

33
/**
44
* Stars of a ship
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.github.sylux6.azurapikotlin.internal.exceptions
2+
3+
class ApiException(s: String = "") : Exception(s) {
4+
}

src/main/kotlin/com/github/sylux6/kongou/internal/exceptions/DatabaseException.kt renamed to src/main/kotlin/com/github/sylux6/azurapikotlin/internal/exceptions/DatabaseException.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.sylux6.kongou.internal.exceptions
1+
package com.github.sylux6.azurapikotlin.internal.exceptions
22

33
import java.lang.Exception
44

0 commit comments

Comments
 (0)