Skip to content

Commit 0d54f8a

Browse files
authored
Merge pull request #112 from statsig-io/119
v1.0.0 - to fix sdk versioning, deprecate APIs, move to mavenCentral
2 parents 375268a + ced981d commit 0d54f8a

File tree

5 files changed

+9
-20
lines changed

5 files changed

+9
-20
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
The Statsig Java/Kotlin SDK for multi-user, server side environments. If you need a SDK for another language or single user client environment, check out our [other SDKs](https://docs.statsig.com/#sdks).
66

7+
## Installation
8+
9+
SDK versions below 1.0.0 are available via jitpack. Starting with v1.0.0, we started publishing the SDK only to MavenCentral.
10+
11+
## What is Statsig
12+
713
Statsig helps you move faster with Feature Gates (Feature Flags) and Dynamic Configs. It also allows you to run A/B tests to validate your new features and understand their impact on your KPIs. If you're new to Statsig, create an account at [statsig.com](https://www.statsig.com).
814

915
## Getting Started

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
idea
99
id("org.jlleitschuh.gradle.ktlint") version "11.0.0"
1010
id("maven-publish")
11+
id("com.vanniktech.maven.publish") version "0.22.0"
1112
}
1213

1314
group = "com.statsig"

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RELEASE_SIGNING_ENABLED=true
66

77
GROUP=com.statsig.serversdk
88
POM_ARTIFACT_ID=serversdk
9-
VERSION_NAME=0.19.3
9+
VERSION_NAME=1.0.0
1010

1111
POM_NAME=Statsig Server SDK
1212
POM_DESCRIPTION=A feature gating and a/b testing library for statsig

src/main/kotlin/com/statsig/sdk/Statsig.kt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,11 @@ class Statsig {
4646
return statsigServer.getExperimentWithExposureLoggingDisabled(user, experimentName)
4747
}
4848

49-
suspend fun getExperimentInLayerForUser(
50-
user: StatsigUser,
51-
layerName: String,
52-
disableExposure: Boolean = false
53-
): DynamicConfig {
54-
enforceInitialized()
55-
return statsigServer.getExperimentInLayerForUser(user, layerName, disableExposure)
56-
}
57-
5849
suspend fun getLayer(user: StatsigUser, layerName: String): Layer {
5950
enforceInitialized()
6051
return statsigServer.getLayer(user, layerName)
6152
}
6253

63-
suspend fun getLayerWithCustomExposureLogging(user: StatsigUser, layerName: String, onExposure: OnLayerExposure): Layer {
64-
enforceInitialized()
65-
return statsigServer.getLayerWithCustomExposureLogging(user, layerName, onExposure)
66-
}
67-
6854
suspend fun getLayerWithExposureLoggingDisabled(user: StatsigUser, layerName: String): Layer {
6955
enforceInitialized()
7056
return statsigServer.getLayerWithExposureLoggingDisabled(user, layerName)
@@ -199,10 +185,6 @@ class Statsig {
199185
return statsigServer.getExperimentInLayerForUserAsync(user, layerName, disableExposure)
200186
}
201187

202-
/**
203-
* @deprecated
204-
* - we make no promises of support for this API
205-
*/
206188
@JvmStatic
207189
fun _getExperimentGroups(experimentName: String): Map<String, Map<String, Any>> {
208190
enforceInitialized()

src/main/kotlin/com/statsig/sdk/StatsigMetadata.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.statsig.sdk
22

33
import java.util.Properties
44

5-
private const val VERSION = "0.19.3"
5+
private const val VERSION = "1.0.0"
66

77
internal class StatsigMetadata {
88
companion object {

0 commit comments

Comments
 (0)