@@ -11,11 +11,8 @@ import PackageDescription
11
11
12
12
var products : [ Product ] = [
13
13
. library( name: " Sentry " , targets: [ " Sentry " , " SentryCppHelper " ] ) ,
14
- . library( name: " Sentry-Dynamic " , targets: [ " Sentry-Dynamic " ] ) ,
15
- . library( name: " Sentry-Dynamic-WithARM64e " , targets: [ " Sentry-Dynamic-WithARM64e " ] ) ,
16
- . library( name: " Sentry-WithoutUIKitOrAppKit " , targets: [ " Sentry-WithoutUIKitOrAppKit " , " SentryCppHelper " ] ) ,
17
- . library( name: " Sentry-WithoutUIKitOrAppKit-WithARM64e " , targets: [ " Sentry-WithoutUIKitOrAppKit-WithARM64e " , " SentryCppHelper " ] ) ,
18
- . library( name: " SentrySwiftUI " , targets: [ " Sentry " , " SentrySwiftUI " , " SentryCppHelper " ] )
14
+ . library( name: " SentrySwiftUI " , targets: [ " Sentry " , " SentrySwiftUI " , " SentryCppHelper " ] ) ,
15
+ . library( name: " SentryDistribution " , targets: [ " SentryDistribution " ] )
19
16
]
20
17
21
18
var targets : [ Target ] = [
@@ -24,26 +21,6 @@ var targets: [Target] = [
24
21
url: " https://github.com/getsentry/sentry-cocoa/releases/download/8.56.0/Sentry.xcframework.zip " ,
25
22
checksum: " ecc100b59f2044800650f17786c33f071ea580cb318d82e8ce1d403b643555a4 " //Sentry-Static
26
23
) ,
27
- . binaryTarget(
28
- name: " Sentry-Dynamic " ,
29
- url: " https://github.com/getsentry/sentry-cocoa/releases/download/8.56.0/Sentry-Dynamic.xcframework.zip " ,
30
- checksum: " 509cdbc89e4409614f6d584464ef7e1d26c47ad8afe3abc2bd1e1d71c068be1e " //Sentry-Dynamic
31
- ) ,
32
- . binaryTarget(
33
- name: " Sentry-Dynamic-WithARM64e " ,
34
- url: " https://github.com/getsentry/sentry-cocoa/releases/download/8.56.0/Sentry-Dynamic-WithARM64e.xcframework.zip " ,
35
- checksum: " d62a5ced65465c7c63962ed40d06a9aadd8675b8d0909089f89f65bf233e38c3 " //Sentry-Dynamic-WithARM64e
36
- ) ,
37
- . binaryTarget(
38
- name: " Sentry-WithoutUIKitOrAppKit " ,
39
- url: " https://github.com/getsentry/sentry-cocoa/releases/download/8.56.0/Sentry-WithoutUIKitOrAppKit.xcframework.zip " ,
40
- checksum: " 4abfe912bb543eedb7d7dd015df04c93c2b8e49437962046137653d4cf737d38 " //Sentry-WithoutUIKitOrAppKit
41
- ) ,
42
- . binaryTarget(
43
- name: " Sentry-WithoutUIKitOrAppKit-WithARM64e " ,
44
- url: " https://github.com/getsentry/sentry-cocoa/releases/download/8.56.0/Sentry-WithoutUIKitOrAppKit-WithARM64e.xcframework.zip " ,
45
- checksum: " 0b6b454b48614f8cd2430cdc75e524ded46308309b95e73fdd9a90da81622e77 " //Sentry-WithoutUIKitOrAppKit-WithARM64e
46
- ) ,
47
24
. target (
48
25
name: " SentrySwiftUI " ,
49
26
dependencies: [ " Sentry " , " SentryInternal " ] ,
@@ -66,9 +43,44 @@ var targets: [Target] = [
66
43
linkerSettings: [
67
44
. linkedLibrary( " c++ " )
68
45
]
69
- )
46
+ ) ,
47
+ . target( name: " SentryDistribution " , path: " Sources/SentryDistribution " ) ,
48
+ . testTarget( name: " SentryDistributionTests " , dependencies: [ " SentryDistribution " ] , path: " Sources/SentryDistributionTests " )
70
49
]
71
50
51
+ let skipBinaries = getenv ( " SKIP_BINARIES " ) . map { String ( cString: $0, encoding: . utf8) }
52
+ if skipBinaries != " 1 " {
53
+ products. append ( contentsOf: [
54
+ . library( name: " Sentry-Dynamic " , targets: [ " Sentry-Dynamic " ] ) ,
55
+ . library( name: " Sentry-Dynamic-WithARM64e " , targets: [ " Sentry-Dynamic-WithARM64e " ] ) ,
56
+ . library( name: " Sentry-WithoutUIKitOrAppKit " , targets: [ " Sentry-WithoutUIKitOrAppKit " , " SentryCppHelper " ] ) ,
57
+ . library( name: " Sentry-WithoutUIKitOrAppKit-WithARM64e " , targets: [ " Sentry-WithoutUIKitOrAppKit-WithARM64e " , " SentryCppHelper " ] )
58
+ ] )
59
+
60
+ targets. append ( contentsOf: [
61
+ . binaryTarget(
62
+ name: " Sentry-Dynamic " ,
63
+ url: " https://github.com/getsentry/sentry-cocoa/releases/download/8.56.0/Sentry-Dynamic.xcframework.zip " ,
64
+ checksum: " 509cdbc89e4409614f6d584464ef7e1d26c47ad8afe3abc2bd1e1d71c068be1e " //Sentry-Dynamic
65
+ ) ,
66
+ . binaryTarget(
67
+ name: " Sentry-Dynamic-WithARM64e " ,
68
+ url: " https://github.com/getsentry/sentry-cocoa/releases/download/8.56.0/Sentry-Dynamic-WithARM64e.xcframework.zip " ,
69
+ checksum: " d62a5ced65465c7c63962ed40d06a9aadd8675b8d0909089f89f65bf233e38c3 " //Sentry-Dynamic-WithARM64e
70
+ ) ,
71
+ . binaryTarget(
72
+ name: " Sentry-WithoutUIKitOrAppKit " ,
73
+ url: " https://github.com/getsentry/sentry-cocoa/releases/download/8.56.0/Sentry-WithoutUIKitOrAppKit.xcframework.zip " ,
74
+ checksum: " 4abfe912bb543eedb7d7dd015df04c93c2b8e49437962046137653d4cf737d38 " //Sentry-WithoutUIKitOrAppKit
75
+ ) ,
76
+ . binaryTarget(
77
+ name: " Sentry-WithoutUIKitOrAppKit-WithARM64e " ,
78
+ url: " https://github.com/getsentry/sentry-cocoa/releases/download/8.56.0/Sentry-WithoutUIKitOrAppKit-WithARM64e.xcframework.zip " ,
79
+ checksum: " 0b6b454b48614f8cd2430cdc75e524ded46308309b95e73fdd9a90da81622e77 " //Sentry-WithoutUIKitOrAppKit-WithARM64e
80
+ )
81
+ ] )
82
+ }
83
+
72
84
let env = getenv ( " EXPERIMENTAL_SPM_BUILDS " )
73
85
if let env = env, String ( cString: env, encoding: . utf8) == " 1 " {
74
86
products. append ( . library( name: " SentrySPM " , type: . dynamic, targets: [ " SentryObjc " ] ) )
@@ -101,7 +113,7 @@ if let env = env, String(cString: env, encoding: .utf8) == "1" {
101
113
name: " SentryObjc " ,
102
114
dependencies: [ " SentrySwift " ] ,
103
115
path: " Sources " ,
104
- exclude: [ " Sentry/SentryDummyPublicEmptyClass.m " , " Sentry/SentryDummyPrivateEmptyClass.m " , " Swift " , " SentrySwiftUI " , " Resources " , " Configuration " , " SentryCppHelper " ] ,
116
+ exclude: [ " Sentry/SentryDummyPublicEmptyClass.m " , " Sentry/SentryDummyPrivateEmptyClass.m " , " Swift " , " SentrySwiftUI " , " Resources " , " Configuration " , " SentryCppHelper " , " SentryDistribution " , " SentryDistributionTests " ] ,
105
117
cSettings: [
106
118
. headerSearchPath( " Sentry/include/HybridPublic " ) ,
107
119
. headerSearchPath( " Sentry " ) ,
0 commit comments