Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Country code param #41

Closed
vmtrue opened this issue Oct 25, 2022 · 3 comments · Fixed by #42
Closed

Country code param #41

vmtrue opened this issue Oct 25, 2022 · 3 comments · Fixed by #42
Assignees
Labels
enhancement New feature or request

Comments

@vmtrue
Copy link

vmtrue commented Oct 25, 2022

Hello,

Is there any way to set up list of countries that my app would be available, or use countries from previous release?
Now when I publish the app by plugin I need to choose countries every time. When I publish the app manually I don't have to do such things, countries list got from previous release.

Thanks

@cosic cosic self-assigned this Oct 26, 2022
@cosic cosic added the enhancement New feature or request label Oct 26, 2022
@cosic cosic linked a pull request Nov 18, 2022 that will close this issue
@vmtrue vmtrue closed this as completed Nov 22, 2022
@cosic
Copy link
Contributor

cosic commented Nov 22, 2022

@vmtrue Please try your changes on 1.3.5-SNAPSHOT plugin version. Don't forget to add maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } repository.

@vmtrue
Copy link
Author

vmtrue commented Dec 6, 2022

@cosic Hi, I've checked publishing it works

@cosic
Copy link
Contributor

cosic commented Jan 7, 2023

I will add description how to fix issue for history.

Just add appBasicInfo parametr into plugin extention

huaweiPublish {
    instances {
        release {
           ...
            appBasicInfo = "$projectDir/app-basic-info.json"
            ...
        }
    }
}

or use CLI param

./gradlew publishHuaweiAppGalleryRelease --appBasicInfo="./app/app-basic-info.json"

where app-basic-info.json contains json like this

{"publishCountry": "BY,MD,RU,AM,AZ,GE,KZ,KG,MN,TJ,TM,UZ"}

For more info and param options see API documentation https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-References/agcapi-app-info-update-0000001111685198

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants