From b80ac1b24fab1d179967e6d6f99cb9de8c095bff Mon Sep 17 00:00:00 2001 From: vanand17 <96406241+vanand17@users.noreply.github.com> Date: Fri, 10 Nov 2023 14:59:14 +1100 Subject: [PATCH] Update MixpanelDestination.swift Making the enable European endpoint in the destination setting an optional one so customers who have had this destination enabled for a while are able to migrate from iOS to Swift without any issues. Currently, this causes the plugin to fail as the CDN file does not contain the enableEuropeanUnionEndpoint setting --- Sources/SegmentMixpanel/MixpanelDestination.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SegmentMixpanel/MixpanelDestination.swift b/Sources/SegmentMixpanel/MixpanelDestination.swift index 0292587..e90d950 100644 --- a/Sources/SegmentMixpanel/MixpanelDestination.swift +++ b/Sources/SegmentMixpanel/MixpanelDestination.swift @@ -327,7 +327,7 @@ extension MixpanelDestination: VersionedPlugin { private struct MixpanelSettings: Codable { let token: String - let enableEuropeanUnionEndpoint: Bool + let enableEuropeanUnionEndpoint: Bool? let consolidatedPageCalls: Bool let trackAllPages: Bool let trackNamedPages: Bool