tao icon indicating copy to clipboard operation
tao copied to clipboard

feat: add openharmony support

Open richerfu opened this issue 4 months ago • 9 comments

This is an experiential support for OpenHarmony. Lots of code base with winit(https://github.com/rust-windowing/winit/pull/4117) which already has some exmaples to test it.

Now i have made some examples to test it. See details: https://github.com/richerfu/wry-example. It seems worked and doesn't crash, i think it can be merged. Could you help me to merge this work for OpenHamrony, thanks.

richerfu avatar Aug 11 '25 01:08 richerfu

Package Changes Through f69e2353bf0832abf99c3511b990a542bc494274

There are 1 changes which include tao with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tao 0.34.5 0.34.6

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

github-actions[bot] avatar Aug 11 '25 10:08 github-actions[bot]

Seeing the screenshots in the wry-example repo, can you maybe give me a quick rundown on how to run those examples in an emulator?

I've been searching on the internet for hours now and couldn't get it to work. The limited resources i found that looked like they may work were for real devices.

p.s. (i think i said that somewhere before but i can't find it right now) thanks for the PRs btw, no promises if and when they get merged though.

Edit: To be clear, i'm already failing to get an emulator running at all. latest deveco doesn't seem to have one and the few community emulators i've found don't work for one reason or another either.

FabianLars avatar Aug 12 '25 18:08 FabianLars

So sorry that and i wrote a document to explain it: https://github.com/richerfu/wry-example/blob/main/Development.md

If you have any other questions you can ask me directly. Thanks @FabianLars

richerfu avatar Aug 13 '25 01:08 richerfu

Thank you very much! That is an awesome document :)

That said, it doesn't solve the main problem i have. On both Windows and macOS my DevEco installation doesn't come with a Device Manager nor do i see any way to install it or device images. Could it be because i'm in Europe (with a european huawei account)?

FabianLars avatar Aug 13 '25 07:08 FabianLars

I see, could you check the following file content? Window: C:\Users\xxx\AppData\Roaming\Huawei\${version}\options\country.region.xml Mac: ~/Library/Application Support/Huawei/${version}/options/country.region.xml

Content should be:

<application>
    <component name="CountryRegionSetting">
        <countryregion name="CN"/>
    </component>
</application>

If not please copy those config to this file. @FabianLars

richerfu avatar Aug 13 '25 08:08 richerfu

Hah, that worked, awesome! Thank you so much! I will get to the testing then :)

FabianLars avatar Aug 13 '25 08:08 FabianLars

would you be okay with me merging this and the wry pr into an ohos branch instead of dev ? I think having at least a base merged in our repo would make it a bit nicer for us to work on it as well (adding CI for example). I have to focus on a poc in tauri for work first before i can take a real look at the PRs (that order would make sense either way so we can adapt the changes if needed for tauri) so alternatively we could also just keep the PRs open for the foreseeable future which is fine for me as well :)

p.s. official support in wry & tauri would probably wait until the winit integration progresses anyway.

FabianLars avatar Aug 18 '25 13:08 FabianLars

No problem, i can provide any helps if you need.

richerfu avatar Aug 18 '25 13:08 richerfu

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedopenharmony-ability@​0.3.010010093100100
Addedopenharmony-ability-derive@​0.3.010010093100100

View full report

socket-security[bot] avatar Nov 18 '25 03:11 socket-security[bot]