Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
886c5ba
ref: convert SentrySampleShared to an SPM package so we have to worry…
NinjaLikesCheez Jun 17, 2026
5deb94e
ref: update iOS-Swift sample to use package references
NinjaLikesCheez Jun 17, 2026
636e6e3
ref: migrate iOS-Swift6 to package references
NinjaLikesCheez Jun 18, 2026
276b9f5
ref: migrate macOS-Swift to package references
NinjaLikesCheez Jun 18, 2026
63c5b40
ref: migrate iOS-ObjectiveC to package references
NinjaLikesCheez Jun 18, 2026
b386484
ref: migrate iOS-SwiftUI to use package references
NinjaLikesCheez Jun 18, 2026
c4d93ae
ref: migrate iOS-SwiftUI-Widgets to package references
NinjaLikesCheez Jun 18, 2026
7e06d2b
ref: migrate iOS15-SwiftUI to package references
NinjaLikesCheez Jun 18, 2026
5697f4b
ref: migrate macOS-SwiftUI to package references
NinjaLikesCheez Jun 18, 2026
b9f4d3d
ref: migrate SDK-Size to package references
NinjaLikesCheez Jun 18, 2026
7251286
ref: migrate SessionReplay-CameraTest to package references
NinjaLikesCheez Jun 18, 2026
da4301e
ref: migrate tvOS-Swift to pckage references
NinjaLikesCheez Jun 18, 2026
6d4ae7a
ref: migrate visionOS-Swift to package references
NinjaLikesCheez Jun 18, 2026
70a70f7
ref: migrate watchOS-Swift to package references
NinjaLikesCheez Jun 18, 2026
443f603
ref: migrate SwiftUICrashTest and SwiftUITestSample to package refere…
NinjaLikesCheez Jun 18, 2026
57ad17c
chore: remove SentrySampleShared generation
NinjaLikesCheez Jun 18, 2026
f13229f
chore: appease the linting gods
NinjaLikesCheez Jun 18, 2026
85f16f2
fix: correct product name
NinjaLikesCheez Jun 19, 2026
d8c0f35
fix: update import
NinjaLikesCheez Jun 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 13 additions & 30 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,6 @@ build-sample-iOS-ObjectiveCpp-NoModules:
# Builds the iOS-Swift sample app for the iOS Simulator.
.PHONY: build-sample-iOS-Swift
build-sample-iOS-Swift:
xcodegen --spec Samples/SentrySampleShared/SentrySampleShared.yml
xcodegen --spec Samples/iOS-Swift/iOS-Swift.yml
set -o pipefail && xcodebuild \
-workspace Sentry.xcworkspace \
Expand All @@ -487,7 +486,6 @@ build-sample-iOS-Swift:
# Builds the iOS-Swift6 sample app for the iOS Simulator.
.PHONY: build-sample-iOS-Swift6
build-sample-iOS-Swift6:
xcodegen --spec Samples/SentrySampleShared/SentrySampleShared.yml
xcodegen --spec Samples/iOS-Swift6/iOS-Swift6.yml
set -o pipefail && xcodebuild \
-workspace Sentry.xcworkspace \
Expand All @@ -500,7 +498,6 @@ build-sample-iOS-Swift6:
# Builds the iOS-SwiftUI sample app for the iOS Simulator.
.PHONY: build-sample-iOS-SwiftUI
build-sample-iOS-SwiftUI:
xcodegen --spec Samples/SentrySampleShared/SentrySampleShared.yml
xcodegen --spec Samples/iOS-SwiftUI/iOS-SwiftUI.yml
set -o pipefail && xcodebuild \
-workspace Sentry.xcworkspace \
Expand All @@ -513,7 +510,6 @@ build-sample-iOS-SwiftUI:
# Builds the iOS-SwiftUI-Widgets sample app for the iOS Simulator.
.PHONY: build-sample-iOS-SwiftUI-Widgets
build-sample-iOS-SwiftUI-Widgets:
xcodegen --spec Samples/SentrySampleShared/SentrySampleShared.yml
xcodegen --spec Samples/iOS-SwiftUI-Widgets/iOS-SwiftUI-Widgets.yml
set -o pipefail && xcodebuild \
-workspace Sentry.xcworkspace \
Expand All @@ -526,7 +522,6 @@ build-sample-iOS-SwiftUI-Widgets:
# Builds the iOS-ObjectiveC sample app for the iOS Simulator.
.PHONY: build-sample-iOS-ObjectiveC
build-sample-iOS-ObjectiveC:
xcodegen --spec Samples/SentrySampleShared/SentrySampleShared.yml
xcodegen --spec Samples/iOS-ObjectiveC/iOS-ObjectiveC.yml
set -o pipefail && xcodebuild \
-workspace Sentry.xcworkspace \
Expand Down Expand Up @@ -565,7 +560,6 @@ build-sample-iOS-ObjectiveC-Static:
# Builds the iOS15-SwiftUI sample app for the iOS Simulator.
.PHONY: build-sample-iOS15-SwiftUI
build-sample-iOS15-SwiftUI:
xcodegen --spec Samples/SentrySampleShared/SentrySampleShared.yml
xcodegen --spec Samples/iOS15-SwiftUI/iOS15-SwiftUI.yml
set -o pipefail && xcodebuild \
-workspace Sentry.xcworkspace \
Expand All @@ -578,7 +572,6 @@ build-sample-iOS15-SwiftUI:
# Builds the SessionReplay-CameraTest sample app for the iOS Simulator.
.PHONY: build-sample-SessionReplay-CameraTest
build-sample-SessionReplay-CameraTest:
xcodegen --spec Samples/SentrySampleShared/SentrySampleShared.yml
xcodegen --spec Samples/SessionReplay-CameraTest/SessionReplay-CameraTest.yml
set -o pipefail && xcodebuild \
-workspace Sentry.xcworkspace \
Expand All @@ -591,7 +584,6 @@ build-sample-SessionReplay-CameraTest:
# Builds the macOS-Swift sample app.
.PHONY: build-sample-macOS-Swift
build-sample-macOS-Swift:
xcodegen --spec Samples/SentrySampleShared/SentrySampleShared.yml
xcodegen --spec Samples/macOS-Swift/macOS-Swift.yml
set -o pipefail && xcodebuild \
-workspace Sentry.xcworkspace \
Expand All @@ -603,7 +595,6 @@ build-sample-macOS-Swift:
# Builds the macOS-SwiftUI sample app.
.PHONY: build-sample-macOS-SwiftUI
build-sample-macOS-SwiftUI:
xcodegen --spec Samples/SentrySampleShared/SentrySampleShared.yml
xcodegen --spec Samples/macOS-SwiftUI/macOS-SwiftUI.yml
set -o pipefail && xcodebuild \
-workspace Sentry.xcworkspace \
Expand All @@ -615,7 +606,6 @@ build-sample-macOS-SwiftUI:
# Builds the tvOS-Swift sample app for the tvOS Simulator.
.PHONY: build-sample-tvOS-Swift
build-sample-tvOS-Swift:
xcodegen --spec Samples/SentrySampleShared/SentrySampleShared.yml
xcodegen --spec Samples/tvOS-Swift/tvOS-Swift.yml
set -o pipefail && xcodebuild \
-workspace Sentry.xcworkspace \
Expand All @@ -628,7 +618,6 @@ build-sample-tvOS-Swift:
# Builds the visionOS-Swift sample app for the visionOS Simulator.
.PHONY: build-sample-visionOS-Swift
build-sample-visionOS-Swift:
xcodegen --spec Samples/SentrySampleShared/SentrySampleShared.yml
xcodegen --spec Samples/visionOS-Swift/visionOS-Swift.yml
set -o pipefail && xcodebuild \
-workspace Sentry.xcworkspace \
Expand All @@ -641,7 +630,6 @@ build-sample-visionOS-Swift:
# Builds the watchOS-Swift sample app for the watchOS Simulator.
.PHONY: build-sample-watchOS-Swift
build-sample-watchOS-Swift:
xcodegen --spec Samples/SentrySampleShared/SentrySampleShared.yml
xcodegen --spec Samples/watchOS-Swift/watchOS-Swift.yml
set -o pipefail && xcodebuild \
-workspace Sentry.xcworkspace \
Expand Down Expand Up @@ -1239,8 +1227,7 @@ xcode: xcode-ci
# Generates Xcode projects for all sample apps using xcodegen.
# Run a specific sample with make xcode-ci-<name>, e.g. make xcode-ci-iOS-Swift.
.PHONY: xcode-ci
xcode-ci: xcode-ci-SentrySampleShared \
xcode-ci-SPM \
xcode-ci: xcode-ci-SPM \
xcode-ci-SessionReplay-CameraTest \
xcode-ci-iOS-ObjectiveC \
xcode-ci-iOS-ObjectiveC-Dynamic \
Expand Down Expand Up @@ -1269,16 +1256,12 @@ xcode-ci: xcode-ci-SentrySampleShared \
xcode-ci-SPM:
xcodegen --spec Samples/SPM/SPM.yml

