Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore support for secondary platforms (car, watch, tv, etc) #26

Open
sargunv opened this issue Nov 26, 2024 · 2 comments
Open

Explore support for secondary platforms (car, watch, tv, etc) #26

sargunv opened this issue Nov 26, 2024 · 2 comments
Labels
enhancement New feature or change to an existing feature help wanted Extra attention is needed

Comments

@sargunv
Copy link
Owner

sargunv commented Nov 26, 2024

It would be nice to enable building map apps for Android Auto / Android Wear / Google TV / watchOS / tvOS / CarPlay.

Some open questions:

  • Is Compose supported at all on any of these platforms? If no, that'd be a blocker.
  • Does MapLibre for Android/iOS work on these platforms? If no, that'd be a blocker.
  • If yes and yes, do we need to do anything special? If no, then at least the demo app should have examples on how to do it.
  • If we need to do something special, what needs to be done? At a minimum, the additional Apple platforms have their own build targets, and I believe the car platforms tightly restrict how you develop UI
@sargunv sargunv added enhancement New feature or change to an existing feature help wanted Extra attention is needed labels Nov 26, 2024
@sargunv
Copy link
Owner Author

sargunv commented Nov 26, 2024

Is Compose supported at all on any of these platforms? If no, that'd be a blocker.

Compose Runtime: yes everywhere

Compose Foundation / UI:

extra: possible research material for cars: https://www.youtube.com/watch?v=6UULcs0cA7g

may be viable to eventually provide non-compose multiplatform helpers for non-compose platfoms to still share code (if MapLibre Native works in more places than Compose does). Would require our architecture to decouple the SDK wrappers and custom compositions (layers, annotations, etc) from Compose UI/Foundation, and have a Compose UI component plug in to that wrapper the same way a non-compose component would

@sargunv sargunv changed the title Support for secondary platforms (car, watch, tv, etc) Explore support for secondary platforms (car, watch, tv, etc) Dec 6, 2024
@sargunv
Copy link
Owner Author

sargunv commented Jan 6, 2025

Android Auto requires rendering the map to a Surface: https://developer.android.com/training/cars/apps#declare-surface-permission

The Android MapLibre SDK couples rendering to a view, but my plan for #218 is to render to a surface provided by Compose. So this code would probably be useful for Auto, once things are decoupled from Compose UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or change to an existing feature help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant