Skip to content

Added Firebase destination #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
965DC0FA2668077400DDF9C7 /* MixpanelDestination.swift in Sources */ = {isa = PBXBuildFile; fileRef = 965DC0F82668077400DDF9C7 /* MixpanelDestination.swift */; };
965DC0FB2668077400DDF9C7 /* AmplitudeSession.swift in Sources */ = {isa = PBXBuildFile; fileRef = 965DC0F92668077400DDF9C7 /* AmplitudeSession.swift */; };
965DC0FE2668079400DDF9C7 /* Mixpanel in Frameworks */ = {isa = PBXBuildFile; productRef = 965DC0FD2668079400DDF9C7 /* Mixpanel */; };
965DC1212669942800DDF9C7 /* FirebaseAnalytics in Frameworks */ = {isa = PBXBuildFile; productRef = 965DC1202669942800DDF9C7 /* FirebaseAnalytics */; };
965DC1232669947F00DDF9C7 /* FirebaseDestination.swift in Sources */ = {isa = PBXBuildFile; fileRef = 965DC1222669947F00DDF9C7 /* FirebaseDestination.swift */; };
965DC1262671656C00DDF9C7 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 965DC1252671656C00DDF9C7 /* GoogleService-Info.plist */; };
9697C1F52679156C00B87EC1 /* Segment_Logo_Avatar_Grey-1024.png in Resources */ = {isa = PBXBuildFile; fileRef = 9697C1F42679156C00B87EC1 /* Segment_Logo_Avatar_Grey-1024.png */; };
/* End PBXBuildFile section */

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

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -48,6 +55,7 @@
files = (
469EC8E0266828860068F9E3 /* FlurryAnalyticsSPM in Frameworks */,
469EC8D0266066130068F9E3 /* SystemConfiguration.framework in Frameworks */,
965DC1212669942800DDF9C7 /* FirebaseAnalytics in Frameworks */,
469F7B1D266011D70038E773 /* Segment in Frameworks */,
965DC0FE2668079400DDF9C7 /* Mixpanel in Frameworks */,
469F7B23266013100038E773 /* Adjust in Frameworks */,
Expand Down Expand Up @@ -86,6 +94,7 @@
469F7B102660116A0038E773 /* Assets.xcassets */,
469F7B122660116A0038E773 /* LaunchScreen.storyboard */,
469F7B152660116A0038E773 /* Info.plist */,
965DC1242671655700DDF9C7 /* Resources */,
);
path = DestinationsExample;
sourceTree = "<group>";
Expand All @@ -103,13 +112,23 @@
children = (
469F7B24266013320038E773 /* AdjustDestination.swift */,
965DC0F92668077400DDF9C7 /* AmplitudeSession.swift */,
965DC1222669947F00DDF9C7 /* FirebaseDestination.swift */,
469F7B1F266012CB0038E773 /* FlurryDestination.swift */,
965DC0F82668077400DDF9C7 /* MixpanelDestination.swift */,
);
name = destination_plugins;
path = ../../../destination_plugins;
sourceTree = "<group>";
};
965DC1242671655700DDF9C7 /* Resources */ = {
isa = PBXGroup;
children = (
9697C1F42679156C00B87EC1 /* Segment_Logo_Avatar_Grey-1024.png */,
965DC1252671656C00DDF9C7 /* GoogleService-Info.plist */,
);
path = Resources;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand All @@ -131,6 +150,7 @@
469F7B22266013100038E773 /* Adjust */,
965DC0FD2668079400DDF9C7 /* Mixpanel */,
469EC8DF266828860068F9E3 /* FlurryAnalyticsSPM */,
965DC1202669942800DDF9C7 /* FirebaseAnalytics */,
);
productName = DestinationsExample;
productReference = 469F7B04266011690038E773 /* DestinationsExample.app */;
Expand Down Expand Up @@ -163,6 +183,7 @@
469F7B21266013100038E773 /* XCRemoteSwiftPackageReference "ios_sdk" */,
965DC0FC2668079400DDF9C7 /* XCRemoteSwiftPackageReference "mixpanel-swift" */,
469EC8DE266828860068F9E3 /* XCRemoteSwiftPackageReference "FlurrySwiftPackage" */,
965DC11F2669942800DDF9C7 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */,
);
productRefGroup = 469F7B05266011690038E773 /* Products */;
projectDirPath = "";
Expand All @@ -179,8 +200,10 @@
buildActionMask = 2147483647;
files = (
469F7B142660116A0038E773 /* LaunchScreen.storyboard in Resources */,
965DC1262671656C00DDF9C7 /* GoogleService-Info.plist in Resources */,
469F7B112660116A0038E773 /* Assets.xcassets in Resources */,
469F7B0F266011690038E773 /* Main.storyboard in Resources */,
9697C1F52679156C00B87EC1 /* Segment_Logo_Avatar_Grey-1024.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -198,6 +221,7 @@
469F7B08266011690038E773 /* AppDelegate.swift in Sources */,
469F7B25266013320038E773 /* AdjustDestination.swift in Sources */,
469F7B0A266011690038E773 /* SceneDelegate.swift in Sources */,
965DC1232669947F00DDF9C7 /* FirebaseDestination.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -425,6 +449,14 @@
minimumVersion = 2.9.3;
};
};
965DC11F2669942800DDF9C7 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/firebase/firebase-ios-sdk.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 8.1.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
Expand All @@ -447,6 +479,11 @@
package = 965DC0FC2668079400DDF9C7 /* XCRemoteSwiftPackageReference "mixpanel-swift" */;
productName = Mixpanel;
};
965DC1202669942800DDF9C7 /* FirebaseAnalytics */ = {
isa = XCSwiftPackageProductDependency;
package = 965DC11F2669942800DDF9C7 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
productName = FirebaseAnalytics;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 469F7AFC266011690038E773 /* Project object */;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

// Add Flurry destination plugin
analytics?.add(plugin: FlurryDestination(name: "Flurry"))

// Add the Firebase destination plugin
analytics?.add(plugin: FirebaseDestination(name: "Firebase"))

return true
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,41 +1,49 @@
{
"images" : [
{
"filename" : "Segment_Logo_40-2.png",
"idiom" : "iphone",
"scale" : "2x",
"size" : "20x20"
},
{
"filename" : "Segment_Logo_60.png",
"idiom" : "iphone",
"scale" : "3x",
"size" : "20x20"
},
{
"filename" : "Segment_Logo_58-1.png",
"idiom" : "iphone",
"scale" : "2x",
"size" : "29x29"
},
{
"filename" : "Segment_Logo_87.png",
"idiom" : "iphone",
"scale" : "3x",
"size" : "29x29"
},
{
"filename" : "Segment_Logo_80-1.png",
"idiom" : "iphone",
"scale" : "2x",
"size" : "40x40"
},
{
"filename" : "Segment_Logo_120-1.png",
"idiom" : "iphone",
"scale" : "3x",
"size" : "40x40"
},
{
"filename" : "Segment_Logo_120.png",
"idiom" : "iphone",
"scale" : "2x",
"size" : "60x60"
},
{
"filename" : "Segment_Logo_180.png",
"idiom" : "iphone",
"scale" : "3x",
"size" : "60x60"
Expand All @@ -46,6 +54,7 @@
"size" : "20x20"
},
{
"filename" : "Segment_Logo_40.png",
"idiom" : "ipad",
"scale" : "2x",
"size" : "20x20"
Expand All @@ -56,36 +65,43 @@
"size" : "29x29"
},
{
"filename" : "Segment_Logo_58.png",
"idiom" : "ipad",
"scale" : "2x",
"size" : "29x29"
},
{
"filename" : "Segment_Logo_40-1.png",
"idiom" : "ipad",
"scale" : "1x",
"size" : "40x40"
},
{
"filename" : "Segment_Logo_80.png",
"idiom" : "ipad",
"scale" : "2x",
"size" : "40x40"
},
{
"filename" : "Segment_Logo_76.png",
"idiom" : "ipad",
"scale" : "1x",
"size" : "76x76"
},
{
"filename" : "Segment_Logo_152.png",
"idiom" : "ipad",
"scale" : "2x",
"size" : "76x76"
},
{
"filename" : "Segment_Logo_167.png",
"idiom" : "ipad",
"scale" : "2x",
"size" : "83.5x83.5"
},
{
"filename" : "Segment_Logo_1024.png",
"idiom" : "ios-marketing",
"scale" : "1x",
"size" : "1024x1024"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
Expand All @@ -11,15 +12,31 @@
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Segment_Logo_Avatar_Grey-1024.png" translatesAutoresizingMaskIntoConstraints="NO" id="DPT-TO-YaC">
<rect key="frame" x="20" y="266" width="374" height="374"/>
<constraints>
<constraint firstAttribute="width" secondItem="DPT-TO-YaC" secondAttribute="height" multiplier="1:1" id="stn-Op-1yD"/>
</constraints>
</imageView>
</subviews>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
<color key="backgroundColor" red="0.93333333333333335" green="0.94509803921568625" blue="0.94117647058823528" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
<constraints>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="DPT-TO-YaC" secondAttribute="trailing" constant="20" id="98M-pD-x3e"/>
<constraint firstItem="DPT-TO-YaC" firstAttribute="centerY" secondItem="6Tk-OE-BBY" secondAttribute="centerY" id="NMe-uL-01D"/>
<constraint firstItem="DPT-TO-YaC" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="20" id="dMT-j9-hhg"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
<point key="canvasLocation" x="52.173913043478265" y="375"/>
</scene>
</scenes>
<resources>
<image name="Segment_Logo_Avatar_Grey-1024.png" width="1024" height="1024"/>
</resources>
</document>
Loading