Skip to content

Commit

Permalink
Merge pull request #30 from Keyri-Co/releases/1.7.1
Browse files Browse the repository at this point in the history
Updated Android SDK, fixed `email_change` event type declaration
  • Loading branch information
AndrewKuliahin96 authored Mar 1, 2024
2 parents de89d05 + 2fd0a60 commit dfcab7e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 1.7.1

- Updated Android SDK
to [4.2.4](https://github.com/Keyri-Co/keyri-android-whitelabel-sdk/releases/tag/4.2.4)
- Fixed `email_change` event declaration
- Fixed proguard rule for `createFingerprint` method

## 1.7.0

- Updated iOS SDK
Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ android {

dependencies {
// Keyri
implementation 'com.keyri:keyrisdk:4.2.3'
implementation 'com.keyri:scanner:4.2.3'
implementation 'com.keyri:keyrisdk:4.2.4'
implementation 'com.keyri:scanner:4.2.4'

// Gson
implementation 'com.google.code.gson:gson:2.10.1'
Expand Down
2 changes: 1 addition & 1 deletion android/src/main/kotlin/com/keyrico/keyri/KeyriPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ class KeyriPlugin : FlutterPlugin, MethodCallHandler, ActivityAware,
logMessage("Keyri sendEvent: eventType must not be null")
result.error("sendEvent", "eventType must not be null", null)
} else {
val userId = if (publicUserId == null) "ANON" else publicUserId
val userId = publicUserId ?: "ANON"

keyri.sendEvent(userId, type, success).onSuccess { eventResponse ->
val eventResponse = Gson().toJson(eventResponse)
Expand Down
3 changes: 2 additions & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: keyri_example
version: 1.7.0
version: 1.7.1
description: Demonstrates how to use the Keyri plugin.
publish_to: 'none'

environment:
sdk: ">=3.2.0 <4.0.0"

dependencies:
flutter:
sdk: flutter
Expand Down
2 changes: 1 addition & 1 deletion lib/keyri_fingerprint_event.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class EventType {

/// Returns Email change event.
static EventType emailChange({Map<String, dynamic>? metadata}) =>
EventType("emailChange", metadata: metadata);
EventType("email_change", metadata: metadata);

/// Returns Profile update event.
static EventType profileUpdate({Map<String, dynamic>? metadata}) =>
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: keyri_v3
description: Keyri QR Login plugin for Flutter. Provides Keyri SDK capabilities for secure and passwordless login.
version: 1.7.0
version: 1.7.1
homepage: https://keyri.com

environment:
Expand Down

0 comments on commit dfcab7e

Please sign in to comment.