Skip to content

Commit 706f65b

Browse files
authored
Added Firebase destination (#25)
* Added Firebase destination * Updated destination example application
1 parent 3e2b35b commit 706f65b

27 files changed

+769
-36
lines changed

Examples/apps/DestinationsExample/DestinationsExample.xcodeproj/project.pbxproj

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
965DC0FA2668077400DDF9C7 /* MixpanelDestination.swift in Sources */ = {isa = PBXBuildFile; fileRef = 965DC0F82668077400DDF9C7 /* MixpanelDestination.swift */; };
2323
965DC0FB2668077400DDF9C7 /* AmplitudeSession.swift in Sources */ = {isa = PBXBuildFile; fileRef = 965DC0F92668077400DDF9C7 /* AmplitudeSession.swift */; };
2424
965DC0FE2668079400DDF9C7 /* Mixpanel in Frameworks */ = {isa = PBXBuildFile; productRef = 965DC0FD2668079400DDF9C7 /* Mixpanel */; };
25+
965DC1212669942800DDF9C7 /* FirebaseAnalytics in Frameworks */ = {isa = PBXBuildFile; productRef = 965DC1202669942800DDF9C7 /* FirebaseAnalytics */; };
26+
965DC1232669947F00DDF9C7 /* FirebaseDestination.swift in Sources */ = {isa = PBXBuildFile; fileRef = 965DC1222669947F00DDF9C7 /* FirebaseDestination.swift */; };
27+
965DC1262671656C00DDF9C7 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 965DC1252671656C00DDF9C7 /* GoogleService-Info.plist */; };
28+
9697C1F52679156C00B87EC1 /* Segment_Logo_Avatar_Grey-1024.png in Resources */ = {isa = PBXBuildFile; fileRef = 9697C1F42679156C00B87EC1 /* Segment_Logo_Avatar_Grey-1024.png */; };
2529
/* End PBXBuildFile section */
2630

2731
/* Begin PBXFileReference section */
@@ -39,6 +43,9 @@
3943
469F7B24266013320038E773 /* AdjustDestination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdjustDestination.swift; sourceTree = "<group>"; };
4044
965DC0F82668077400DDF9C7 /* MixpanelDestination.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MixpanelDestination.swift; sourceTree = "<group>"; };
4145
965DC0F92668077400DDF9C7 /* AmplitudeSession.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AmplitudeSession.swift; sourceTree = "<group>"; };
46+
965DC1222669947F00DDF9C7 /* FirebaseDestination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FirebaseDestination.swift; sourceTree = "<group>"; };
47+
965DC1252671656C00DDF9C7 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
48+
9697C1F42679156C00B87EC1 /* Segment_Logo_Avatar_Grey-1024.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Segment_Logo_Avatar_Grey-1024.png"; sourceTree = "<group>"; };
4249
/* End PBXFileReference section */
4350

4451
/* Begin PBXFrameworksBuildPhase section */
@@ -48,6 +55,7 @@
4855
files = (
4956
469EC8E0266828860068F9E3 /* FlurryAnalyticsSPM in Frameworks */,
5057
469EC8D0266066130068F9E3 /* SystemConfiguration.framework in Frameworks */,
58+
965DC1212669942800DDF9C7 /* FirebaseAnalytics in Frameworks */,
5159
469F7B1D266011D70038E773 /* Segment in Frameworks */,
5260
965DC0FE2668079400DDF9C7 /* Mixpanel in Frameworks */,
5361
469F7B23266013100038E773 /* Adjust in Frameworks */,
@@ -86,6 +94,7 @@
8694
469F7B102660116A0038E773 /* Assets.xcassets */,
8795
469F7B122660116A0038E773 /* LaunchScreen.storyboard */,
8896
469F7B152660116A0038E773 /* Info.plist */,
97+
965DC1242671655700DDF9C7 /* Resources */,
8998
);
9099
path = DestinationsExample;
91100
sourceTree = "<group>";
@@ -103,13 +112,23 @@
103112
children = (
104113
469F7B24266013320038E773 /* AdjustDestination.swift */,
105114
965DC0F92668077400DDF9C7 /* AmplitudeSession.swift */,
115+
965DC1222669947F00DDF9C7 /* FirebaseDestination.swift */,
106116
469F7B1F266012CB0038E773 /* FlurryDestination.swift */,
107117
965DC0F82668077400DDF9C7 /* MixpanelDestination.swift */,
108118
);
109119
name = destination_plugins;
110120
path = ../../../destination_plugins;
111121
sourceTree = "<group>";
112122
};
123+
965DC1242671655700DDF9C7 /* Resources */ = {
124+
isa = PBXGroup;
125+
children = (
126+
9697C1F42679156C00B87EC1 /* Segment_Logo_Avatar_Grey-1024.png */,
127+
965DC1252671656C00DDF9C7 /* GoogleService-Info.plist */,
128+
);
129+
path = Resources;
130+
sourceTree = "<group>";
131+
};
113132
/* End PBXGroup section */
114133

