[英]What google services are banned in Harmony OS (here is a list that I have used in my android app.)
I need to upload my android apk file in harmony os and as google services are banned in this platform, I would have to use the alternative platform.我需要在 Harmony os 中上传我的 android apk 文件,并且由于该平台禁止谷歌服务,我将不得不使用替代平台。 Here is a list of google services that I have used.
这是我使用过的谷歌服务列表。 Please help me to distinguish what google services would I need to override and recode for
Harmony OS
.请帮助我区分我需要为
Harmony OS
覆盖和重新编码哪些谷歌服务。
com.google.android.material
com.google.firebase
com.google.android.gms:play-services-auth
com.google.android.gms:play-services-maps
com.google.android.gms:play-services-location
com.google.android.libraries.places
com.google.code.gson
com.google.protobuf.nano:protobuf-javanano
If you want to use the map service in your app, and also want your app to run on both Huawei phones and Google Android phones, you can integrate both GMS Map Kit and HMS Map Kit. If you want to use the map service in your app, and also want your app to run on both Huawei phones and Google Android phones, you can integrate both GMS Map Kit and HMS Map Kit. Then your app will use HMS Map Kit on Huawei phones, while using GMS Map Kit on Google Android phones.
然后,您的应用将在华为手机上使用 HMS Map 套件,而在 Google Android 手机上使用 GMS Map 套件。
In the list you provided, you use these GMS services:在您提供的列表中,您使用以下 GMS 服务:
com.google.firebase
com.google.android.gms:play-services-auth
com.google.android.gms:play-services-maps
com.google.android.gms:play-services-location
com.google.android.libraries.places
You can refer to the following Huawei mobile services:您可以参考以下华为移动服务:
Account Kit , Map Kit ,Location Kit , Site Kit , AppGallery Connect auth service Account Kit , Map Kit ,Location Kit , Site Kit , AppGallery Connect auth service
The Convertor is a code conversion tool supporting Java and Kotlin projects. Convertor是一款支持Java和Kotlin项目的代码转换工具。 This tool can help you quickly convert the existing Android app code for calling third-party APIs into the app code integrated with the HMS Core.
该工具可以帮助您快速将现有的Android调用第三方API的应用代码转换为与HMS Core集成的应用代码。
New Conversion can automatically convert the GMS APIs called by apps into HMS APIs, using either the To HMS API or Add HMS API conversion policy. New Conversion可以使用To HMS API或Add HMS API转换策略自动将应用调用的GMS API转换为HMS API。
Huawei phones are Android, not Harmony OS.华为手机是Android,不是鸿蒙操作系统。 However Huawei wearables are running on Harmony OS, which is not compatible with Android, so your APK will not work in this case.
但是华为可穿戴设备运行的是鸿蒙操作系统,与 Android 不兼容,因此您的 APK 在这种情况下将无法运行。 You will need to rewrite your app from scratch for Harmony OS.
您需要从头开始为 Harmony OS 重写您的应用程序。
From the list your provided, these use Google Mobile Services:从您提供的列表中,这些使用 Google 移动服务:
You have alternatives for each one through HMS Core.您可以通过 HMS Core 为每一个选项提供替代方案。 There are some wrapper libraries made by third parties, for example for maps and location, that make this migration easier.
有一些由第三方制作的包装库,例如地图和位置,使迁移更容易。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.