cianru / huawei-appgallery-publish-gradle-plugin

Huawei AppGallery Publish Gradle Plugin allows you to publish the android release build file (*.apk or *.aab) to the Huawei AppGallery store
Apache License 2.0
113 stars 20 forks source link

AppBundle publication error: The file is being processed. It may take 2-5 minutes, depending on the size of the software package #7

Closed cosic closed 3 years ago

cosic commented 4 years ago

Reproduce on library v1.1.0 with options

{
   ...
   publish = true
   buildFormat = "aab"
}

Output:

> Task :app:publishHuaweiAppGalleryRelease
Huawei AppGallery Publishing API: Found build file: `app-release.aab`
Huawei AppGallery Publishing API: Get Credentials
Huawei AppGallery Publishing API: Get Access Token
Huawei AppGallery Publishing API: Get App ID
Huawei AppGallery Publishing API: Get Upload Url
Huawei AppGallery Publishing API: Upload build file
Huawei AppGallery Publishing API: Update App File Info
Huawei AppGallery Publishing API: Submit Release
> Task :app:publishHuaweiAppGalleryRelease FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:publishHuaweiAppGalleryRelease'.
> Ret(msg=[cds]submit failed, additional msg is [The file is being processed. It may take 2-5 minutes, depending on the size of the software package.])
minamak91 commented 3 years ago

@cosic Is the commit attached should fix the issue? If yes, could you please merge the develop to the master?

cosic commented 3 years ago

@minamak91 Hi! I've published snapshot_1.2.0. Could you check AppBundle publishing with this version without release phase? The release phase doesn't work yet due to issue at Huawei Rest API. For more information see READNE at snapshot-1.2.0 branch

minamak91 commented 3 years ago

@cosic This doesn't work for me and when I tried to publish the branch on Jitpack, it fails...

classpath "ru.cian:huawei-publish-gradle-plugin:1.2.0-SNAPSHOT"

Could you please just tell me what should be the version added to the build gradle classpath? Thanks in advance :)

cosic commented 3 years ago

@minamak91 To use snapshot you must add sonatype snapshot repository:

buildscript {
    repositories {
        maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
    }

    dependencies {
        classpath "ru.cian:huawei-publish-gradle-plugin:1.2.0-SNAPSHOT"
    }
}
minamak91 commented 3 years ago

@cosic It works fine the publishing without release phase, thank you so much :+1:

cosic commented 3 years ago

Released at v1.2.1