Skip to content

Commit

Permalink
Manually fix spaces to lines are capped at 80
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 committed Nov 29, 2023
1 parent 4ce9980 commit 775054f
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 31 deletions.
58 changes: 49 additions & 9 deletions ReleaseTooling/Sources/PrivacyKit/AccessedAPIType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,63 @@ public struct AccessedAPIType: Encodable {
public var description: String {
switch self {
case ._DDA9_1:
"Declare this reason to display file timestamps to the person using the device. Information accessed for this reason, or any derived information, may not be sent off-device."
"Declare this reason to display file timestamps to the person using " +
"the device. Information accessed for this reason, or any derived " +
"information, may not be sent off-device."
case ._C617_1:
"Declare this reason to access the timestamps of files inside the app container, app group container, or the app’s CloudKit container."
"Declare this reason to access the timestamps of files inside the " +
"app container, app group container, or the app’s CloudKit " +
"container."
case ._3B52_1:
"Declare this reason to access the timestamps of files or directories that the user specifically granted access to, such as using a document picker view controller."
"Declare this reason to access the timestamps of files or " +
"directories that the user specifically granted access to, such " +
"as using a document picker view controller."
case ._35F9_1:
"Declare this reason to access the system boot time in order to measure the amount of time that has elapsed between events that occurred within the app or to perform calculations to enable timers. Information accessed for this reason, or any derived information, may not be sent off-device. There is an exception for information about the amount of time that has elapsed between events that occurred within the app, which may be sent off-device."
"Declare this reason to access the system boot time in order to " +
"measure the amount of time that has elapsed between events that " +
"occurred within the app or to perform calculations to enable " +
"timers. Information accessed for this reason, or any derived " +
"information, may not be sent off-device. There is an exception " +
"for information about the amount of time that has elapsed " +
"between events that occurred within the app, which may be sent " +
"off-device."
case ._85F4_1:
"Declare this reason to display disk space information to the person using the device. Disk space may be displayed in units of information (such as bytes) or units of time combined with a media type (such as minutes of HD video). Information accessed for this reason, or any derived information, may not be sent off-device."
"Declare this reason to display disk space information to the " +
"person using the device. Disk space may be displayed in units of " +
"information (such as bytes) or units of time combined with a " +
"media type (such as minutes of HD video). Information accessed " +
"for this reason, or any derived information, may not be sent " +
"off-device."
case ._E174_1:
"Declare this reason to check whether there is sufficient disk space to write files, or to check whether the disk space is low so that the app can delete files when the disk space is low. The app must behave differently based on disk space in a way that is observable to users. Information accessed for this reason, or any derived information, may not be sent off-device. There is an exception that allows the app to avoid downloading files from a server when disk space is insufficient."
"Declare this reason to check whether there is sufficient disk " +
"space to write files, or to check whether the disk space is low " +
"so that the app can delete files when the disk space is low. The " +
"app must behave differently based on disk space in a way that is " +
"observable to users. Information accessed for this reason, or " +
"any derived information, may not be sent off-device. There is an " +
"exception that allows the app to avoid downloading files from a " +
"server when disk space is insufficient."
case ._3EC4_1:
"Declare this reason if your app is a custom keyboard app, and you access this API category to determine the keyboards that are active on the device. Providing a systemwide custom keyboard to the user must be the primary functionality of the app. Information accessed for this reason, or any derived information, may not be sent off-device."
"Declare this reason if your app is a custom keyboard app, and you " +
"access this API category to determine the keyboards that are " +
"active on the device. Providing a systemwide custom keyboard to " +
"the user must be the primary functionality of the app. " +
"Information accessed for this reason, or any derived " +
"information, may not be sent off-device."
case ._54BD_1:
"Declare this reason to access active keyboard information to present the correct customized user interface to the person using the device. The app must have text fields for entering or editing text and must behave differently based on active keyboards in a way that is observable to users. Information accessed for this reason, or any derived information, may not be sent off-device."
"Declare this reason to access active keyboard information to " +
"present the correct customized user interface to the person " +
"using the device. The app must have text fields for entering or " +
"editing text and must behave differently based on active " +
"keyboards in a way that is observable to users. Information " +
"accessed for this reason, or any derived information, may not be " +
"sent off-device."
case ._CA92_1:
"Declare this reason to access user defaults to read and write information that is only accessible to the app itself. This reason does not permit reading information that was written by other apps or the system, or writing information that can be accessed by other apps."
"Declare this reason to access user defaults to read and write " +
"information that is only accessible to the app itself. This " +
"reason does not permit reading information that was written by " +
"other apps or the system, or writing information that can be " +
"accessed by other apps."
}
}
}
Expand Down
82 changes: 60 additions & 22 deletions ReleaseTooling/Sources/PrivacyKit/CollectedDataType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,49 +106,76 @@ public struct CollectedDataType: Encodable {
case .physicalAddress:
"Such as home address, physical address, or mailing address."
case .otherUserContactInfo:
"Any other information that can be used to contact the user outside the app."
"Any other information that can be used to contact the user " +
"outside the app."
case .health:
"Health and medical data, including but not limited to data from the Clinical Health Records API, HealthKit API, MovementDisorderAPIs, or health-related human subject research or any other user provided health or medical data."
"Health and medical data, including but not limited to data from " +
"the Clinical Health Records API, HealthKit API, " +
"MovementDisorderAPIs, or health-related human subject research " +
"or any other user provided health or medical data."
case .fitness:
"Fitness and exercise data, including but not limited to the Motion and Fitness API."
"Fitness and exercise data, including but not limited to the " +
"Motion and Fitness API."
case .paymentInfo:
"Such as form of payment, payment card number, or bank account number. If your app uses a payment service, the payment information is entered outside your app, and you as the developer never have access to the payment information, it is not collected and does not need to be disclosed."
"Such as form of payment, payment card number, or bank account " +
"number. If your app uses a payment service, the payment " +
"information is entered outside your app, and you as the " +
"developer never have access to the payment information, it is " +
"not collected and does not need to be disclosed."
case .creditInfo:
"Such as credit score."
case .otherFinancialInfo:
"Such as salary, income, assets, debts, or any other financial information."
"Such as salary, income, assets, debts, or any other financial " +
"information."
case .preciseLocation:
"Information that describes the location of a user or device with the same or greater resolution as a latitude and longitude with three or more decimal places."
"Information that describes the location of a user or device with " +
"the same or greater resolution as a latitude and longitude with " +
"three or more decimal places."
case .coarseLocation:
"Information that describes the location of a user or device with lower resolution than a latitude and longitude with three or more decimal places, such as Approximate Location Services."
"Information that describes the location of a user or device with " +
"lower resolution than a latitude and longitude with three or " +
"more decimal places, such as Approximate Location Services."
case .sensitiveInfo:
"Such as racial or ethnic data, sexual orientation, pregnancy or childbirth information, disability, religious or philosophical beliefs, trade union membership, political opinion, genetic information, or biometric data."
"Such as racial or ethnic data, sexual orientation, pregnancy or " +
"childbirth information, disability, religious or philosophical " +
"beliefs, trade union membership, political opinion, genetic " +
"information, or biometric data."
case .contacts:
"Such as a list of contacts in the user’s phone, address book, or social graph."
"Such as a list of contacts in the user’s phone, address book, or " +
"social graph."
case .emailsOrTextMessages:
"Including subject line, sender, recipients, and contents of the email or message."
"Including subject line, sender, recipients, and contents of the " +
"email or message."
case .photosorVideos:
"The user’s photos or videos."
case .audioData:
"The user’s voice or sound recordings."
case .gameplayContent:
"Such as saved games, multiplayer matching or gameplay logic, or user-generated content in-game."
"Such as saved games, multiplayer matching or gameplay logic, or " +
"user-generated content in-game."
case .customerSupport:
"Data generated by the user during a customer support request."
case .otherUserContent:
"Any other user-generated content."
case .browsingHistory:
"Information about content the user has viewed that is not part of the app, such as websites."
"Information about content the user has viewed that is not part of " +
"the app, such as websites."
case .searchHistory:
"Information about searches performed in the app."
case .userID:
"Such as screen name, handle, account ID, assigned user ID, customer number, or other user- or account-level ID that can be used to identify a particular user or account."
"Such as screen name, handle, account ID, assigned user ID, " +
"customer number, or other user- or account-level ID that can " +
"be used to identify a particular user or account."
case .deviceID:
"Such as the device’s advertising identifier, or other device-level ID."
"Such as the device’s advertising identifier, or other " +
"device-level ID."
case .purchaseHistory:
"An account’s or individual’s purchases or purchase tendencies."
case .productInteraction:
"Such as app launches, taps, clicks, scrolling information, music listening data, video views, saved place in a game, video, or song, or other information about how the user interacts with the app."
"Such as app launches, taps, clicks, scrolling information, music " +
"listening data, video views, saved place in a game, video, or " +
"song, or other information about how the user interacts with the " +
"app."
case .advertisingData:
"Such as information about the advertisements the user has seen."
case .otherUsageData:
Expand All @@ -158,9 +185,11 @@ public struct CollectedDataType: Encodable {
case .performanceData:
"Such as launch time, hang rate, or energy use."
case .otherDiagnosticData:
"Any other data collected for the purposes of measuring technical diagnostics related to the app."
"Any other data collected for the purposes of measuring technical " +
"diagnostics related to the app."
case .environmentScanning:
"Such as mesh, planes, scene classification, and/or image detection of the user’s surroundings."
"Such as mesh, planes, scene classification, and/or image detection " +
"of the user’s surroundings."
case .hands:
"The user’s hand structure and hand movements."
case .head:
Expand Down Expand Up @@ -200,15 +229,24 @@ public struct CollectedDataType: Encodable {
var description: String {
switch self {
case .thirdPartyAdvertising:
"Such as displaying third-party ads in your app, or sharing data with entities who display third-party ads."
"Such as displaying third-party ads in your app, or sharing data " +
"with entities who display third-party ads."
case .developerAdvertising:
"Such as displaying first-party ads in your app, sending marketing communications directly to your users, or sharing data with entities who will display your ads."
"Such as displaying first-party ads in your app, sending marketing " +
"communications directly to your users, or sharing data with " +
"entities who will display your ads."
case .analytics:
"Using data to evaluate user behavior, including to understand the effectiveness of existing product features, plan new features, or measure audience size or characteristics."
"Using data to evaluate user behavior, including to understand the " +
"effectiveness of existing product features, plan new features, " +
"or measure audience size or characteristics."
case .productPersonalization:
"Customizing what the user sees, such as a list of recommended products, posts, or suggestions."
"Customizing what the user sees, such as a list of recommended " +
"products, posts, or suggestions."
case .appFunctionality:
"Such as to authenticate the user, enable features, prevent fraud, implement security measures, ensure server up-time, minimize app crashes, improve scalability and performance, or perform customer support."
"Such as to authenticate the user, enable features, prevent " +
"fraud, implement security measures, ensure server up-time, " +
"minimize app crashes, improve scalability and performance, or " +
"perform customer support."
case .other:
"Any other purposes not listed."
}
Expand Down

0 comments on commit 775054f

Please sign in to comment.