This project is a fastlane plugin. To get started with fastlane-plugin-google_data_safety, add it to your project by running:
fastlane add_plugin google_data_safetyGoogle safety data plugin help with automation of data safety form on Google Play Console. Review Google policy data safety section for more information about the form.
Uploads Google data safety csv file to Google Play Console.
upload_google_data_safety(
csv_file: "data_safety_export.csv",
package_name: "my.package.name",
json_key: "key.json"
)upload_google_data_safety(
csv_content: "Question ID (machine readable),Response ID (machine readable),Response value,Answer requirement,Human-friendly question label\n ...",
package_name: "my.package.name",
json_key_data: "..."
)| Key | Environment Variable | Description |
|---|---|---|
| json_key_data | JSON_KEY_DATA | The raw service account JSON data used to authenticate with Google |
| json_key | JSON_KEY_FILE | The path to a file containing service account JSON, used to authenticate with Google |
| package_name | PACKAGE_NAME | The package name of the application to use |
| csv_file | CSV_FILE | The path to a file containing Google data safety csv |
| csv_content | CSV_CONTENT | The raw csv data used for Google data safety |
| debug | DEBUG | Provide debug log messaging |
Prompt user questions about data usage within Android app. Does not allow for non interactive mode.
prompt_create_data_safety_csv(
csv_file: "google_data_safety.csv"
)| Key | Environment Variable | Description |
|---|---|---|
| csv_file | CSV_FILE | The path to save csv file for upload to Google Play Console |
For Issues on incorrect CSV file, please get a screenshot of manual import of csv file issues.
For any other issues and feedback about this plugin, please submit it to this repository. Any issue specific to generating CSV file, please upload a screenshot of CSV file error and all of the question prompt answers.
If you have trouble using plugins, check out the Plugins Troubleshooting guide.
For more information about how the fastlane plugin system works, check out the Plugins documentation.
fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.