Skip to content

Commit c563afa

Browse files
authored
Add xcprivacy manifest info. (#435)
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
1 parent c84a941 commit c563afa

File tree

5 files changed

+112
-1
lines changed

5 files changed

+112
-1
lines changed

GTM.xcodeproj/project.pbxproj

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
F47A79880D746EE9002302AB /* GTMScriptRunner.h in Headers */ = {isa = PBXBuildFile; fileRef = F47A79850D746EE9002302AB /* GTMScriptRunner.h */; settings = {ATTRIBUTES = (Public, ); }; };
117117
F47A79890D746EE9002302AB /* GTMScriptRunner.m in Sources */ = {isa = PBXBuildFile; fileRef = F47A79860D746EE9002302AB /* GTMScriptRunner.m */; };
118118
F493E3591146CD97005F994E /* GTMUILocalizerAndLayoutTweakerTest7.xib in Resources */ = {isa = PBXBuildFile; fileRef = F493E3581146CD97005F994E /* GTMUILocalizerAndLayoutTweakerTest7.xib */; };
119+
F4A1EEAB2B62D46C008B2FC1 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = F4A1EEA82B62D462008B2FC1 /* PrivacyInfo.xcprivacy */; };
119120
F4C0B9C3108E27EE002FC8E4 /* GTMUILocalizerAndLayoutTweakerTest5.xib in Resources */ = {isa = PBXBuildFile; fileRef = F4C0B9C2108E27EE002FC8E4 /* GTMUILocalizerAndLayoutTweakerTest5.xib */; };
120121
F4C62489109753960069CADD /* GTMIBArrayTest.m in Sources */ = {isa = PBXBuildFile; fileRef = F4C62486109753960069CADD /* GTMIBArrayTest.m */; };
121122
F4C6248A109753960069CADD /* GTMIBArrayTest.xib in Resources */ = {isa = PBXBuildFile; fileRef = F4C62487109753960069CADD /* GTMIBArrayTest.xib */; };
@@ -283,6 +284,8 @@
283284
F48FE2900D198D24009257D2 /* GTMNSString+HTMLTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "GTMNSString+HTMLTest.m"; sourceTree = "<group>"; };
284285
F48FE29F0D198D36009257D2 /* GTMSenTestCase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GTMSenTestCase.h; sourceTree = "<group>"; };
285286
F493E3581146CD97005F994E /* GTMUILocalizerAndLayoutTweakerTest7.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GTMUILocalizerAndLayoutTweakerTest7.xib; sourceTree = "<group>"; };
287+
F4A1EEA82B62D462008B2FC1 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
288+
F4A1EEAA2B62D462008B2FC1 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
286289
F4BA9E6E2B1548D700CAC68B /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
287290
F4BA9E6F2B1548D700CAC68B /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
288291
F4BA9E712B1548E200CAC68B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = UnitTesting/GTMUIUnitTestingHarness/Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
@@ -393,6 +396,7 @@
393396
F48FE26F0D198CBA009257D2 /* AppKit */,
394397
F48FE2720D198CCE009257D2 /* Foundation */,
395398
F4FF22760D9D47FB003880AC /* DebugUtils */,
399+
F4A1EEA62B62D462008B2FC1 /* Resources */,
396400
F48FE2770D198CEA009257D2 /* UnitTesting */,
397401
F48FE23E0D197F70009257D2 /* XcodeConfig */,
398402
0867D69AFE84028FC02AAC07 /* External Frameworks and Libraries */,
@@ -603,6 +607,31 @@
603607
path = UnitTesting;
604608
sourceTree = "<group>";
605609
};
610+
F4A1EEA62B62D462008B2FC1 /* Resources */ = {
611+
isa = PBXGroup;
612+
children = (
613+
F4A1EEA72B62D462008B2FC1 /* Logger */,
614+
F4A1EEA92B62D462008B2FC1 /* Base */,
615+
);
616+
path = Resources;
617+
sourceTree = "<group>";
618+
};
619+
F4A1EEA72B62D462008B2FC1 /* Logger */ = {
620+
isa = PBXGroup;
621+
children = (
622+
F4A1EEA82B62D462008B2FC1 /* PrivacyInfo.xcprivacy */,
623+
);
624+
path = Logger;
625+
sourceTree = "<group>";
626+
};
627+
F4A1EEA92B62D462008B2FC1 /* Base */ = {
628+
isa = PBXGroup;
629+
children = (
630+
F4A1EEAA2B62D462008B2FC1 /* PrivacyInfo.xcprivacy */,
631+
);
632+
path = Base;
633+
sourceTree = "<group>";
634+
};
606635
F4CA852B0DAFA92A00B4AB10 /* Project */ = {
607636
isa = PBXGroup;
608637
children = (
@@ -852,6 +881,7 @@
852881
isa = PBXResourcesBuildPhase;
853882
buildActionMask = 2147483647;
854883
files = (
884+
F4A1EEAB2B62D46C008B2FC1 /* PrivacyInfo.xcprivacy in Resources */,
855885
);
856886
runOnlyForDeploymentPostprocessing = 0;
857887
};

GTMiPhone.xcodeproj/project.pbxproj

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
8BF753DB1D9DB3080010A295 /* GTMSQLite.m in Sources */ = {isa = PBXBuildFile; fileRef = 8BF753DA1D9DB3080010A295 /* GTMSQLite.m */; };
6262
8BF753DD1D9DB30E0010A295 /* GTMSQLiteTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 8BF753DC1D9DB30E0010A295 /* GTMSQLiteTest.m */; };
6363
8BF753DF1D9DB3740010A295 /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BF753DE1D9DB3740010A295 /* libsqlite3.tbd */; };
64+
F4A1EEA52B62D38F008B2FC1 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = F4A1EEA12B62D338008B2FC1 /* PrivacyInfo.xcprivacy */; };
6465
/* End PBXBuildFile section */
6566

6667
/* Begin PBXCopyFilesBuildPhase section */
@@ -168,6 +169,8 @@
168169
F4746720129703600022C1FB /* GTMSenTestCaseTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTMSenTestCaseTest.m; sourceTree = "<group>"; };
169170
F4A0A95E140438B90010B64B /* DebugiOS.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = DebugiOS.xcconfig; sourceTree = "<group>"; };
170171
F4A0A95F140438B90010B64B /* ReleaseiOS.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ReleaseiOS.xcconfig; sourceTree = "<group>"; };
172+
F4A1EEA12B62D338008B2FC1 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
173+
F4A1EEA32B62D338008B2FC1 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
171174
F4E3B3D60EB5EF2400CB713D /* GTMUIFont+LineHeight.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "GTMUIFont+LineHeight.h"; sourceTree = "<group>"; };
172175
F4E3B3D70EB5EF2400CB713D /* GTMUIFont+LineHeight.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "GTMUIFont+LineHeight.m"; sourceTree = "<group>"; };
173176
F4E3B3E10EB5EF9A00CB713D /* GTMUIFont+LineHeightTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "GTMUIFont+LineHeightTest.m"; sourceTree = "<group>"; };
@@ -216,6 +219,7 @@
216219
8BC0479A0DAE928A00C2D1CA /* DebugUtils */,
217220
8BC047760DAE928A00C2D1CA /* Foundation */,
218221
8BA5F4060E75669000798036 /* iPhone */,
222+
F4A1EE9F2B62D338008B2FC1 /* Resources */,
219223
8BC0479F0DAE928A00C2D1CA /* UnitTesting */,
220224
8BC049840DAEC59100C2D1CA /* XcodeConfig */,
221225
29B97323FDCFA39411CA2CEA /* Frameworks */,
@@ -401,6 +405,31 @@
401405
path = TestData;
402406
sourceTree = "<group>";
403407
};
408+
F4A1EE9F2B62D338008B2FC1 /* Resources */ = {
409+
isa = PBXGroup;
410+
children = (
411+
F4A1EEA02B62D338008B2FC1 /* Logger */,
412+
F4A1EEA22B62D338008B2FC1 /* Base */,
413+
);
414+
path = Resources;
415+
sourceTree = "<group>";
416+
};
417+
F4A1EEA02B62D338008B2FC1 /* Logger */ = {
418+
isa = PBXGroup;
419+
children = (
420+
F4A1EEA12B62D338008B2FC1 /* PrivacyInfo.xcprivacy */,
421+
);
422+
path = Logger;
423+
sourceTree = "<group>";
424+
};
425+
F4A1EEA22B62D338008B2FC1 /* Base */ = {
426+
isa = PBXGroup;
427+
children = (
428+
F4A1EEA32B62D338008B2FC1 /* PrivacyInfo.xcprivacy */,
429+
);
430+
path = Base;
431+
sourceTree = "<group>";
432+
};
404433
/* End PBXGroup section */
405434

