Skip to content

Commit

Permalink
removed segment
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahroz16 committed May 7, 2024
1 parent 8e494f5 commit eec1444
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
20 changes: 0 additions & 20 deletions Apps/APN-UIKit/APN UIKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
objects = {

/* Begin PBXBuildFile section */
30678B7D2BE9647E000C3E2D /* Segment in Frameworks */ = {isa = PBXBuildFile; productRef = 30678B7C2BE9647E000C3E2D /* Segment */; };
4650330229F68FEB001B6552 /* NotificationService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4650330129F68FEB001B6552 /* NotificationService.swift */; };
4650330629F68FEB001B6552 /* NotificationServiceExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 465032FF29F68FEB001B6552 /* NotificationServiceExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
4650330D29F69374001B6552 /* MessagingPushAPN in Frameworks */ = {isa = PBXBuildFile; productRef = 4650330C29F69374001B6552 /* MessagingPushAPN */; };
Expand Down Expand Up @@ -162,7 +161,6 @@
buildActionMask = 2147483647;
files = (
F7D35F0A2BC9869900D25BC2 /* MessagingPushFCM in Frameworks */,
30678B7D2BE9647E000C3E2D /* Segment in Frameworks */,
A776886E2B9875D0004F2A49 /* DataPipelines in Frameworks */,
46EE275529E9E2960068F9A3 /* MessagingInApp in Frameworks */,
46EE275729E9E2960068F9A3 /* MessagingPushAPN in Frameworks */,
Expand Down Expand Up @@ -404,7 +402,6 @@
46EE275629E9E2960068F9A3 /* MessagingPushAPN */,
A776886D2B9875D0004F2A49 /* DataPipelines */,
F7D35F092BC9869900D25BC2 /* MessagingPushFCM */,
30678B7C2BE9647E000C3E2D /* Segment */,
);
productName = "APN UIKit";
productReference = 46D5D97D29E459D600EAF40B /* APN UIKit.app */;
Expand Down Expand Up @@ -482,7 +479,6 @@
);
mainGroup = 46D5D97429E459D600EAF40B;
packageReferences = (
30678B7B2BE9647E000C3E2D /* XCRemoteSwiftPackageReference "analytics-swift" */,
);
productRefGroup = 46D5D97E29E459D600EAF40B /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -1003,23 +999,7 @@
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
30678B7B2BE9647E000C3E2D /* XCRemoteSwiftPackageReference "analytics-swift" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/segmentio/analytics-swift.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 1.5.11;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
30678B7C2BE9647E000C3E2D /* Segment */ = {
isa = XCSwiftPackageProductDependency;
package = 30678B7B2BE9647E000C3E2D /* XCRemoteSwiftPackageReference "analytics-swift" */;
productName = Segment;
};
4650330C29F69374001B6552 /* MessagingPushAPN */ = {
isa = XCSwiftPackageProductDependency;
productName = MessagingPushAPN;
Expand Down
19 changes: 0 additions & 19 deletions Apps/APN-UIKit/APN UIKit/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import CioDataPipelines
import CioMessagingInApp
import CioMessagingPushAPN
import Segment
import UIKit

@main
class AppDelegate: UIResponder, UIApplicationDelegate {
var storage = DIGraphShared.shared.storage
var deepLinkHandler = DIGraphShared.shared.deepLinksHandlerUtil
var analytics: Analytics?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
Expand Down Expand Up @@ -63,13 +61,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}
CustomerIO.initialize(withConfig: config.build())

let configuration = Configuration(writeKey: "WRITE_KEY")
.trackApplicationLifecycleEvents(true)
.flushInterval(10)

analytics = Analytics(configuration: configuration)
analytics?.add(plugin: SegmentTestPlugin())

// Initialize messaging features after initializing Customer.io SDK
MessagingInApp
.initialize(withConfig: MessagingInAppConfigBuilder(siteId: siteId, region: .US).build())
Expand Down Expand Up @@ -109,16 +100,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}
}

class SegmentTestPlugin: Plugin {
var type: PluginType = .enrichment

var analytics: Analytics?

func execute<T>(event: T?) -> T? where T: RawEvent {
print("TestPlugin: \(String(describing: event))") as? T
}
}

extension AppDelegate: UNUserNotificationCenterDelegate {
// Function called when a push notification is clicked or swiped away.
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
Expand Down

0 comments on commit eec1444

Please sign in to comment.