A demo application that showcases the functionality of the Android Auto Companion Libraries. These libraries are available for both iOS and Android under the following repositories:
This application is built using Flutter. Refer to the official documentation for how to set up your environment for building Flutter.
The project can be opened via ios/Runner.xcworkspace
. Ensure that you have a
proper development team selected in XCode for the project.
Navigate into the ios
directory and run the following to initialize the
Flutter environment:
flutter build ios
After this, the project should be buildable and deployable via XCode.
The Android application has an addition dependency on the ukey2 project. There are several changes that are required to build properly.
Add the following block of code to the
build.gradle
in
ukey2
:
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.10.0'
}
generateProtoTasks {
all().each { task ->
task.builtins {
java {
option "lite"
}
}
}
}
}
Alternatively, install protoc
as described in
Protocol Buffer Compiler Installation.
The ukey2
library depends on an older version of
Google Truth. This dependency needs to be
updated to at least 1.1.2
. Make the following change in the
build.gradle
:
compile group: 'com.google.truth.extensions', name: 'truth-java8-extension', version: '0.41'
# Change to
compile group: 'com.google.truth.extensions', name: 'truth-java8-extension', version: '1.1.2'