Skip to content

Commit

Permalink
Step1 - GitHub(모듈 분리) (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyuil-Hwnag authored Aug 29, 2023
1 parent be18454 commit 8b046bd
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Step1(2023-08-29) #
* [x] 순수 코틀린 모듈인 domain 모듈을 만든다.
* [x] 순수 코틀린 모듈인 data 모듈을 만든다.
* [x] data 모듈은 domain 모듈에 의존해야 한다.
* [x] app 모듈은 domain 모듈에 의존해야 한다.
2 changes: 2 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ android {
}

dependencies {
implementation(project(":domain"))

implementation("org.jetbrains.kotlin:kotlin-stdlib:${Version.kotlin}")
implementation("androidx.core:core-ktx:1.9.0")
implementation("androidx.appcompat:appcompat:1.6.0")
Expand Down
1 change: 1 addition & 0 deletions data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
12 changes: 12 additions & 0 deletions data/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
plugins {
id("kotlin")
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

dependencies {
implementation(project(":domain"))
}
4 changes: 4 additions & 0 deletions data/src/main/java/com/nextstep/edu/data/MyClass.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.nextstep.edu.data

class MyClass {
}
1 change: 1 addition & 0 deletions domain/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
8 changes: 8 additions & 0 deletions domain/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
plugins {
id("kotlin")
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
4 changes: 4 additions & 0 deletions domain/src/main/java/com/nextstep/edu/domain/MyClass.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.nextstep.edu.domain

class MyClass {
}
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include(":app")
rootProject.name = "android-github"
include(":domain")
include(":data")

0 comments on commit 8b046bd

Please sign in to comment.