From 3c1ee59b3b4415f8d9cbbcbbafb1474c32e8ce56 Mon Sep 17 00:00:00 2001 From: Alan Charles <50601149+alanjcharles@users.noreply.github.com> Date: Tue, 23 Jan 2024 14:53:30 -0700 Subject: [PATCH] Fix: Add Correct EU Endpoint (#11) * fix eu endpoint * update analytics swift * remove deployment team --- .../BasicExample.xcodeproj/project.pbxproj | 2 ++ .../xcshareddata/swiftpm/Package.resolved | 13 +++++++++++-- Sources/SegmentMixpanel/MixpanelDestination.swift | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Example/BasicExample/BasicExample.xcodeproj/project.pbxproj b/Example/BasicExample/BasicExample.xcodeproj/project.pbxproj index 05d75b4..c62a4ba 100644 --- a/Example/BasicExample/BasicExample.xcodeproj/project.pbxproj +++ b/Example/BasicExample/BasicExample.xcodeproj/project.pbxproj @@ -442,6 +442,7 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = "\"BasicExample/Preview Content\""; + DEVELOPMENT_TEAM = ""; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; @@ -470,6 +471,7 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = "\"BasicExample/Preview Content\""; + DEVELOPMENT_TEAM = ""; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; diff --git a/Example/BasicExample/BasicExample.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Example/BasicExample/BasicExample.xcworkspace/xcshareddata/swiftpm/Package.resolved index 76e6d2d..2f9c7fb 100644 --- a/Example/BasicExample/BasicExample.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Example/BasicExample/BasicExample.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -6,8 +6,17 @@ "repositoryURL": "https://github.com/segmentio/analytics-swift", "state": { "branch": null, - "revision": "efc111b5fccaebd1063ef0db6d206c252da387ec", - "version": "1.4.8" + "revision": "51f56b972de8daee251f18fd2c91fa3a33c8d77e", + "version": "1.5.2" + } + }, + { + "package": "JSONSafeEncoder", + "repositoryURL": "https://github.com/segmentio/jsonsafeencoder-swift.git", + "state": { + "branch": null, + "revision": "8b70dc8c01b7b041912e30e29d2b488a43f782ac", + "version": "1.0.1" } }, { diff --git a/Sources/SegmentMixpanel/MixpanelDestination.swift b/Sources/SegmentMixpanel/MixpanelDestination.swift index af8a1f5..0fa3c91 100644 --- a/Sources/SegmentMixpanel/MixpanelDestination.swift +++ b/Sources/SegmentMixpanel/MixpanelDestination.swift @@ -79,7 +79,7 @@ public class MixpanelDestination: DestinationPlugin, RemoteNotifications { // Change the endpoint if euro one is set if let euEndpointEnabled = mixpanelSettings?.enableEuropeanUnionEndpoint, euEndpointEnabled { - mixpanel?.serverURL = "api-eu.mixpanel.com" + mixpanel?.serverURL = "https://api-eu.mixpanel.com" } }