VariantConfiguration

API Documentation:VariantConfiguration

Encapsulates all variant-specific properties into this DSL object

Properties

PropertyDescription
autoStart

Specifies options for the auto start injection feature.

crashReporting

Specifies if the crash reporting feature is enabled

debug

Specifies options

enabled

Specifies if the variant should be instrumented

exclude

Specifies options for excludes classes and methods from instrumentation.

hybridWebView

Specifies options for hybrid web view apps.

lifecycle

Specifies options for the lifecycle monitoring feature.

locationMonitoring

Specifies if the location monitoring feature is enabled

userActions

Specifies options for the user action monitoring feature.

userOptIn

Specifies if the user has to opt-in for monitoring. The privacy settings must be configured via OneAgent SDK.

variantFilter

Specifies a regex that will be used to determine the affiliation between this VariantConfiguration an the Android build variants.

webRequests

Specifies options for the web request monitoring feature.

Methods

No methods

Script blocks

BlockDescription
autoStart

Specifies options for the auto start injection feature.

debug

Specifies additional configuration properties that should only be used in special cases like troubleshooting.

exclude

Specifies options for excludes classes and methods from instrumentation.

hybridWebView

Specifies options for hybrid web view apps.

lifecycle

Specifies options for the lifecycle monitoring feature.

userActions

Specifies options for the user action monitoring feature.

webRequests

Specifies options for the web request monitoring feature.

Property details

StartOptions autoStart

Specifies options for the auto start injection feature.

For more information about the properties you can configure in this block, see StartOptions.

boolean crashReporting

Specifies if the crash reporting feature is enabled

The default value is true.

Specifies options

For more information about the properties you can configure in this block, see DebugOptions.

boolean enabled

Specifies if the variant should be instrumented

The default value is true.

Specifies options for excludes classes and methods from instrumentation.

For more information about the properties you can configure in this block, see ExcludeOptions.

HybridOptions hybridWebView

Specifies options for hybrid web view apps.

For more information about the properties you can configure in this block, see HybridOptions.

Specifies options for the lifecycle monitoring feature.

For more information about the properties you can configure in this block, see LifecycleOptions.

boolean locationMonitoring

Specifies if the location monitoring feature is enabled

The default value is false.

UserActionOptions userActions

Specifies options for the user action monitoring feature.

For more information about the properties you can configure in this block, see UserActionOptions.

boolean userOptIn

Specifies if the user has to opt-in for monitoring. The privacy settings must be configured via OneAgent SDK.

The default value is false.

String variantFilter

Specifies a regex that will be used to determine the affiliation between this VariantConfiguration an the Android build variants.

If no value is defined, this VariantConfiguration will match all Android build variants.

WebRequestOptions webRequests

Specifies options for the web request monitoring feature.

For more information about the properties you can configure in this block, see WebRequestOptions.

Script block details

autoStart { }

Specifies options for the auto start injection feature.

For more information about the properties you can configure in this block, see StartOptions.

Delegates to:
StartOptions from autoStart

debug { }

Specifies additional configuration properties that should only be used in special cases like troubleshooting.

For more information about the properties you can configure in this block, see DebugOptions.

Delegates to:
DebugOptions from debug

exclude { }

Specifies options for excludes classes and methods from instrumentation.

For more information about the properties you can configure in this block, see ExcludeOptions.

Delegates to:
ExcludeOptions from exclude

hybridWebView { }

Specifies options for hybrid web view apps.

For more information about the properties you can configure in this block, see HybridOptions.

Delegates to:
HybridOptions from hybridWebView

lifecycle { }

Specifies options for the lifecycle monitoring feature.

For more information about the properties you can configure in this block, see LifecycleOptions.

Delegates to:
LifecycleOptions from lifecycle

userActions { }

Specifies options for the user action monitoring feature.

For more information about the properties you can configure in this block, see UserActionOptions.

Delegates to:
UserActionOptions from userActions

webRequests { }

Specifies options for the web request monitoring feature.

For more information about the properties you can configure in this block, see WebRequestOptions.

Delegates to:
WebRequestOptions from webRequests