Skip to content

Commit e6014a7

Browse files
authored
Dependency changes for analytics live. (#8)
* Dependency changes for analytics live. * Added makefile
1 parent 898c283 commit e6014a7

File tree

4 files changed

+57
-22
lines changed

4 files changed

+57
-22
lines changed

Makefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
SHELL = /bin/bash
2+
3+
prefix ?= /usr/local
4+
bindir ?= $(prefix)/bin
5+
libdir ?= $(prefix)/lib
6+
srcdir = Sources
7+
8+
REPODIR = $(shell pwd)
9+
BUILDDIR = $(REPODIR)/.build
10+
SOURCES = $(wildcard $(srcdir)/**/*.swift)
11+
12+
.DEFAULT_GOAL = all
13+
14+
segmentcli: $(SOURCES)
15+
@swift build \
16+
-c release \
17+
--disable-sandbox \
18+
--build-path "$(BUILDDIR)"
19+
20+
.PHONY: install
21+
install: segmentcli
22+
@install -d "$(bindir)"
23+
@install "$(wildcard $(BUILDDIR)/**/release/segmentcli)" "$(bindir)"
24+
25+
.PHONY: uninstall
26+
uninstall:
27+
@rm -rf "$(bindir)/segmentcli"
28+
29+
.PHONY: clean
30+
distclean:
31+
@rm -f $(BUILDDIR)/release
32+
33+
.PHONY: clean
34+
clean: distclean
35+
@rm -rf $(BUILDDIR)

Package.resolved

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ let package = Package(
1212
.package(url: "https://github.com/jakeheis/SwiftCLI", from: "6.0.0"),
1313
.package(url: "https://github.com/dominicegginton/Spinner", from: "1.1.4"),
1414
.package(url: "https://github.com/mtynior/ColorizeSwift.git", from: "1.5.0"),
15-
.package(url: "https://github.com/segmentio/analytics-swift.git", branch: "bsneed/cli_additions"),
15+
.package(url: "https://github.com/segmentio/analytics-swift.git", from: "1.4.7"),
1616
.package(url: "https://github.com/swiftcsv/SwiftCSV.git", from: "0.6.1"),
1717
.package(url: "https://github.com/AlwaysRightInstitute/Mustache", from: "1.0.0"),
1818
.package(url: "https://github.com/antitypical/Result.git", from: "5.0.0"),
19-
.package(url: "git@github.com:segmentio/EdgeFn-Swift.git", branch: "main"),
20-
.package(url: "git@github.com:segmentio/substrata-swift.git", branch: "main")
19+
.package(url: "git@github.com:segment-integrations/analytics-swift-live.git", from: "0.2.3"),
20+
.package(url: "git@github.com:segmentio/substrata-swift.git", from: "0.0.2")
2121
],
2222
targets: [
2323
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
@@ -30,7 +30,7 @@ let package = Package(
3030
"SwiftCSV",
3131
"Result",
3232
.product(name: "Substrata", package: "substrata-swift"),
33-
.product(name: "EdgeFn", package: "EdgeFn-Swift"),
33+
.product(name: "AnalyticsLive", package: "analytics-swift-live"),
3434
.product(name: "mustache", package: "Mustache"),
3535
.product(name: "Segment", package: "analytics-swift")]),
3636
.testTarget(

Sources/segmentcli/Utilities/Runtime.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Foundation
99
import Segment
1010
import Substrata
1111
import SwiftCLI
12-
import EdgeFn
12+
import AnalyticsLive
1313

1414
var engine = JSEngine()
1515

0 commit comments

Comments
 (0)