@@ -11,10 +11,6 @@ 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
14
. library( name: " SentrySwiftUI " , targets: [ " Sentry " , " SentrySwiftUI " , " SentryCppHelper " ] ) ,
19
15
. library( name: " SentryDistribution " , targets: [ " SentryDistribution " ] )
20
16
]
@@ -25,26 +21,6 @@ var targets: [Target] = [
25
21
url: " https://github.com/getsentry/sentry-cocoa/releases/download/8.56.0/Sentry.xcframework.zip " ,
26
22
checksum: " ecc100b59f2044800650f17786c33f071ea580cb318d82e8ce1d403b643555a4 " //Sentry-Static
27
23
) ,
28
- . binaryTarget(
29
- name: " Sentry-Dynamic " ,
30
- url: " https://github.com/getsentry/sentry-cocoa/releases/download/8.56.0/Sentry-Dynamic.xcframework.zip " ,
31
- checksum: " 509cdbc89e4409614f6d584464ef7e1d26c47ad8afe3abc2bd1e1d71c068be1e " //Sentry-Dynamic
32
- ) ,
33
- . binaryTarget(
34
- name: " Sentry-Dynamic-WithARM64e " ,
35
- url: " https://github.com/getsentry/sentry-cocoa/releases/download/8.56.0/Sentry-Dynamic-WithARM64e.xcframework.zip " ,
36
- checksum: " d62a5ced65465c7c63962ed40d06a9aadd8675b8d0909089f89f65bf233e38c3 " //Sentry-Dynamic-WithARM64e
37
- ) ,
38
- . binaryTarget(
39
- name: " Sentry-WithoutUIKitOrAppKit " ,
40
- url: " https://github.com/getsentry/sentry-cocoa/releases/download/8.56.0/Sentry-WithoutUIKitOrAppKit.xcframework.zip " ,
41
- checksum: " 4abfe912bb543eedb7d7dd015df04c93c2b8e49437962046137653d4cf737d38 " //Sentry-WithoutUIKitOrAppKit
42
- ) ,
43
- . binaryTarget(
44
- name: " Sentry-WithoutUIKitOrAppKit-WithARM64e " ,
45
- url: " https://github.com/getsentry/sentry-cocoa/releases/download/8.56.0/Sentry-WithoutUIKitOrAppKit-WithARM64e.xcframework.zip " ,
46
- checksum: " 0b6b454b48614f8cd2430cdc75e524ded46308309b95e73fdd9a90da81622e77 " //Sentry-WithoutUIKitOrAppKit-WithARM64e
47
- ) ,
48
24
. target (
49
25
name: " SentrySwiftUI " ,
50
26
dependencies: [ " Sentry " , " SentryInternal " ] ,
@@ -69,9 +45,42 @@ var targets: [Target] = [
69
45
]
70
46
) ,
71
47
. target( name: " SentryDistribution " , path: " Sources/SentryDistribution " ) ,
72
- . testTarget( name: " SentryDistributionTests " , path: " Sources/SentryDistributionTests " )
48
+ . testTarget( name: " SentryDistributionTests " , dependencies : [ " SentryDistribution " ] , path: " Sources/SentryDistributionTests " )
73
49
]
74
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
+
75
84
let env = getenv ( " EXPERIMENTAL_SPM_BUILDS " )
76
85
if let env = env, String ( cString: env, encoding: . utf8) == " 1 " {
77
86
products. append ( . library( name: " SentrySPM " , type: . dynamic, targets: [ " SentryObjc " ] ) )
0 commit comments