.PHONY: xcode-ci-SentrySampleShared
xcode-ci-SentrySampleShared:
xcodegen --spec Samples/SentrySampleShared/SentrySampleShared.yml

.PHONY: xcode-ci-SessionReplay-CameraTest
xcode-ci-SessionReplay-CameraTest: xcode-ci-SentrySampleShared
xcode-ci-SessionReplay-CameraTest:
xcodegen --spec Samples/SessionReplay-CameraTest/SessionReplay-CameraTest.yml

.PHONY: xcode-ci-iOS-ObjectiveC
xcode-ci-iOS-ObjectiveC: xcode-ci-SentrySampleShared
xcode-ci-iOS-ObjectiveC:
xcodegen --spec Samples/iOS-ObjectiveC/iOS-ObjectiveC.yml

.PHONY: xcode-ci-iOS-ObjectiveC-Dynamic
Expand All @@ -1294,63 +1277,63 @@ xcode-ci-iOS-ObjectiveCpp-NoModules:
xcodegen --spec Samples/iOS-ObjectiveCpp-NoModules/iOS-ObjectiveCpp-NoModules.yml

.PHONY: xcode-ci-iOS-Swift
xcode-ci-iOS-Swift: xcode-ci-SentrySampleShared
xcode-ci-iOS-Swift:
xcodegen --spec Samples/iOS-Swift/iOS-Swift.yml

