libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
10.19k stars 1.86k forks source link

Is there any plan to support HarmonyOS? #9837

Open AchievoZhou opened 6 months ago

icculus commented 6 months ago

I hadn't heard of HarmonyOS before now, and I like the idea of having more mobile platforms than Android and iOS supported.

We don't have a specific plan at the moment, but I might download the SDK and emulator and see how far I get.

(And even if I don't, we would presumably accept a patch to add support, if someone else did the work.)

captain0xff commented 6 months ago

Afaik even the latest HarmonyOS is compatible with android apks. Though they are planning to drop the support for android apps in the future it hasn't been done yet. The only downside is you can't run google apps or any app that depends on google's services.

AchievoZhou commented 6 months ago

Afaik even the latest HarmonyOS is compatible with android apks. Though they are planning to drop the support for android apps in the future it hasn't been done yet. The only downside is you can't run google apps or any app that depends on google's services.

The new version of HarmonyOS is not compatible with the Android system.

captain0xff commented 6 months ago

Oh, so they have already pulled the trigger. It will be interesting to see how it competes with android. It has a lot of potential. Anyways, I will also take a look at the SDK to see if I can get SDL to work on it. And maybe even submit a PR if Icculus or somebody else doesn't beat me to it.

BA489 commented 5 months ago

Afaik even the latest HarmonyOS is compatible with android apks. Though they are planning to drop the support for android apps in the future it hasn't been done yet. The only downside is you can't run google apps or any app that depends on google's services.

The new version of HarmonyOS is not compatible with the Android system.

Good news, third party native port of open source SDL 2 has been completed and sent OHPM central warehouse of the OpenHarmony Gitee master repo within the special interest group for platform port adaptation, which essentially work on HarmonyOS NEXT with Galaxy Edition system version since it's also based on it which will be the replaced base for HarmonyOS 5.0 going forward that replaces AOSP after version 4.2 in China and worldwide where Huawei serves. I am a Eclipse Foundation Europe member based in the UK, an app developer for the global OpenHarmony Oniro OS that maintains and improve the open source libraries for the OS. OHPM is a HarmonyOS third-party repository that brings together HarmonyOS third-party libraries contributed by developers from all over the world to help you easily develop HarmonyOS applications and services, benefits with this structure, it reduces the system ROM volume. This benefit ease of ports with northbound and southbound applications. https://gitee.com/openharmony-sig/ohos_sdl2

icculus commented 5 months ago

Huawei's system wouldn't let me sign up for a developer account when I tried two weeks ago--looked like a temporary glitch, I'll try again soon--but if the existing SDL2 port is solid, we can maybe pull that in as a good starting point in any case.

(But it has an open issue on their bug tracker for "add a license," so we need to figure out if we're allowed to.)

BA489 commented 5 months ago

Huawei's system wouldn't let me sign up for a developer account when I tried two weeks ago--looked like a temporary glitch, I'll try again soon--but if the existing SDL2 port is solid, we can maybe pull that in as a good starting point in any case.

(But it has an open issue on their bug tracker for "add a license," so we need to figure out if we're allowed to.)

Oh yeah probably glitch signing up. This will be great to pull and port over as a starting point. With the license, yeah I seen the issue around it, I think it has the Zlib permissive license for it already. https://github.com/libsdl-org/SDL/issues/9837#issuecomment-2153719583

BA489 commented 5 months ago

Huawei's system wouldn't let me sign up for a developer account when I tried two weeks ago--looked like a temporary glitch, I'll try again soon--but if the existing SDL2 port is solid, we can maybe pull that in as a good starting point in any case.

(But it has an open issue on their bug tracker for "add a license," so we need to figure out if we're allowed to.)

Plus, I cloned that contains the "ohos-project" of ohos_sdl2 repo clone with the OpenHarmony documentation. It's written in English and one spelling mistake of "ArkTS" from "ArsTS" is fixed on Threads Model. https://github.com/BA489/ohos_sdl2/blob/master/docs/README-openharmony.md This will make it easier for us to grab the specific files and documentation of OpenHarmony specific platform from my GitHub clone to the official SDL Github repo