diff --git a/Package.swift b/Package.swift index ce6db495..7f365176 100644 --- a/Package.swift +++ b/Package.swift @@ -23,9 +23,16 @@ let package = Package( // Targets can depend on other targets in this package, and on products in packages which this package depends on. .target( name: "VGSShowSDK", - dependencies: []), + dependencies: [], + exclude: [ + "Info.plist", + "VGSShowSDK.h" + ]), .testTarget( name: "VGSShowSDKTests", - dependencies: ["VGSShowSDK"]) + dependencies: ["VGSShowSDK"], + exclude: [ + "Info.plist" + ]) ] ) diff --git a/Sources/VGSShowSDK/Core/Analytics/VGSAnalyticsClient.swift b/Sources/VGSShowSDK/Core/Analytics/VGSAnalyticsClient.swift index 11e58044..0e193b93 100644 --- a/Sources/VGSShowSDK/Core/Analytics/VGSAnalyticsClient.swift +++ b/Sources/VGSShowSDK/Core/Analytics/VGSAnalyticsClient.swift @@ -115,13 +115,11 @@ public class VGSAnalyticsClient { private static var sdkIntegration: String { #if COCOAPODS return "COCOAPODS" - #endif - - #if SWIFT_PACKAGE - return "SPM" - #endif - - return "OTHER" + #elseif SWIFT_PACKAGE + return "SPM" + #else + return "OTHER" + #endif } } diff --git a/Sources/VGSShowSDK/UIElements/VGSLabel/VGSLabelDelegate.swift b/Sources/VGSShowSDK/UIElements/VGSLabel/VGSLabelDelegate.swift index 82b2623b..f89fcd23 100644 --- a/Sources/VGSShowSDK/UIElements/VGSLabel/VGSLabelDelegate.swift +++ b/Sources/VGSShowSDK/UIElements/VGSLabel/VGSLabelDelegate.swift @@ -12,7 +12,7 @@ import UIKit /// Delegate methods produced by `VGSLabel`. @objc -public protocol VGSLabelDelegate: class { +public protocol VGSLabelDelegate { /// Tells the delegate when text changes in the specified label. /// - Parameter label: `VGSLabel` view in which text was changed. diff --git a/Sources/VGSShowSDK/UIElements/VGSPDFView/VGSPDFViewDelegate.swift b/Sources/VGSShowSDK/UIElements/VGSPDFView/VGSPDFViewDelegate.swift index 8893550e..feff7e5c 100644 --- a/Sources/VGSShowSDK/UIElements/VGSPDFView/VGSPDFViewDelegate.swift +++ b/Sources/VGSShowSDK/UIElements/VGSPDFView/VGSPDFViewDelegate.swift @@ -8,7 +8,7 @@ import Foundation /// Delegate methods produced by `VGSPDFView`. @available(iOS 11.0, *) @objc -public protocol VGSPDFViewDelegate: class { +public protocol VGSPDFViewDelegate { /// Tells the delegate the document was displayed in view. /// - Parameter pdfView: `VGSPDFView` view in which document was changed. diff --git a/Sources/VGSShowSDK/Utils/Helpers/VGSUtils.swift b/Sources/VGSShowSDK/Utils/Helpers/VGSUtils.swift index fdbd721a..7587b095 100644 --- a/Sources/VGSShowSDK/Utils/Helpers/VGSUtils.swift +++ b/Sources/VGSShowSDK/Utils/Helpers/VGSUtils.swift @@ -22,5 +22,5 @@ internal class Utils { /// VGS Show SDK Version. /// Necessary since SPM doesn't track info plist correctly: https://forums.swift.org/t/add-info-plist-on-spm-bundle/40274/5 - static let vgsShowVersion = "1.1.0" + static let vgsShowVersion = "1.1.1" } diff --git a/VGSShowDemoApp/VGSShowDemoApp/Controllers/UseCases/ShowCard/ShowDemoViewController.swift b/VGSShowDemoApp/VGSShowDemoApp/Controllers/UseCases/ShowCard/ShowDemoViewController.swift index fab299f2..845bb3f1 100644 --- a/VGSShowDemoApp/VGSShowDemoApp/Controllers/UseCases/ShowCard/ShowDemoViewController.swift +++ b/VGSShowDemoApp/VGSShowDemoApp/Controllers/UseCases/ShowCard/ShowDemoViewController.swift @@ -151,7 +151,7 @@ class ShowDemoViewController: UIViewController { print("vgsshow success, code: \(code)") case .failure(let code, let error): self.showButton.isEnabled = true - print("vgsshow failed, code: \(code), error: \(error)") + print("vgsshow failed, code: \(code), error: \(String(describing: error))") } } } diff --git a/VGSShowDemoApp/VGSShowDemoApp/Controllers/UseCases/ShowPDF/ShowDemoPDFViewController.swift b/VGSShowDemoApp/VGSShowDemoApp/Controllers/UseCases/ShowPDF/ShowDemoPDFViewController.swift index 48cd6433..2956e327 100644 --- a/VGSShowDemoApp/VGSShowDemoApp/Controllers/UseCases/ShowPDF/ShowDemoPDFViewController.swift +++ b/VGSShowDemoApp/VGSShowDemoApp/Controllers/UseCases/ShowPDF/ShowDemoPDFViewController.swift @@ -105,9 +105,10 @@ class ShowDemoPDFViewController: UIViewController { switch result { case .success(let code): self?.revealButton.isEnabled = true + print("vgsshow success, code: \(code)") case .failure(let code, let error): self?.revealButton.isEnabled = true - print("vgsshow failed, code: \(code), error: \(error)") + print("vgsshow failed, code: \(code), error: \(String(describing: error))") } } } @@ -125,6 +126,6 @@ extension ShowDemoPDFViewController: VGSPDFViewDelegate { } func pdfView(_ pdfView: VGSPDFView, didFailWithError error: VGSShowError) { - print(error.localizedDescription ?? "uknown error") + print(error.localizedDescription ) } } diff --git a/VGSShowSDK.podspec b/VGSShowSDK.podspec index 85d9aad8..4bf5fe86 100644 --- a/VGSShowSDK.podspec +++ b/VGSShowSDK.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = "VGSShowSDK" - spec.version = "1.1.0" + spec.version = "1.1.1" spec.summary = "VGS Show - is a product suite that allows customers to reveal and show information securely without possession of it." spec.swift_version = '5.0' spec.description = <<-DESC diff --git a/VGSShowSDK.xcodeproj/project.pbxproj b/VGSShowSDK.xcodeproj/project.pbxproj index 3c6029c2..f43a103f 100644 --- a/VGSShowSDK.xcodeproj/project.pbxproj +++ b/VGSShowSDK.xcodeproj/project.pbxproj @@ -1049,7 +1049,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.1.0; + MARKETING_VERSION = 1.1.1; PRODUCT_BUNDLE_IDENTIFIER = com.vgs.framework.VGSShowsSDK; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; @@ -1080,7 +1080,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.1.0; + MARKETING_VERSION = 1.1.1; PRODUCT_BUNDLE_IDENTIFIER = com.vgs.framework.VGSShowsSDK; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; diff --git a/docs/Classes.html b/docs/Classes.html index 9f87a399..02acdf08 100644 --- a/docs/Classes.html +++ b/docs/Classes.html @@ -328,7 +328,7 @@