From 89dde0f2b0079b3aae9a2e5624f3c7da50206852 Mon Sep 17 00:00:00 2001 From: KwakEuiJin Date: Wed, 27 Dec 2023 21:52:03 +0900 Subject: [PATCH] =?UTF-8?q?[setting]:=20build-logic=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=20=EC=9E=91=EC=97=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle.kts | 8 ++- app/src/main/res/values/themes.xml | 1 - build-logic/convention/build.gradle.kts | 54 +++++++++++++++++++ .../plugin/AndroidApplicationPlugin.kt | 11 ++++ .../hamyeonham/plugin/AndroidHiltPlugin.kt | 24 +++++++++ .../hamyeonham/plugin/AndroidKotlinPlugin.kt | 47 ++++++++++++++++ .../hamyeonham/plugin/AndroidTestPlugin.kt | 40 ++++++++++++++ .../hmh/hamyeonham/plugin/CommonConfigs.kt | 39 ++++++++++++++ .../hmh/hamyeonham/plugin/ComposePlugin.kt | 27 ++++++++++ .../com/hmh/hamyeonham/plugin/JUnit5Plugin.kt | 24 +++++++++ .../plugin/KotlinSerializationPlugin.kt | 20 +++++++ build-logic/gradle.properties | 4 ++ .../gradle/wrapper/gradle-wrapper.properties | 6 +++ build-logic/settings.gradle.kts | 15 ++++++ build.gradle.kts | 35 ++++++++++-- buildSrc/build.gradle.kts | 8 +++ buildSrc/gradle.properties | 4 ++ buildSrc/settings.gradle.kts | 1 + buildSrc/src/main/kotlin/plugin.kt | 6 +++ gradle/libs.versions.toml | 3 +- settings.gradle.kts | 3 ++ 21 files changed, 371 insertions(+), 9 deletions(-) create mode 100644 build-logic/convention/build.gradle.kts create mode 100644 build-logic/convention/src/main/kotlin/com/hmh/hamyeonham/plugin/AndroidApplicationPlugin.kt create mode 100644 build-logic/convention/src/main/kotlin/com/hmh/hamyeonham/plugin/AndroidHiltPlugin.kt create mode 100644 build-logic/convention/src/main/kotlin/com/hmh/hamyeonham/plugin/AndroidKotlinPlugin.kt create mode 100644 build-logic/convention/src/main/kotlin/com/hmh/hamyeonham/plugin/AndroidTestPlugin.kt create mode 100644 build-logic/convention/src/main/kotlin/com/hmh/hamyeonham/plugin/CommonConfigs.kt create mode 100644 build-logic/convention/src/main/kotlin/com/hmh/hamyeonham/plugin/ComposePlugin.kt create mode 100644 build-logic/convention/src/main/kotlin/com/hmh/hamyeonham/plugin/JUnit5Plugin.kt create mode 100644 build-logic/convention/src/main/kotlin/com/hmh/hamyeonham/plugin/KotlinSerializationPlugin.kt create mode 100644 build-logic/gradle.properties create mode 100644 build-logic/gradle/wrapper/gradle-wrapper.properties create mode 100644 build-logic/settings.gradle.kts create mode 100644 buildSrc/build.gradle.kts create mode 100644 buildSrc/gradle.properties create mode 100644 buildSrc/settings.gradle.kts create mode 100644 buildSrc/src/main/kotlin/plugin.kt diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 4a5facfb..27009a3d 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,6 +1,9 @@ +import java.util.Properties + plugins { - id("com.android.application") - id("org.jetbrains.kotlin.android") + hmh("application") + hmh("compose") + hmh("test") } android { @@ -54,6 +57,7 @@ dependencies { implementation(libs.core.ktx) implementation(libs.lifecycle) implementation(libs.activity.compose) + implementation(libs.retrofit) implementation(platform(libs.compose.bom)) //appcompat implementation diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 0527c564..d2f90472 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -1,5 +1,4 @@ -