fastlane-plugin-google_data_safety 0.1.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +53 -16
- data/lib/fastlane/plugin/google_data_safety/actions/prompt_create_data_safety_csv_action.rb +585 -0
- data/lib/fastlane/plugin/google_data_safety/actions/upload_google_data_safety_action.rb +20 -2
- data/lib/fastlane/plugin/google_data_safety/helper/prompt_create_data_safety_csv_helper.rb +17 -0
- data/lib/fastlane/plugin/google_data_safety/helper/upload_google_data_safety_helper.rb +0 -6
- data/lib/fastlane/plugin/google_data_safety/version.rb +1 -1
- metadata +13 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c996cc8d59b250f9fd4c899a6b3d426b74b7644c514fd045e4bf03c335f3c5b
|
|
4
|
+
data.tar.gz: 9ff7950db800e8506ecd23fc970e421d910096c828209205286766bf27e103ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b64fb9a63d98823b7301c8a7c6cdb6c4dbe9259f414f16164fb690718de766d8512b5f6a9fc7ae20d02c94ee3373df38dd8dd56844f3d40ef33f66795194841
|
|
7
|
+
data.tar.gz: 7b66cc3fa41a90b82340e87df73f2477ab1387e5a53d22a40ddbe6c1c4b8b314fedc438d5ca6e2dc57eca300cf851bc1c60b60fcd3d81be48f38f16954c5fd55
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# google_data_safety
|
|
1
|
+
# Fastlane google_data_safety Plugin
|
|
2
2
|
|
|
3
|
-
[](https://rubygems.org/gems/fastlane-plugin-
|
|
3
|
+
[](https://rubygems.org/gems/fastlane-plugin-google_data_safety)
|
|
4
4
|
|
|
5
5
|
## Getting Started
|
|
6
6
|
|
|
@@ -12,32 +12,69 @@ fastlane add_plugin google_data_safety
|
|
|
12
12
|
|
|
13
13
|
## About google_data_safety
|
|
14
14
|
|
|
15
|
-
Google safety data
|
|
15
|
+
Google safety data plugin help with automation of data safety form on Google Play Console. Review [Google policy data safety section](https://support.google.com/googleplay/android-developer/answer/10787469?hl=en) for more information about the form.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
## Actions
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
### upload_google_data_safety
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
Uploads Google data safety csv file to Google Play Console.
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## Run tests for this plugin
|
|
26
|
-
|
|
27
|
-
To run both the tests, and code style validation, run
|
|
23
|
+
#### 2 Examples
|
|
28
24
|
|
|
29
|
-
```
|
|
30
|
-
|
|
25
|
+
```ruby
|
|
26
|
+
upload_google_data_safety(
|
|
27
|
+
csv_file: "data_safety_export.csv",
|
|
28
|
+
package_name: "my.package.name",
|
|
29
|
+
json_key: "key.json"
|
|
30
|
+
)
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
```ruby
|
|
34
|
+
upload_google_data_safety(
|
|
35
|
+
csv_content: "Question ID (machine readable),Response ID (machine readable),Response value,Answer requirement,Human-friendly question label\n ...",
|
|
36
|
+
package_name: "my.package.name",
|
|
37
|
+
json_key_data: "..."
|
|
38
|
+
)
|
|
34
39
|
```
|
|
35
|
-
|
|
40
|
+
|
|
41
|
+
#### Parameters
|
|
42
|
+
|
|
43
|
+
| Key | Environment Variable | Description |
|
|
44
|
+
| ------------- | -------------------- | ------------------------------------------------------------------------------------ |
|
|
45
|
+
| json_key_data | JSON_KEY_DATA | The raw service account JSON data used to authenticate with Google |
|
|
46
|
+
| json_key | JSON_KEY_FILE | The path to a file containing service account JSON, used to authenticate with Google |
|
|
47
|
+
| package_name | PACKAGE_NAME | The package name of the application to use |
|
|
48
|
+
| csv_file | CSV_FILE | The path to a file containing Google data safety csv |
|
|
49
|
+
| csv_content | CSV_CONTENT | The raw csv data used for Google data safety |
|
|
50
|
+
| debug | DEBUG | Provide debug log messaging |
|
|
51
|
+
|
|
52
|
+
### prompt_create_data_safety_csv
|
|
53
|
+
|
|
54
|
+
Prompt user questions about data usage within Android app.
|
|
55
|
+
**Does not allow for non interactive mode**.
|
|
56
|
+
|
|
57
|
+
#### Example
|
|
58
|
+
|
|
59
|
+
```ruby
|
|
60
|
+
prompt_create_data_safety_csv(
|
|
61
|
+
csv_file: "google_data_safety.csv"
|
|
62
|
+
)
|
|
36
63
|
```
|
|
37
64
|
|
|
65
|
+
#### Parameters
|
|
66
|
+
|
|
67
|
+
| Key | Environment Variable | Description |
|
|
68
|
+
| -------- | -------------------- | ----------------------------------------------------------- |
|
|
69
|
+
| csv_file | CSV_FILE | The path to save csv file for upload to Google Play Console |
|
|
70
|
+
|
|
71
|
+
#### Issue reporting
|
|
72
|
+
|
|
73
|
+
For Issues on incorrect CSV file, please get a screenshot of manual import of csv file issues.
|
|
74
|
+
|
|
38
75
|
## Issues and Feedback
|
|
39
76
|
|
|
40
|
-
For any other issues and feedback about this plugin, please submit it to this repository.
|
|
77
|
+
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.
|
|
41
78
|
|
|
42
79
|
## Troubleshooting
|
|
43
80
|
|