fidel-react-native 3.0.1 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,7 +44,7 @@ repositories {
44
44
 
45
45
  dependencies {
46
46
  implementation 'com.facebook.react:react-native:+'
47
- implementation 'com.github.Enigmatic-Smile:android-sdk:3.0.0'
47
+ implementation 'com.github.Enigmatic-Smile:android-sdk:3.1.1'
48
48
  implementation 'com.github.Enigmatic-Smile:kotlin-multiplatform-analytics:1.4.0'
49
49
  testImplementation 'junit:junit:4.13.2'
50
50
  testImplementation 'androidx.test.ext:junit:1.1.5'
@@ -29,6 +29,7 @@ extension FidelErrorType {
29
29
  case .userCanceled: return "userCanceled"
30
30
  case .sdkConfigurationError: return "sdkConfigurationError"
31
31
  case .deviceNotSecure: return "deviceNotSecure"
32
+ case .genericError: return "genericError"
32
33
  @unknown default: return "unknown"
33
34
  }
34
35
  }
@@ -8,9 +8,10 @@
8
8
  import Foundation
9
9
  import Fidel
10
10
 
11
+ extension FidelErrorType: @retroactive Hashable {}
11
12
  extension FidelErrorType: ConstantsProvider {
12
13
 
13
- static var allCases: Set<FidelErrorType> = [FidelErrorType.userCanceled, .enrollmentError(EnrollmentError.unexpected), .sdkConfigurationError]
14
+ static var allCases: Set<FidelErrorType> = [FidelErrorType.userCanceled, .enrollmentError(EnrollmentError.unexpected), .sdkConfigurationError, .genericError]
14
15
  static var parentKeyName: String = "ErrorType"
15
16
 
16
17
  var constantKey: String {
@@ -19,6 +20,7 @@ extension FidelErrorType: ConstantsProvider {
19
20
  case .sdkConfigurationError: return "sdkConfigurationError"
20
21
  case .userCanceled: return "userCanceled"
21
22
  case .deviceNotSecure: return "deviceNotSecure"
23
+ case .genericError: return "genericError"
22
24
  @unknown default: return "unexpected"
23
25
  }
24
26
  }
@@ -8,6 +8,7 @@
8
8
  import Foundation
9
9
  import Fidel
10
10
 
11
+ extension FidelResult: @retroactive Hashable {}
11
12
  extension FidelResult: ConstantsProvider {
12
13
  static var allCases: Set<FidelResult> = []
13
14
  static var parentKeyName: String = "ResultType"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fidel-react-native",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "Fidel's React Native bridge library for iOS and Android.",
5
5
  "main": "index.js",
6
6
  "nativePackage": true,
@@ -1,19 +0,0 @@
1
- //
2
- // ConsentDetailsAdapter.swift
3
- // fidel-react-native
4
- //
5
- // Created by Corneliu Chitanu on 07/06/23.
6
- //
7
-
8
- import Foundation
9
- import Fidel
10
-
11
- extension ConsentDetails {
12
- var dictionary: [String: Any] {
13
- return [
14
- "cardId": cardID,
15
- "consentId": consentID,
16
- "programId": programID
17
- ]
18
- }
19
- }