Skip to content

Commit 5dca0dc

Browse files
authored
Remove old segmentlog subsystem (#200)
* Remove old segmentlog subsystem * Remove build caching from CI
1 parent c5401b2 commit 5dca0dc

14 files changed

+61
-1015
lines changed

.github/workflows/swift.yml

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ jobs:
5454
with:
5555
xcode-version: latest-stable
5656
- uses: actions/checkout@v2
57-
- uses: actions/cache@v2
58-
with:
59-
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/SourcePackages/checkouts
60-
key: ${{ runner.os }}-spm-ios-${{ hashFiles('**/Package.resolved') }}
61-
restore-keys: |
62-
${{ runner.os }}-spm-ios
6357
- uses: webfactory/[email protected]
6458
with:
6559
ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }}
@@ -74,12 +68,6 @@ jobs:
7468
with:
7569
xcode-version: latest-stable
7670
- uses: actions/checkout@v2
77-
- uses: actions/cache@v2
78-
with:
79-
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/SourcePackages/checkouts
80-
key: ${{ runner.os }}-spm-tvos-${{ hashFiles('**/Package.resolved') }}
81-
restore-keys: |
82-
${{ runner.os }}-spm-tvos
8371
- uses: webfactory/[email protected]
8472
with:
8573
ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }}
@@ -93,12 +81,6 @@ jobs:
9381
with:
9482
xcode-version: latest-stable
9583
- uses: actions/checkout@v2
96-
- uses: actions/cache@v2
97-
with:
98-
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/SourcePackages/checkouts
99-
key: ${{ runner.os }}-spm-watchos-${{ hashFiles('**/Package.resolved') }}
100-
restore-keys: |
101-
${{ runner.os }}-spm-watchos
10284
- uses: webfactory/[email protected]
10385
with:
10486
ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }}
@@ -112,12 +94,6 @@ jobs:
11294
with:
11395
xcode-version: latest-stable
11496
- uses: actions/checkout@v2
115-
- uses: actions/cache@v2
116-
with:
117-
path: /Users/runner/Library/Developer/Xcode/DerivedData
118-
key: ${{ runner.os }}-spm-examples-${{ hashFiles('**/Package.resolved') }}
119-
restore-keys: |
120-
${{ runner.os }}-spm-examples
12197
- uses: webfactory/[email protected]
12298
with:
12399
ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }}
@@ -141,4 +117,20 @@ jobs:
141117
run: |
142118
cd Examples/apps/SegmentUIKitExample
143119
xcodebuild -workspace "SegmentUIKitExample.xcworkspace" -scheme "SegmentUIKitExample" -destination 'platform=macOS,variant=Mac Catalyst'
144-
120+
121+
122+
build_and_test_dest_examples:
123+
needs: cancel_previous
124+
runs-on: macos-11
125+
steps:
126+
- uses: maxim-lobanov/setup-xcode@v1
127+
with:
128+
xcode-version: latest-stable
129+
- uses: actions/checkout@v2
130+
- uses: webfactory/[email protected]
131+
with:
132+
ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }}
133+
- name: build for ios simulator
134+
run: |
135+
cd Examples/apps/DestinationsExample
136+
xcodebuild -workspace "DestinationsExample.xcworkspace" -scheme "DestinationsExample" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11,OS=14.0'

Sources/Segment/Analytics.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ public class Analytics {
2222
internal var storage: Storage
2323

2424
/// Enabled/disables debug logging to trace your data going through the SDK.
25-
public static var debugLogsEnabled = false {
26-
didSet {
27-
SegmentLog.loggingEnabled = debugLogsEnabled
28-
}
29-
}
25+
public static var debugLogsEnabled = false
3026

3127
public var timeline: Timeline
3228

Sources/Segment/Plugins/Logger/ConsoleTarget.swift

Lines changed: 0 additions & 18 deletions
This file was deleted.

Sources/Segment/Plugins/Logger/LogTarget.swift

Lines changed: 0 additions & 220 deletions
This file was deleted.

0 commit comments

Comments
 (0)