.PHONY: xcode-ci-iOS-Swift6
xcode-ci-iOS-Swift6: xcode-ci-SentrySampleShared
xcode-ci-iOS-Swift6:
xcodegen --spec Samples/iOS-Swift6/iOS-Swift6.yml

.PHONY: xcode-ci-iOS-SwiftUI
xcode-ci-iOS-SwiftUI: xcode-ci-SentrySampleShared
xcode-ci-iOS-SwiftUI:
xcodegen --spec Samples/iOS-SwiftUI/iOS-SwiftUI.yml

.PHONY: xcode-ci-iOS-SwiftUI-SPM
xcode-ci-iOS-SwiftUI-SPM:
xcodegen --spec Samples/iOS-SwiftUI-SPM/iOS-SwiftUI-SPM.yml

.PHONY: xcode-ci-iOS-SwiftUI-Widgets
xcode-ci-iOS-SwiftUI-Widgets: xcode-ci-SentrySampleShared
xcode-ci-iOS-SwiftUI-Widgets:
xcodegen --spec Samples/iOS-SwiftUI-Widgets/iOS-SwiftUI-Widgets.yml

.PHONY: xcode-ci-iOS15-SwiftUI
xcode-ci-iOS15-SwiftUI: xcode-ci-SentrySampleShared
xcode-ci-iOS15-SwiftUI:
xcodegen --spec Samples/iOS15-SwiftUI/iOS15-SwiftUI.yml

.PHONY: xcode-ci-macOS-CLI-Xcode
xcode-ci-macOS-CLI-Xcode:
xcodegen --spec Samples/macOS-CLI-Xcode/macOS-CLI-Xcode.yml

.PHONY: xcode-ci-macOS-Swift
xcode-ci-macOS-Swift: xcode-ci-SentrySampleShared
xcode-ci-macOS-Swift:
xcodegen --spec Samples/macOS-Swift/macOS-Swift.yml

.PHONY: xcode-ci-macOS-SwiftUI
xcode-ci-macOS-SwiftUI: xcode-ci-SentrySampleShared
xcode-ci-macOS-SwiftUI:
xcodegen --spec Samples/macOS-SwiftUI/macOS-SwiftUI.yml

.PHONY: xcode-ci-macOS-SwiftUI-SPM
xcode-ci-macOS-SwiftUI-SPM:
xcodegen --spec Samples/macOS-SwiftUI-SPM/macOS-SwiftUI-SPM.yml

