Skip to content

Commit

Permalink
Add base package
Browse files Browse the repository at this point in the history
  • Loading branch information
sLee0306 committed Nov 22, 2023
1 parent 76c070e commit a0acd06
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sample.android.tmdb.ui
package com.sample.android.tmdb.ui.base

import android.animation.Animator
import android.animation.AnimatorListenerAdapter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sample.android.tmdb.ui
package com.sample.android.tmdb.ui.base

import android.os.Bundle
import android.view.View
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sample.android.tmdb.ui
package com.sample.android.tmdb.ui.base

import android.os.Bundle
import android.view.LayoutInflater
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sample.android.tmdb.ui
package com.sample.android.tmdb.ui.base

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sample.android.tmdb.ui
package com.sample.android.tmdb.ui.base

import android.app.ActivityOptions
import android.content.Intent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sample.android.tmdb.ui
package com.sample.android.tmdb.ui.base

import android.content.Intent
import android.os.Bundle
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sample.android.tmdb.ui
package com.sample.android.tmdb.ui.base

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.sample.android.tmdb.ui.common

import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import com.sample.android.tmdb.ui.BaseViewModel
import com.sample.android.tmdb.ui.base.BaseViewModel
import com.sample.android.tmdb.util.Resource

@Composable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.sample.android.tmdb.ui.detail

import android.view.MenuItem
import com.sample.android.tmdb.ui.BaseDetailActivity
import com.sample.android.tmdb.ui.base.BaseDetailActivity

abstract class DetailActivity : BaseDetailActivity() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import com.sample.android.tmdb.R
import com.sample.android.tmdb.databinding.FragmentDetailBinding
import com.sample.android.tmdb.domain.model.Credit
import com.sample.android.tmdb.domain.model.TmdbItem
import com.sample.android.tmdb.ui.BaseDetailFragment
import com.sample.android.tmdb.ui.base.BaseDetailFragment
import com.sample.android.tmdb.ui.detail.credit.CreditAdapter
import com.sample.android.tmdb.ui.detail.credit.CreditClickListener
import com.sample.android.tmdb.util.setupActionBar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.sample.android.tmdb.domain.model.Cast
import com.sample.android.tmdb.domain.model.CreditWrapper
import com.sample.android.tmdb.domain.model.Crew
import com.sample.android.tmdb.domain.model.Video
import com.sample.android.tmdb.ui.BaseDetailViewModel
import com.sample.android.tmdb.ui.base.BaseDetailViewModel
import com.sample.android.tmdb.ui.detail.DetailViewModel.DetailWrapper
import io.reactivex.Single

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import androidx.appcompat.widget.Toolbar
import androidx.core.view.GravityCompat
import com.sample.android.tmdb.R
import com.sample.android.tmdb.databinding.ActivityFeedBinding
import com.sample.android.tmdb.ui.BaseNavTypeActivity
import com.sample.android.tmdb.ui.base.BaseNavTypeActivity
import com.sample.android.tmdb.ui.feed.movie.FeedMovieFragment
import com.sample.android.tmdb.ui.feed.tvshow.FeedTVShowFragment
import com.sample.android.tmdb.ui.setting.SettingFragment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.sample.android.tmdb.domain.model.TmdbItem
import com.sample.android.tmdb.ui.BaseNavTypeFragment
import com.sample.android.tmdb.ui.base.BaseNavTypeFragment
import com.sample.android.tmdb.ui.common.Content
import com.sample.android.tmdb.ui.common.TmdbTheme
import com.sample.android.tmdb.ui.common.composeView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.sample.android.tmdb.ui.feed
import com.sample.android.tmdb.domain.model.FeedWrapper
import com.sample.android.tmdb.domain.model.TmdbItem
import com.sample.android.tmdb.domain.repository.BaseFeedRepository
import com.sample.android.tmdb.ui.BaseViewModel
import com.sample.android.tmdb.ui.base.BaseViewModel

open class FeedViewModel<T : TmdbItem>(
repository: BaseFeedRepository<T>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import com.sample.android.tmdb.R
import com.sample.android.tmdb.databinding.FragmentMainBinding
import com.sample.android.tmdb.domain.model.TmdbItem
import com.sample.android.tmdb.data.paging.Status.RUNNING
import com.sample.android.tmdb.ui.BaseNavTypeFragment
import com.sample.android.tmdb.ui.base.BaseNavTypeFragment
import com.sample.android.tmdb.widget.MarginDecoration

abstract class BaseFragment<T : TmdbItem> : BaseNavTypeFragment() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import androidx.appcompat.widget.Toolbar
import com.sample.android.tmdb.R
import com.sample.android.tmdb.databinding.ActivityMainBinding
import com.sample.android.tmdb.domain.model.TmdbItem
import com.sample.android.tmdb.ui.BaseNavTypeActivity
import com.sample.android.tmdb.ui.base.BaseNavTypeActivity
import com.sample.android.tmdb.util.addFragmentToActivity
import com.sample.android.tmdb.util.setupActionBar

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import android.widget.TextView
import com.sample.android.tmdb.R
import com.sample.android.tmdb.domain.model.TmdbItem
import com.sample.android.tmdb.databinding.ActivitySearchBinding
import com.sample.android.tmdb.ui.BaseActivity
import com.sample.android.tmdb.ui.base.BaseActivity
import com.sample.android.tmdb.util.replaceFragmentInActivity

abstract class SearchActivity<T: TmdbItem> : BaseActivity() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sample.android.tmdb.ui.person

import com.sample.android.tmdb.ui.BaseDetailActivity
import com.sample.android.tmdb.ui.base.BaseDetailActivity
import dagger.android.support.DaggerFragment
import javax.inject.Inject

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import androidx.lifecycle.ViewModelProvider
import com.sample.android.tmdb.R
import com.sample.android.tmdb.databinding.FragmentPersonBinding
import com.sample.android.tmdb.domain.model.Credit
import com.sample.android.tmdb.ui.BaseDetailFragment
import com.sample.android.tmdb.ui.base.BaseDetailFragment
import com.sample.android.tmdb.util.toVisibility
import javax.inject.Inject

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import androidx.lifecycle.ViewModelProvider
import com.sample.android.tmdb.domain.repository.PersonRepository
import com.sample.android.tmdb.domain.model.Credit
import com.sample.android.tmdb.domain.model.Person
import com.sample.android.tmdb.ui.BaseDetailViewModel
import com.sample.android.tmdb.ui.base.BaseDetailViewModel
import javax.inject.Inject

class PersonViewModel(
Expand Down

0 comments on commit a0acd06

Please sign in to comment.