build: Task 19 완료 - :core:core-common 및 :core:core-network 모듈 분리

- core/core-common 모듈 신규 생성 (namespace: bums.lunatic.launcher.core.common):
  * MlKitTranslationHelper.kt를 :app에서 :core:core-common으로 이동
- core/core-network 모듈 신규 생성 (namespace: bums.lunatic.launcher.core.network):
  * NetworkClient.kt를 :app에서 :core:core-network로 이동 (OkHttp3 api 의존성 노출)
- settings.gradle.kts & app/build.gradle.kts: :core:core-common, :core:core-network 모듈 등록 및 :app 의존성 연결
- TODO.md: 6-1(코어 공통/네트워크 분리) 진행 내역 반영
- 검증: ./gradlew :app:compileDebugKotlin 빌드 성공 확인 (13s, 59 actionable tasks)
This commit is contained in:
2026-11-16 13:15:24 +09:00
parent c9dff8c162
commit f23cc1aa05
9 changed files with 64 additions and 1 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ lunar_launcher/
```
#### 단계별 모듈화 실행 순서
- [ ] **6-1. `:core:common`, `:core:network`, `:core:database` 분리**: `:app` 의존성이 가장 적은 순수 모델(`model/*`), `WorkersDb`, `OkHttpClient`, 유틸부터 하위 모듈로 이동.
- [x] **6-1. `:core:common`, `:core:network`, `:core:database` 분리** (`:core:core-common`, `:core:core-network` 생성 및 `NetworkClient`·`MlKitTranslationHelper` 이동 완료; `:core:database`는 후속 진행)
- [ ] **6-2. 독립 기능 우선 분리 (`:feature:torrent`, `:feature:wallpaper`)**: `jlibtorrent` JAR들과 `MyWallpaperService`+`Renderer.cpp`는 타 화면과 결합도가 낮아 가장 먼저 독립 모듈로 분리하기 적합함.
- [ ] **6-3. 뷰어/리더 분리 (`:feature:player`, `:feature:reader`)**: `PlayerActivity`/`NativePlayer`(+ `PlayerEngine.cpp`)와 `DocumentViewerActivity`/`ImageViewerActivity`, `TokiFragment`/`WebReaderActivity`를 분리.
- [ ] **6-4. 피드/수집기 분리 (`:feature:feeds`)**: `RssHome`, `NeoRssActivity`, `TaskAggregator`, `*Getter`군을 분리하고 `:app`은 런처 홈과 서비스 진입점만 유지.
+2
View File
@@ -135,6 +135,8 @@ dependencies {
"dir" to "libs",
"include" to listOf("*.aar", "*.jar"),
)))
implementation(project(":core:core-common"))
implementation(project(":core:core-network"))
implementation(project(":gdrive"))
implementation("com.google.android.gms:play-services-wearable:19.0.0")
val kotlinVersion: String? by extra
+29
View File
@@ -0,0 +1,29 @@
plugins {
id("com.android.library")
id("kotlin-android")
}
android {
namespace = "bums.lunatic.launcher.core.common"
compileSdk = 35
defaultConfig {
minSdk = 26
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3")
implementation("com.google.android.gms:play-services-tasks:18.3.2")
implementation("com.google.mlkit:translate:17.0.3")
implementation("com.google.mlkit:language-id:17.0.5")
}
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest />
+26
View File
@@ -0,0 +1,26 @@
plugins {
id("com.android.library")
id("kotlin-android")
}
android {
namespace = "bums.lunatic.launcher.core.network"
compileSdk = 35
defaultConfig {
minSdk = 26
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
}
dependencies {
api("com.squareup.okhttp3:logging-interceptor:4.11.0")
}
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest />
+2
View File
@@ -23,5 +23,7 @@ dependencyResolutionManagement {
rootProject.name = "LunarLauncher"
include ("app")
include(":core:core-common")
include(":core:core-network")
include(":gdrive")
include(":lun_launcher")