Skip to content

Commit a1ffaef

Browse files
Merge pull request #11 from samtheson/patch-1
Add setter setUseCaseId
2 parents 6de9457 + e816353 commit a1ffaef

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [1.1.2] - 2020-01-16
5+
### Added
6+
[(#11)](https://github.com/getyoti/android-sdk-button/pull/11) Added setter `setUseCaseId()` which enables developers to define the useCaseId programatically. Prior to the change, the Use Case ID could only be set statically in the layout file.
7+
48
## [1.1.1]
59
### Changed
610
Update publication scripts and publish from github actions

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ yoti:useCaseId="YOUR_USE_CASE_ID"/>
7777
```
7878
[See this code in one of our sample apps](./sample-app/src/main/res/layout/activity_main.xml)
7979

80+
Alternatively, you can set the button's useCaseId with:
81+
```java
82+
YotiSDKButton.setUseCaseId("YOUR_USE_CASE_ID");
83+
```
84+
8085
The client end of the integration is now complete.
8186

8287
## Configuration

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ currentAppName=Mobile Button SDK
3737
pomId=yoti-button-sdk
3838
pomGroup=com.yoti.mobile.android.sdk
3939
pomPackaging=aar
40-
pomVersion=1.1.1
40+
pomVersion=1.1.2
4141
pomDescription=Button SDK that allows 3rd party to trigger Yoti as support app
4242
currentVersionCode=000008
4343

yoti-sdk/src/main/java/com/yoti/mobile/android/sdk/YotiSDKButton.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ public void init(AttributeSet attrs) {
7070
setOnClickListener(this);
7171
}
7272

73+
public void setUseCaseId(String useCaseId) {
74+
mUseCaseId = useCaseId;
75+
}
76+
7377
private void setLeftRigthPadding(){
7478
int paddingDp = 8;
7579
float density = getResources().getDisplayMetrics().density;

0 commit comments

Comments
 (0)