Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: backtrace-labs/backtrace-cocoa
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.7.5
Choose a base ref
...
head repository: backtrace-labs/backtrace-cocoa
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.0.1
Choose a head ref
  • 7 commits
  • 51 files changed
  • 3 contributors

Commits on May 5, 2023

  1. Feature/swift pm (#108)

    Add Swift Package Manager support
    Improve Breadcrumbs Swift implementation
    
    ---------
    
    Co-authored-by: Rick Foster <[email protected]>
    melekr and rick-bt authored May 5, 2023

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    2e4f32e View commit details
  2. Update deploy.yml (#113)

    melekr authored May 5, 2023
    Copy the full SHA
    6d455b0 View commit details

Commits on May 11, 2023

  1. Remove static framework build step Podfile (#114)

    Update changelog
    melekr authored May 11, 2023
    Copy the full SHA
    8c5cdbf View commit details

Commits on Oct 27, 2023

  1. Copy the full SHA
    1e79bc9 View commit details

Commits on Oct 30, 2023

  1. Treat build version as an application.version (#116)

    * Treat build version as an application.version, instead of product version that should be treaten as marketing_version
    
    * Expose application.build but still continue using application.version for metrics
    konraddysput authored Oct 30, 2023
    Copy the full SHA
    c9cf829 View commit details
  2. Release 2.0.1 (#117)

    konraddysput authored Oct 30, 2023
    Copy the full SHA
    3fddf0c View commit details

Commits on Oct 31, 2023

  1. Backtrace agent support (#118)

    * Backtrace agent support
    
    * Do not read application version as 'backtrace.version'
    konraddysput authored Oct 31, 2023
    Copy the full SHA
    92a658a View commit details
Showing with 1,380 additions and 674 deletions.
  1. +0 −34 .github/workflows/Podfile
  2. +0 −53 .github/workflows/deploy.yml
  3. +0 −2 .github/workflows/test.yml
  4. +7 −0 .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
  5. +154 −0 .swiftpm/xcode/xcshareddata/xcschemes/Backtrace.xcscheme
  6. +1 −0 .zshrc
  7. +2 −2 Backtrace-iOS/Info.plist
  8. +199 −0 Backtrace-iOS/Resources/test.txt
  9. +2 −0 Backtrace-macOS/Info.plist
  10. +5 −8 Backtrace.podspec
  11. +457 −260 Backtrace.xcodeproj/project.pbxproj
  12. +1 −1 Backtrace.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  13. +50 −0 Backtrace.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
  14. +50 −0 Backtrace.xcworkspace/xcshareddata/swiftpm/Package.resolved
  15. +10 −0 CHANGELOG.md
  16. +2 −0 Examples/Example-iOS-ObjC/Info.plist
  17. +0 −2 Examples/Example-macOS-ObjC/Info.plist
  18. +52 −0 Package.resolved
  19. +38 −0 Package.swift
  20. +11 −5 Podfile
  21. +4 −9 Podfile.lock
  22. +21 −5 README.md
  23. +22 −13 Sources/Features/Attributes/DefaultAttributes.swift
  24. +105 −0 Sources/Features/Breadcrumb/BacktraceBreadcrumbFile.swift
  25. +0 −113 Sources/Features/Breadcrumb/BacktraceBreadcrumbFileHelper.swift
  26. +4 −4 Sources/Features/Breadcrumb/BacktraceBreadcrumbsLogManager.swift
  27. +10 −4 Sources/Features/Breadcrumb/BacktraceNotificationObserver.swift
  28. +11 −0 Sources/Features/Breadcrumb/BreadcrumbRecord.swift
  29. +66 −0 Sources/Features/Breadcrumb/Queue.swift
  30. +2 −0 Sources/Features/Client/BacktraceReporter.swift
  31. +4 −0 Sources/Features/Extensions/Foundation+Extensions.swift
  32. +4 −0 Sources/Features/Repository/Model/BacktraceReport.swift
  33. +8 −0 Sources/Features/Repository/PersistentRepository.swift
  34. +1 −4 Sources/Features/Resources/Model.xcdatamodeld/Model.xcdatamodel/contents
  35. +2 −0 Sources/Public/BacktraceClientCustomizing.swift
  36. +1 −1 Sources/Public/BacktraceClientDelegate.swift
  37. +6 −3 Sources/Public/BacktraceCrashReporter.swift
  38. +4 −4 Sources/Public/BacktraceLogger.swift
  39. +5 −1 Tests/AttachmentTests.swift
  40. +10 −10 Tests/AttributesTests.swift
  41. +2 −2 Tests/BacktraceApiTests.swift
  42. +1 −17 Tests/BacktraceBreadcrumbTests.swift
  43. +4 −0 Tests/BacktraceDatabaseTests.swift
  44. +14 −0 Tests/BacktraceFileManagerTests.swift
  45. +3 −0 Tests/BacktraceRateLimiterTests.swift
  46. +5 −5 Tests/BacktraceReporterTests.swift
  47. +1 −1 Tests/Helpers/Quick+Throws.swift
  48. +19 −15 Tests/Mocks/BacktraceClientTests.swift
  49. +0 −47 Tests/SummedEventsTests.swift
  50. +0 −47 Tests/UniqueEventsTests.swift
  51. +0 −2 scripts/test.sh
34 changes: 0 additions & 34 deletions .github/workflows/Podfile

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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:
@@ -45,54 +43,3 @@ jobs:
run: sh scripts/deploy.sh
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

build-dynamic-frameworks:
runs-on: macos-latest
needs: [pod-lint, test]

strategy:
matrix:
ENABLE_BITCODE: [YES, NO]
SWIFT_EMBEDDED: [YES, NO]

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Install cocoapods and rome
run: gem install cocoapods cocoapods-rome

- name: Run pod install with Podfile from workflows directory
run: cp .github/workflows/Podfile . && pod install
env:
ENABLE_BITCODE: ${{ matrix.ENABLE_BITCODE }}
SWIFT_EMBEDDED: ${{ matrix.SWIFT_EMBEDDED }}
BACKTRACE_VERSION: ${{ github.ref_name }}

- name: Tar files to preserve file permissions
run: tar -cvzf Archive_DynamicFramework_iOS_Bitcode${{ matrix.ENABLE_BITCODE }}_SwiftEmbedded${{ matrix.SWIFT_EMBEDDED }}_${{ github.ref_name }}.tar.gz Rome/ dSYM/

- uses: actions/upload-artifact@v3
with:
name: Archive_DynamicFramework_iOS_Bitcode${{ matrix.ENABLE_BITCODE }}_SwiftEmbedded${{ matrix.SWIFT_EMBEDDED }}_${{ github.ref_name }}
path: Archive_DynamicFramework_iOS_Bitcode${{ matrix.ENABLE_BITCODE }}_SwiftEmbedded${{ matrix.SWIFT_EMBEDDED }}_${{ github.ref_name }}.tar.gz

upload-to-github-release:
runs-on: ubuntu-latest
needs: build-dynamic-frameworks

steps:
- uses: actions/checkout@v3

- uses: actions/download-artifact@v3
id: download
with:
path: artifacts/

- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: ${{ steps.download.outputs.download-path }}
draft: true
verbose: env.ACTIONS_STEP_DEBUG
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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
@@ -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>
Loading