From dd5ec64bfb3f677b060aff01c5e2b16dfc03f677 Mon Sep 17 00:00:00 2001 From: Rui <102453770+ruixhuang@users.noreply.github.com> Date: Tue, 29 Oct 2024 16:24:53 -0700 Subject: [PATCH] Fix a crash on iOS release build (#735) --- build.gradle.kts | 2 +- .../exchange.dydx.abacus/utils/TradeValidationTracker.kt | 4 +++- v4_abacus.podspec | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 9675f2b29..978917053 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -52,7 +52,7 @@ allprojects { } group = "exchange.dydx.abacus" -version = "1.13.14" +version = "1.13.15" repositories { google() diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/utils/TradeValidationTracker.kt b/src/commonMain/kotlin/exchange.dydx.abacus/utils/TradeValidationTracker.kt index 02debddef..50909f9f5 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/utils/TradeValidationTracker.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/utils/TradeValidationTracker.kt @@ -3,6 +3,7 @@ package exchange.dydx.abacus.utils import exchange.dydx.abacus.protocols.AnalyticsEvent import exchange.dydx.abacus.protocols.TrackingProtocol import kotlinx.serialization.Serializable +import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json class TradeValidationTracker( @@ -14,7 +15,8 @@ class TradeValidationTracker( fun logValidationResult(payload: TradeValidationPayload) { if (payload == lastSeen) return - trackingProtocol?.log(AnalyticsEvent.TradeValidation.name, TrackingJson.encodeToString(TradeValidationPayload.serializer(), payload)) + val stringPaylaod = TrackingJson.encodeToString(payload) + trackingProtocol?.log(AnalyticsEvent.TradeValidation.name, stringPaylaod) lastSeen = payload } } diff --git a/v4_abacus.podspec b/v4_abacus.podspec index 4ae24dd3b..2aee42d7b 100644 --- a/v4_abacus.podspec +++ b/v4_abacus.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'v4_abacus' - spec.version = '1.13.14' + spec.version = '1.13.15' spec.homepage = 'https://github.com/dydxprotocol/v4-abacus' spec.source = { :http=> ''} spec.authors = ''