Skip to content

Commit

Permalink
add PrivacyInfo.xcprivacy setting for cocoapods and spm
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Lin committed Jan 1, 2024
1 parent 3d635af commit 10b3ad8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions AppDevKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ Pod::Spec.new do |s|
s.source_files = "AppDevPods/AppDevKit.h"
s.public_header_files = "AppDevPods/AppDevKit.h"
s.requires_arc = true
s.resource_bundles = {'AppDevKit' => ['PrivacyInfo.xcprivacy']}

end
13 changes: 11 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,32 @@ let package = Package(
.target(
name: "AppDevKit",
dependencies: ["AppDevCommonKit", "AppDevUIKit", "AppDevAnimateKit", "AppDevImageKit", "AppDevListViewKit", "AppDevCameraKit"],
path: "AppDevPods/All"
path: "AppDevPods/All",
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.target(
name: "AppDevCommonKit",
path: "AppDevPods/AppDevCommonKit",
resources: [.copy("PrivacyInfo.xcprivacy")],
publicHeadersPath: "."
),
.target(
name: "AppDevUIKit",
path: "AppDevPods/AppDevUIKit",
resources: [.copy("PrivacyInfo.xcprivacy")],
publicHeadersPath: "."
),
.target(
name: "AppDevAnimateKit",
path: "AppDevPods/AppDevAnimateKit",
resources: [.copy("PrivacyInfo.xcprivacy")],
publicHeadersPath: "."
),
.target(
name: "AppDevImageKit",
dependencies: ["AppDevCommonKit"],
path: "AppDevPods/AppDevImageKit",
resources: [.copy("PrivacyInfo.xcprivacy")],
publicHeadersPath: ".",
cSettings: [
.headerSearchPath("../")
Expand All @@ -73,6 +78,7 @@ let package = Package(
name: "AppDevListViewKit",
dependencies: ["AppDevUIKit", "AppDevCommonKit"],
path: "AppDevPods/AppDevListViewKit",
resources: [.copy("PrivacyInfo.xcprivacy")],
publicHeadersPath: ".",
cSettings: [
.headerSearchPath("../")
Expand All @@ -81,12 +87,15 @@ let package = Package(
.target(
name: "AppDevCameraKit",
path: "AppDevPods/AppDevCameraKit",
resources: [.copy("PrivacyInfo.xcprivacy")],
publicHeadersPath: "."
),
.testTarget(
name: "AppDevKitTests",
dependencies: ["AppDevKit"],
path: "AppDevKitTests")
path: "AppDevKitTests",
resources: [.copy("PrivacyInfo.xcprivacy")]
)
]
)

0 comments on commit 10b3ad8

Please sign in to comment.