Skip to content

Commit

Permalink
Fix linking of Privacy Manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankmara authored Apr 9, 2024
1 parent 276da42 commit e70704f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions ExponeaSDK-Notifications.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Pod::Spec.new do |s|
#

s.source_files = ["ExponeaSDK/ExponeaSDK-Notifications/**/*.swift", "ExponeaSDK/ExponeaSDKShared/**/*.swift"]
s.resource_bundles = {'ExponeaSDK-Notifications' => ['ExponeaSDK/PrivacyInfo.xcprivacy']}
s.exclude_files = "ExponeaSDK/ExponeaSDK/**/*"
s.weak_frameworks = "UserNotifications"

Expand Down
3 changes: 2 additions & 1 deletion ExponeaSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ Pod::Spec.new do |s|
"ExponeaSDK/ExponeaSDKObjC/objc_tryCatch.h",
"ExponeaSDK/ExponeaSDKObjC/objc_tryCatch.m",
]
s.resource_bundles = {'ExponeaSDK' => ['ExponeaSDK/PrivacyInfo.xcprivacy']}
s.exclude_files = "ExponeaSDK/ExponeaSDK-Notifications/**/*"
s.resources = ["ExponeaSDK/ExponeaSDK/Classes/Database/*.xcdatamodeld"]
s.dependency 'SwiftSoup', '2.6.1'

end
2 changes: 1 addition & 1 deletion ExponeaSDK/ExponeaSDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1955,6 +1955,7 @@
F021E84F206CF10200788ABC = {
isa = PBXGroup;
children = (
317431C92BBDADC5003FD69A /* PrivacyInfo.xcprivacy */,
C0F6C4E12098A1AB00834E21 /* Example */,
C08D53D221B9474E00EA2C13 /* ExampleNotificationContent */,
C0ED33A421A6FA31003649C3 /* ExampleNotificationService */,
Expand Down Expand Up @@ -1992,7 +1993,6 @@
children = (
F0E757EC207D023A00FE8C21 /* Classes */,
F021E873206CFADF00788ABC /* Supporting Files */,
317431C92BBDADC5003FD69A /* PrivacyInfo.xcprivacy */,
);
path = ExponeaSDK;
sourceTree = "<group>";
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ let package = Package(
name: "ExponeaSDK",
dependencies: ["ExponeaSDKShared", "ExponeaSDKObjC"],
path: "ExponeaSDK/ExponeaSDK",
exclude: ["Supporting Files/Info.plist"]
exclude: ["Supporting Files/Info.plist"],
resources: [.copy("../PrivacyInfo.xcprivacy")]
),
// Notification extension library
.target(
Expand Down

0 comments on commit e70704f

Please sign in to comment.