Car App
This table lists all the artifacts in the androidx.car-app
group.
Artifact | Current Stable Release | Next Release Candidate | Beta Release | Alpha Release |
---|---|---|---|---|
app | - | 1.0.0-rc01 | - | - |
app-testing | - | - | - | 1.0.0-alpha01 |
Declaring dependencies
To add a dependency on the Car App Library, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.
Add the dependencies for the artifacts you need in the build.gradle
file for
your app or module:
dependencies { implementation "androidx.car.app:app:1.0.0-rc01" }
For more information about dependencies, see Add build dependencies.
Feedback
Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.
See the Issue Tracker documentation for more information.
Car App Testing Version 1.0.0
Version 1.0.0-alpha01
March 24, 2021
androidx.car.app:app-testing:1.0.0-alpha01
is released. Version 1.0.0-alpha01 contains these commits.
This is the first Jetpack release of the previously closed source testing library. Refer to our samples on how to use this library in your tests.
New Features
- The controllers for the model classes have been removed. Model getters are now part of the public API surface which allows for validating values that were set in the builders.
- The previous
CarAppServiceController
has been replaced by the newSessionController
for testing logic related to the lifetime of the connection to the hots.
Version 1.0.0
Version 1.0.0-rc01
March 24, 2021
androidx.car.app:app:1.0.0-rc01
is released. Version 1.0.0-rc01 contains these commits.
Bug Fixes
- Fixed a race condition bug where
NavigationManagerCallback#onStopNavigation
was being called after the callback was cleared. This happened if the callback was cleared before the callback executor actually ran (I7fc5e, b/181143772) - Fixed an issue that required the app to explicitly take a dependency on
lifecycle-common-java8
(I8b8c8) - Fixed a
NullPointerException
that was thrown when the app receives astopNavigation
call when it has already removed a callback (Ib8b89, b/181143772) - Improvements to not dispatch calls to app if its lifecycle is not at least in a
CREATED
state (I86965, b/179800224, b/177921120) - Fixed an issue where an invalid min API specified in the app's manifest would throw, causing an ANR on the host. (Iffedd, b/174231592)
Version 1.0.0-beta01
February 24, 2021
androidx.car.app:app:1.0.0-beta01
is released. Version 1.0.0-beta01 contains these commits.
This is the first Jetpack release of the previously closed source library, and is compatible with Android Auto 6.1 or above. Follow the development guide for details on how to build car apps using the library.
New Features
- Introduced a
GridTemplate
which your app can use to show a list of UI elements in a grid layout. - Introduced a
CarAppService.createHostValidator
method to validate that a host connection is from a trusted source (for example, Android Auto). - Added a
CarAppExtender.Builder.setColor
API. (b/174231592)
Bug Fixes
- Fixed an issue where the wrong
Screen
is resumed when popping screens sequentially. (b/177590791)