IviDefaultsNavkit2ConfigPlugin
Plugin to configure NavKit2 API key and Onboard Map through a configuration provider.
The behavior of this plugin is controlled by the navkitApiKey and useInternalNavkitApiKey:
When
navkitApiKeyproperty value is not empty, then this property value is configured as the NavKit API key.When
useInternalNavkitApiKeyproperty is set totrue, then the TomTom-internal NavKit2 API key is configured.When both properties are set, then the
navkitApiKeyproperty takes precedence and theuseInternalNavkitApiKeyproperty is ignored.When both properties are not set, then the build fails. This can be disabled by setting the
disableNavkitApiKeyBuildTimeCheckproperty totrue.
The NavKit2 Onboard Map configured by the following attributes:
When
navkit2OnboardMapPathKeyproperty is not empty, then it overrides the default path to the TomTom Navkit2 onboard map.When
navkit2OnboardMapKeystorePathKeyproperty is not empty, then it overrides the default path to the TomTom NavKit2 onboard map keystore.In all cases the
navkit2OnboardMapKeystorePasswordproperty should be configured locally in order to be used. If the property is not set the onboard map will fail to load.When
navkit2MapDisplayTileOnboardServiceUriKeyproperty is not empty, then it overrides the default API key for TomTom Navkit2 tile service.
Note: The default NavKit2 Onboard Map values could be found in the com.tomtom.ivi.platform.navkit2.api.common.configuration.json file.
The property values are obtained from the local.properties file located in the root directory of the project and from Gradle properties. The property values in the local.properties file take precedence over the Gradle properties.
Note: This plugin configures a single API key for all NavKit2 online services. If this is not desired, the individual NavKit2 API keys need to be configured in Android resources or by adding a Navkit2ApiKeyStaticConfigurationProvider instance in the Android Application class as static configuration provider. In this case you must set disableNavkitApiKeyBuildTimeCheck property to true to disable this plugin.
Plugin ID: com.tomtom.ivi.appsuite.navkit2.defaults.config.