gradle
8.2

# PlatformDependencyModifier

@Incubating
abstract class PlatformDependencyModifier : DependencyModifier

Implementation for the platform dependency modifier.

#### See also

modify(ModuleDependency)

## Constructors

PlatformDependencyModifier
Link copied to clipboard
constructor()

## Functions

getDependencyFactory
Link copied to clipboard
abstract fun getDependencyFactory(): DependencyFactory
invoke
Link copied to clipboard
operator fun <D : ModuleDependency> DependencyModifier.invoke(dependency: D): D
operator fun DependencyModifier.invoke(dependencyNotation: CharSequence): ExternalModuleDependency
operator fun DependencyModifier.invoke(dependency: ProviderConvertible<out MinimalExternalModuleDependency>): Provider<out MinimalExternalModuleDependency>
operator fun DependencyModifier.invoke(dependency: Provider<out ModuleDependency>): Provider<out ModuleDependency>

Modifies a dependency to select the variant of the given module.

modify
Link copied to clipboard
open fun modify(dependencyNotation: CharSequence): ExternalModuleDependency
open fun <D : ModuleDependency?> modify(providerToDependency: Provider<D>): Provider<D>
open fun modify(providerConvertibleToDependency: ProviderConvertible<out MinimalExternalModuleDependency>): Provider<out MinimalExternalModuleDependency>
open fun <D : ModuleDependency?> modify(dependency: D): D
Selects the platform variant of the given dependency.