iTranslated by AI
The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🗂
Danger Plugin for Detecting Required Reason API Usage
Introduction
- I have created a Danger Plugin for the purpose of detecting the usage of APIs that require Privacy Manifests.
- It flags usage when it identifies APIs introduced on the following page.
- Development is being conducted in this repository: https://github.com/shogo4405/danger-privacymanifest
Installation
I will describe the installation steps assuming that Danger is already set up.
Updating Gemfile
Since the gem is not yet registered, specify the git repository.
source 'https://rubygems.org'
gem 'danger-privacymanifest', git: 'https://github.com/shogo4405/danger-privacymanifest'
Don't forget to update the bundle.
$ bundle update
Updating Danger
Register it in your Dangerfile.
# Add this line to any location
privacymanifest.report
Usage Example
I have integrated this into https://github.com/shogo4405/HaishinKit.swift. The result looks like this:

Conclusion
I hope this will be helpful in preventing accidental omissions of Privacy Manifest compliance during development and avoiding rejections during the review process.
Discussion