Skip to content

Commit 06e536c

Browse files
authored
Merge pull request #1 from Mr-Alirezaa/feature/privacy-manifest
chore: Add privacy manifest file.
2 parents cb0925e + 5d1c724 commit 06e536c

File tree

3 files changed

+44
-6
lines changed

3 files changed

+44
-6
lines changed

Package.swift

+15-3
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,27 @@ let package = Package(
3030
name: "BuildableMacros",
3131
dependencies: [
3232
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
33-
.product(name: "SwiftCompilerPlugin", package: "swift-syntax")
33+
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
3434
]
3535
),
3636

3737
// Library that exposes a macro as part of its API, which is used in client programs.
38-
.target(name: "BuildableMacro", dependencies: ["BuildableMacros"]),
38+
.target(
39+
name: "BuildableMacro",
40+
dependencies: ["BuildableMacros"],
41+
resources: [
42+
.process("../PrivacyInfo.xcprivacy"),
43+
]
44+
),
3945

4046
// A client of the library, which is able to use the macro in its own code.
41-
.executableTarget(name: "BuildableMacroClient", dependencies: ["BuildableMacro"]),
47+
.executableTarget(
48+
name: "BuildableMacroClient",
49+
dependencies: ["BuildableMacro"],
50+
resources: [
51+
.process("../PrivacyInfo.xcprivacy"),
52+
]
53+
),
4254

4355
// A test target used to develop the macro implementation.
4456
.testTarget(

[email protected]

+15-3
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,27 @@ let package = Package(
3030
name: "BuildableMacros",
3131
dependencies: [
3232
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
33-
.product(name: "SwiftCompilerPlugin", package: "swift-syntax")
33+
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
3434
]
3535
),
3636

3737
// Library that exposes a macro as part of its API, which is used in client programs.
38-
.target(name: "BuildableMacro", dependencies: ["BuildableMacros"]),
38+
.target(
39+
name: "BuildableMacro",
40+
dependencies: ["BuildableMacros"],
41+
resources: [
42+
.process("../PrivacyInfo.xcprivacy"),
43+
]
44+
),
3945

4046
// A client of the library, which is able to use the macro in its own code.
41-
.executableTarget(name: "BuildableMacroClient", dependencies: ["BuildableMacro"]),
47+
.executableTarget(
48+
name: "BuildableMacroClient",
49+
dependencies: ["BuildableMacro"],
50+
resources: [
51+
.process("../PrivacyInfo.xcprivacy"),
52+
]
53+
),
4254

4355
// A test target used to develop the macro implementation.
4456
.testTarget(

Sources/PrivacyInfo.xcprivacy

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSPrivacyTracking</key>
6+
<false/>
7+
<key>NSPrivacyAccessedAPITypes</key>
8+
<array/>
9+
<key>NSPrivacyCollectedDataTypes</key>
10+
<array/>
11+
<key>NSPrivacyTrackingDomains</key>
12+
<array/>
13+
</dict>
14+
</plist>

0 commit comments

Comments
 (0)