Migrate Android Auto implementation to androidx.car.app:app:1.7.0 - #2008
Open
rainman74 wants to merge 1 commit into
Open
Migrate Android Auto implementation to androidx.car.app:app:1.7.0#2008rainman74 wants to merge 1 commit into
rainman74 wants to merge 1 commit into
Conversation
The car-app code introduced in 12.8.0 already uses the 1.7.x API (ConversationItem, ConversationCallback, CarMessage), but the build.gradle still pinned androidx.car.app:app:1.4.0. This left the CarAppService code path in an unbuildable state. Bump the dependency and align the rest of the codebase with the 1.7.x contract. Build / manifest - androidx.car.app:app 1.4.0 -> 1.7.0 - drop androidx.car.app:app-projected (1.4-era AAR, unused in 1.7+) - add androidx.media:media:1.7.0 (AndroidX media session) - add androidx.lifecycle:lifecycle-runtime:2.7.0 (DefaultLifecycleObserver) - minCarApiLevel 5 -> 7 (required by ConversationItem @RequiresCarApi(7)) - automotive_app_desc.xml: add 'template' for the new CarAppService messaging category, keep 'media' for MusicBrowserService and 'notification' for the regular notification path Code - Migrate every android.support.v4.media.* import to androidx.media.* (TelegramMediaSession, MusicPlayerService, PipActivityController, MusicSongsScreen, and the vendored ExoPlayer mediasession extensions MediaSessionConnector / TimelineQueueEditor / TimelineQueueNavigator). - NotificationsController: drop the CarExtender-based fallback that the 1.4-era PR DrKLO#1902 path relied on. The 1.7.x CarAppService now drives the messaging surface, so the deprecated NotificationCompat.CarExtender payload is no longer needed. - HomeScreen: ensure Person always carries a key, which the 1.7.x ConversationItem.validateSender() requires. Tested locally via brace-count + import audit. Full compile needs 'gradlew assembleArm64Debug' on a workstation with Android SDK + local.properties (not in this repo). The current 1.4.0 dep in master means the existing CarAppService code path never linked.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The car-app code introduced in 12.8.0 already uses the 1.7.x API (ConversationItem, ConversationCallback, CarMessage), but the build.gradle still pinned androidx.car.app:app:1.4.0. This left the CarAppService code path in an unbuildable state. Bump the dependency and align the rest of the codebase with the 1.7.x contract.
Build / manifest
Code
Tested locally via brace-count + import audit. Full compile needs 'gradlew assembleArm64Debug' on a workstation with Android SDK + local.properties (not in this repo). The current 1.4.0 dep in master means the existing CarAppService code path never linked.