Skip to content

Commit

Permalink
version 1.4.1 - get segment
Browse files Browse the repository at this point in the history
  • Loading branch information
PNixx committed Sep 23, 2021
1 parent bccf9c6 commit 5fc039a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion personalizatio-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
apply plugin: 'signing'

version='1.4.0'
version='1.4.1'

android {
compileSdkVersion 30
Expand Down
11 changes: 11 additions & 0 deletions personalizatio-sdk/src/main/java/com/personalizatio/SDK.java
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,17 @@ public static void getSid(Consumer<String> listener) {
}
}

/**
* Возвращает текущий сегмент для А/В тестирования
*/
public static String getSegment() {
if( instance == null ) {
throw new RuntimeException("You need initialize SDK before request segment");
} else {
return instance.segment;
}
}

//----------Private--------------->

/**
Expand Down

0 comments on commit 5fc039a

Please sign in to comment.