Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Updated AnalyticsFilters to refer to Analytics-Swift-Live (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsneed authored Nov 26, 2024
1 parent 0367052 commit ec60b55
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 195 deletions.
Binary file modified Examples/DestinationFiltersExample/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,46 @@
{
"identity" : "analytics-swift",
"kind" : "remoteSourceControl",
"location" : "git@github.com:segmentio/analytics-swift.git",
"location" : "https://github.com/segmentio/analytics-swift.git",
"state" : {
"revision" : "ddbe8ef9f15b4e8f2f61ddf713f421702f0d2a52",
"version" : "1.3.1"
"revision" : "f6acb751ea058e6a4077a876595f40a827350b0e",
"version" : "1.7.1"
}
},
{
"identity" : "edgefn-swift",
"identity" : "analytics-swift-live",
"kind" : "remoteSourceControl",
"location" : "git@github.com:segmentio/EdgeFn-Swift.git",
"location" : "https://github.com/segment-integrations/analytics-swift-live.git",
"state" : {
"revision" : "ff97785da9ed61c2c76cdbe3987aa084a30eeeb3",
"version" : "0.1.2"
"revision" : "c9f590123e83287f203180134438a4dcb4869c69",
"version" : "3.1.0"
}
},
{
"identity" : "jsonsafeencoding-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/segmentio/jsonsafeencoding-swift.git",
"state" : {
"revision" : "af6a8b360984085e36c6341b21ecb35c12f47ebd",
"version" : "2.0.0"
}
},
{
"identity" : "sovran-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/segmentio/Sovran-Swift.git",
"state" : {
"revision" : "944c17d7c46bd95fc37f09136cabd172be5b413b",
"version" : "1.0.3"
"revision" : "24867f3e4ac62027db9827112135e6531b6f4051",
"version" : "1.1.2"
}
},
{
"identity" : "substrata-swift",
"kind" : "remoteSourceControl",
"location" : "git@github.com:segmentio/substrata-swift.git",
"location" : "https://github.com/segmentio/substrata-swift.git",
"state" : {
"revision" : "a673d773d0a6dab86a31cadcb771b45022e0c5ac",
"version" : "0.0.2"
"revision" : "93f36ace19f4ed5a47d2e57a7edd9de92c18a37b",
"version" : "2.0.5"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Segment
import AnalyticsFilters

extension Analytics {
static let config = Configuration(writeKey: "93EMLzmXzP6EJ3cJOhdaAgEVNnZjwRqA")
static let config = Configuration(writeKey: "<YOUR WRITE KEY>")
.flushAt(1)
.trackApplicationLifecycleEvents(true)

Expand Down
29 changes: 19 additions & 10 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,46 @@
{
"identity" : "analytics-swift",
"kind" : "remoteSourceControl",
"location" : "git@github.com:segmentio/analytics-swift.git",
"location" : "https://github.com/segmentio/analytics-swift.git",
"state" : {
"revision" : "c8fd5fdf59299f00b3e4303a1b12a6d88893bf56",
"version" : "1.4.7"
"revision" : "f6acb751ea058e6a4077a876595f40a827350b0e",
"version" : "1.7.1"
}
},
{
"identity" : "analytics-swift-live",
"kind" : "remoteSourceControl",
"location" : "https://github.com/segment-integrations/analytics-swift-live.git",
"state" : {
"branch" : "add-removeLivePlugins-function",
"revision" : "049479fe4e18fcdda96ae2578e1f5be3d34f2e41"
"revision" : "c9f590123e83287f203180134438a4dcb4869c69",
"version" : "3.1.0"
}
},
{
"identity" : "jsonsafeencoding-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/segmentio/jsonsafeencoding-swift.git",
"state" : {
"revision" : "af6a8b360984085e36c6341b21ecb35c12f47ebd",
"version" : "2.0.0"
}
},
{
"identity" : "sovran-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/segmentio/Sovran-Swift.git",
"state" : {
"revision" : "64f3b5150c282a34af4578188dce2fd597e600e3",
"version" : "1.1.0"
"revision" : "24867f3e4ac62027db9827112135e6531b6f4051",
"version" : "1.1.2"
}
},
{
"identity" : "substrata-swift",
"kind" : "remoteSourceControl",
"location" : "git@github.com:segmentio/substrata-swift.git",
"location" : "https://github.com/segmentio/substrata-swift.git",
"state" : {
"revision" : "a673d773d0a6dab86a31cadcb771b45022e0c5ac",
"version" : "0.0.2"
"revision" : "93f36ace19f4ed5a47d2e57a7edd9de92c18a37b",
"version" : "2.0.5"
}
}
],
Expand Down
4 changes: 1 addition & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ let package = Package(
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/segment-integrations/analytics-swift-live.git", .upToNextMajor(from: "1.0.0")),
.package(url: "https://github.com/segment-integrations/analytics-swift-live.git", from: "3.1.0"),
.package(url: "https://github.com/segmentio/analytics-swift.git", from: "1.4.7"),
.package(url: "https://github.com/segmentio/substrata-swift.git", .upToNextMajor(from: "0.0.2")),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand All @@ -28,7 +27,6 @@ let package = Package(
name: "AnalyticsFilters",
dependencies: [
.product(name: "Segment", package: "analytics-swift"),
.product(name: "Substrata", package: "substrata-swift"),
.product(name: "AnalyticsLive", package: "analytics-swift-live"),
]),
.testTarget(
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# DestinationFilters-Swift

Analytics-Swift plugin to enable the use of [Destination Filters](https://segment.com/docs/connections/destinations/destination-filters/) for destination plugins running in device-mode

NOTE: Device-mode Destination Filters for iOS is currently only available in Beta
This package is deprecated. Please use [Analytics-Swift-Live](https://github.com/segment-integrations/analytics-swift-live), which includes this functionality.
8 changes: 8 additions & 0 deletions Sources/AnalyticsFilters/AnalyticsFilters.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//
// AnalyticsFilters.swift
// AnalyticsFilters
//
// Created by Brandon Sneed on 11/26/24.
//

@_exported import AnalyticsLive
Loading

0 comments on commit ec60b55

Please sign in to comment.