Skip to content

Commit

Permalink
refactor: Compose 공통으로 사용하는 부분들 core 모듈로 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
sieunju committed Jan 21, 2024
1 parent 26fef9e commit 086ee73
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 5 deletions.
14 changes: 14 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ plugins {
android {
namespace = "com.hmju.core"
buildFeatures {
compose = true
dataBinding = true
}
kapt {
correctErrorTypes = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.4.1"
}
}

dependencies {
Expand Down Expand Up @@ -82,11 +86,21 @@ dependencies {
*/
implementation(Kotlin.reflect)

/**
* Compose
*/
implementation(platform(Compose.base))
implementation(Compose.material)
implementation(Compose.preview)
implementation(Compose.ui)

/**
* Unit Test
*/
testImplementation(UnitTest.junit)
androidTestImplementation(UnitTest.junit)
androidTestImplementation(UnitTest.androidJUnit)
androidTestImplementation(UnitTest.Espresso.core)
androidTestImplementation(platform(Compose.base))
debugImplementation(UnitTest.Compose.tooling)
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.feature.compose_ui
package com.hmju.core.compose

import androidx.compose.runtime.Immutable
import androidx.compose.ui.graphics.Color
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.feature.compose_ui
package com.hmju.core.compose

import androidx.compose.runtime.Immutable
import androidx.compose.ui.text.TextStyle
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.feature.compose_ui
package com.hmju.core.compose

import androidx.compose.runtime.Composable
import androidx.compose.runtime.ReadOnlyComposable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.feature.compose_ui
package com.hmju.core.compose

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import androidx.compose.ui.platform.ViewCompositionStrategy
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.feature.compose_ui.databinding.AComposeUiBinding
import com.hmju.core.compose.TilTheme
import com.hmju.core.ui.base.BaseActivity
import timber.log.Timber

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import com.hmju.core.compose.TilTheme
import timber.log.Timber

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import androidx.lifecycle.lifecycleScope
import com.feature.compose_ui.model.MemoModel
import com.feature.compose_ui.model.MemoUiModel
import com.feature.compose_ui.usecase.GetMemoListUseCase
import com.hmju.core.compose.TilTheme
import com.hmju.core.model.params.PagingParameter
import com.hmju.core.ui.paging.PagingModel
import dagger.hilt.android.AndroidEntryPoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import androidx.constraintlayout.compose.ConstraintLayout
import com.bumptech.glide.integration.compose.ExperimentalGlideComposeApi
import com.bumptech.glide.integration.compose.GlideImage
import com.bumptech.glide.integration.compose.placeholder
import com.feature.compose_ui.TilTheme
import com.hmju.core.compose.TilTheme
import com.hmju.core.R

/**
Expand Down

0 comments on commit 086ee73

Please sign in to comment.