Skip to content

Commit a5fd8cd

Browse files
philprimeclaude
andcommitted
ref(samples): Restructure SPM sample
Move SPM sample to organized directory structure: - SPM/ → App/ with Sources, Resources, and Configurations - xcconfig files moved to App/Configurations directory - Added syncedFolder support to SPM.yml - Added buildPhase: none to SPM.yml reference Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 313b966 commit a5fd8cd

File tree

9 files changed

+30
-10
lines changed

9 files changed

+30
-10
lines changed
File renamed without changes.

Samples/SPM/SPM.xcconfig renamed to Samples/SPM/App/Configurations/SPM.xcconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#include "../Shared/Config/_Common.xcconfig"
1+
#include "../../../Shared/Config/_Common.xcconfig"
22

33
PRODUCT_BUNDLE_IDENTIFIER = io.sentry.sample.SPM
4-
INFOPLIST_FILE = SPM/Info.plist
5-
CODE_SIGN_ENTITLEMENTS = SPM/SPM.entitlements
4+
INFOPLIST_FILE = App/Configurations/Info.plist
5+
CODE_SIGN_ENTITLEMENTS = App/Configurations/SPM.entitlements
66

77
PROVISIONING_PROFILE_SPECIFIER_Debug = match Development io.sentry.sample.SPM
88
PROVISIONING_PROFILE_SPECIFIER_Release = match AppStore io.sentry.sample.SPM

Samples/SPM/SPM/Assets.xcassets/AccentColor.colorset/Contents.json renamed to Samples/SPM/App/Resources/Assets.xcassets/AccentColor.colorset/Contents.json

File renamed without changes.

Samples/SPM/SPM/Assets.xcassets/AppIcon.appiconset/Contents.json renamed to Samples/SPM/App/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json

File renamed without changes.
File renamed without changes.

Samples/SPM/SPM.yml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,50 @@ generateEmptyDirectories: true
66
configs:
77
Debug: debug
88
Release: release
9-
fileGroups:
10-
- SPM.yml
119
options:
1210
bundleIdPrefix: io.sentry
11+
defaultSourceDirectoryType: syncedFolder
1312
packages:
1413
Sentry:
1514
path: ../../
1615
targets:
17-
SPM:
16+
App:
1817
type: application
1918
platform: auto
2019
sources:
21-
- SPM
20+
# Sources
21+
- path: App/Sources
22+
type: group
23+
group: App
24+
excludes:
25+
- "**/.gitkeep"
26+
# Resources
27+
- path: App/Resources
28+
type: group
29+
group: App
30+
excludes:
31+
- "**/.gitkeep"
32+
# Configurations
33+
- path: App/Configurations
34+
type: group
35+
group: App
36+
buildPhase: none
37+
excludes:
38+
- "**/.gitkeep"
39+
- path: SPM.yml
40+
group: App/Configurations
41+
buildPhase: none
2242
dependencies:
2343
- package: Sentry
2444
products:
2545
- SentrySPM
2646
configFiles:
27-
Debug: SPM.xcconfig
28-
Release: SPM.xcconfig
47+
Debug: App/Configurations/SPM.xcconfig
48+
Release: App/Configurations/SPM.xcconfig
2949
schemes:
3050
SPM:
3151
templates:
3252
- SampleAppScheme
3353
build:
3454
targets:
35-
SPM: all
55+
App: all

0 commit comments

Comments
 (0)