Skip to content
Permalink
Browse files

Reduce visibility on classes in ui modules

  • Loading branch information
chrisbanes committed Nov 26, 2019
1 parent 0f40b6c commit 5d2a5bf5b296c9dfc4bfff8f2aee6ee11ba6e1e8
@@ -32,7 +32,7 @@ import com.airbnb.epoxy.Carousel
import com.airbnb.epoxy.EpoxyController
import javax.inject.Inject

class DiscoverEpoxyController @Inject constructor(
internal class DiscoverEpoxyController @Inject constructor(
private val context: Context,
private val textCreator: DiscoverTextCreator
) : EpoxyController() {
@@ -44,9 +44,9 @@ import javax.inject.Inject

class DiscoverFragment : TiviFragmentWithBinding<FragmentDiscoverBinding>() {
private val viewModel: DiscoverViewModel by fragmentViewModel()
@Inject lateinit var discoverViewModelFactory: DiscoverViewModel.Factory

@Inject lateinit var controller: DiscoverEpoxyController
@Inject internal lateinit var discoverViewModelFactory: DiscoverViewModel.Factory
@Inject internal lateinit var controller: DiscoverEpoxyController

private var authStateMenuItemBinder: AuthStateMenuItemBinder? = null

@@ -22,7 +22,7 @@ import app.tivi.data.entities.Season
import app.tivi.inject.PerActivity
import javax.inject.Inject

class DiscoverTextCreator @Inject constructor(
internal class DiscoverTextCreator @Inject constructor(
@PerActivity private val context: Context
) {
fun seasonEpisodeTitleText(season: Season, episode: Episode): String {
@@ -44,7 +44,7 @@ import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.launch

class DiscoverViewModel @AssistedInject constructor(
internal class DiscoverViewModel @AssistedInject constructor(
@Assisted initialState: DiscoverViewState,
private val updatePopularShows: UpdatePopularShows,
observePopularShows: ObservePopularShows,
@@ -33,7 +33,7 @@ import com.airbnb.epoxy.EpoxyModel
import com.airbnb.epoxy.paging.PagedListEpoxyController
import javax.inject.Inject

class FollowedEpoxyController @Inject constructor(
internal class FollowedEpoxyController @Inject constructor(
private val textCreator: HomeTextCreator
) : PagedListEpoxyController<FollowedShowEntryWithShow>() {
var state by observable(FollowedViewState(), ::requestModelBuild)
@@ -48,9 +48,9 @@ import kotlinx.coroutines.flow.collect

class FollowedFragment : TiviFragmentWithBinding<FragmentFollowedBinding>() {
private val viewModel: FollowedViewModel by fragmentViewModel()
@Inject lateinit var followedViewModelFactory: FollowedViewModel.Factory

@Inject lateinit var controller: FollowedEpoxyController
@Inject internal lateinit var followedViewModelFactory: FollowedViewModel.Factory
@Inject internal lateinit var controller: FollowedEpoxyController

private var currentActionMode: ActionMode? = null

@@ -48,7 +48,7 @@ import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.launch

class FollowedViewModel @AssistedInject constructor(
internal class FollowedViewModel @AssistedInject constructor(
@Assisted initialState: FollowedViewState,
private val updateFollowedShows: UpdateFollowedShows,
private val observePagedFollowedShows: ObservePagedFollowedShows,
@@ -23,7 +23,7 @@ import com.airbnb.epoxy.EpoxyController
import dagger.Lazy
import javax.inject.Inject

class SearchEpoxyController @Inject constructor(
internal class SearchEpoxyController @Inject constructor(
private val textCreator: Lazy<HomeTextCreator>
) : EpoxyController() {
var callbacks: Callbacks? by observable(null, ::requestModelBuild)
@@ -40,8 +40,8 @@ import javax.inject.Inject
internal class SearchFragment : TiviFragmentWithBinding<FragmentSearchBinding>() {
private val viewModel: SearchViewModel by fragmentViewModel()

@Inject lateinit var searchViewModelFactory: SearchViewModel.Factory
@Inject lateinit var controller: SearchEpoxyController
@Inject internal lateinit var searchViewModelFactory: SearchViewModel.Factory
@Inject internal lateinit var controller: SearchEpoxyController

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
@@ -35,7 +35,7 @@ import kotlinx.coroutines.flow.collectLatest
import kotlinx.coroutines.flow.debounce
import kotlinx.coroutines.launch

class SearchViewModel @AssistedInject constructor(
internal class SearchViewModel @AssistedInject constructor(
@Assisted initialState: SearchViewState,
private val searchShows: SearchShows
) : TiviMvRxViewModel<SearchViewState>(initialState) {
@@ -34,7 +34,7 @@ import com.airbnb.epoxy.EpoxyModel
import com.airbnb.epoxy.paging.PagedListEpoxyController
import javax.inject.Inject

class WatchedEpoxyController @Inject constructor(
internal class WatchedEpoxyController @Inject constructor(
private val textCreator: HomeTextCreator,
private val dateFormatter: TiviDateFormatter
) : PagedListEpoxyController<WatchedShowEntryWithShow>() {
@@ -48,9 +48,9 @@ import kotlinx.coroutines.flow.collect

class WatchedFragment : TiviFragmentWithBinding<FragmentWatchedBinding>() {
private val viewModel: WatchedViewModel by fragmentViewModel()
@Inject lateinit var watchedViewModelFactory: WatchedViewModel.Factory

@Inject lateinit var controller: WatchedEpoxyController
@Inject internal lateinit var watchedViewModelFactory: WatchedViewModel.Factory
@Inject internal lateinit var controller: WatchedEpoxyController

private var authStateMenuItemBinder: AuthStateMenuItemBinder? = null

@@ -47,7 +47,7 @@ import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.launch

class WatchedViewModel @AssistedInject constructor(
internal class WatchedViewModel @AssistedInject constructor(
@Assisted initialState: WatchedViewState,
private val updateWatchedShows: UpdateWatchedShows,
private val changeShowFollowStatus: ChangeShowFollowStatus,

0 comments on commit 5d2a5bf

Please sign in to comment.
You can’t perform that action at this time.