115134
/* Begin PBXNativeTarget section */
@@ -131,6 +150,7 @@
131150
469F7B22266013100038E773 /* Adjust */,
132151
965DC0FD2668079400DDF9C7 /* Mixpanel */,
133152
469EC8DF266828860068F9E3 /* FlurryAnalyticsSPM */,
153+
965DC1202669942800DDF9C7 /* FirebaseAnalytics */,
134154
);
135155
productName = DestinationsExample;
136156
productReference = 469F7B04266011690038E773 /* DestinationsExample.app */;
@@ -163,6 +183,7 @@
163183
469F7B21266013100038E773 /* XCRemoteSwiftPackageReference "ios_sdk" */,
164184
965DC0FC2668079400DDF9C7 /* XCRemoteSwiftPackageReference "mixpanel-swift" */,
165185
469EC8DE266828860068F9E3 /* XCRemoteSwiftPackageReference "FlurrySwiftPackage" */,
186+
965DC11F2669942800DDF9C7 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */,
166187
);
167188
productRefGroup = 469F7B05266011690038E773 /* Products */;
168189
projectDirPath = "";
@@ -179,8 +200,10 @@
179200
buildActionMask = 2147483647;
180201
files = (
181202
469F7B142660116A0038E773 /* LaunchScreen.storyboard in Resources */,
203+
965DC1262671656C00DDF9C7 /* GoogleService-Info.plist in Resources */,
182204
469F7B112660116A0038E773 /* Assets.xcassets in Resources */,
183205
469F7B0F266011690038E773 /* Main.storyboard in Resources */,
206+
9697C1F52679156C00B87EC1 /* Segment_Logo_Avatar_Grey-1024.png in Resources */,
184207
);
185208
runOnlyForDeploymentPostprocessing = 0;
186209
};
@@ -198,6 +221,7 @@
198221
469F7B08266011690038E773 /* AppDelegate.swift in Sources */,
199222
469F7B25266013320038E773 /* AdjustDestination.swift in Sources */,
200223
469F7B0A266011690038E773 /* SceneDelegate.swift in Sources */,
224+
965DC1232669947F00DDF9C7 /* FirebaseDestination.swift in Sources */,
201225
);
202226
runOnlyForDeploymentPostprocessing = 0;
203227
};
@@ -425,6 +449,14 @@
425449
minimumVersion = 2.9.3;
426450
};
427451
};
452+
965DC11F2669942800DDF9C7 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */ = {
453+
isa = XCRemoteSwiftPackageReference;
454+
repositoryURL = "https://github.com/firebase/firebase-ios-sdk.git";
455+
requirement = {
456+
kind = upToNextMajorVersion;
457+
minimumVersion = 8.1.0;
458+
};
459+
};
428460
/* End XCRemoteSwiftPackageReference section */
429461

430462
/* Begin XCSwiftPackageProductDependency section */
@@ -447,6 +479,11 @@
447479
package = 965DC0FC2668079400DDF9C7 /* XCRemoteSwiftPackageReference "mixpanel-swift" */;
448480
productName = Mixpanel;
449481
};
482+
965DC1202669942800DDF9C7 /* FirebaseAnalytics */ = {
483+
isa = XCSwiftPackageProductDependency;
484+
package = 965DC11F2669942800DDF9C7 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
485+
productName = FirebaseAnalytics;
486+
};
450487
/* End XCSwiftPackageProductDependency section */
451488
};
452489
rootObject = 469F7AFC266011690038E773 /* Project object */;

