From b6305ca10e7f31866f2c72f763f04cefe15a754c Mon Sep 17 00:00:00 2001 From: SpertsyanKM Date: Sat, 20 Dec 2025 09:06:33 +0000 Subject: [PATCH 1/3] [create-pull-request] automated change --- fastlane/report.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastlane/report.xml b/fastlane/report.xml index a55d396..4aa4f8d 100644 --- a/fastlane/report.xml +++ b/fastlane/report.xml @@ -5,7 +5,7 @@ - + From efbc3c2b6a6d095644ec71d53c0be76b27bb7bd8 Mon Sep 17 00:00:00 2001 From: Kamo Spertsyan Date: Sat, 20 Dec 2025 12:07:43 +0300 Subject: [PATCH 2/3] Check proxy url emptyness before setting it. --- ios/sandwich/QonversionSandwich.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/sandwich/QonversionSandwich.swift b/ios/sandwich/QonversionSandwich.swift index 7a0fbb0..74697ef 100644 --- a/ios/sandwich/QonversionSandwich.swift +++ b/ios/sandwich/QonversionSandwich.swift @@ -45,7 +45,7 @@ public class QonversionSandwich : NSObject { config.setEntitlementsCacheLifetime(cacheLifetime) } - if let proxyUrl = proxyUrl { + if let proxyUrl = proxyUrl, !proxyUrl.isEmpty { config.setProxyURL(proxyUrl); } From 07b1a63ad2bd3a86e0c41c1c52a3620bb2f31df7 Mon Sep 17 00:00:00 2001 From: Kamo Spertsyan Date: Sat, 20 Dec 2025 12:17:19 +0300 Subject: [PATCH 3/3] Couple of other emptyness checks --- ios/sandwich/NoCodesSandwich.swift | 4 ++-- ios/sandwich/QonversionSandwich.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ios/sandwich/NoCodesSandwich.swift b/ios/sandwich/NoCodesSandwich.swift index 9e5a07a..e2308cd 100644 --- a/ios/sandwich/NoCodesSandwich.swift +++ b/ios/sandwich/NoCodesSandwich.swift @@ -28,7 +28,7 @@ public class NoCodesSandwich: NSObject { projectKey: String, proxyUrl: String? = nil ) { - let noCodesConfig = NoCodesConfiguration(projectKey: projectKey, proxyURL: proxyUrl) + let noCodesConfig = NoCodesConfiguration(projectKey: projectKey, proxyURL: proxyUrl?.isEmpty == true ? nil : proxyUrl) NoCodes.initialize(with: noCodesConfig) NoCodes.shared.set(delegate: self) @@ -46,7 +46,7 @@ public class NoCodesSandwich: NSObject { NoCodes.shared.set(screenCustomizationDelegate: self) } - if let contextKey = contextKey { + if let contextKey = contextKey, !contextKey.isEmpty { screenPresentationConfigs[contextKey] = config } else { screenPresentationConfigs = [:] diff --git a/ios/sandwich/QonversionSandwich.swift b/ios/sandwich/QonversionSandwich.swift index 74697ef..e0fe1fd 100644 --- a/ios/sandwich/QonversionSandwich.swift +++ b/ios/sandwich/QonversionSandwich.swift @@ -143,7 +143,7 @@ public class QonversionSandwich : NSObject { } @objc public func purchaseProduct(_ productId: String, offeringId: String?, completion: @escaping BridgeCompletion) { - guard let offeringId = offeringId else { + guard let offeringId = offeringId, !offeringId.isEmpty else { return purchase(productId, completion: completion) } @@ -304,7 +304,7 @@ public class QonversionSandwich : NSObject { completion(bridgeData, nil) } - if let contextKey = contextKey { + if let contextKey = contextKey, !contextKey.isEmpty { return Qonversion.shared().remoteConfig(contextKey: contextKey, completion: sandwichCompletion) }