Skip to content

Commit c2c7743

Browse files
authored
Removing dead links and adding visibility to example destination project (#146)
1 parent 8ae3136 commit c2c7743

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
lines changed

Examples/destination_plugins/ExampleDestination.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ import Segment
4141
An implementation of the Example Analytics device mode destination as a plugin.
4242
*/
4343

44-
class ExampleDestination: DestinationPlugin {
45-
let timeline = Timeline()
46-
let type = PluginType.destination
44+
public class ExampleDestination: DestinationPlugin {
45+
public let timeline = Timeline()
46+
public let type = PluginType.destination
4747
// TODO: Fill this out with your settings key that matches your destination in the Segment App
48-
let key = "Example"
49-
var analytics: Analytics? = nil
48+
public let key = "Example"
49+
public var analytics: Analytics? = nil
5050

5151
private var exampleSettings: ExampleSettings?
5252

53-
func update(settings: Settings, type: UpdateType) {
53+
public func update(settings: Settings, type: UpdateType) {
5454
// Skip if you have a singleton and don't want to keep updating via settings.
5555
guard type == .initial else { return }
5656

@@ -62,7 +62,7 @@ class ExampleDestination: DestinationPlugin {
6262
// TODO: initialize partner SDK here
6363
}
6464

65-
func identify(event: IdentifyEvent) -> IdentifyEvent? {
65+
public func identify(event: IdentifyEvent) -> IdentifyEvent? {
6666

6767
if let _ = event.traits?.dictionaryValue {
6868
// TODO: Do something with traits if they exist
@@ -73,7 +73,7 @@ class ExampleDestination: DestinationPlugin {
7373
return event
7474
}
7575

76-
func track(event: TrackEvent) -> TrackEvent? {
76+
public func track(event: TrackEvent) -> TrackEvent? {
7777

7878
var returnEvent = event
7979

@@ -88,7 +88,7 @@ class ExampleDestination: DestinationPlugin {
8888
return returnEvent
8989
}
9090

91-
func screen(event: ScreenEvent) -> ScreenEvent? {
91+
public func screen(event: ScreenEvent) -> ScreenEvent? {
9292

9393
if let _ = event.properties?.dictionaryValue {
9494
// TODO: Do something with properties if they exist
@@ -99,7 +99,7 @@ class ExampleDestination: DestinationPlugin {
9999
return event
100100
}
101101

102-
func group(event: GroupEvent) -> GroupEvent? {
102+
public func group(event: GroupEvent) -> GroupEvent? {
103103

104104
if let _ = event.traits?.dictionaryValue {
105105
// TODO: Do something with traits if they exist
@@ -110,7 +110,7 @@ class ExampleDestination: DestinationPlugin {
110110
return event
111111
}
112112

113-
func alias(event: AliasEvent) -> AliasEvent? {
113+
public func alias(event: AliasEvent) -> AliasEvent? {
114114

115115
// TODO: Do something with previousId & userId in partner SDK
116116

Segment.xcodeproj/project.pbxproj

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,6 @@
132132
46B1AC6827346D3D00846DE8 /* StressTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StressTests.swift; sourceTree = "<group>"; };
133133
46D98E3D26D6FEF300E7A86A /* FlurryDestination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FlurryDestination.swift; sourceTree = "<group>"; };
134134
46D98E3E26D6FEF300E7A86A /* AdjustDestination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdjustDestination.swift; sourceTree = "<group>"; };
135-
46D98E3F26D6FEF300E7A86A /* MixpanelDestination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MixpanelDestination.swift; sourceTree = "<group>"; };
136-
46D98E4026D6FEF300E7A86A /* AppsFlyerDestination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppsFlyerDestination.swift; sourceTree = "<group>"; };
137-
46D98E4126D6FEF300E7A86A /* FirebaseDestination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FirebaseDestination.swift; sourceTree = "<group>"; };
138-
46D98E4226D6FEF300E7A86A /* AmplitudeSession.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AmplitudeSession.swift; sourceTree = "<group>"; };
139135
46D98E4426D6FEF300E7A86A /* UIKitScreenTracking.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIKitScreenTracking.swift; sourceTree = "<group>"; };
140136
46D98E4526D6FEF300E7A86A /* ConsentTracking.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConsentTracking.swift; sourceTree = "<group>"; };
141137
46D98E4626D6FEF300E7A86A /* IDFACollection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IDFACollection.swift; sourceTree = "<group>"; };
@@ -150,6 +146,8 @@
150146
46FE4CFA25A6C671003A7362 /* TestUtilities.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestUtilities.swift; sourceTree = "<group>"; };
151147
46FE4D1C25A7A850003A7362 /* Storage_Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Storage_Tests.swift; sourceTree = "<group>"; };
152148
759D6CD027B48ABB00AB900A /* DestinationMetadataPlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DestinationMetadataPlugin.swift; sourceTree = "<group>"; };
149+
7B3C818F285BAD7600199D3E /* ComscoreDestination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ComscoreDestination.swift; sourceTree = "<group>"; };
150+
7B3C8190285BAD8700199D3E /* IntercomDestination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IntercomDestination.swift; sourceTree = "<group>"; };
153151
9620862B2575C0C800314F8D /* Events.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Events.swift; sourceTree = "<group>"; };
154152
962086482579CCC200314F8D /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
155153
9620864F257AA83E00314F8D /* iOSLifecycleMonitor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSLifecycleMonitor.swift; sourceTree = "<group>"; };
@@ -256,13 +254,11 @@
256254
46D98E3C26D6FEF300E7A86A /* destination_plugins */ = {
257255
isa = PBXGroup;
258256
children = (
257+
7B3C8190285BAD8700199D3E /* IntercomDestination.swift */,
258+
7B3C818F285BAD7600199D3E /* ComscoreDestination.swift */,
259259
46D98E3E26D6FEF300E7A86A /* AdjustDestination.swift */,
260-
46D98E4226D6FEF300E7A86A /* AmplitudeSession.swift */,
261-
46D98E4026D6FEF300E7A86A /* AppsFlyerDestination.swift */,
262260
9679DD6226EFF00800A6933C /* ExampleDestination.swift */,
263-
46D98E4126D6FEF300E7A86A /* FirebaseDestination.swift */,
264261
46D98E3D26D6FEF300E7A86A /* FlurryDestination.swift */,
265-
46D98E3F26D6FEF300E7A86A /* MixpanelDestination.swift */,
266262
);
267263
name = destination_plugins;
268264
path = Examples/destination_plugins;

0 commit comments

Comments
 (0)