Closed zhelanov closed 3 years ago
HuaweiAppGallery allows to create only 2 drafts. And this is a very stupid limitation...
Thank you for your a new issue discovery. Huawei brings me pain.
Well, let me think a little bit. Seems a new boolean parameter is overhead. It would be better to create a single enum param with "publish", "draft" and "upload-only" options.
@cosic , changed deploy type to enum. Please review my changes :) Thanks!
@zhelanov Please change target branch from master to develop. Unfortunately I've did a lot code changes. If you would like I can add your changes for next release on my own.
I can add your changes for next release on my own.
Okay! if it won't give you much trouble then I'll appreciate it :)
@zhelanov Please could you try 1.2.1-SNAPSHOT
plugin version from snapshot-1.2.1 branch and check that changes are working?
Okay, I'll check it. Thanks!
@cosic, for some reason I can't build plugin on snapshot-1.2.1, it compiles an empty jar:
$ du -hs build/libs/huawei-publish-gradle-plugin.jar
4.0K build/libs/huawei-publish-gradle-plugin.jar
I've got it from https://oss.sonatype.org/content/repositories/snapshots/ru/cian/huawei-publish-gradle-plugin/ .
I've tested deployType = DeployType.UPLOAD_ONLY
and it seems to not work as expected: it updates App File Info still
One thing to note: expected 'client_key' key in credentials json was changed to 'client_secret' so it'll be necessary to change json in projects that use this plugin
@zhelanov
I've got it from https://oss.sonatype.org/content/repositories/snapshots/ru/cian/huawei-publish-gradle-plugin/ . I've tested deployType = DeployType.UPLOAD_ONLY and it seems to not work as expected: it updates App File Info still
You are right. It's my mistake. Please check snapshot again.
One thing to note: expected 'client_key' key in credentials json was changed to 'client_secret' so it'll be necessary to change json in projects that use this plugin
Yeap! You can read about these changes in the CHANGELOG.md at snapshot-1.2.1
branch.
Yep, now UPLOAD_ONLY and DRAFT works as expected 👍
Released at v1.2.1
Hi guys! I've faced a problem without an option to only upload files:
After apk uploading plugin calls updateAppFileInformation() method. If we upload apk without (!) publishing to all users then there will be two releases of app in Huawei Connect:
It's okay and we create a release from a draft with availability for some percent of users. Right after this we've found a bug and we need to upload another version of apk. Then (again, without publishing) we call
and it throws an exception
So it might be cool to be able in this case to just upload files automated from CI and do other stuff in AppGallery Connect manually