From 1bf1a030dc3152dc0251fc773fbc806ef0fa20d7 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Sat, 4 Nov 2023 01:56:08 +0800 Subject: [PATCH] feat: add multiple projects configure function --- .../dsl/configure/SweetPropertyConfigureExtension.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sweetproperty-gradle-plugin/src/main/java/com/highcapable/sweetproperty/plugin/extension/dsl/configure/SweetPropertyConfigureExtension.kt b/sweetproperty-gradle-plugin/src/main/java/com/highcapable/sweetproperty/plugin/extension/dsl/configure/SweetPropertyConfigureExtension.kt index d05dd74..a0c034d 100644 --- a/sweetproperty-gradle-plugin/src/main/java/com/highcapable/sweetproperty/plugin/extension/dsl/configure/SweetPropertyConfigureExtension.kt +++ b/sweetproperty-gradle-plugin/src/main/java/com/highcapable/sweetproperty/plugin/extension/dsl/configure/SweetPropertyConfigureExtension.kt @@ -95,11 +95,11 @@ open class SweetPropertyConfigureExtension internal constructor() { fun rootProject(action: Action) = configureProject(ROOT_PROJECT_TAG, action) /** - * 配置指定项目 - * @param name 项目完整名称 + * 配置指定项目 (数组) + * @param names 项目完整名称 (数组) * @param action 配置方法体 */ - fun project(name: String, action: Action) = configureProject(name, action) + fun project(vararg names: String, action: Action) = names.forEach { configureProject(it, action) } /** * 配置项目