Skip to content

Conversation

@richerfu
Copy link

This is an experiential support for OpenHarmony. Lots of code base with winit(rust-windowing/winit#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 richerfu requested a review from a team as a code owner August 11, 2025 01:53
@github-actions
Copy link
Contributor

github-actions bot commented Aug 11, 2025

Package Changes Through efdfe5d

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.2 0.34.3

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


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

@FabianLars
Copy link
Member

FabianLars commented Aug 12, 2025

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.

@richerfu
Copy link
Author

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

@FabianLars
Copy link
Member

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)?

@richerfu
Copy link
Author

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

@FabianLars
Copy link
Member

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

@FabianLars
Copy link
Member

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.

@richerfu
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants