Skip to content

Commit

Permalink
step 1 - GitHub(모듈 분리) (#101)
Browse files Browse the repository at this point in the history
- 순수 코틀린 모듈인 domain 모듈, data 모듈 생성
- 요구사항에 따른 의존성 부여
  • Loading branch information
oyj7677 authored Aug 30, 2023
1 parent be18454 commit 9e14666
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 0 deletions.
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 {
api(project(":github-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 github-data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
13 changes: 13 additions & 0 deletions github-data/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
plugins {
id("java-library")
id("org.jetbrains.kotlin.jvm")
}

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

dependencies {
api(project(":github-domain"))
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.example.github_data

class GithubData {
}
1 change: 1 addition & 0 deletions github-domain/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
9 changes: 9 additions & 0 deletions github-domain/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
plugins {
id("java-library")
id("org.jetbrains.kotlin.jvm")
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.example.domain

class GithubDomain {
}
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(":github-domain")
include(":github-data")

0 comments on commit 9e14666

Please sign in to comment.