406435
/* Begin PBXNativeTarget section */
@@ -411,6 +440,7 @@
411440
8B82CEF21D9C17DE007182AA /* Sources */,
412441
8B82CEF31D9C17DE007182AA /* Frameworks */,
413442
8B82CEF41D9C17DE007182AA /* CopyFiles */,
443+
F4A1EEA42B62D37E008B2FC1 /* Resources */,
414444
);
415445
buildRules = (
416446
);
@@ -490,6 +520,14 @@
490520
);
491521
runOnlyForDeploymentPostprocessing = 0;
492522
};
523+
F4A1EEA42B62D37E008B2FC1 /* Resources */ = {
524+
isa = PBXResourcesBuildPhase;
525+
buildActionMask = 2147483647;
526+
files = (
527+
F4A1EEA52B62D38F008B2FC1 /* PrivacyInfo.xcprivacy in Resources */,
528+
);
529+
runOnlyForDeploymentPostprocessing = 0;
530+
};
493531
/* End PBXResourcesBuildPhase section */
494532

495533
/* Begin PBXSourcesBuildPhase section */

GoogleToolboxForMac.podspec

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ Pod::Spec.new do |s|
3535
s.subspec 'Defines' do |sp|
3636
sp.public_header_files = 'GTMDefines.h'
3737
sp.source_files = 'GTMDefines.h'
38+
sp.resource_bundle = {
39+
"GoogleToolboxForMac_Privacy" => "Resources/Base/PrivacyInfo.xcprivacy"
40+
}
3841
end
3942

4043
s.subspec 'Core' do |sp|
@@ -69,9 +72,12 @@ Pod::Spec.new do |s|
6972
s.subspec 'Logger' do |sp|
7073
sp.source_files = 'Foundation/GTMLogger.{h,m}'
7174
sp.dependency 'GoogleToolboxForMac/Defines', "#{s.version}"
75+
sp.resource_bundle = {
76+
"GoogleToolboxForMac_Logger_Privacy" => "Resources/Logger/PrivacyInfo.xcprivacy"
77+
}
7278
end
7379

74-
# We cannot add a target for Foundaat/GTMLogger+ASL.{h,m}.
80+
# We cannot add a target for Foundation/GTMLogger+ASL.{h,m}.
7581
# asl.h is not a modular header, and so cannot be imported
7682
# in a modulemap, which CocoaPods does by default when it
7783
# creates frameworks.
Lines changed: 14 additions & 0 deletions
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>NSPrivacyAccessedAPITypes</key>
6+
<array/>
7+
<key>NSPrivacyCollectedDataTypes</key>
8+
<array/>
9+
<key>NSPrivacyTracking</key>
10+
<false/>
11+
<key>NSPrivacyTrackingDomains</key>
12+
<array/>
13+
</dict>
14+
</plist>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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>NSPrivacyAccessedAPITypes</key>
6+
<array>
7+
<dict>
8+
<key>NSPrivacyAccessedAPIType</key>
9+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
10+
<key>NSPrivacyAccessedAPITypeReasons</key>
11+
<array>
12+
<string>CA92.1</string>
13+
</array>
14+
</dict>
15+
</array>
16+
<key>NSPrivacyCollectedDataTypes</key>
17+
<array/>
18+
<key>NSPrivacyTracking</key>
19+
<false/>
20+
<key>NSPrivacyTrackingDomains</key>
21+
<array/>
22+
</dict>
23+
</plist>

0 commit comments

Comments
 (0)