Skip to content

Commit

Permalink
#115 [move] : move NewsInfoModel to model module
Browse files Browse the repository at this point in the history
  • Loading branch information
chanubc committed Nov 24, 2024
1 parent c49b0c3 commit e343cfd
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.teamwable.news.model
package com.teamwable.model.news

import android.os.Parcelable
import kotlinx.parcelize.Parcelize
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.teamwable.news

import androidx.navigation.fragment.navArgs
import com.teamwable.model.news.NewsInfoModel
import com.teamwable.news.databinding.FragmentNewsDetailBinding
import com.teamwable.news.model.NewsInfoModel
import com.teamwable.ui.base.BindingFragment

class NewsDetailFragment : BindingFragment<FragmentNewsDetailBinding>(FragmentNewsDetailBinding::inflate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.teamwable.common.uistate.UiState
import com.teamwable.data.repository.NewsRepository
import com.teamwable.model.news.NewsInfoModel
import com.teamwable.model.news.NewsMatchModel
import com.teamwable.model.news.NewsRankModel
import com.teamwable.news.model.NewsInfoModel
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package com.teamwable.news.news
import androidx.compose.ui.platform.ViewCompositionStrategy
import androidx.navigation.fragment.findNavController
import com.teamwable.designsystem.theme.WableTheme
import com.teamwable.model.news.NewsInfoModel
import com.teamwable.news.NewsFragmentDirections
import com.teamwable.news.databinding.FragmentNewsNewsBinding
import com.teamwable.news.model.NewsInfoModel
import com.teamwable.ui.base.BindingFragment
import dagger.hilt.android.AndroidEntryPoint

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import androidx.compose.ui.res.dimensionResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.teamwable.designsystem.theme.WableTheme
import com.teamwable.news.model.NewsInfoModel
import com.teamwable.model.news.NewsInfoModel
import com.teamwable.news.news.component.WableNewsItems
import com.teamwable.news.news.component.WableNewsTopBanner

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import com.skydoves.landscapist.ImageOptions
import com.skydoves.landscapist.glide.GlideImage
import com.teamwable.designsystem.extension.composable.toImageVector
import com.teamwable.designsystem.theme.WableTheme
import com.teamwable.news.model.NewsInfoModel
import com.teamwable.model.news.NewsInfoModel

@Composable
fun WableNewsTopBanner(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import androidx.annotation.RequiresApi
import androidx.compose.ui.platform.ViewCompositionStrategy
import androidx.navigation.fragment.findNavController
import com.teamwable.designsystem.theme.WableTheme
import com.teamwable.model.news.NewsInfoModel
import com.teamwable.news.NewsFragmentDirections
import com.teamwable.news.databinding.FragmentNewsNoticeBinding
import com.teamwable.news.model.NewsInfoModel
import com.teamwable.ui.base.BindingFragment
import dagger.hilt.android.AndroidEntryPoint

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.teamwable.designsystem.theme.WableTheme
import com.teamwable.news.model.NewsInfoModel
import com.teamwable.model.news.NewsInfoModel
import com.teamwable.ui.util.CalculateTime

@RequiresApi(Build.VERSION_CODES.O)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import androidx.hilt.navigation.compose.hiltViewModel
import com.teamwable.designsystem.theme.WableTheme
import com.teamwable.model.news.NewsInfoModel
import com.teamwable.news.NewsViewModel
import com.teamwable.news.R
import com.teamwable.news.model.NewsInfoModel

@RequiresApi(Build.VERSION_CODES.O)
@Composable
Expand Down
2 changes: 1 addition & 1 deletion feature/news/src/main/res/navigation/graph_news.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
tools:layout="@layout/fragment_news_detail">
<argument
android:name="newsInfoModel"
app:argType="com.teamwable.news.model.NewsInfoModel" />
app:argType="com.teamwable.model.news.NewsInfoModel" />
</fragment>
</navigation>

0 comments on commit e343cfd

Please sign in to comment.