Skip to content

Commit

Permalink
fix: Hybrid SDKs without SentryPrivate (#3771)
Browse files Browse the repository at this point in the history
* Update PrivateSentrySDKOnly.h

* Update CHANGELOG.md

* update podspec

* Update Sentry.podspec

* Update Sentry.podspec
  • Loading branch information
brustolin authored Mar 20, 2024
1 parent 1656cf6 commit 2ccbd03
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Fixes

- Add reference to Swift classes for hybrid SDKs (#3771)

## 8.22.2

- Fix runtime error when including Sentry as a static lib (#3764)
Expand Down
8 changes: 6 additions & 2 deletions Sentry.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,23 @@ Pod::Spec.new do |s|

s.subspec 'Core' do |sp|
sp.source_files = "Sources/Sentry/**/*.{h,hpp,m,mm,c,cpp}",
"Sources/SentryCrash/**/*.{h,hpp,m,mm,c,cpp}", "Sources/Swift/**/*.{swift,h,hpp,m,mm,c,cpp}", "Sources/Sentry/include/module.modulemap"
"Sources/SentryCrash/**/*.{h,hpp,m,mm,c,cpp}", "Sources/Swift/**/*.{swift,h,hpp,m,mm,c,cpp}",
sp.public_header_files =
"Sources/Sentry/Public/*.h"

sp.preserve_path = "Sources/Sentry/include/module.modulemap"
sp.resource_bundles = { "Sentry" => "Sources/Resources/PrivacyInfo.xcprivacy" }
end

s.subspec 'HybridSDK' do |sp|
sp.source_files = "Sources/Sentry/**/*.{h,hpp,m,mm,c,cpp}",
"Sources/SentryCrash/**/*.{h,hpp,m,mm,c,cpp}", "Sources/Swift/**/*.{swift,h,hpp,m,mm,c,cpp}"
"Sources/SentryCrash/**/*.{h,hpp,m,mm,c,cpp}", "Sources/Swift/**/*.{swift,h,hpp,m,mm,c,cpp}",
"Sources/Sentry/include/module.modulemap"

sp.public_header_files =
"Sources/Sentry/Public/*.h", "Sources/Sentry/include/HybridPublic/*.h"

sp.preserve_path = "Sources/Sentry/include/module.modulemap"
sp.resource_bundles = { "Sentry" => "Sources/Resources/PrivacyInfo.xcprivacy" }
end
end

0 comments on commit 2ccbd03

Please sign in to comment.