Skip to content

Commit

Permalink
Feature/swift pm (#108)
Browse files Browse the repository at this point in the history
Add Swift Package Manager support
Improve Breadcrumbs Swift implementation

---------

Co-authored-by: Rick Foster <[email protected]>
  • Loading branch information
melekr and rick-bt authored May 5, 2023
1 parent 5f5b967 commit 2e4f32e
Show file tree
Hide file tree
Showing 47 changed files with 1,356 additions and 564 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/Podfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# We do not support iOS <10, so set that as minimum
platform :ios, '10.0'
# We do not support iOS <11, so set that as minimum
platform :ios, '11.0'

plugin 'cocoapods-rome', { :pre_compile => Proc.new { |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# 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
config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = ENV['SWIFT_EMBEDDED']
config.build_settings['SWIFT_VERSION'] = '4.2'
config.build_settings['SWIFT_VERSION'] = '5'

# Based on the environment variable, either build with our without Bitcode
config.build_settings['ENABLE_BITCODE'] = ENV['ENABLE_BITCODE']
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ jobs:
- uses: actions/checkout@v3
- name: Install dependencies
run: sh scripts/install.sh
- name: Run pod lib lint
run: pod lib lint --verbose --allow-warnings --sources='https://cdn.cocoapods.org/'
# END COPY PASTE FROM TEST.YML

deploy-cocoapods:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,4 @@ jobs:
- uses: actions/checkout@v3
- name: Install dependencies
run: sh scripts/install.sh
- name: Run pod lib lint
run: pod lib lint --verbose --allow-warnings --sources='https://cdn.cocoapods.org/'

7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

154 changes: 154 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/Backtrace.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Backtrace_Backtrace"
BuildableName = "Backtrace_Backtrace"
BlueprintName = "Backtrace_Backtrace"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Backtrace"
BuildableName = "Backtrace"
BlueprintName = "Backtrace"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Backtrace-iOSTests"
BuildableName = "Backtrace-iOSTests"
BlueprintName = "Backtrace-iOSTests"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Backtrace_Backtrace-iOSTests"
BuildableName = "Backtrace_Backtrace-iOSTests"
BlueprintName = "Backtrace_Backtrace-iOSTests"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Backtrace_Backtrace-Tests"
BuildableName = "Backtrace_Backtrace-Tests"
BlueprintName = "Backtrace_Backtrace-Tests"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Backtrace-iOSTests"
BuildableName = "Backtrace-iOSTests"
BlueprintName = "Backtrace-iOSTests"
ReferencedContainer = "container:">
</BuildableReference>
<SkippedTests>
<Test
Identifier = "BacktraceBreadcrumbTests">
</Test>
<Test
Identifier = "SummedEventsTests">
</Test>
<Test
Identifier = "UniqueEventsTests">
</Test>
</SkippedTests>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Backtrace-Tests"
BuildableName = "Backtrace-Tests"
BlueprintName = "Backtrace-Tests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Backtrace_Backtrace"
BuildableName = "Backtrace_Backtrace"
BlueprintName = "Backtrace_Backtrace"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
1 change: 1 addition & 0 deletions .zshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export PATH=/opt/homebrew/bin:$PATH
4 changes: 2 additions & 2 deletions Backtrace-iOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Backtrace</string>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
Expand Down
Loading

0 comments on commit 2e4f32e

Please sign in to comment.