From 86df8e122e73acd9e87ad9db23b34ff18332cb30 Mon Sep 17 00:00:00 2001 From: Hu Shenghao Date: Tue, 3 Dec 2024 15:27:25 +0800 Subject: [PATCH] chore: Add DependencyHandler.marketImplementation ext Signed-off-by: Hu Shenghao --- app/build.gradle.kts | 4 ++-- build-logic/convention/src/main/kotlin/Dls.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index ef0c08ad..2d8cb676 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -162,8 +162,8 @@ dependencies { implementation(project(":eggs:Gingerbread")) implementation(project(":eggs:Base")) - implementation("market", libs.google.play.services) - implementation("market", libs.google.play.review) + marketImplementation(libs.google.play.services) + marketImplementation(libs.google.play.review) testImplementation(libs.junit) androidTestImplementation(libs.nanohttpd) diff --git a/build-logic/convention/src/main/kotlin/Dls.kt b/build-logic/convention/src/main/kotlin/Dls.kt index e8a0e266..690effd0 100644 --- a/build-logic/convention/src/main/kotlin/Dls.kt +++ b/build-logic/convention/src/main/kotlin/Dls.kt @@ -31,8 +31,8 @@ val Project.keyprops: Properties val Project.catalog: VersionCatalog get() = extensions.getByType().named("libs") -fun DependencyHandler.implementation(flavor: String, dependencyNotation: Any): Dependency? = - add("${flavor}Implementation", dependencyNotation) +fun DependencyHandler.marketImplementation(dependencyNotation: Any): Dependency? = + add("marketImplementation", dependencyNotation) val Project.javaExtension: JavaPluginExtension get() = extensions.getByName("java")