From e355e8b64996b2a760ea4e5f10a783f016f5e9e8 Mon Sep 17 00:00:00 2001 From: Measure Team - Anyline Date: Thu, 13 Feb 2025 15:17:50 +0000 Subject: [PATCH] Update to the Anyline Tire Tread SDK v11.1.0 --- TireTreadDeveloperExamples.xcodeproj/project.pbxproj | 6 +++--- TireTreadDeveloperExamples/SDKUtilities.swift | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/TireTreadDeveloperExamples.xcodeproj/project.pbxproj b/TireTreadDeveloperExamples.xcodeproj/project.pbxproj index 20ae1ed..bfc7604 100644 --- a/TireTreadDeveloperExamples.xcodeproj/project.pbxproj +++ b/TireTreadDeveloperExamples.xcodeproj/project.pbxproj @@ -300,7 +300,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 3.0.0; + MARKETING_VERSION = 3.1.0; PRODUCT_BUNDLE_IDENTIFIER = com.anyline.tiretread.developerexamples; PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = iphoneos; @@ -400,7 +400,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 3.0.0; + MARKETING_VERSION = 3.1.0; PRODUCT_BUNDLE_IDENTIFIER = com.anyline.tiretread.developerexamples; PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = iphoneos; @@ -441,7 +441,7 @@ repositoryURL = "https://github.com/Anyline/anyline-tiretread-spm-module"; requirement = { kind = upToNextMajorVersion; - minimumVersion = 11.0.0; + minimumVersion = 11.1.0; }; }; /* End XCRemoteSwiftPackageReference section */ diff --git a/TireTreadDeveloperExamples/SDKUtilities.swift b/TireTreadDeveloperExamples/SDKUtilities.swift index dea176c..980dd5e 100644 --- a/TireTreadDeveloperExamples/SDKUtilities.swift +++ b/TireTreadDeveloperExamples/SDKUtilities.swift @@ -29,7 +29,7 @@ struct SDKUtilities { continuation.resume(returning: .success(())) } catch { // To get the error object from the TireTread SDK, you first need to convert it to a KotlinException - var errorMessage = "Unable to initialize the Tire Tread SDK. Reason: \n" + var errorMessage = "Unable to initialize the Tire Tread SDK. \nReason: \n" if let kException = (error as NSError).kotlinException { switch kException { case let ex as SdkLicenseKeyInvalidException: @@ -42,6 +42,7 @@ struct SDKUtilities { errorMessage += " \(kException)" } } + errorMessage += "\n\n" + licenseStringMissingErrorMessage continuation.resume(returning: .failure(TireTreadError.responseError(errorMessage))) } }