Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
SDK-1168: Set SDK version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgrayston committed Sep 10, 2019
1 parent 0d8629b commit e5d771d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion checkout-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#####################

SDK_TAG=$1
DEFAULT_SDK_TAG="2.0.0"
DEFAULT_SDK_TAG="2.3.0"

if [ "$SDK_TAG" = "" ]; then
SDK_TAG=$DEFAULT_SDK_TAG
Expand Down
6 changes: 3 additions & 3 deletions yoti-joomla.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<type>package</type>
<client>0</client>
<client_id>0</client_id>
<version>2.1.1</version>
<infourl title="Yoti 2.1.1 Released">
<version>2.1.2</version>
<infourl title="Yoti 2.1.2 Released">
https://github.com/getyoti/yoti-joomla/releases
</infourl>
<downloads>
<downloadurl type="full" format="zip">
https://github.com/getyoti/yoti-joomla/releases/download/2.1.1/yoti-joomla-2.1.1.zip
https://github.com/getyoti/yoti-joomla/releases/download/2.1.2/yoti-joomla-2.1.2.zip
</downloadurl>
</downloads>
<tags>
Expand Down
2 changes: 1 addition & 1 deletion yoti/com_yoti.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<authorEmail>[email protected]</authorEmail>
<authorUrl>http://www.yoti.com</authorUrl>
<creationDate>August 2016</creationDate>
<version>2.1.1</version>
<version>2.1.2</version>
<license>GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html</license>
<copyright>Copyright (C) 2017 http://www.yoti.com. All rights reserved.</copyright>
<description>Let Yoti users quickly register on your site. Note: Need to enable Yoti module and Yoti plugin.</description>
Expand Down
2 changes: 1 addition & 1 deletion yoti/modules/mod_yoti/mod_yoti.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<authorEmail>[email protected]</authorEmail>
<authorUrl>http://www.yoti.com</authorUrl>
<creationDate>August 2016</creationDate>
<version>2.1.1</version>
<version>2.1.2</version>
<license>Link to licence url</license>
<copyright>Copyright (C) 2017 http://www.yoti.com. All rights reserved.</copyright>
<description>Yoti Module allows you to add a button to your page to connect to Yoti</description>
Expand Down
2 changes: 1 addition & 1 deletion yoti/plugins/yotiprofile/yotiprofile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<license>GNU General Public License version 3 or later; see LICENSE.txt</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>http://www.yoti.com</authorUrl>
<version>2.1.1</version>
<version>2.1.2</version>
<description>PLG_USER_YOTIPROFILE_XML_DESCRIPTION</description>

<files>
Expand Down
11 changes: 9 additions & 2 deletions yoti/site/YotiHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ class YotiHelper
*/
const SDK_IDENTIFIER = 'Joomla';

/**
* Yoti Joomla SDK version.
*/
const SDK_VERSION = '2.1.2';

const AGE_VERIFICATION_ATTR = 'age_verified';

/**
Expand Down Expand Up @@ -136,9 +141,11 @@ public function link()
$yotiClient = new YotiClient(
$yotiSDKID,
$yotiPemContents,
YotiClient::DEFAULT_CONNECT_API,
YotiHelper::SDK_IDENTIFIER
YotiClient::DEFAULT_CONNECT_API
);
$yotiClient->setSdkIdentifier(YotiHelper::SDK_IDENTIFIER);
$yotiClient->setSdkVersion(YotiHelper::SDK_VERSION);

$activityDetails = $yotiClient->getActivityDetails($token);
$activityDetailsAdapter = new ActivityDetailsAdapter($activityDetails);
$profileAdapter = $activityDetailsAdapter->getProfile();
Expand Down

0 comments on commit e5d771d

Please sign in to comment.