diff --git a/MixpanelService.xcodeproj/project.pbxproj b/MixpanelService.xcodeproj/project.pbxproj index ea2239c..364faeb 100644 --- a/MixpanelService.xcodeproj/project.pbxproj +++ b/MixpanelService.xcodeproj/project.pbxproj @@ -493,7 +493,7 @@ INFOPLIST_KEY_LSApplicationCategoryType = ""; INFOPLIST_KEY_NSHumanReadableCopyright = ""; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.4; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -578,7 +578,7 @@ INFOPLIST_KEY_LSApplicationCategoryType = ""; INFOPLIST_KEY_NSHumanReadableCopyright = ""; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.4; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -681,7 +681,7 @@ GENERATE_INFOPLIST_FILE = YES; INFOPLIST_KEY_NSHumanReadableCopyright = ""; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.4; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -762,7 +762,7 @@ GENERATE_INFOPLIST_FILE = YES; INFOPLIST_KEY_NSHumanReadableCopyright = ""; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.4; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -849,7 +849,7 @@ GENERATE_INFOPLIST_FILE = YES; INFOPLIST_KEY_NSHumanReadableCopyright = ""; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.4; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -930,7 +930,7 @@ GENERATE_INFOPLIST_FILE = YES; INFOPLIST_KEY_NSHumanReadableCopyright = ""; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 16.4; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/MixpanelServiceKit/MixpanelService.swift b/MixpanelServiceKit/MixpanelService.swift index a1bbb58..adc5a9b 100644 --- a/MixpanelServiceKit/MixpanelService.swift +++ b/MixpanelServiceKit/MixpanelService.swift @@ -12,6 +12,8 @@ public final class MixpanelService: Service { public static let pluginIdentifier = "MixpanelService" + public var pluginIdentifier: String { MixpanelService.pluginIdentifier } + public static let localizedTitle = LocalizedString("Mixpanel", comment: "The title of the Mixpanel service") public weak var serviceDelegate: ServiceDelegate? diff --git a/MixpanelServiceKitUI/MixpanelService+UI.swift b/MixpanelServiceKitUI/MixpanelService+UI.swift index d099140..e1bec1d 100644 --- a/MixpanelServiceKitUI/MixpanelService+UI.swift +++ b/MixpanelServiceKitUI/MixpanelService+UI.swift @@ -11,18 +11,18 @@ import LoopKitUI import MixpanelServiceKit import HealthKit -extension MixpanelService: ServiceUI { +extension MixpanelService: @retroactive ServiceUI { public static var image: UIImage? { UIImage(named: "mixpanel_logo", in: Bundle(for: MixpanelServiceTableViewController.self), compatibleWith: nil)! } - public static func setupViewController(colorPalette: LoopUIColorPalette, pluginHost: PluginHost) -> SetupUIResult + public static func setupViewController(colorPalette: LoopUIColorPalette, pluginHost: PluginHost, allowDebugFeatures: Bool) -> SetupUIResult { return .userInteractionRequired(ServiceNavigationController(rootViewController: MixpanelServiceTableViewController(service: MixpanelService(), for: .create))) } - public func settingsViewController(colorPalette: LoopUIColorPalette) -> ServiceViewController + public func settingsViewController(colorPalette: LoopUIColorPalette, allowDebugFeatures: Bool) -> ServiceViewController { return ServiceNavigationController(rootViewController: MixpanelServiceTableViewController(service: self, for: .update)) }