Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RELEASE_SIGNING_ENABLED=true

GROUP=com.statsig.serversdk
POM_ARTIFACT_ID=serversdk
VERSION_NAME=1.4.0
VERSION_NAME=1.4.1

POM_NAME=Statsig Server SDK
POM_DESCRIPTION=A feature gating and a/b testing library for statsig
Expand Down
3 changes: 3 additions & 0 deletions src/main/kotlin/com/statsig/sdk/Evaluator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import ua_parser.Parser
import java.lang.Long.parseLong
import java.lang.NumberFormatException
import java.nio.ByteBuffer
import java.security.MessageDigest
import java.time.Instant
Expand Down Expand Up @@ -849,6 +850,8 @@ internal class Evaluator(

return try {
compare(version1Str, version2Str)
} catch (e: NumberFormatException) {
false
} catch (e: Exception) {
errorBoundary.logException("versionCompareHelper", e)
println("[Statsig]: An exception was caught: $e")
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/statsig/sdk/StatsigMetadata.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.statsig.sdk

import java.util.Properties

private const val VERSION = "1.4.0"
private const val VERSION = "1.4.1"

internal class StatsigMetadata {
companion object {
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/statsig/sdk/StatsigServer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ sealed class StatsigServer {

@JvmSynthetic abstract fun removeConfigOverride(configName: String)

@JvmSynthetic abstract fun getClientInitializeResponse(user: StatsigUser): Map<String, Any>
abstract fun getClientInitializeResponse(user: StatsigUser): Map<String, Any>

fun logEvent(user: StatsigUser?, eventName: String) {
logEvent(user, eventName, null)
Expand Down