-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adds getFeatureGate function which returns additional information about the evaluation beyond just the true/false value - Adds support for custom env tier beyond predefined options in enum - Add support for getting default environment from the download config specs response if an environment is not specified - Adds config version to exposure metadata - Adds rulePassed to exposure metadata for dynamic config kong test: statsig-io/kong#2997
- Loading branch information
1 parent
bdfd041
commit 6efeaa4
Showing
9 changed files
with
100 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/com/statsig/androidlocalevalsdk/FeatureGate.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.statsig.androidlocalevalsdk | ||
|
||
class FeatureGate( | ||
val name: String, | ||
val value: Boolean, | ||
val ruleID: String? = null, | ||
val secondaryExposures: ArrayList<Map<String, String>> = arrayListOf(), | ||
var evaluationDetails: EvaluationDetails? = null, | ||
) { | ||
companion object { | ||
fun empty(name: String = ""): FeatureGate { | ||
return FeatureGate(name, false) | ||
} | ||
} | ||
|
||
init { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters