Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

Autopublish to Huawei app gallery

Open mikehardy opened this issue 6 years ago • 19 comments

It appears we can do releases to the Huawei AppGallery automatically using this: https://github.com/cianru/huawei-publish-gradle-plugin

So it would not be too different from the recent auto-publish addition of Amazon Kindle Store: https://github.com/ankidroid/Anki-Android/commit/598e16e53810a57157646a543f7e10ae6cbcc5de#diff-01a43ecae7f3cbc652f4ae54b0232b5e

Would require a project owner to create our project with Huawei and store secured credentials with release managers here

mikehardy avatar Jul 15 '20 20:07 mikehardy

~~Turns out GitHub's blocked in the mainland, +1 here.~~ Nope, I was incorrectly informed

david-allison avatar Jul 30 '20 10:07 david-allison

Even if github is available, it's not going to be nearly as accessible as simply using the default app store on the phone, and per google they can't do it (https://support.google.com/android/thread/29434011?hl=en) so this is by far the best way to reach Chinese users.

I did just check (for grins) and analytics tagging does work, we have analytics on chinese users (likely because of the way we do it, directly posting to the servers vs loading JS libraries etc or using phone pre-installed Google Play GMS libraries, thanks open source licensing requirements for forcing that...)

mikehardy avatar Aug 04 '20 15:08 mikehardy

verification of my personal details to create a developer account (which will host the app) in process status will be here https://developer.huawei.com/consumer/en/console#/userSetting/profile

mikehardy avatar Aug 09 '20 21:08 mikehardy

Dear developer,

  Your application to join HUAWEI Developer was reviewed.


  Review result: passed

  Your membership starts from 2020-08-11.

So I'm unblocked, this will go back in the actionable task hopper...

mikehardy avatar Aug 10 '20 16:08 mikehardy

How exciting, android package com.ichi2.anki is already taken. I've submitted a ticket with accompanying documentation to claim the app for the account I'm currently working in so I can upload a build

https://developer.huawei.com/consumer/en/support/feedback/#/ticketDetail?id=65302&time=2020-08-10%2018:17:42&ticketeCheckState=0

mikehardy avatar Aug 10 '20 18:08 mikehardy

That took a while but this popped in my mailbox overnight, meaning I should be unblocked to try again:

The issue has been resolved, please try upload your app again.

Should you need help with anything else, please feel free to reach out back to us.

mikehardy avatar Aug 17 '20 15:08 mikehardy

They have given my user account the correct ownership over the package and I've got a release of 2.12.1 submitted for approval on their marketplace.

We still had 7 screenshots in zh-CN of the app even, so it will look good in China :smile:

Once it is actually approved, I'll do the integration with APK submission API keys and our release script

mikehardy avatar Aug 22 '20 23:08 mikehardy

Our first Huawei AppGallery release is available:

Dear developer,

Your application submitted at 07:04:16,August 23,2020 for releasing AnkiDroid Flashcards 2.12.1 was approved. AnkiDroid Flashcards 2.12.1 is now available for download on HUAWEI AppGallery. Review comment: Your App has been approved.

https://appgallery.huawei.com/#/app/C102711481

All blocks that were out of my control are removed and I will now pursue automated auto-publish implementation via our release script similar to Amazon autopublish https://github.com/ankidroid/Anki-Android/commit/598e16e53810a57157646a543f7e10ae6cbcc5de#diff-b91eeb35e4e3920b1a96d2d03212320a

@infinyte7 out of curiosity, any interest in adding the AppGallery badge to the README? :-) :pray: They have a button pack here: https://huaweimobileservices.com/appgallery-badge.zip - I also noticed the F-Droid one is clipped just a little in text-to-right-edge spacing, but that's minor

mikehardy avatar Aug 24 '20 14:08 mikehardy

I will update all store badge with recent updates. New badge will be updated for all store.

krmanik avatar Aug 24 '20 15:08 krmanik

champion :trophy: :rofl: - thanks man

mikehardy avatar Aug 24 '20 15:08 mikehardy

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar Jan 09 '21 14:01 github-actions[bot]

@mikehardy I find some thing may out of your control happend, the released APP in F-Droid now can not supported in HUAWEI APPgallery in Chinese mainland, insteaded with another APP. If i click the link in home page and try to download it, follwing reply means service not support in current location got:

Maybe you need to contact with HUAWEI for get the license(sounds like you need to get the permition, i don't no how to do)? Hope that my report can help you.

YUE-PNG avatar Apr 25 '21 02:04 YUE-PNG

We are already present in the Huawei AppGallery with up to date versions even It just doesn't autopublish there. I want to automate it, but it's no big deal - will happen eventually

mikehardy avatar Apr 25 '21 03:04 mikehardy

I mean that the up-to-date version is NOT visible now in Chinese mainland, oversea may still can work. A version made by local company was showed when searching Anki: Anki探索版 is diff of your version, total different. I don't know wether this company get the permission to do this from your developers.

And details of this App

The users may not get update auto when you upload new version if they downlad the past version(May be before March. 20, i find in comment, for after your version is not supported in chinese mainland), they need to manually download and update or use the version developed base on your relesed.

####I didnot find the related issues to post these info but find this relates, so just post them here, or i need to report it in google groups? The same case happend in MI store, posted by@Sarah Ding when i search in the group.

YUE-PNG avatar Apr 25 '21 03:04 YUE-PNG

https://appgallery.huawei.com/#/app/C102711481

@PANG-hans what exactly is your goal collaborating in this repo? I don't have much more time for back and forth with you without something substantial that represents real forward progress.

mikehardy avatar Apr 25 '21 13:04 mikehardy

Maybe i didn't explained clearly.

What i want to report:

What you want to get in your issuecomment exactly not works. People can NOT get AnkiAndroid from default app store and you could not receive feedback either! That's what i want to report.

Maybe you can find another local chinese mainland people to test that...

Reseason:

Yes you push up-to-date version to HUAWEI gallery. But people in chinese mainland can NOT find it(wrong feedback when searching, no download, no update, also no give comments). Info in this picture shows that you can not give serives in chinese mainland.

For you in overseas may can download it in HUAWEI gallery, but most people in Chinese Mainland can not download, or even can not reach the link. They can just find this.

Even if github is available, it's not going to be nearly as accessible as simply using the default app store on the phone, and per google they can't do it (https://support.google.com/android/thread/29434011?hl=en) so this is by far the best way to reach Chinese users.

I did just check (for grins) and analytics tagging does work, we have analytics on chinese users (likely because of the way we do it, directly posting to the servers vs loading JS libraries etc or using phone pre-installed Google Play GMS libraries, thanks open source licensing requirements for forcing that...)

YUE-PNG avatar Apr 25 '21 14:04 YUE-PNG

Thanks, I'll investigate.

mikehardy avatar Apr 25 '21 14:04 mikehardy

the publish policy is different between China Mainland and Overseas area.

  1. 发布应用到中国大陆时,上传的APK包内必须包含默认语言-简体中文,在“基础信息设置”页面的语言选项中必须包含简体中文;
  2. 发布应用到海外区域时,上传的APK包内必须至少包含默认语言-美式英语,在“基础信息设置”页面的语言选项中必须至少包含美式英语;
  3. 中国大陆和海外区域如果使用同一个APK包,则在分发国家及区域选项中,同时勾选添加中国和海外区域即可;如果使用不同的APK包,则需要分别创建应用(应用包名不能重复),分别添加对应的分发国家及区域。

translation by google translate

  1. When publishing the app to mainland China, the uploaded APK package must contain the default language - Simplified Chinese, and the language option on the "Basic Information Settings" page must contain Simplified Chinese;
  2. When publishing the app to overseas regions, the uploaded APK package must contain at least the default language - American English, and the language option on the "Basic Information Settings" page must contain at least American English;
  3. If the same APK package is used in mainland China and overseas regions, in the distribution country and region options, tick Add China and overseas regions at the same time; if using different APK packages, you need to create applications (application package name) cannot be repeated), add the corresponding distribution country and region respectively.

@PANG-hans @mikehardy Maybe it's the reason why https://appgallery.huawei.com/#/app/C102711481 is unavailable in China Mainland. @mikehardy in your publish page,is there an option like distribution country and region options?

xyzhou-1 avatar Jan 19 '22 12:01 xyzhou-1

Sadly, China has really decided to be a controlled autocracy, and their policies are increasingly difficult to work with as a non-mainland developer. I think the only sane path for us here is to respect that.

With recent policy decisions to only allow app uploads from registered mainland citizens I've chosen to remove our app from the Huawei AppGallery and I will no longer pursue any Chinese app store release channel work.

Our APKs are always freely available on the wider internet, as is our source code. They will also be available in user-friendly formats for those with non-filtered internet via google play store or f-droid

mikehardy avatar Oct 18 '23 01:10 mikehardy