Skip to content

Commit

Permalink
Added a PrivacyInfo.xcprivacy
Browse files Browse the repository at this point in the history
  • Loading branch information
tid-kijyun committed Feb 22, 2024
1 parent 1b49fc7 commit fe51924
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions Kanna.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Pod::Spec.new do |s|
s.watchos.deployment_target = "2.0"
s.requires_arc = true
s.source_files = ['Sources/**/*.swift', 'Sources/**/*.h']
s.resource_bundles = {'kanna_privacy' => ['Kanna/PrivacyInfo.xcprivacy']}
s.xcconfig = {
'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2',
'OTHER_LDFLAGS' => '-lxml2'
Expand Down
4 changes: 4 additions & 0 deletions Kanna.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

/* Begin PBXBuildFile section */
1E76C39D2B86F5EA009A89B9 /* Bundle+.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E76C39C2B86F5EA009A89B9 /* Bundle+.swift */; };
1E76C39F2B86F907009A89B9 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 1E76C39E2B86F907009A89B9 /* PrivacyInfo.xcprivacy */; };
1E7ADC3D1DF4F3FC006E1815 /* Kanna.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1E7ADC331DF4F3FC006E1815 /* Kanna.framework */; };
1E7ADC561DF4F567006E1815 /* CSS.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E7ADC4F1DF4F567006E1815 /* CSS.swift */; };
1E7ADC581DF4F567006E1815 /* Kanna.h in Headers */ = {isa = PBXBuildFile; fileRef = 1E7ADC511DF4F567006E1815 /* Kanna.h */; settings = {ATTRIBUTES = (Public, ); }; };
Expand Down Expand Up @@ -43,6 +44,7 @@

/* Begin PBXFileReference section */
1E76C39C2B86F5EA009A89B9 /* Bundle+.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Bundle+.swift"; sourceTree = "<group>"; };
1E76C39E2B86F907009A89B9 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
1E7ADC331DF4F3FC006E1815 /* Kanna.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Kanna.framework; sourceTree = BUILT_PRODUCTS_DIR; };
1E7ADC3C1DF4F3FC006E1815 /* Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
1E7ADC4F1DF4F567006E1815 /* CSS.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CSS.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -131,6 +133,7 @@
1E7ADC551DF4F567006E1815 /* libxmlParserOption.swift */,
1EC805F91FA2FB2F0067D3DA /* Deprecated.swift */,
1E7ADC501DF4F567006E1815 /* Info.plist */,
1E76C39E2B86F907009A89B9 /* PrivacyInfo.xcprivacy */,
);
path = Kanna;
sourceTree = "<group>";
Expand Down Expand Up @@ -285,6 +288,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
1E76C39F2B86F907009A89B9 /* PrivacyInfo.xcprivacy in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
3 changes: 3 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ let package = Package(
"Kanna/Info.plist",
"Kanna/Kanna.h",
"../Tests/KannaTests/Data"
],
resources: [
.copy("Kanna/PrivacyInfo.xcprivacy"),
]
),
.testTarget(
Expand Down
14 changes: 14 additions & 0 deletions Sources/Kanna/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyTracking</key>
<false/>
</dict>
</plist>

0 comments on commit fe51924

Please sign in to comment.