vietmap_automotive_flutter 0.0.2 copy "vietmap_automotive_flutter: ^0.0.2" to clipboard
vietmap_automotive_flutter: ^0.0.2 copied to clipboard

A Flutter plugin for integrating turn by turn navigation with Vietmap Android Auto and Vietmap Apple CarPlay SDK.

vietmap_automotive_flutter #

This is a Flutter plugin for the Vietmap Automotive SDK, which help you to integrate Vietmap turn by turn Navigation SDK into your Flutter app, included Android Auto and Apple CarPlay.

Getting Started #

  1. Add the plugin to your pubspec.yaml file. Replace VIETMAP_AUTOMOTIVE_FLUTTER_VERSION with the latest version of the plugin.:
dependencies:
  vietmap_automotive_flutter: ^0.0.2
copied to clipboard
  1. Import Android auto module to your setting.gradle file:

def relativePath = ""
settingsDir.eachDir { subDir ->
    if(subDir.name == "app"){
        def pathComponents =settingsDir.absolutePath.split('/')
        def rPath = ""
        pathComponents.each { component ->
            rPath += '../'
        }
        relativePath = rPath.substring(9, rPath.length())
    }
}

include ':androidauto'
project(':androidauto').projectDir = file("${relativePath}.pub-cache/hosted/pub.dev/vietmap_automotive_flutter-VIETMAP_AUTOMOTIVE_FLUTTER_VERSION/android/androidauto")
copied to clipboard
  1. Import Android auto module to your build.gradle (module app) file:
    dependencies {
        implementation project(':androidauto')
    }
copied to clipboard
  1. Add below maven url to your build.gradle (project) and setting.gradle file:
    maven { url = uri("https://www.jitpack.io" ) }
copied to clipboard

Like this

  • build.gradle
    allprojects {
        repositories {
            google()
            mavenCentral()
            maven { url = uri("https://www.jitpack.io" ) }
        }
    }
copied to clipboard
  • setting.gradle
    dependencyResolutionManagement {
        repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
        repositories {
            google()
            mavenCentral()
            maven { url = uri("https://www.jitpack.io" ) }
        }
    }
copied to clipboard
  1. Add below permission to your AndroidManifest.xml file:
    <uses-permission android:name="androidx.car.app.MAP_TEMPLATES" />
    <uses-permission android:name="androidx.car.app.NAVIGATION_TEMPLATES" />
    <uses-permission android:name="androidx.car.app.ACCESS_SURFACE" />
copied to clipboard
  1. Add the following metadata to the AndroidManifest.xml file of the app (Inside the application tag)
    <meta-data
        android:name="com.google.android.gms.car.application"
        android:resource="@xml/automotive_app_desc" />
copied to clipboard

For test the app, please follow below document:

More information about the Vietmap Automotive SDK can be found at Vietmap Automotive SDK.

0
likes
150
points
46
downloads

Publisher

verified publishermaps.vietmap.vn

Weekly Downloads

2024.09.16 - 2025.03.31

A Flutter plugin for integrating turn by turn navigation with Vietmap Android Auto and Vietmap Apple CarPlay SDK.

Homepage
Repository (GitHub)
View/report issues

Topics

#automotive #android-auto #apple-carplay #turn-by-turn-navigation #vietmap

Documentation

Documentation
API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on vietmap_automotive_flutter