fix iOS build blockers and add project scaffold

This commit is contained in:
2026-04-09 20:04:24 +02:00
parent 02278ddac7
commit da1947da09
18 changed files with 492 additions and 55 deletions
@@ -91,7 +91,8 @@ struct HermesAPIClient {
}
func submitAnalyticsBatch(_ payload: HermesAnalyticsBatchRequest) async throws {
try await perform(path: "api/v1/analytics/batch", method: "POST", body: payload)
let encodedBody = try encoder.encode(payload)
_ = try await perform(path: "api/v1/analytics/batch", method: "POST", body: encodedBody)
}
private func send<Response: Decodable>(path: String, method: String = "GET") async throws -> Response {
@@ -113,14 +113,6 @@ struct HermesRound: Codable {
var settlement: HermesSettlement
}
struct HermesRound: Codable {
var event: HermesEvent
var media: HermesEventMedia
var market: HermesMarket
var oddsVersion: HermesOddsVersion
var settlement: HermesSettlement
}
struct HermesBetIntentRequest: Codable {
var sessionId: UUID
var eventId: UUID