Skip to content

Commit

Permalink
Add Debug Symbol File/Folder Upload (r0adkll#130)
Browse files Browse the repository at this point in the history
* Add Debug Symbol File/Folder Upload

Uploads Deobfuscation File type 'nativeCode'.

Inputs allowed in 'debugSymbols', a .zip file, or a folder that contains the symbols.

* Space Formatting

* Zip Directory Function higher level, and formatting
  • Loading branch information
ThomasAunvik authored Sep 11, 2022
1 parent c16321c commit 6a74f07
Show file tree
Hide file tree
Showing 7 changed files with 266 additions and 13 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This action will help you upload an Android `.apk` or `.aab` (Android App Bundle
| status | Release status. Defaults to `completed` if targeting 100% rollout, `halted` for 0%, and `inProgress` for anything in between | One of `completed`, `inProgress`, `halted`, `draft` | false |
| whatsNewDirectory | The directory of localized "whats new" files to upload as the release notes. The files contained in the `whatsNewDirectory` MUST use the pattern `whatsnew-<LOCALE>` where `LOCALE` is using the [`BCP 47`](https://tools.ietf.org/html/bcp47) format | A path to a valid `whatsNewDirectory` | false |
| mappingFile | The mapping.txt file used to de-obfuscate your stack traces from crash reports | A path to a valid `mapping.txt` file | false |
| debugSymbols | The native-debug-symbols.zip file or folder that contains your debug symbols | A path to a valid `native-debug-symbols.zip file` file or a folder | false |
| changesNotSentForReview | Indicates that the changes in this edit will not be reviewed until they are explicitly sent for review from the Google Play Console. Defaults to `false` | `true` or `false` | `false` |
| serviceAccountJson | The service account json private key file to authorize the upload request. Can be used instead of `serviceAccountJsonPlainText` to specify a file rather than provide a secret | A path to a valid `service-account.json` file | true (or serviceAccountJsonPlainText) |
| existingEditId | The ID of an existing edit that has not been completed. If this is supplied, the action will append information to that rather than creating an edit | A valid, unpublished Edit ID | false |
Expand Down Expand Up @@ -44,6 +45,7 @@ with:
userFraction: 0.33
whatsNewDirectory: distribution/whatsnew
mappingFile: app/build/outputs/mapping/release/mapping.txt
debugSymbols: app/intermediates/merged_native_libs/release/out/lib
```
The `whatsNewDirectory` in this example supplies changelogs for English, German and Japanese
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ inputs:
mappingFile:
description: "The mapping.txt file used to de-obfuscate your stack traces from crash reports"
required: false
debugSymbols:
description: "The native-debug-symbols.zip file or folder that contains your debug symbols"
required: false
changesNotSentForReview:
description: "Indicates that the changes in this edit will not be reviewed until they are explicitly sent for review from the Google Play Console"
default: false
Expand Down
12 changes: 6 additions & 6 deletions lib/index.js

Large diffs are not rendered by default.

185 changes: 180 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"dependencies": {
"@actions/core": "^1.9.1",
"@googleapis/androidpublisher": "^3.0.0",
"fast-glob": "^3.2.12"
"fast-glob": "^3.2.12",
"jszip": "^3.10.0"
},
"devDependencies": {
"@types/jest": "^29.0.0",
Expand Down
Loading

0 comments on commit 6a74f07

Please sign in to comment.