.PHONY: xcode-ci-tvOS-Swift
xcode-ci-tvOS-Swift: xcode-ci-SentrySampleShared
xcode-ci-tvOS-Swift:
xcodegen --spec Samples/tvOS-Swift/tvOS-Swift.yml

.PHONY: xcode-ci-tvOS-SwiftUI-SPM
xcode-ci-tvOS-SwiftUI-SPM:
xcodegen --spec Samples/tvOS-SwiftUI-SPM/tvOS-SwiftUI-SPM.yml

.PHONY: xcode-ci-visionOS-Swift
xcode-ci-visionOS-Swift: xcode-ci-SentrySampleShared
xcode-ci-visionOS-Swift:
xcodegen --spec Samples/visionOS-Swift/visionOS-Swift.yml

.PHONY: xcode-ci-visionOS-SwiftUI-SPM
xcode-ci-visionOS-SwiftUI-SPM:
xcodegen --spec Samples/visionOS-SwiftUI-SPM/visionOS-SwiftUI-SPM.yml

.PHONY: xcode-ci-watchOS-Swift
xcode-ci-watchOS-Swift: xcode-ci-SentrySampleShared
xcode-ci-watchOS-Swift:
xcodegen --spec Samples/watchOS-Swift/watchOS-Swift.yml

.PHONY: xcode-ci-DistributionSample
Expand Down
2 changes: 1 addition & 1 deletion Samples/SDK-Size/App/Sources/App.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Foundation
import Sentry
import SentrySwift
import SwiftUI

@main
Expand Down
2 changes: 1 addition & 1 deletion Samples/SDK-Size/App/Sources/ContentView.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Sentry
import SentrySwift
import SwiftUI

struct ContentView: View {
Expand Down
8 changes: 5 additions & 3 deletions Samples/SDK-Size/SDK-Size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ generateEmptyDirectories: true
configs:
Debug: debug
Release: release
projectReferences:
packages:
Sentry:
path: ../../Sentry.xcodeproj
path: ../..
options:
bundleIdPrefix: io.sentry
defaultSourceDirectoryType: syncedFolder
Expand Down Expand Up @@ -38,7 +38,9 @@ targets:
group: App/Configurations
buildPhase: none
dependencies:
- target: Sentry/Sentry
- package: Sentry
products:
- SentrySPM
configFiles:
Debug: App/Configurations/SDK-Size.xcconfig
Release: App/Configurations/SDK-Size.xcconfig
Expand Down
8 changes: 8 additions & 0 deletions Samples/SentrySampleShared/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.DS_Store
/.build
/Packages
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
44 changes: 44 additions & 0 deletions Samples/SentrySampleShared/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "SentrySampleShared",
platforms: [.iOS(.v15), .macOS(.v10_14), .tvOS(.v15), .watchOS(.v8), .visionOS(.v1)],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "SentrySampleShared",
targets: ["SentrySampleShared"]
),
.library(
name: "SentrySampleUITestShared",
targets: ["SentrySampleUITestShared"]
)
],
dependencies: [
.package(name: "Sentry", path: "../..")
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "SentrySampleShared",
dependencies: [
.product(name: "SentrySPM", package: "Sentry")
],
path: "Sources/SentrySampleShared",
resources: [
.process("LoremIpsum.txt"),
.process("screenshot.png")
]
),
.target(
name: "SentrySampleUITestShared",
path: "Sources/SentrySampleUITestShared",
publicHeadersPath: "include"
)
],
swiftLanguageModes: [.v5]
)
13 changes: 0 additions & 13 deletions Samples/SentrySampleShared/SentrySampleShared.xcconfig

This file was deleted.

48 changes: 0 additions & 48 deletions Samples/SentrySampleShared/SentrySampleShared.yml

This file was deleted.

13 changes: 0 additions & 13 deletions Samples/SentrySampleShared/SentrySampleUITestShared.xcconfig

This file was deleted.

24 changes: 0 additions & 24 deletions Samples/SentrySampleShared/SentrySampleUITestShared/Info.plist

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#if !os(macOS) && !os(watchOS)

import Foundation
import Sentry
import SentrySwift
import UIKit

public class AssertView: UIView {
Expand Down
Loading
Loading