Skip to content

Commit

Permalink
[release] 1.32.0 - Manually Sync Config Spec (#397)
Browse files Browse the repository at this point in the history
### New Features
- New api `syncConfigSpecs` allows users to manually trigger the
synchronization of config specs in cases where the initial SDK
initialization has failed and you want to retry.

Return Type: `CompletableFuture<ConfigSyncDetails>`

Example usage: 
```

        CompletableFuture<ConfigSyncDetails> future = Statsig.syncConfigSpecs();
        ConfigSyncDetails configSyncDetails = future.get();
        configSyncDetails.getDuration();  
        configSyncDetails.getConfigSpecReady();  
        configSyncDetails.getFailureDetails();
        configSyncDetails.getLcut();  
```





>Included In This Release
>- f3fb46a Weihao Ding
>   - refac: modify configSyncDetails (#396)
>- f576480 Weihao Ding
>   - feat: re-init / manual sync config specs (#394)
  • Loading branch information
weihao-statsig authored Oct 21, 2024
1 parent f3fb46a commit 2287db8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SONATYPE_AUTOMATIC_RELEASE=true

GROUP=com.statsig.serversdk
POM_ARTIFACT_ID=serversdk
VERSION_NAME=1.31.0
VERSION_NAME=1.32.0

POM_NAME=Statsig Server SDK
POM_DESCRIPTION=A feature gating and a/b testing library for statsig
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 @@ -4,7 +4,7 @@ import com.google.gson.annotations.SerializedName
import java.util.Properties
import java.util.UUID

private const val VERSION = "1.31.0"
private const val VERSION = "1.32.0"

internal data class StatsigMetadata(@SerializedName("sdkType") var sdkType: String = "java-server", @SerializedName("sessionID") var sessionID: String = UUID.randomUUID().toString(), @SerializedName("languageVersion") var languageVersion: String = System.getProperty("java.version"), @SerializedName("exposureLoggingDisabled") var exposureLoggingDisabled: Boolean? = null) {
@SerializedName("sdkVersion")
Expand Down

0 comments on commit 2287db8

Please sign in to comment.