Skip to content

Commit 2e4f32e

Browse files
melekrrick-bt
andauthored
Feature/swift pm (#108)
Add Swift Package Manager support Improve Breadcrumbs Swift implementation --------- Co-authored-by: Rick Foster <rfoster@backtrace.io>
1 parent 5f5b967 commit 2e4f32e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1356
-564
lines changed

.github/workflows/Podfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# We do not support iOS <10, so set that as minimum
2-
platform :ios, '10.0'
1+
# We do not support iOS <11, so set that as minimum
2+
platform :ios, '11.0'
33

44
plugin 'cocoapods-rome', { :pre_compile => Proc.new { |installer|
55
installer.pods_project.targets.each do |target|
66
target.build_configurations.each do |config|
77
# Based on the environment variable, either build with our without Swift libraries embedded (needed for iOS >10, <12.2) https://developer.apple.com/documentation/xcode-release-notes/swift-5-release-notes-for-xcode-10_2
88
config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = ENV['SWIFT_EMBEDDED']
9-
config.build_settings['SWIFT_VERSION'] = '4.2'
9+
config.build_settings['SWIFT_VERSION'] = '5'
1010

1111
# Based on the environment variable, either build with our without Bitcode
1212
config.build_settings['ENABLE_BITCODE'] = ENV['ENABLE_BITCODE']

.github/workflows/deploy.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ jobs:
2929
- uses: actions/checkout@v3
3030
- name: Install dependencies
3131
run: sh scripts/install.sh
32-
- name: Run pod lib lint
33-
run: pod lib lint --verbose --allow-warnings --sources='https://cdn.cocoapods.org/'
3432
# END COPY PASTE FROM TEST.YML
3533

3634
deploy-cocoapods:

.github/workflows/test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,4 @@ jobs:
3333
- uses: actions/checkout@v3
3434
- name: Install dependencies
3535
run: sh scripts/install.sh
36-
- name: Run pod lib lint
37-
run: pod lib lint --verbose --allow-warnings --sources='https://cdn.cocoapods.org/'
3836

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1420"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "Backtrace_Backtrace"
18+
BuildableName = "Backtrace_Backtrace"
19+
BlueprintName = "Backtrace_Backtrace"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "YES"
27+
buildForArchiving = "YES"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "Backtrace"
32+
BuildableName = "Backtrace"
33+
BlueprintName = "Backtrace"
34+
ReferencedContainer = "container:">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
<BuildActionEntry
38+
buildForTesting = "YES"
39+
buildForRunning = "YES"
40+
buildForProfiling = "NO"
41+
buildForArchiving = "NO"
42+
buildForAnalyzing = "YES">
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "Backtrace-iOSTests"
46+
BuildableName = "Backtrace-iOSTests"
47+
BlueprintName = "Backtrace-iOSTests"
48+
ReferencedContainer = "container:">
49+
</BuildableReference>
50+
</BuildActionEntry>
51+
<BuildActionEntry
52+
buildForTesting = "YES"
53+
buildForRunning = "YES"
54+
buildForProfiling = "YES"
55+
buildForArchiving = "YES"
56+
buildForAnalyzing = "YES">
57+
<BuildableReference
58+
BuildableIdentifier = "primary"
59+
BlueprintIdentifier = "Backtrace_Backtrace-iOSTests"
60+
BuildableName = "Backtrace_Backtrace-iOSTests"
61+
BlueprintName = "Backtrace_Backtrace-iOSTests"
62+
ReferencedContainer = "container:">
63+
</BuildableReference>
64+
</BuildActionEntry>
65+
<BuildActionEntry
66+
buildForTesting = "YES"
67+
buildForRunning = "YES"
68+
buildForProfiling = "YES"
69+
buildForArchiving = "YES"
70+
buildForAnalyzing = "YES">
71+
<BuildableReference
72+
BuildableIdentifier = "primary"
73+
BlueprintIdentifier = "Backtrace_Backtrace-Tests"
74+
BuildableName = "Backtrace_Backtrace-Tests"
75+
BlueprintName = "Backtrace_Backtrace-Tests"
76+
ReferencedContainer = "container:">
77+
</BuildableReference>
78+
</BuildActionEntry>
79+
</BuildActionEntries>
80+
</BuildAction>
81+
<TestAction
82+
buildConfiguration = "Debug"
83+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
84+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
85+
shouldUseLaunchSchemeArgsEnv = "YES">
86+
<Testables>
87+
<TestableReference
88+
skipped = "NO">
89+
<BuildableReference
90+
BuildableIdentifier = "primary"
91+
BlueprintIdentifier = "Backtrace-iOSTests"
92+
BuildableName = "Backtrace-iOSTests"
93+
BlueprintName = "Backtrace-iOSTests"
94+
ReferencedContainer = "container:">
95+
</BuildableReference>
96+
<SkippedTests>
97+
<Test
98+
Identifier = "BacktraceBreadcrumbTests">
99+
</Test>
100+
<Test
101+
Identifier = "SummedEventsTests">
102+
</Test>
103+
<Test
104+
Identifier = "UniqueEventsTests">
105+
</Test>
106+
</SkippedTests>
107+
</TestableReference>
108+
<TestableReference
109+
skipped = "NO">
110+
<BuildableReference
111+
BuildableIdentifier = "primary"
112+
BlueprintIdentifier = "Backtrace-Tests"
113+
BuildableName = "Backtrace-Tests"
114+
BlueprintName = "Backtrace-Tests"
115+
ReferencedContainer = "container:">
116+
</BuildableReference>
117+
</TestableReference>
118+
</Testables>
119+
</TestAction>
120+
<LaunchAction
121+
buildConfiguration = "Debug"
122+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
123+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
124+
launchStyle = "0"
125+
useCustomWorkingDirectory = "NO"
126+
ignoresPersistentStateOnLaunch = "NO"
127+
debugDocumentVersioning = "YES"
128+
debugServiceExtension = "internal"
129+
allowLocationSimulation = "YES">
130+
</LaunchAction>
131+
<ProfileAction
132+
buildConfiguration = "Release"
133+
shouldUseLaunchSchemeArgsEnv = "YES"
134+
savedToolIdentifier = ""
135+
useCustomWorkingDirectory = "NO"
136+
debugDocumentVersioning = "YES">
137+
<MacroExpansion>
138+
<BuildableReference
139+
BuildableIdentifier = "primary"
140+
BlueprintIdentifier = "Backtrace_Backtrace"
141+
BuildableName = "Backtrace_Backtrace"
142+
BlueprintName = "Backtrace_Backtrace"
143+
ReferencedContainer = "container:">
144+
</BuildableReference>
145+
</MacroExpansion>
146+
</ProfileAction>
147+
<AnalyzeAction
148+
buildConfiguration = "Debug">
149+
</AnalyzeAction>
150+
<ArchiveAction
151+
buildConfiguration = "Release"
152+
revealArchiveInOrganizer = "YES">
153+
</ArchiveAction>
154+
</Scheme>

.zshrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export PATH=/opt/homebrew/bin:$PATH

Backtrace-iOS/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>CFBundleDevelopmentRegion</key>
6-
<string>$(DEVELOPMENT_LANGUAGE)</string>
75
<key>CFBundleDisplayName</key>
86
<string>Backtrace</string>
7+
<key>CFBundleDevelopmentRegion</key>
8+
<string>$(DEVELOPMENT_LANGUAGE)</string>
99
<key>CFBundleExecutable</key>
1010
<string>$(EXECUTABLE_NAME)</string>
1111
<key>CFBundleIdentifier</key>

0 commit comments

Comments
 (0)