From 80e2382634d750a86fdba6811043d1036962080e Mon Sep 17 00:00:00 2001 From: Alan Charles <50601149+alanjcharles@users.noreply.github.com> Date: Wed, 14 Feb 2024 10:51:18 -0700 Subject: [PATCH] change firebase plugin from public to open (#25) * change firebase plugin from public to open * change update from public to open --- Sources/SegmentFirebase/FirebaseDestination.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/SegmentFirebase/FirebaseDestination.swift b/Sources/SegmentFirebase/FirebaseDestination.swift index 2740d1b..7804962 100644 --- a/Sources/SegmentFirebase/FirebaseDestination.swift +++ b/Sources/SegmentFirebase/FirebaseDestination.swift @@ -37,11 +37,11 @@ import FirebaseAnalytics */ @objc(SEGFirebaseDestination) - public class ObjCFirebaseDestination: NSObject, ObjCPlugin, ObjCPluginShim { - public func instance() -> EventPlugin { return FirebaseDestination() } - } +open class ObjCFirebaseDestination: NSObject, ObjCPlugin, ObjCPluginShim { + public func instance() -> EventPlugin { return FirebaseDestination() } +} -public class FirebaseDestination: DestinationPlugin { +open class FirebaseDestination: DestinationPlugin { public let timeline = Timeline() public let type = PluginType.destination public let key = "Firebase" @@ -52,8 +52,8 @@ public class FirebaseDestination: DestinationPlugin { public init(firebaseOptions: FirebaseOptions? = nil) { self.firebaseOptions = firebaseOptions } - - public func update(settings: Settings, type: UpdateType) { + + open func update(settings: Settings, type: UpdateType) { // we've already set up this singleton SDK, can't do it again, so skip. guard type == .initial else { return }