First pass adding android auto and apple carplay support. Android auto tuned on emulator.

This commit is contained in:
2026-05-15 21:30:23 -07:00
parent 52f5ec577b
commit 83dd1a28b8
14 changed files with 382 additions and 33 deletions
+19
View File
@@ -42,12 +42,31 @@
android:name="com.google.android.gms.cast.framework.OPTIONS_PROVIDER_CLASS_NAME"
android:value="com.example.kryz_go_flutter.CastOptionsProvider" />
<!-- Declares this app as an Android Auto media app. -->
<meta-data
android:name="com.google.android.gms.car.application"
android:resource="@xml/automotive_app_desc" />
<service
android:name="com.ryanheise.audioservice.AudioService"
android:enabled="true"
android:exported="true"
android:foregroundServiceType="mediaPlayback"
tools:ignore="Instantiatable">
</service>
<!--
Dedicated MediaBrowserService for Android Auto. Android Auto connects here
to browse content and send transport controls. Styled with KryzAutoTheme
so Auto accents its media UI with the KRYZ brand orange (#E36A18).
-->
<service
android:name="com.example.kryz_go_flutter.KryzAutoMediaBrowserService"
android:enabled="true"
android:exported="true"
android:foregroundServiceType="mediaPlayback"
android:theme="@style/KryzAutoTheme"
tools:ignore="Instantiatable">
<intent-filter>
<action android:name="android.media.browse.MediaBrowserService"/>
</intent-filter>