XcprivacyGenerator class

Generates an Apple PrivacyInfo.xcprivacy plist from matched SDK entries.

Schema keys follow Apple's Privacy Manifest documentation: https://developer.apple.com/documentation/bundleresources/privacy-manifest-files

Constructors

XcprivacyGenerator()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateXml(List<SdkEntry> sdks, {ProjectInfo? project}) String
Builds plist XML for sdks, writing only entries where SdkEntry.requiresXcprivacyEntry is true.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
writeToFile(List<SdkEntry> sdks, String outputPath, {ProjectInfo? project}) → void
Writes generateXml output to outputPath.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

apiCategoryToApple → const Map<String, String>
Maps short API category names from YAML to Apple's NSPrivacyAccessedAPIType.
dataTypeToApple → const Map<String, String>
Maps our database type strings to Apple's NSPrivacyCollectedDataType values.
placeholderReasonCode → const String
HUMAN-VERIFICATION POINT: Reason codes must be chosen from Apple's official approved list for each API category (e.g. CA92.1, C617.1, 35F9.1). Do NOT trust this placeholder in a real App Store submission — replace after verifying against: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api
purposeToApple → const Map<String, String>
Maps our purpose strings to Apple's NSPrivacyCollectedDataTypePurposes.