diff --git a/CommandBarIOS.podspec b/CommandBarIOS.podspec index c7937e1..fa59f3d 100644 --- a/CommandBarIOS.podspec +++ b/CommandBarIOS.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'CommandBarIOS' - s.version = '1.1.4' + s.version = '1.1.5' s.summary = 'HelpHub and Copilot Command Bar for iOS. ' # This description is used to generate tags and improve search results. diff --git a/Example/CommandBarIOS/Views/HomeView.swift b/Example/CommandBarIOS/Views/HomeView.swift index 9b86cf9..94a58b9 100644 --- a/Example/CommandBarIOS/Views/HomeView.swift +++ b/Example/CommandBarIOS/Views/HomeView.swift @@ -9,7 +9,7 @@ import SwiftUI import CommandBarIOS struct HomeView: View { - var ORG_ID = "" + var ORG_ID = "foocorp" var body: some View { VStack(alignment: .center) { diff --git a/Example/Pods/Pods.xcodeproj/project.pbxproj b/Example/Pods/Pods.xcodeproj/project.pbxproj index a9e5bd7..73e29b8 100644 --- a/Example/Pods/Pods.xcodeproj/project.pbxproj +++ b/Example/Pods/Pods.xcodeproj/project.pbxproj @@ -98,11 +98,11 @@ 92D158746C522D82EE04AA9F35E094CE /* CommandBarIOS.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = CommandBarIOS.modulemap; sourceTree = ""; }; 95CC59761A02B39CD10A5754E533418E /* Pods-CommandBarIOS_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CommandBarIOS_Tests.debug.xcconfig"; sourceTree = ""; }; 9D3F3B33DBCFB99BADD0B359D97CA0A3 /* Events.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Events.swift; sourceTree = ""; }; - 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 9E43CB0041A0E679ADCCC403A77DC49B /* Pods-CommandBarIOS_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-CommandBarIOS_Tests-umbrella.h"; sourceTree = ""; }; 9E4E8584E88649AAFE86983BE725CD08 /* Pods-CommandBarIOS_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CommandBarIOS_Tests-acknowledgements.plist"; sourceTree = ""; }; A1BFF639C3F37F0714D100DBBD4B2971 /* Pods-CommandBarIOS_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-CommandBarIOS_Example.modulemap"; sourceTree = ""; }; - A408E16BCAB18CD395B3539751445809 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; + A408E16BCAB18CD395B3539751445809 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; A70AF0F873154ACD2FEC4FA4E521C288 /* CommandBarIOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = CommandBarIOS.release.xcconfig; sourceTree = ""; }; AFFE2B6A0D4157DAE9916DDB711EDDB5 /* Pods-CommandBarIOS_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CommandBarIOS_Example-dummy.m"; sourceTree = ""; }; B80A4E2FC20C6930C00947A7E3B3CD06 /* CommandBarIOS-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "CommandBarIOS-Info.plist"; sourceTree = ""; }; @@ -112,9 +112,9 @@ C5EBDEBFBD6F726F8EBF4597C8608C66 /* Options.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Options.swift; sourceTree = ""; }; CD066775C7E795798DC1D2DCBBAD15E7 /* ContentBlock.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = ContentBlock.swift; sourceTree = ""; }; CE767260FDC18E34E0DDCE0C0B75A034 /* Analytics.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Analytics.swift; sourceTree = ""; }; - D1CB82D62C785A83172511B3556124DB /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; + D1CB82D62C785A83172511B3556124DB /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; DCA101DFC3A3C70F13B86D01500DD11E /* CommandBarIOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = CommandBarIOS.debug.xcconfig; sourceTree = ""; }; - E4E4437B683BA58024D225BBD44D9270 /* CommandBarIOS.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = CommandBarIOS.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + E4E4437B683BA58024D225BBD44D9270 /* CommandBarIOS.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = CommandBarIOS.podspec; sourceTree = ""; tabWidth = 2; }; E60B0515E7E71905AD2E32AC6A09A57A /* Image.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Image.swift; sourceTree = ""; }; E8EDB9297FE6FF616EDB873D76314ED1 /* HelpHubViewController.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = HelpHubViewController.swift; sourceTree = ""; }; F5AAF8F0395DD95E0FC4F15327D74639 /* NudgeWindowManager.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = NudgeWindowManager.swift; sourceTree = ""; }; @@ -184,7 +184,6 @@ CD066775C7E795798DC1D2DCBBAD15E7 /* ContentBlock.swift */, 6E5BCD3701DEF15FE6865CA6B331F2B3 /* SurveyRatingBlock.swift */, ); - name = Content; path = Content; sourceTree = ""; }; @@ -374,7 +373,6 @@ 4D6B9B33E50490394761EF613B4FB2C5 /* ButtonGroup.swift */, 4DFFE3FD3F497ACFA066B7822F19A462 /* CloseButton.swift */, ); - name = Buttons; path = Buttons; sourceTree = ""; }; @@ -874,8 +872,7 @@ MTL_FAST_MATH = YES; PRODUCT_NAME = "$(TARGET_NAME)"; STRIP_INSTALLED_PRODUCT = NO; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; SWIFT_VERSION = 5.0; SYMROOT = "${SRCROOT}/../build"; }; diff --git a/Example/Pods/Target Support Files/CommandBarIOS/CommandBarIOS-Info.plist b/Example/Pods/Target Support Files/CommandBarIOS/CommandBarIOS-Info.plist index b53ea21..066e06e 100644 --- a/Example/Pods/Target Support Files/CommandBarIOS/CommandBarIOS-Info.plist +++ b/Example/Pods/Target Support Files/CommandBarIOS/CommandBarIOS-Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.1.4 + 1.1.5 CFBundleSignature ???? CFBundleVersion diff --git a/Sources/CommandBarIOS/CommandBar/CommandBar.swift b/Sources/CommandBarIOS/CommandBar/CommandBar.swift index 4acac70..d0603fa 100644 --- a/Sources/CommandBarIOS/CommandBar/CommandBar.swift +++ b/Sources/CommandBarIOS/CommandBar/CommandBar.swift @@ -1,17 +1,17 @@ import Foundation import WebKit -class CommandBar { +public class CommandBar_Deprecated { private var options: CommandBarOptions_Deprecated; - weak var delegate: HelpHubWebViewDelegate? // Add this property + public weak var delegate: HelpHubWebViewDelegate? // Add this property private weak var presentedNavigationController: UINavigationController? // Add this property - init(options: CommandBarOptions_Deprecated) { + public init(options: CommandBarOptions_Deprecated) { self.options = options } - func openHelpHub() { + public func openHelpHub() { DispatchQueue.main.async { let viewController = HelpHubViewController(options: self.options) viewController.delegate = self @@ -32,8 +32,8 @@ class CommandBar { } } -extension CommandBar : HelpHubWebViewDelegate { - func didReceiveFallbackAction(_ action: [String : Any]) { +extension CommandBar_Deprecated : HelpHubWebViewDelegate { + public func didReceiveFallbackAction(_ action: [String : Any]) { self.delegate?.didReceiveFallbackAction(action) } } diff --git a/Sources/CommandBarIOS/CommandBar/SDK.swift b/Sources/CommandBarIOS/CommandBar/SDK.swift index bf04c6e..df7f0cb 100644 --- a/Sources/CommandBarIOS/CommandBar/SDK.swift +++ b/Sources/CommandBarIOS/CommandBar/SDK.swift @@ -13,7 +13,7 @@ extension CommandBarSDKDelegate { // MARK: Public SDK public final class CommandBarSDK { private static let sharedInternal = CommandBarInternalSDK.shared - private var commandbar: CommandBar? = nil + private var commandbar: CommandBar_Deprecated? = nil public static let shared = CommandBarSDK() @@ -32,7 +32,7 @@ public final class CommandBarSDK { public func boot(_ orgId: String, with options: CommandBarOptions? = nil) { self.orgId = orgId self.options = options - self.commandbar = CommandBar(options: CommandBarOptions_Deprecated(["orgId": orgId, "launchCode": "prod" ])) + self.commandbar = CommandBar_Deprecated(options: CommandBarOptions_Deprecated(["orgId": orgId, "launchCode": "prod" ])) CommandBarSDK.sharedInternal.boot(orgId: orgId, with: options) }