Skip to content

CT-SW-Android/android-auto-companion-app

 
 

Repository files navigation

Android Auto Companion Reference App

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:

Getting Started

This application is built using Flutter. Refer to the official documentation for how to set up your environment for building Flutter.

Building iOS

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.

Building Android

The Android application has an addition dependency on the ukey2 project. There are several changes that are required to build properly.

Adding protoc dependency

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.

Fixing Google Truth dependency

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'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 65.1%
  • Kotlin 21.2%
  • Swift 13.1%
  • Other 0.6%