Skip to content

Commit

Permalink
Add GooglePlayReleaseV4 task for uploading apks and aabs as a part of…
Browse files Browse the repository at this point in the history
… the same release (#292)

* initial implementation

* fix invalid metadataHelper file name

* fix bundle/apk file lists

* remove unneeded function

* move releaseName to advanced inputs

* switch file inputs type to string

Apparently AzDO automatically fills empty filePath inputs with working dir. This is undesirable and causes the task to pick up files even if they are not specified.

* fix null paths

* fail if no files specified

* fix invalid input name

* refactor & fix obb uploading

* reorder: upload ABBs before APKs

* rename some inputs

* change confusing variable name

* fix error message

* add support for multiple mapping files

* small fixes

* fix `uploadMappingFile` input name and description

* add some debug lines for mapping files

* fixes

* fix undefined version code for mapping

* add and fix messages

* fix input messages

* update resources.resjson too

* fix visibleRule for mappingFilePaths

* formatting

* try a new input configuration

* fix obbPath visibleRule

* fix mappingFilePath visibleRule

* fix shouldUploadMappingFile visibleRule

* fix visibleRule for mapping file inputs

* make action input required

* rework task to use new UI with `action` input

* fix tslint warnings

* make apkFiles input multiline too

* update input messages

* validate action input

* warn of unused inputs

* add track input to unused inputs check

* fix invalid return value in getBundles and getApks

* warn about unused mapping file inputs on multifile

* fix MustProvideApkIfObb loc string

* small fixes

* update loc strings

* fix typo in submission process explanation comment

* only upload mapping if single apk/aab

* refactor `getApks` and `getBundles`

* fix `getApksOrAabs` comment

* fix apk upload request mimeType

* move helpers to `modules` folder

* improved & localized invalid action error message

* rename GooglePlay.ts to main.ts

* rename updateTrack function in main.ts

* combine inputs of track update method in main.ts

* improve error messaging on apk/aab not found

* EOL

* add unit tests

* split functions into separate modules

* remove duplicate `Action` type declaration

* extract `TrackUpdateParameters` interface

* improve typecheck for action input

* make `Action` type export

* fix tslint warnings in TrackUpdateParameters

* update make-options & extension.json

* update readmes

* fixes

* make some inputs required

* fix warning message on unset bool inputs

* trim trailing whitespace

* update list of unused inputs for OnlyStoreListing

* remove some items from lists of unused inputs

AzDO sets these inputs to default, so they can't be checked

* fix broken `visibleRule` for `track` input

* update GUID

it's not possible to have multiple tasks with the same GUID in extension

* bump task version

* update task.loc.json

* add icon

* add "deprecated" to friendlyName of V3 tasks

* extract defaultLanguageCode into const

* refactor returning obb path

* add comment about action type checking

* change let to const in serviceEndpoint declaration

Co-authored-by: Alexander Smolyakov <[email protected]>
  • Loading branch information
DaniilShmelev and Alexander Smolyakov authored Oct 5, 2021
1 parent 048f1fb commit a21a9d6
Show file tree
Hide file tree
Showing 58 changed files with 4,491 additions and 163 deletions.
151 changes: 132 additions & 19 deletions README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"loc.friendlyName": "Google Play - Release Bundle",
"loc.friendlyName": "Google Play - Release Bundle (deprecated)",
"loc.description": "Release an app bundle to the Google Play Store",
"loc.instanceNameFormat": "Release $(bundleFile) to $(track)",
"loc.group.displayName.advanced": "Advanced Options",
Expand Down
Loading

0 comments on commit a21a9d6

Please sign in to comment.