AutomotiveUiApiKeyConfigPlugin

class AutomotiveUiApiKeyConfigPlugin : Plugin<Project>

Plugin to configure Automotive UI API key through a configuration provider.

Plugin configures the per variant Gradle extension AutomotiveUiApiKeyConfigVariantExtension to allow configuring the Automotive UI API keys. With this extension the API key can be:

  • set to a specific value;

  • or it can be instructed to use no API key. This is useful, for example, when a variant has no Automotive UI configured and therefore no API key is needed.

If the plugin is used, the API key must be configured for all build variants through the variant Gradle extension. See AutomotiveUiApiKeyConfigVariantExtension for more details.

Note: This plugin configures a single API key for all Automotive UI online services. If this is not desired, the individual Automotive UI API keys need to be configured in Android resources or by adding a AutomotiveUiApiKeyStaticConfigurationProvider instance in the Android Application class as static configuration provider. In that case, this Gradle plugin cannot be used.

Plugin ID: com.tomtom.ivi.appsuite.navappcomponents.config.automotiveuiapikey.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun apply(project: Project)