From 0107fcfcdd6a1db56ab938e62b633a2c308eab08 Mon Sep 17 00:00:00 2001 From: Gytis Date: Thu, 19 Oct 2023 13:49:27 +0300 Subject: [PATCH 1/2] Add support for new error type --- android/src/main/java/com/reactlibrary/ARArgyleSdkModule.kt | 1 + ios/ARArgyleSdk.swift | 2 ++ 2 files changed, 3 insertions(+) diff --git a/android/src/main/java/com/reactlibrary/ARArgyleSdkModule.kt b/android/src/main/java/com/reactlibrary/ARArgyleSdkModule.kt index 5090ef0..7833080 100644 --- a/android/src/main/java/com/reactlibrary/ARArgyleSdkModule.kt +++ b/android/src/main/java/com/reactlibrary/ARArgyleSdkModule.kt @@ -52,6 +52,7 @@ class ARArgyleSdkModule(context: ReactApplicationContext) : ReactContextBaseJava LinkError.Type.DDS_NOT_SUPPORTED -> "dds_not_supported" LinkError.Type.INCOMPATIBLE_DDS_CONFIG -> "incompatible_dds_config" LinkError.Type.GIG_ITEMS_NOT_SUPPORTED -> "gig_items_not_supported" + LinkError.Type.BENEFITS_ITEMS_NOT_SUPPORTED -> "benefits_items_not_supported" LinkError.Type.GENERIC -> "generic" } diff --git a/ios/ARArgyleSdk.swift b/ios/ARArgyleSdk.swift index df85aa8..63f47c1 100644 --- a/ios/ARArgyleSdk.swift +++ b/ios/ARArgyleSdk.swift @@ -94,6 +94,8 @@ class ARArgyleSdk: RCTEventEmitter { case .GIG_ITEMS_NOT_SUPPORTED: translatedError = "gig_items_not_supported" break + case .BENEFITS_ITEMS_NOT_SUPPORTED: + translatedError = "benefits_items_not_supported" default: translatedError = "generic" } From a571cb5ff609a2d3d2e3fe70898b4e36af643637 Mon Sep 17 00:00:00 2001 From: Gytis Date: Thu, 19 Oct 2023 13:51:16 +0300 Subject: [PATCH 2/2] Add break --- ios/ARArgyleSdk.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/ARArgyleSdk.swift b/ios/ARArgyleSdk.swift index 63f47c1..95b1d0e 100644 --- a/ios/ARArgyleSdk.swift +++ b/ios/ARArgyleSdk.swift @@ -96,6 +96,7 @@ class ARArgyleSdk: RCTEventEmitter { break case .BENEFITS_ITEMS_NOT_SUPPORTED: translatedError = "benefits_items_not_supported" + break default: translatedError = "generic" }