From 4e64d679bf7130ca9c1b0da91594e84e4bd43949 Mon Sep 17 00:00:00 2001 From: vanand17 <96406241+vanand17@users.noreply.github.com> Date: Wed, 29 Nov 2023 04:03:58 +1100 Subject: [PATCH] Update MixpanelDestination.swift (#9) 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