mirror of
https://github.com/arcan1s/ffxivbis.git
synced 2025-04-24 17:27:17 +00:00
bump dependencies
This commit is contained in:
parent
b1ac894ccf
commit
7a1a73592e
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -25,7 +25,7 @@ jobs:
|
|||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 17
|
java-version: 18
|
||||||
- name: create dist
|
- name: create dist
|
||||||
run: make dist
|
run: make dist
|
||||||
- name: release
|
- name: release
|
||||||
|
2
.github/workflows/run-tests.yml
vendored
2
.github/workflows/run-tests.yml
vendored
@ -17,6 +17,6 @@ jobs:
|
|||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 17
|
java-version: 18
|
||||||
- name: run tests
|
- name: run tests
|
||||||
run: make tests
|
run: make tests
|
3
TODO.md
3
TODO.md
@ -1,3 +0,0 @@
|
|||||||
* [x] items improvements
|
|
||||||
* [x] multiple parties support
|
|
||||||
* [ ] pretty UI
|
|
@ -2,7 +2,7 @@ organization := "me.arcanis"
|
|||||||
|
|
||||||
name := "ffxivbis"
|
name := "ffxivbis"
|
||||||
|
|
||||||
scalaVersion := "2.13.6"
|
scalaVersion := "2.13.8"
|
||||||
|
|
||||||
scalacOptions ++= Seq("-deprecation", "-feature")
|
scalacOptions ++= Seq("-deprecation", "-feature")
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
val AkkaVersion = "2.6.19"
|
val AkkaVersion = "2.6.20"
|
||||||
val AkkaHttpVersion = "10.2.9"
|
val AkkaHttpVersion = "10.2.10"
|
||||||
val ScalaTestVersion = "3.2.12"
|
val ScalaTestVersion = "3.2.12"
|
||||||
val SlickVersion = "3.3.3"
|
val SlickVersion = "3.3.3"
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ libraryDependencies += "com.typesafe.akka" %% "akka-http" % AkkaHttpVersion
|
|||||||
libraryDependencies += "com.typesafe.akka" %% "akka-http-spray-json" % AkkaHttpVersion
|
libraryDependencies += "com.typesafe.akka" %% "akka-http-spray-json" % AkkaHttpVersion
|
||||||
libraryDependencies += "com.typesafe.akka" %% "akka-actor-typed" % AkkaVersion
|
libraryDependencies += "com.typesafe.akka" %% "akka-actor-typed" % AkkaVersion
|
||||||
libraryDependencies += "com.typesafe.akka" %% "akka-stream" % AkkaVersion
|
libraryDependencies += "com.typesafe.akka" %% "akka-stream" % AkkaVersion
|
||||||
libraryDependencies += "com.github.swagger-akka-http" %% "swagger-akka-http" % "2.7.0"
|
libraryDependencies += "com.github.swagger-akka-http" %% "swagger-akka-http" % "2.8.0"
|
||||||
libraryDependencies += "jakarta.platform" % "jakarta.jakartaee-web-api" % "9.1.0"
|
libraryDependencies += "jakarta.platform" % "jakarta.jakartaee-web-api" % "9.1.0"
|
||||||
libraryDependencies += "ch.megard" %% "akka-http-cors" % "1.1.3"
|
libraryDependencies += "ch.megard" %% "akka-http-cors" % "1.1.3"
|
||||||
|
|
||||||
@ -18,9 +18,9 @@ libraryDependencies += "io.spray" %% "spray-json" % "1.3.6"
|
|||||||
|
|
||||||
libraryDependencies += "org.playframework.anorm" %% "anorm" % "2.6.10"
|
libraryDependencies += "org.playframework.anorm" %% "anorm" % "2.6.10"
|
||||||
libraryDependencies += "com.zaxxer" % "HikariCP" % "5.0.1" exclude("org.slf4j", "slf4j-api")
|
libraryDependencies += "com.zaxxer" % "HikariCP" % "5.0.1" exclude("org.slf4j", "slf4j-api")
|
||||||
libraryDependencies += "org.flywaydb" % "flyway-core" % "8.5.12"
|
libraryDependencies += "org.flywaydb" % "flyway-core" % "9.2.2"
|
||||||
libraryDependencies += "org.xerial" % "sqlite-jdbc" % "3.36.0.3"
|
libraryDependencies += "org.xerial" % "sqlite-jdbc" % "3.39.2.1"
|
||||||
libraryDependencies += "org.postgresql" % "postgresql" % "42.3.6"
|
libraryDependencies += "org.postgresql" % "postgresql" % "42.5.0"
|
||||||
|
|
||||||
libraryDependencies += "org.mindrot" % "jbcrypt" % "0.4"
|
libraryDependencies += "org.mindrot" % "jbcrypt" % "0.4"
|
||||||
libraryDependencies += "com.google.guava" % "guava" % "31.0.1-jre"
|
libraryDependencies += "com.google.guava" % "guava" % "31.0.1-jre"
|
||||||
|
@ -1 +1 @@
|
|||||||
sbt.version = 1.5.8
|
sbt.version = 1.7.1
|
||||||
|
@ -16,12 +16,12 @@ import java.time.Instant
|
|||||||
|
|
||||||
trait JsonSupport extends SprayJsonSupport with DefaultJsonProtocol {
|
trait JsonSupport extends SprayJsonSupport with DefaultJsonProtocol {
|
||||||
|
|
||||||
private def enumFormat[E <: Enumeration](enum: E): RootJsonFormat[E#Value] =
|
private def enumFormat[E <: Enumeration](enumeration: E): RootJsonFormat[E#Value] =
|
||||||
new RootJsonFormat[E#Value] {
|
new RootJsonFormat[E#Value] {
|
||||||
override def write(obj: E#Value): JsValue = obj.toString.toJson
|
override def write(obj: E#Value): JsValue = obj.toString.toJson
|
||||||
override def read(json: JsValue): E#Value = json match {
|
override def read(json: JsValue): E#Value = json match {
|
||||||
case JsNumber(value) => enum(value.toInt)
|
case JsNumber(value) => enumeration(value.toInt)
|
||||||
case JsString(name) => enum.withName(name)
|
case JsString(name) => enumeration.withName(name)
|
||||||
case other => deserializationError(s"String or number expected, got $other")
|
case other => deserializationError(s"String or number expected, got $other")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -75,6 +75,8 @@ trait XivApi extends RequestExecutor {
|
|||||||
|
|
||||||
object XivApi {
|
object XivApi {
|
||||||
|
|
||||||
|
private val defaultShop = JsObject("IsUnique" -> JsNumber(1), "StackSize" -> JsNumber(999))
|
||||||
|
|
||||||
private def parseXivapiJsonToShop(
|
private def parseXivapiJsonToShop(
|
||||||
js: JsObject
|
js: JsObject
|
||||||
)(implicit executionContext: ExecutionContext): Future[Map[Long, (String, Long)]] = {
|
)(implicit executionContext: ExecutionContext): Future[Map[Long, (String, Long)]] = {
|
||||||
@ -128,7 +130,7 @@ object XivApi {
|
|||||||
if (index == "crafted" && shopId == -1L) PieceType.Crafted
|
if (index == "crafted" && shopId == -1L) PieceType.Crafted
|
||||||
else
|
else
|
||||||
Try(shopMap(shopId).fields(s"ItemCost$index").asJsObject)
|
Try(shopMap(shopId).fields(s"ItemCost$index").asJsObject)
|
||||||
.getOrElse(throw new Exception(s"${shopMap(shopId).fields(s"ItemCost$index")}, $index"))
|
.getOrElse(defaultShop)
|
||||||
.getFields("IsUnique", "StackSize") match {
|
.getFields("IsUnique", "StackSize") match {
|
||||||
case Seq(JsNumber(isUnique), JsNumber(stackSize)) =>
|
case Seq(JsNumber(isUnique), JsNumber(stackSize)) =>
|
||||||
if (isUnique == 1 || stackSize.toLong != 999) PieceType.Tome // either upgraded gear or tomes found
|
if (isUnique == 1 || stackSize.toLong != 999) PieceType.Tome // either upgraded gear or tomes found
|
||||||
|
Loading…
Reference in New Issue
Block a user