From 4ed10304e44ea7c515467f0e4ce2496d7c5a2e4e Mon Sep 17 00:00:00 2001 From: Hung Date: Fri, 19 May 2023 10:48:44 +0800 Subject: [PATCH 1/2] bump version --- Example/Example.xcodeproj/project.pbxproj | 8 ++++---- ViSearchSDK.podspec | 2 +- ViSearchSDK/ViSearchSDK.xcodeproj/project.pbxproj | 8 ++++---- ViSearchSDK/ViSearchSDK/Classes/ViSearchClient.swift | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Example/Example.xcodeproj/project.pbxproj b/Example/Example.xcodeproj/project.pbxproj index f5c4658..dba35aa 100644 --- a/Example/Example.xcodeproj/project.pbxproj +++ b/Example/Example.xcodeproj/project.pbxproj @@ -706,11 +706,11 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CURRENT_PROJECT_VERSION = 20; + CURRENT_PROJECT_VERSION = 23; DEVELOPMENT_TEAM = 345PN8HV64; INFOPLIST_FILE = Example/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MARKETING_VERSION = 1.9.2; + MARKETING_VERSION = 1.10.5; PRODUCT_BUNDLE_IDENTIFIER = com.visenze.Example; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; @@ -722,11 +722,11 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CURRENT_PROJECT_VERSION = 20; + CURRENT_PROJECT_VERSION = 23; DEVELOPMENT_TEAM = 345PN8HV64; INFOPLIST_FILE = Example/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MARKETING_VERSION = 1.9.2; + MARKETING_VERSION = 1.10.5; PRODUCT_BUNDLE_IDENTIFIER = com.visenze.Example; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; diff --git a/ViSearchSDK.podspec b/ViSearchSDK.podspec index d7b94c5..efd6de2 100644 --- a/ViSearchSDK.podspec +++ b/ViSearchSDK.podspec @@ -10,7 +10,7 @@ Pod::Spec.new do |s| s.name = "ViSearchSDK" - s.version = "1.10.4" + s.version = "1.10.5" s.summary = "A Visual Search API solution (Swift SDK)" s.description = <<-DESC diff --git a/ViSearchSDK/ViSearchSDK.xcodeproj/project.pbxproj b/ViSearchSDK/ViSearchSDK.xcodeproj/project.pbxproj index db67833..bab2178 100644 --- a/ViSearchSDK/ViSearchSDK.xcodeproj/project.pbxproj +++ b/ViSearchSDK/ViSearchSDK.xcodeproj/project.pbxproj @@ -665,7 +665,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_IDENTITY = ""; - CURRENT_PROJECT_VERSION = 22; + CURRENT_PROJECT_VERSION = 23; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = NKN6QECX9M; DYLIB_COMPATIBILITY_VERSION = 1; @@ -684,7 +684,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.10.4; + MARKETING_VERSION = 1.10.5; MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11"; PRODUCT_BUNDLE_IDENTIFIER = com.visenze.ViSearchSDK; @@ -699,7 +699,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_IDENTITY = ""; - CURRENT_PROJECT_VERSION = 22; + CURRENT_PROJECT_VERSION = 23; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = NKN6QECX9M; DYLIB_COMPATIBILITY_VERSION = 1; @@ -718,7 +718,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.10.4; + MARKETING_VERSION = 1.10.5; MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11"; PRODUCT_BUNDLE_IDENTIFIER = com.visenze.ViSearchSDK; diff --git a/ViSearchSDK/ViSearchSDK/Classes/ViSearchClient.swift b/ViSearchSDK/ViSearchSDK/Classes/ViSearchClient.swift index 88b0c0e..7154b1e 100644 --- a/ViSearchSDK/ViSearchSDK/Classes/ViSearchClient.swift +++ b/ViSearchSDK/ViSearchSDK/Classes/ViSearchClient.swift @@ -41,7 +41,7 @@ open class ViSearchClient: NSObject, URLSessionDelegate { public var timeoutInterval : TimeInterval = 10 // how long to timeout request public var requestSerialization: ViRequestSerialization - public var userAgent : String = "visearch-swift-sdk/1.10.4" + public var userAgent : String = "visearch-swift-sdk/1.10.5" public static let userAgentHeader : String = "X-Requested-With" // whether to authenticate by appkey or by access/secret key point From f2c81f5dcd21463aadbaebecc0c9167cc8244da5 Mon Sep 17 00:00:00 2001 From: Hung Date: Fri, 19 May 2023 10:51:50 +0800 Subject: [PATCH 2/2] add box_type --- .../Classes/Response/ProductSearch/ViProductObjectResult.swift | 1 + .../Classes/Response/ProductSearch/ViProductSearchResponse.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/ViSearchSDK/ViSearchSDK/Classes/Response/ProductSearch/ViProductObjectResult.swift b/ViSearchSDK/ViSearchSDK/Classes/Response/ProductSearch/ViProductObjectResult.swift index 8c6f222..81f4998 100644 --- a/ViSearchSDK/ViSearchSDK/Classes/Response/ProductSearch/ViProductObjectResult.swift +++ b/ViSearchSDK/ViSearchSDK/Classes/Response/ProductSearch/ViProductObjectResult.swift @@ -14,6 +14,7 @@ open class ViProductObjectResult { public var score: Double? = nil public var box : ViBox? = nil + public var boxType: String? public var attributes: [String:Any] = [:] diff --git a/ViSearchSDK/ViSearchSDK/Classes/Response/ProductSearch/ViProductSearchResponse.swift b/ViSearchSDK/ViSearchSDK/Classes/Response/ProductSearch/ViProductSearchResponse.swift index 37d5492..ef3e047 100644 --- a/ViSearchSDK/ViSearchSDK/Classes/Response/ProductSearch/ViProductSearchResponse.swift +++ b/ViSearchSDK/ViSearchSDK/Classes/Response/ProductSearch/ViProductSearchResponse.swift @@ -341,6 +341,7 @@ open class ViProductSearchResponse : NSObject { object.id = dict["id"] as? String object.category = dict["category"] as? String object.name = dict["name"] as? String + object.boxType = dict["box_type"] as? String if let excludedPidList = dict["excluded_pids"] as? [String] { object.excludedPids = excludedPidList