From 1d339090a2cd77560ef8d340a23281d3bfd00d4f Mon Sep 17 00:00:00 2001 From: juhwankim-dev Date: Sun, 9 Oct 2022 16:52:33 +0900 Subject: [PATCH] =?UTF-8?q?dep-30=20feat:=20=EB=A9=80=ED=8B=B0=20=EB=AA=A8?= =?UTF-8?q?=EB=93=88=20=EB=82=98=EB=88=84=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/misc.xml | 7 +++ app/build.gradle | 8 +++- app/src/main/AndroidManifest.xml | 4 +- .../threedays/ThreeDaysApplication.kt | 6 +++ core-design-system/.gitignore | 1 + core-design-system/build.gradle | 40 ++++++++++++++++ core-design-system/consumer-rules.pro | 0 core-design-system/proguard-rules.pro | 21 +++++++++ .../ExampleInstrumentedTest.kt | 24 ++++++++++ .../src/main/AndroidManifest.xml | 5 ++ .../core_design_system/ExampleUnitTest.kt | 17 +++++++ core/.gitignore | 1 + core/build.gradle | 40 ++++++++++++++++ core/consumer-rules.pro | 0 core/proguard-rules.pro | 21 +++++++++ .../threedays/core/ExampleInstrumentedTest.kt | 24 ++++++++++ core/src/main/AndroidManifest.xml | 5 ++ .../threedays/core/ExampleUnitTest.kt | 17 +++++++ data/.gitignore | 1 + data/build.gradle | 40 ++++++++++++++++ data/consumer-rules.pro | 0 data/proguard-rules.pro | 21 +++++++++ .../threedays/data/ExampleInstrumentedTest.kt | 24 ++++++++++ data/src/main/AndroidManifest.xml | 5 ++ .../threedays/data/ExampleUnitTest.kt | 17 +++++++ domain/.gitignore | 1 + domain/build.gradle | 40 ++++++++++++++++ domain/consumer-rules.pro | 0 domain/proguard-rules.pro | 21 +++++++++ .../domain/ExampleInstrumentedTest.kt | 24 ++++++++++ domain/src/main/AndroidManifest.xml | 5 ++ .../threedays/domain/ExampleUnitTest.kt | 17 +++++++ navigator/.gitignore | 1 + navigator/build.gradle | 40 ++++++++++++++++ navigator/consumer-rules.pro | 0 navigator/proguard-rules.pro | 21 +++++++++ .../navigator/ExampleInstrumentedTest.kt | 24 ++++++++++ navigator/src/main/AndroidManifest.xml | 5 ++ .../threedays/navigator/ExampleUnitTest.kt | 17 +++++++ presentation/.gitignore | 1 + presentation/build.gradle | 46 +++++++++++++++++++ presentation/consumer-rules.pro | 0 presentation/proguard-rules.pro | 21 +++++++++ .../presentation/ExampleInstrumentedTest.kt | 24 ++++++++++ presentation/src/main/AndroidManifest.xml | 5 ++ .../threedays/presentation}/MainActivity.kt | 2 +- .../src/main/res/layout/activity_main.xml | 9 ---- presentation/src/main/res/values/strings.xml | 1 + .../threedays/presentation/ExampleUnitTest.kt | 17 +++++++ settings.gradle | 6 +++ 50 files changed, 685 insertions(+), 12 deletions(-) create mode 100644 app/src/main/java/com/depromeet/threedays/ThreeDaysApplication.kt create mode 100644 core-design-system/.gitignore create mode 100644 core-design-system/build.gradle create mode 100644 core-design-system/consumer-rules.pro create mode 100644 core-design-system/proguard-rules.pro create mode 100644 core-design-system/src/androidTest/java/com/depromeet/threedays/core_design_system/ExampleInstrumentedTest.kt create mode 100644 core-design-system/src/main/AndroidManifest.xml create mode 100644 core-design-system/src/test/java/com/depromeet/threedays/core_design_system/ExampleUnitTest.kt create mode 100644 core/.gitignore create mode 100644 core/build.gradle create mode 100644 core/consumer-rules.pro create mode 100644 core/proguard-rules.pro create mode 100644 core/src/androidTest/java/com/depromeet/threedays/core/ExampleInstrumentedTest.kt create mode 100644 core/src/main/AndroidManifest.xml create mode 100644 core/src/test/java/com/depromeet/threedays/core/ExampleUnitTest.kt create mode 100644 data/.gitignore create mode 100644 data/build.gradle create mode 100644 data/consumer-rules.pro create mode 100644 data/proguard-rules.pro create mode 100644 data/src/androidTest/java/com/depromeet/threedays/data/ExampleInstrumentedTest.kt create mode 100644 data/src/main/AndroidManifest.xml create mode 100644 data/src/test/java/com/depromeet/threedays/data/ExampleUnitTest.kt create mode 100644 domain/.gitignore create mode 100644 domain/build.gradle create mode 100644 domain/consumer-rules.pro create mode 100644 domain/proguard-rules.pro create mode 100644 domain/src/androidTest/java/com/depromeet/threedays/domain/ExampleInstrumentedTest.kt create mode 100644 domain/src/main/AndroidManifest.xml create mode 100644 domain/src/test/java/com/depromeet/threedays/domain/ExampleUnitTest.kt create mode 100644 navigator/.gitignore create mode 100644 navigator/build.gradle create mode 100644 navigator/consumer-rules.pro create mode 100644 navigator/proguard-rules.pro create mode 100644 navigator/src/androidTest/java/com/depromeet/threedays/navigator/ExampleInstrumentedTest.kt create mode 100644 navigator/src/main/AndroidManifest.xml create mode 100644 navigator/src/test/java/com/depromeet/threedays/navigator/ExampleUnitTest.kt create mode 100644 presentation/.gitignore create mode 100644 presentation/build.gradle create mode 100644 presentation/consumer-rules.pro create mode 100644 presentation/proguard-rules.pro create mode 100644 presentation/src/androidTest/java/com/depromeet/threedays/presentation/ExampleInstrumentedTest.kt create mode 100644 presentation/src/main/AndroidManifest.xml rename {app/src/main/java/com/depromeet/threedays => presentation/src/main/java/com/depromeet/threedays/presentation}/MainActivity.kt (85%) rename {app => presentation}/src/main/res/layout/activity_main.xml (54%) create mode 100644 presentation/src/main/res/values/strings.xml create mode 100644 presentation/src/test/java/com/depromeet/threedays/presentation/ExampleUnitTest.kt diff --git a/.idea/misc.xml b/.idea/misc.xml index 2a4d5b52..5af19f9a 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,5 +1,12 @@ + + + diff --git a/app/build.gradle b/app/build.gradle index a570e1a8..e622b57f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,7 +8,7 @@ android { defaultConfig { applicationId "com.depromeet.threedays" - minSdk 23 + minSdk 24 targetSdk 32 versionCode 1 versionName "1.0" @@ -32,6 +32,12 @@ android { } dependencies { + //modules + implementation(project(":domain")) + implementation(project(":data")) + implementation(project(":core")) + implementation(project(":navigator")) + implementation(project(":presentation")) implementation 'androidx.core:core-ktx:1.7.0' implementation 'androidx.appcompat:appcompat:1.5.1' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 1e8427a8..c1154800 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -4,6 +4,7 @@ package="com.depromeet.threedays"> + diff --git a/app/src/main/java/com/depromeet/threedays/ThreeDaysApplication.kt b/app/src/main/java/com/depromeet/threedays/ThreeDaysApplication.kt new file mode 100644 index 00000000..918be1ac --- /dev/null +++ b/app/src/main/java/com/depromeet/threedays/ThreeDaysApplication.kt @@ -0,0 +1,6 @@ +package com.depromeet.threedays + +import android.app.Application + +class ThreeDaysApplication : Application() { +} \ No newline at end of file diff --git a/core-design-system/.gitignore b/core-design-system/.gitignore new file mode 100644 index 00000000..42afabfd --- /dev/null +++ b/core-design-system/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/core-design-system/build.gradle b/core-design-system/build.gradle new file mode 100644 index 00000000..6404a276 --- /dev/null +++ b/core-design-system/build.gradle @@ -0,0 +1,40 @@ +plugins { + id 'com.android.library' + id 'org.jetbrains.kotlin.android' +} + +android { + compileSdk 32 + + defaultConfig { + minSdk 24 + targetSdk 32 + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles "consumer-rules.pro" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = '1.8' + } +} + +dependencies { + + implementation 'androidx.core:core-ktx:1.7.0' + implementation 'androidx.appcompat:appcompat:1.5.1' + implementation 'com.google.android.material:material:1.6.1' + testImplementation 'junit:junit:4.13.2' + androidTestImplementation 'androidx.test.ext:junit:1.1.3' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' +} \ No newline at end of file diff --git a/core-design-system/consumer-rules.pro b/core-design-system/consumer-rules.pro new file mode 100644 index 00000000..e69de29b diff --git a/core-design-system/proguard-rules.pro b/core-design-system/proguard-rules.pro new file mode 100644 index 00000000..481bb434 --- /dev/null +++ b/core-design-system/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-design-system/src/androidTest/java/com/depromeet/threedays/core_design_system/ExampleInstrumentedTest.kt b/core-design-system/src/androidTest/java/com/depromeet/threedays/core_design_system/ExampleInstrumentedTest.kt new file mode 100644 index 00000000..466093b6 --- /dev/null +++ b/core-design-system/src/androidTest/java/com/depromeet/threedays/core_design_system/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.depromeet.threedays.core_design_system + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.depromeet.threedays.core_design_system.test", appContext.packageName) + } +} \ No newline at end of file diff --git a/core-design-system/src/main/AndroidManifest.xml b/core-design-system/src/main/AndroidManifest.xml new file mode 100644 index 00000000..06dc7ab9 --- /dev/null +++ b/core-design-system/src/main/AndroidManifest.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/core-design-system/src/test/java/com/depromeet/threedays/core_design_system/ExampleUnitTest.kt b/core-design-system/src/test/java/com/depromeet/threedays/core_design_system/ExampleUnitTest.kt new file mode 100644 index 00000000..84a0a6d9 --- /dev/null +++ b/core-design-system/src/test/java/com/depromeet/threedays/core_design_system/ExampleUnitTest.kt @@ -0,0 +1,17 @@ +package com.depromeet.threedays.core_design_system + +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) + } +} \ No newline at end of file diff --git a/core/.gitignore b/core/.gitignore new file mode 100644 index 00000000..42afabfd --- /dev/null +++ b/core/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/core/build.gradle b/core/build.gradle new file mode 100644 index 00000000..6404a276 --- /dev/null +++ b/core/build.gradle @@ -0,0 +1,40 @@ +plugins { + id 'com.android.library' + id 'org.jetbrains.kotlin.android' +} + +android { + compileSdk 32 + + defaultConfig { + minSdk 24 + targetSdk 32 + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles "consumer-rules.pro" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = '1.8' + } +} + +dependencies { + + implementation 'androidx.core:core-ktx:1.7.0' + implementation 'androidx.appcompat:appcompat:1.5.1' + implementation 'com.google.android.material:material:1.6.1' + testImplementation 'junit:junit:4.13.2' + androidTestImplementation 'androidx.test.ext:junit:1.1.3' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' +} \ No newline at end of file diff --git a/core/consumer-rules.pro b/core/consumer-rules.pro new file mode 100644 index 00000000..e69de29b diff --git a/core/proguard-rules.pro b/core/proguard-rules.pro new file mode 100644 index 00000000..481bb434 --- /dev/null +++ b/core/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/src/androidTest/java/com/depromeet/threedays/core/ExampleInstrumentedTest.kt b/core/src/androidTest/java/com/depromeet/threedays/core/ExampleInstrumentedTest.kt new file mode 100644 index 00000000..67e53e9f --- /dev/null +++ b/core/src/androidTest/java/com/depromeet/threedays/core/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.depromeet.threedays.core + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.depromeet.threedays.core.test", appContext.packageName) + } +} \ No newline at end of file diff --git a/core/src/main/AndroidManifest.xml b/core/src/main/AndroidManifest.xml new file mode 100644 index 00000000..0e94fb53 --- /dev/null +++ b/core/src/main/AndroidManifest.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/core/src/test/java/com/depromeet/threedays/core/ExampleUnitTest.kt b/core/src/test/java/com/depromeet/threedays/core/ExampleUnitTest.kt new file mode 100644 index 00000000..cb6ef952 --- /dev/null +++ b/core/src/test/java/com/depromeet/threedays/core/ExampleUnitTest.kt @@ -0,0 +1,17 @@ +package com.depromeet.threedays.core + +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) + } +} \ No newline at end of file diff --git a/data/.gitignore b/data/.gitignore new file mode 100644 index 00000000..42afabfd --- /dev/null +++ b/data/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/data/build.gradle b/data/build.gradle new file mode 100644 index 00000000..6404a276 --- /dev/null +++ b/data/build.gradle @@ -0,0 +1,40 @@ +plugins { + id 'com.android.library' + id 'org.jetbrains.kotlin.android' +} + +android { + compileSdk 32 + + defaultConfig { + minSdk 24 + targetSdk 32 + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles "consumer-rules.pro" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = '1.8' + } +} + +dependencies { + + implementation 'androidx.core:core-ktx:1.7.0' + implementation 'androidx.appcompat:appcompat:1.5.1' + implementation 'com.google.android.material:material:1.6.1' + testImplementation 'junit:junit:4.13.2' + androidTestImplementation 'androidx.test.ext:junit:1.1.3' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' +} \ No newline at end of file diff --git a/data/consumer-rules.pro b/data/consumer-rules.pro new file mode 100644 index 00000000..e69de29b diff --git a/data/proguard-rules.pro b/data/proguard-rules.pro new file mode 100644 index 00000000..481bb434 --- /dev/null +++ b/data/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/data/src/androidTest/java/com/depromeet/threedays/data/ExampleInstrumentedTest.kt b/data/src/androidTest/java/com/depromeet/threedays/data/ExampleInstrumentedTest.kt new file mode 100644 index 00000000..ce9307c0 --- /dev/null +++ b/data/src/androidTest/java/com/depromeet/threedays/data/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.depromeet.threedays.data + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.depromeet.threedays.data.test", appContext.packageName) + } +} \ No newline at end of file diff --git a/data/src/main/AndroidManifest.xml b/data/src/main/AndroidManifest.xml new file mode 100644 index 00000000..1dba0978 --- /dev/null +++ b/data/src/main/AndroidManifest.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/data/src/test/java/com/depromeet/threedays/data/ExampleUnitTest.kt b/data/src/test/java/com/depromeet/threedays/data/ExampleUnitTest.kt new file mode 100644 index 00000000..44af21ec --- /dev/null +++ b/data/src/test/java/com/depromeet/threedays/data/ExampleUnitTest.kt @@ -0,0 +1,17 @@ +package com.depromeet.threedays.data + +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) + } +} \ No newline at end of file diff --git a/domain/.gitignore b/domain/.gitignore new file mode 100644 index 00000000..42afabfd --- /dev/null +++ b/domain/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/domain/build.gradle b/domain/build.gradle new file mode 100644 index 00000000..6404a276 --- /dev/null +++ b/domain/build.gradle @@ -0,0 +1,40 @@ +plugins { + id 'com.android.library' + id 'org.jetbrains.kotlin.android' +} + +android { + compileSdk 32 + + defaultConfig { + minSdk 24 + targetSdk 32 + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles "consumer-rules.pro" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = '1.8' + } +} + +dependencies { + + implementation 'androidx.core:core-ktx:1.7.0' + implementation 'androidx.appcompat:appcompat:1.5.1' + implementation 'com.google.android.material:material:1.6.1' + testImplementation 'junit:junit:4.13.2' + androidTestImplementation 'androidx.test.ext:junit:1.1.3' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' +} \ No newline at end of file diff --git a/domain/consumer-rules.pro b/domain/consumer-rules.pro new file mode 100644 index 00000000..e69de29b diff --git a/domain/proguard-rules.pro b/domain/proguard-rules.pro new file mode 100644 index 00000000..481bb434 --- /dev/null +++ b/domain/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/domain/src/androidTest/java/com/depromeet/threedays/domain/ExampleInstrumentedTest.kt b/domain/src/androidTest/java/com/depromeet/threedays/domain/ExampleInstrumentedTest.kt new file mode 100644 index 00000000..24817c97 --- /dev/null +++ b/domain/src/androidTest/java/com/depromeet/threedays/domain/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.depromeet.threedays.domain + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.depromeet.threedays.domain.test", appContext.packageName) + } +} \ No newline at end of file diff --git a/domain/src/main/AndroidManifest.xml b/domain/src/main/AndroidManifest.xml new file mode 100644 index 00000000..270830ef --- /dev/null +++ b/domain/src/main/AndroidManifest.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/domain/src/test/java/com/depromeet/threedays/domain/ExampleUnitTest.kt b/domain/src/test/java/com/depromeet/threedays/domain/ExampleUnitTest.kt new file mode 100644 index 00000000..9b03f78b --- /dev/null +++ b/domain/src/test/java/com/depromeet/threedays/domain/ExampleUnitTest.kt @@ -0,0 +1,17 @@ +package com.depromeet.threedays.domain + +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) + } +} \ No newline at end of file diff --git a/navigator/.gitignore b/navigator/.gitignore new file mode 100644 index 00000000..42afabfd --- /dev/null +++ b/navigator/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/navigator/build.gradle b/navigator/build.gradle new file mode 100644 index 00000000..6404a276 --- /dev/null +++ b/navigator/build.gradle @@ -0,0 +1,40 @@ +plugins { + id 'com.android.library' + id 'org.jetbrains.kotlin.android' +} + +android { + compileSdk 32 + + defaultConfig { + minSdk 24 + targetSdk 32 + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles "consumer-rules.pro" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = '1.8' + } +} + +dependencies { + + implementation 'androidx.core:core-ktx:1.7.0' + implementation 'androidx.appcompat:appcompat:1.5.1' + implementation 'com.google.android.material:material:1.6.1' + testImplementation 'junit:junit:4.13.2' + androidTestImplementation 'androidx.test.ext:junit:1.1.3' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' +} \ No newline at end of file diff --git a/navigator/consumer-rules.pro b/navigator/consumer-rules.pro new file mode 100644 index 00000000..e69de29b diff --git a/navigator/proguard-rules.pro b/navigator/proguard-rules.pro new file mode 100644 index 00000000..481bb434 --- /dev/null +++ b/navigator/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/navigator/src/androidTest/java/com/depromeet/threedays/navigator/ExampleInstrumentedTest.kt b/navigator/src/androidTest/java/com/depromeet/threedays/navigator/ExampleInstrumentedTest.kt new file mode 100644 index 00000000..2bf1f302 --- /dev/null +++ b/navigator/src/androidTest/java/com/depromeet/threedays/navigator/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.depromeet.threedays.navigator + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.depromeet.threedays.navigator.test", appContext.packageName) + } +} \ No newline at end of file diff --git a/navigator/src/main/AndroidManifest.xml b/navigator/src/main/AndroidManifest.xml new file mode 100644 index 00000000..6aeaf55e --- /dev/null +++ b/navigator/src/main/AndroidManifest.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/navigator/src/test/java/com/depromeet/threedays/navigator/ExampleUnitTest.kt b/navigator/src/test/java/com/depromeet/threedays/navigator/ExampleUnitTest.kt new file mode 100644 index 00000000..0857b107 --- /dev/null +++ b/navigator/src/test/java/com/depromeet/threedays/navigator/ExampleUnitTest.kt @@ -0,0 +1,17 @@ +package com.depromeet.threedays.navigator + +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) + } +} \ No newline at end of file diff --git a/presentation/.gitignore b/presentation/.gitignore new file mode 100644 index 00000000..42afabfd --- /dev/null +++ b/presentation/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/presentation/build.gradle b/presentation/build.gradle new file mode 100644 index 00000000..307464a6 --- /dev/null +++ b/presentation/build.gradle @@ -0,0 +1,46 @@ +plugins { + id 'com.android.library' + id 'org.jetbrains.kotlin.android' +} + +android { + compileSdk 32 + + defaultConfig { + minSdk 24 + targetSdk 32 + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles "consumer-rules.pro" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = '1.8' + } +} + +dependencies { + //modules + implementation(project(":core")) + implementation(project(":core-design-system")) + implementation(project(":navigator")) + implementation(project(":domain")) + + implementation 'androidx.core:core-ktx:1.7.0' + implementation 'androidx.appcompat:appcompat:1.5.1' + implementation 'com.google.android.material:material:1.6.1' + implementation 'androidx.constraintlayout:constraintlayout:2.1.4' + testImplementation 'junit:junit:4.13.2' + androidTestImplementation 'androidx.test.ext:junit:1.1.3' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' +} \ No newline at end of file diff --git a/presentation/consumer-rules.pro b/presentation/consumer-rules.pro new file mode 100644 index 00000000..e69de29b diff --git a/presentation/proguard-rules.pro b/presentation/proguard-rules.pro new file mode 100644 index 00000000..481bb434 --- /dev/null +++ b/presentation/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/presentation/src/androidTest/java/com/depromeet/threedays/presentation/ExampleInstrumentedTest.kt b/presentation/src/androidTest/java/com/depromeet/threedays/presentation/ExampleInstrumentedTest.kt new file mode 100644 index 00000000..004d6661 --- /dev/null +++ b/presentation/src/androidTest/java/com/depromeet/threedays/presentation/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.depromeet.threedays.presentation + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.depromeet.threedays.presentation.test", appContext.packageName) + } +} \ No newline at end of file diff --git a/presentation/src/main/AndroidManifest.xml b/presentation/src/main/AndroidManifest.xml new file mode 100644 index 00000000..1d849ec4 --- /dev/null +++ b/presentation/src/main/AndroidManifest.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/app/src/main/java/com/depromeet/threedays/MainActivity.kt b/presentation/src/main/java/com/depromeet/threedays/presentation/MainActivity.kt similarity index 85% rename from app/src/main/java/com/depromeet/threedays/MainActivity.kt rename to presentation/src/main/java/com/depromeet/threedays/presentation/MainActivity.kt index d18c6157..0f0fb738 100644 --- a/app/src/main/java/com/depromeet/threedays/MainActivity.kt +++ b/presentation/src/main/java/com/depromeet/threedays/presentation/MainActivity.kt @@ -1,4 +1,4 @@ -package com.depromeet.threedays +package com.depromeet.threedays.presentation import androidx.appcompat.app.AppCompatActivity import android.os.Bundle diff --git a/app/src/main/res/layout/activity_main.xml b/presentation/src/main/res/layout/activity_main.xml similarity index 54% rename from app/src/main/res/layout/activity_main.xml rename to presentation/src/main/res/layout/activity_main.xml index 17eab17b..0b15a209 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/presentation/src/main/res/layout/activity_main.xml @@ -6,13 +6,4 @@ android:layout_height="match_parent" tools:context=".MainActivity"> - - \ No newline at end of file diff --git a/presentation/src/main/res/values/strings.xml b/presentation/src/main/res/values/strings.xml new file mode 100644 index 00000000..73862c41 --- /dev/null +++ b/presentation/src/main/res/values/strings.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/presentation/src/test/java/com/depromeet/threedays/presentation/ExampleUnitTest.kt b/presentation/src/test/java/com/depromeet/threedays/presentation/ExampleUnitTest.kt new file mode 100644 index 00000000..053a328b --- /dev/null +++ b/presentation/src/test/java/com/depromeet/threedays/presentation/ExampleUnitTest.kt @@ -0,0 +1,17 @@ +package com.depromeet.threedays.presentation + +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) + } +} \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index df0d3a4b..26ff40a3 100644 --- a/settings.gradle +++ b/settings.gradle @@ -14,3 +14,9 @@ dependencyResolutionManagement { } rootProject.name = "ThreeDays" include ':app' +include ':core' +include ':core-design-system' +include ':data' +include ':domain' +include ':navigator' +include ':presentation'