Skip to content

Commit

Permalink
Add xcprivacy manifest info. (#435)
Browse files Browse the repository at this point in the history
Everything but Logger -
No api's called by these sources.

Logger -
GTMLogLevelFilter uses NSUserDefaults to get the user's filter level that should
be applied.

Fixes #428
  • Loading branch information
thomasvl committed Jan 26, 2024
1 parent c84a941 commit c563afa
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 1 deletion.
30 changes: 30 additions & 0 deletions GTM.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
F47A79880D746EE9002302AB /* GTMScriptRunner.h in Headers */ = {isa = PBXBuildFile; fileRef = F47A79850D746EE9002302AB /* GTMScriptRunner.h */; settings = {ATTRIBUTES = (Public, ); }; };
F47A79890D746EE9002302AB /* GTMScriptRunner.m in Sources */ = {isa = PBXBuildFile; fileRef = F47A79860D746EE9002302AB /* GTMScriptRunner.m */; };
F493E3591146CD97005F994E /* GTMUILocalizerAndLayoutTweakerTest7.xib in Resources */ = {isa = PBXBuildFile; fileRef = F493E3581146CD97005F994E /* GTMUILocalizerAndLayoutTweakerTest7.xib */; };
F4A1EEAB2B62D46C008B2FC1 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = F4A1EEA82B62D462008B2FC1 /* PrivacyInfo.xcprivacy */; };
F4C0B9C3108E27EE002FC8E4 /* GTMUILocalizerAndLayoutTweakerTest5.xib in Resources */ = {isa = PBXBuildFile; fileRef = F4C0B9C2108E27EE002FC8E4 /* GTMUILocalizerAndLayoutTweakerTest5.xib */; };
F4C62489109753960069CADD /* GTMIBArrayTest.m in Sources */ = {isa = PBXBuildFile; fileRef = F4C62486109753960069CADD /* GTMIBArrayTest.m */; };
F4C6248A109753960069CADD /* GTMIBArrayTest.xib in Resources */ = {isa = PBXBuildFile; fileRef = F4C62487109753960069CADD /* GTMIBArrayTest.xib */; };
Expand Down Expand Up @@ -283,6 +284,8 @@
F48FE2900D198D24009257D2 /* GTMNSString+HTMLTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "GTMNSString+HTMLTest.m"; sourceTree = "<group>"; };
F48FE29F0D198D36009257D2 /* GTMSenTestCase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GTMSenTestCase.h; sourceTree = "<group>"; };
F493E3581146CD97005F994E /* GTMUILocalizerAndLayoutTweakerTest7.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GTMUILocalizerAndLayoutTweakerTest7.xib; sourceTree = "<group>"; };
F4A1EEA82B62D462008B2FC1 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
F4A1EEAA2B62D462008B2FC1 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
F4BA9E6E2B1548D700CAC68B /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
F4BA9E6F2B1548D700CAC68B /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
F4BA9E712B1548E200CAC68B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = UnitTesting/GTMUIUnitTestingHarness/Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
Expand Down Expand Up @@ -393,6 +396,7 @@
F48FE26F0D198CBA009257D2 /* AppKit */,
F48FE2720D198CCE009257D2 /* Foundation */,
F4FF22760D9D47FB003880AC /* DebugUtils */,
F4A1EEA62B62D462008B2FC1 /* Resources */,
F48FE2770D198CEA009257D2 /* UnitTesting */,
F48FE23E0D197F70009257D2 /* XcodeConfig */,
0867D69AFE84028FC02AAC07 /* External Frameworks and Libraries */,
Expand Down Expand Up @@ -603,6 +607,31 @@
path = UnitTesting;
sourceTree = "<group>";
};
F4A1EEA62B62D462008B2FC1 /* Resources */ = {
isa = PBXGroup;
children = (
F4A1EEA72B62D462008B2FC1 /* Logger */,
F4A1EEA92B62D462008B2FC1 /* Base */,
);
path = Resources;
sourceTree = "<group>";
};
F4A1EEA72B62D462008B2FC1 /* Logger */ = {
isa = PBXGroup;
children = (
F4A1EEA82B62D462008B2FC1 /* PrivacyInfo.xcprivacy */,
);
path = Logger;
sourceTree = "<group>";
};
F4A1EEA92B62D462008B2FC1 /* Base */ = {
isa = PBXGroup;
children = (
F4A1EEAA2B62D462008B2FC1 /* PrivacyInfo.xcprivacy */,
);
path = Base;
sourceTree = "<group>";
};
F4CA852B0DAFA92A00B4AB10 /* Project */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -852,6 +881,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F4A1EEAB2B62D46C008B2FC1 /* PrivacyInfo.xcprivacy in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
38 changes: 38 additions & 0 deletions GTMiPhone.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
8BF753DB1D9DB3080010A295 /* GTMSQLite.m in Sources */ = {isa = PBXBuildFile; fileRef = 8BF753DA1D9DB3080010A295 /* GTMSQLite.m */; };
8BF753DD1D9DB30E0010A295 /* GTMSQLiteTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 8BF753DC1D9DB30E0010A295 /* GTMSQLiteTest.m */; };
8BF753DF1D9DB3740010A295 /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BF753DE1D9DB3740010A295 /* libsqlite3.tbd */; };
F4A1EEA52B62D38F008B2FC1 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = F4A1EEA12B62D338008B2FC1 /* PrivacyInfo.xcprivacy */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
Expand Down Expand Up @@ -168,6 +169,8 @@
F4746720129703600022C1FB /* GTMSenTestCaseTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTMSenTestCaseTest.m; sourceTree = "<group>"; };
F4A0A95E140438B90010B64B /* DebugiOS.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = DebugiOS.xcconfig; sourceTree = "<group>"; };
F4A0A95F140438B90010B64B /* ReleaseiOS.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ReleaseiOS.xcconfig; sourceTree = "<group>"; };
F4A1EEA12B62D338008B2FC1 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
F4A1EEA32B62D338008B2FC1 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
F4E3B3D60EB5EF2400CB713D /* GTMUIFont+LineHeight.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "GTMUIFont+LineHeight.h"; sourceTree = "<group>"; };
F4E3B3D70EB5EF2400CB713D /* GTMUIFont+LineHeight.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "GTMUIFont+LineHeight.m"; sourceTree = "<group>"; };
F4E3B3E10EB5EF9A00CB713D /* GTMUIFont+LineHeightTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "GTMUIFont+LineHeightTest.m"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -216,6 +219,7 @@
8BC0479A0DAE928A00C2D1CA /* DebugUtils */,
8BC047760DAE928A00C2D1CA /* Foundation */,
8BA5F4060E75669000798036 /* iPhone */,
F4A1EE9F2B62D338008B2FC1 /* Resources */,
8BC0479F0DAE928A00C2D1CA /* UnitTesting */,
8BC049840DAEC59100C2D1CA /* XcodeConfig */,
29B97323FDCFA39411CA2CEA /* Frameworks */,
Expand Down Expand Up @@ -401,6 +405,31 @@
path = TestData;
sourceTree = "<group>";
};
F4A1EE9F2B62D338008B2FC1 /* Resources */ = {
isa = PBXGroup;
children = (
F4A1EEA02B62D338008B2FC1 /* Logger */,
F4A1EEA22B62D338008B2FC1 /* Base */,
);
path = Resources;
sourceTree = "<group>";
};
F4A1EEA02B62D338008B2FC1 /* Logger */ = {
isa = PBXGroup;
children = (
F4A1EEA12B62D338008B2FC1 /* PrivacyInfo.xcprivacy */,
);
path = Logger;
sourceTree = "<group>";
};
F4A1EEA22B62D338008B2FC1 /* Base */ = {
isa = PBXGroup;
children = (
F4A1EEA32B62D338008B2FC1 /* PrivacyInfo.xcprivacy */,
);
path = Base;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand All @@ -411,6 +440,7 @@
8B82CEF21D9C17DE007182AA /* Sources */,
8B82CEF31D9C17DE007182AA /* Frameworks */,
8B82CEF41D9C17DE007182AA /* CopyFiles */,
F4A1EEA42B62D37E008B2FC1 /* Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -490,6 +520,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
F4A1EEA42B62D37E008B2FC1 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F4A1EEA52B62D38F008B2FC1 /* PrivacyInfo.xcprivacy in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down
8 changes: 7 additions & 1 deletion GoogleToolboxForMac.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ Pod::Spec.new do |s|
s.subspec 'Defines' do |sp|
sp.public_header_files = 'GTMDefines.h'
sp.source_files = 'GTMDefines.h'
sp.resource_bundle = {
"GoogleToolboxForMac_Privacy" => "Resources/Base/PrivacyInfo.xcprivacy"
}
end

s.subspec 'Core' do |sp|
Expand Down Expand Up @@ -69,9 +72,12 @@ Pod::Spec.new do |s|
s.subspec 'Logger' do |sp|
sp.source_files = 'Foundation/GTMLogger.{h,m}'
sp.dependency 'GoogleToolboxForMac/Defines', "#{s.version}"
sp.resource_bundle = {
"GoogleToolboxForMac_Logger_Privacy" => "Resources/Logger/PrivacyInfo.xcprivacy"
}
end

# We cannot add a target for Foundaat/GTMLogger+ASL.{h,m}.
# We cannot add a target for Foundation/GTMLogger+ASL.{h,m}.
# asl.h is not a modular header, and so cannot be imported
# in a modulemap, which CocoaPods does by default when it
# creates frameworks.
Expand Down
14 changes: 14 additions & 0 deletions Resources/Base/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>NSPrivacyAccessedAPITypes</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyTrackingDomains</key>
<array/>
</dict>
</plist>
23 changes: 23 additions & 0 deletions Resources/Logger/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?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>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
</dict>
</array>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyTrackingDomains</key>
<array/>
</dict>
</plist>

0 comments on commit c563afa

Please sign in to comment.