DioxusLabs / DioxusLabs/dioxus

More control over Android project

Open
#4,589 2 comments 5 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

## Feature Request

Dioxus seems to intend to abstract away android building completely by generating the whole project based on a template. Recently, support for overriding the AndroidManifest.xml was added so you can at least add permissions. But that's not enough if you need to interact with the system in more advanced ways.

For example, if you want to interact with [USB](https://developer.android.com/develop/connectivity/usb/accessory), you have to add non-asset XML files and handle certain intents.

It might also be useful to add java or kotlin code in case certain things are easier to handle there and not worth the effort to port to rust.

## Implement Suggestion

IMO, the current approach only works for applications that need (almost) no interaction with anything outside the WebView. Implementing more and more features of android manifests, resources etc in dioxus would probably never be features complete. I think it's best to allow using a manually written project directory instead of generating it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.