@@ -16,7 +16,8 @@ var products: [Product] = [
1616 . library( name: " Sentry-WithoutUIKitOrAppKit " , targets: [ " Sentry-WithoutUIKitOrAppKit " , " SentryCppHelper " ] ) ,
1717 . library( name: " Sentry-WithoutUIKitOrAppKit-WithARM64e " , targets: [ " Sentry-WithoutUIKitOrAppKit-WithARM64e " , " SentryCppHelper " ] ) ,
1818 . library( name: " SentrySwiftUI " , targets: [ " Sentry " , " SentrySwiftUI " , " SentryCppHelper " ] ) ,
19- . library( name: " SentryDistribution " , targets: [ " SentryDistribution " ] )
19+ . library( name: " SentryDistribution " , targets: [ " SentryDistribution " ] ) ,
20+ . library( name: " SentrySwiftLog " , targets: [ " Sentry " , " SentrySwiftLog " ] )
2021]
2122
2223var targets : [ Target ] = [
@@ -45,21 +46,31 @@ var targets: [Target] = [
4546 url: " https://github.com/getsentry/sentry-cocoa/releases/download/8.56.2/Sentry-WithoutUIKitOrAppKit-WithARM64e.xcframework.zip " ,
4647 checksum: " 0c716f6a6475d8fd6e78b9204c74adffef5c0989f057c5d795989a667ae58047 " //Sentry-WithoutUIKitOrAppKit-WithARM64e
4748 ) ,
48- . target (
49+ . target(
4950 name: " SentrySwiftUI " ,
5051 dependencies: [ " Sentry " , " SentryInternal " ] ,
5152 path: " Sources/SentrySwiftUI " ,
5253 exclude: [ " SentryInternal/ " , " module.modulemap " ] ,
5354 linkerSettings: [
5455 . linkedFramework( " Sentry " )
55- ] ) ,
56+ ]
57+ ) ,
58+ . target(
59+ name: " SentrySwiftLog " ,
60+ dependencies: [ " Sentry " , . product( name: " Logging " , package : " swift-log " ) ] ,
61+ path: " Sources/SentrySwiftLog " ,
62+ linkerSettings: [
63+ . linkedFramework( " Sentry " )
64+ ]
65+ ) ,
5666 . target(
5767 name: " SentryInternal " ,
5868 path: " Sources/SentrySwiftUI " ,
5969 sources: [
6070 " SentryInternal/ "
6171 ] ,
62- publicHeadersPath: " SentryInternal/ " ) ,
72+ publicHeadersPath: " SentryInternal/ "
73+ ) ,
6374 . target(
6475 name: " SentryCppHelper " ,
6576 dependencies: [ " Sentry " ] ,
@@ -104,7 +115,7 @@ if let env = env, String(cString: env, encoding: .utf8) == "1" {
104115 name: " SentryObjc " ,
105116 dependencies: [ " SentrySwift " ] ,
106117 path: " Sources " ,
107- exclude: [ " Sentry/SentryDummyPublicEmptyClass.m " , " Sentry/SentryDummyPrivateEmptyClass.m " , " Swift " , " SentrySwiftUI " , " Resources " , " Configuration " , " SentryCppHelper " , " SentryDistribution " , " SentryDistributionTests " ] ,
118+ exclude: [ " Sentry/SentryDummyPublicEmptyClass.m " , " Sentry/SentryDummyPrivateEmptyClass.m " , " Swift " , " SentrySwiftUI " , " SentrySwiftLog " , " Resources " , " Configuration " , " SentryCppHelper " , " SentryDistribution " , " SentryDistributionTests " ] ,
108119 cSettings: [
109120 . headerSearchPath( " Sentry/include/HybridPublic " ) ,
110121 . headerSearchPath( " Sentry " ) ,
@@ -114,14 +125,19 @@ if let env = env, String(cString: env, encoding: .utf8) == "1" {
114125 . headerSearchPath( " SentryCrash/Installations " ) ,
115126 . headerSearchPath( " SentryCrash/Reporting/Filters " ) ,
116127 . headerSearchPath( " SentryCrash/Reporting/Filters/Tools " ) ,
117- . define( " SDK_V9 " ) ] )
128+ . define( " SDK_V9 " )
129+ ]
130+ )
118131 ] )
119132}
120133
121134let package = Package (
122135 name: " Sentry " ,
123136 platforms: [ . iOS( . v11) , . macOS( . v10_13) , . tvOS( . v11) , . watchOS( . v4) ] ,
124137 products: products,
138+ dependencies: [
139+ . package ( url: " https://github.com/apple/swift-log " , from: " 1.6.0 " )
140+ ] ,
125141 targets: targets,
126142 cxxLanguageStandard: . cxx14
127143)
0 commit comments