Examples/apps/DestinationsExample/DestinationsExample/AppDelegate.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3333

3434
// Add Flurry destination plugin
3535
analytics?.add(plugin: FlurryDestination(name: "Flurry"))
36+
37+
// Add the Firebase destination plugin
38+
analytics?.add(plugin: FirebaseDestination(name: "Firebase"))
3639

3740
return true
3841
}

Examples/apps/DestinationsExample/DestinationsExample/Assets.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,49 @@
11
{
22
"images" : [
33
{
4+
"filename" : "Segment_Logo_40-2.png",
45
"idiom" : "iphone",
56
"scale" : "2x",
67
"size" : "20x20"
78
},
89
{
10+
"filename" : "Segment_Logo_60.png",
911
"idiom" : "iphone",
1012
"scale" : "3x",
1113
"size" : "20x20"
1214
},
1315
{
16+
"filename" : "Segment_Logo_58-1.png",
1417
"idiom" : "iphone",
1518
"scale" : "2x",
1619
"size" : "29x29"
1720
},
1821
{
22+
"filename" : "Segment_Logo_87.png",
1923
"idiom" : "iphone",
2024
"scale" : "3x",
2125
"size" : "29x29"
2226
},
2327
{
28+
"filename" : "Segment_Logo_80-1.png",
2429
"idiom" : "iphone",
2530
"scale" : "2x",
2631
"size" : "40x40"
2732
},
2833
{
34+
"filename" : "Segment_Logo_120-1.png",
2935
"idiom" : "iphone",
3036
"scale" : "3x",
3137
"size" : "40x40"
3238
},
3339
{
40+
"filename" : "Segment_Logo_120.png",
3441
"idiom" : "iphone",
3542
"scale" : "2x",
3643
"size" : "60x60"
3744
},
3845
{
46+
"filename" : "Segment_Logo_180.png",
3947
"idiom" : "iphone",
4048
"scale" : "3x",
4149
"size" : "60x60"
@@ -46,6 +54,7 @@
4654
"size" : "20x20"
4755
},
4856
{
57+
"filename" : "Segment_Logo_40.png",
4958
"idiom" : "ipad",
5059
"scale" : "2x",
5160
"size" : "20x20"
@@ -56,36 +65,43 @@
5665
"size" : "29x29"
5766
},
5867
{
68+
"filename" : "Segment_Logo_58.png",
5969
"idiom" : "ipad",
6070
"scale" : "2x",
6171
"size" : "29x29"
6272
},
6373
{
74+
"filename" : "Segment_Logo_40-1.png",
6475
"idiom" : "ipad",
6576
"scale" : "1x",
6677
"size" : "40x40"
6778
},
6879
{
80+
"filename" : "Segment_Logo_80.png",
6981
"idiom" : "ipad",
7082
"scale" : "2x",
7183
"size" : "40x40"
7284
},
7385
{
86+
"filename" : "Segment_Logo_76.png",
7487
"idiom" : "ipad",
7588
"scale" : "1x",
7689
"size" : "76x76"
7790
},
7891
{
92+
"filename" : "Segment_Logo_152.png",
7993
"idiom" : "ipad",
8094
"scale" : "2x",
8195
"size" : "76x76"
8296
},
8397
{
98+
"filename" : "Segment_Logo_167.png",
8499
"idiom" : "ipad",
85100
"scale" : "2x",
86101
"size" : "83.5x83.5"
87102
},
88103
{
104+
"filename" : "Segment_Logo_1024.png",
89105
"idiom" : "ios-marketing",
90106
"scale" : "1x",
91107
"size" : "1024x1024"
83.9 KB
Loading
11.3 KB
Loading
11.3 KB
Loading
13.3 KB
Loading
14.8 KB
Loading
15.9 KB
Loading
3.17 KB
Loading

0 commit comments

Comments
 (0)