Skip to content

Commit

Permalink
Merge pull request #171 from salemove/prelive
Browse files Browse the repository at this point in the history
Glia Widgets SDK 1.7.1
  • Loading branch information
dukhovnyi authored Jan 10, 2022
2 parents aa9ed27 + ba9a667 commit c61f0e2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
6 changes: 3 additions & 3 deletions widgetssdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 24
targetSdkVersion 30
versionCode 30
versionName "1.7.0"
versionCode 31
versionName "1.7.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
Expand Down Expand Up @@ -39,7 +39,7 @@ ext {
appCompatVersion = '1.2.0'
materialVersion = '1.4.0'
constraintLayoutVersion = '2.0.4'
gliaSdkVersion = '0.23.0'
gliaSdkVersion = '0.23.1'
junitVersion = '4.13.1'
androidXTestVersion = '1.1.2'
espresso = '3.3.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class GliaVisitorInfo implements VisitorInfo {
public boolean banned;
public String href;
public String id;
public String externalId;

public GliaVisitorInfo(VisitorInfo visitorInfo) {
this.name = visitorInfo.getName();
Expand All @@ -24,6 +25,7 @@ public GliaVisitorInfo(VisitorInfo visitorInfo) {
this.banned = visitorInfo.getBanned();
this.href = visitorInfo.getHref();
this.id = visitorInfo.getId();
this.externalId = visitorInfo.getExternalId();
}

@Override
Expand Down Expand Up @@ -70,4 +72,9 @@ public String getHref() {
public String getId() {
return id;
}

@Override
public String getExternalId() {
return externalId;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.glia.widgets.core.visitor;

import androidx.annotation.Nullable;

import com.glia.androidsdk.visitor.VisitorInfoUpdateRequest;
import com.google.gson.internal.LinkedTreeMap;

Expand All @@ -12,6 +14,7 @@ public class VisitorInfoUpdate implements VisitorInfoUpdateRequest {
public LinkedTreeMap<String, String> customAttributes;
public VisitorInfoUpdateRequest.NoteUpdateMethod noteUpdateMethod = VisitorInfoUpdateRequest.NoteUpdateMethod.APPEND;
public VisitorInfoUpdateRequest.CustomAttributesUpdateMethod customAttrsUpdateMethod = VisitorInfoUpdateRequest.CustomAttributesUpdateMethod.MERGE;
public String externalId;

public void setName(String name) {
this.name = name;
Expand Down Expand Up @@ -41,6 +44,8 @@ public void setCustomAttrsUpdateMethod(CustomAttributesUpdateMethod customAttrsU
this.customAttrsUpdateMethod = customAttrsUpdateMethod;
}

public void setExternalId(String externalId) { this.externalId = externalId; }

@Override
public String getName() {
return name;
Expand Down Expand Up @@ -75,4 +80,9 @@ public CustomAttributesUpdateMethod getCustomAttrsUpdateMethod() {
public LinkedTreeMap<String, String> getCustomAttributes() {
return customAttributes;
}

@Override
public String getExternalId() {
return externalId;
}
}

0 comments on commit c61f0e2

Please sign in to comment.