From 9969796a557063dbd5442cfe635ed04a706e92f0 Mon Sep 17 00:00:00 2001 From: jinukeu Date: Fri, 24 Nov 2023 22:22:09 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20core:designsystem=20module=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=20=EB=B0=8F=20FeatureComposeConventionPlugin=EC=97=90?= =?UTF-8?q?=20designsystem=20=EB=AA=A8=EB=93=88=20=EC=9D=98=EC=A1=B4?= =?UTF-8?q?=EC=84=B1=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/FeatureComposeConventionPlugin.kt | 1 + core/designsystem/.gitignore | 1 + core/designsystem/build.gradle.kts | 9 ++++++++ core/designsystem/consumer-rules.pro | 0 core/designsystem/proguard-rules.pro | 21 +++++++++++++++++++ .../designsystem/src/main/AndroidManifest.xml | 4 ++++ .../core/designsystem/ExampleUnitTest.kt | 17 +++++++++++++++ settings.gradle.kts | 1 + 8 files changed, 54 insertions(+) create mode 100644 core/designsystem/.gitignore create mode 100644 core/designsystem/build.gradle.kts create mode 100644 core/designsystem/consumer-rules.pro create mode 100644 core/designsystem/proguard-rules.pro create mode 100644 core/designsystem/src/main/AndroidManifest.xml create mode 100644 core/designsystem/src/test/java/com/suwiki/core/designsystem/ExampleUnitTest.kt diff --git a/build-logic/convention/src/main/java/FeatureComposeConventionPlugin.kt b/build-logic/convention/src/main/java/FeatureComposeConventionPlugin.kt index 6d6d024ef..59d2be97c 100644 --- a/build-logic/convention/src/main/java/FeatureComposeConventionPlugin.kt +++ b/build-logic/convention/src/main/java/FeatureComposeConventionPlugin.kt @@ -15,6 +15,7 @@ internal class FeatureComposeConventionPlugin : Plugin { dependencies { "implementation"(project(":domain")) + "implementation"(project(":core:designsystem")) "implementation"(libs.findLibrary("kotlinx.coroutines.android").get()) "implementation"(libs.findLibrary("kotlinx.coroutines.core").get()) diff --git a/core/designsystem/.gitignore b/core/designsystem/.gitignore new file mode 100644 index 000000000..42afabfd2 --- /dev/null +++ b/core/designsystem/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/core/designsystem/build.gradle.kts b/core/designsystem/build.gradle.kts new file mode 100644 index 000000000..79fc67164 --- /dev/null +++ b/core/designsystem/build.gradle.kts @@ -0,0 +1,9 @@ +@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed +plugins { + id("suwiki.android.library") + id("suwiki.android.library.compose") +} + +android { + namespace = "com.suwiki.core.designsystem" +} diff --git a/core/designsystem/consumer-rules.pro b/core/designsystem/consumer-rules.pro new file mode 100644 index 000000000..e69de29bb diff --git a/core/designsystem/proguard-rules.pro b/core/designsystem/proguard-rules.pro new file mode 100644 index 000000000..481bb4348 --- /dev/null +++ b/core/designsystem/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/core/designsystem/src/main/AndroidManifest.xml b/core/designsystem/src/main/AndroidManifest.xml new file mode 100644 index 000000000..8bdb7e14b --- /dev/null +++ b/core/designsystem/src/main/AndroidManifest.xml @@ -0,0 +1,4 @@ + + + + diff --git a/core/designsystem/src/test/java/com/suwiki/core/designsystem/ExampleUnitTest.kt b/core/designsystem/src/test/java/com/suwiki/core/designsystem/ExampleUnitTest.kt new file mode 100644 index 000000000..a0fbbbff8 --- /dev/null +++ b/core/designsystem/src/test/java/com/suwiki/core/designsystem/ExampleUnitTest.kt @@ -0,0 +1,17 @@ +package com.suwiki.core.designsystem + +import org.junit.Test + +import org.junit.Assert.* + +/** + * Example local unit test, which will execute on the development machine (host). + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +class ExampleUnitTest { + @Test + fun addition_isCorrect() { + assertEquals(4, 2 + 2) + } +} diff --git a/settings.gradle.kts b/settings.gradle.kts index b6b88bc13..25a38b240 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -50,3 +50,4 @@ include(":data:notice") include(":data:signup") include(":domain:openmajor") include(":domain:user") +include(":core:designsystem")