[MPP] Support for platform notation in Gradle MPP dependencies configuration

KT-53396
This commit is contained in:
Andrei.Tyrin
2022-08-04 18:25:50 +02:00
committed by teamcity
parent ec8da2033c
commit e87ea4c209
3 changed files with 50 additions and 36 deletions
@@ -62,6 +62,12 @@ interface KotlinDependencyHandler {
fun enforcedPlatform(notation: Any, configureAction: Action<in Dependency>): Dependency =
project.dependencies.enforcedPlatform(notation, configureAction)
fun platform(notation: Any): Dependency =
project.dependencies.platform(notation)
fun platform(notation: Any, configureAction: Action<in Dependency>): Dependency =
project.dependencies.platform(notation, configureAction)
@Deprecated("Declaring NPM dependency without version is forbidden")
fun npm(name: String): Dependency