diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/PersonRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/PersonRepository.kt index 27e7545..ef7ca45 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/PersonRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/PersonRepository.kt @@ -12,9 +12,7 @@ import javax.inject.Singleton import kotlinx.coroutines.CoroutineDispatcher @Singleton -class PersonRepository -@Inject -constructor( +class PersonRepository @Inject constructor( private val personApi: PersonService, @ApplicationContext context: Context, @IoDispatcher ioDispatcher: CoroutineDispatcher, diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/MovieFeedRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/MovieFeedRepository.kt index 7768f9d..cf444a0 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/MovieFeedRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/MovieFeedRepository.kt @@ -13,9 +13,7 @@ import javax.inject.Singleton import kotlinx.coroutines.CoroutineDispatcher @Singleton -class MovieFeedRepository -@Inject -constructor( +class MovieFeedRepository @Inject constructor( @ApplicationContext context: Context, @IoDispatcher ioDispatcher: CoroutineDispatcher, private val movieApi: MovieService, diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/detail/BookmarkMovieDetailsRepositoryImpl.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/detail/BookmarkMovieDetailsRepositoryImpl.kt index a94bcbc..d2b11f3 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/detail/BookmarkMovieDetailsRepositoryImpl.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/detail/BookmarkMovieDetailsRepositoryImpl.kt @@ -8,9 +8,7 @@ import javax.inject.Inject import javax.inject.Singleton @Singleton -class BookmarkMovieDetailsRepositoryImpl -@Inject -constructor(private val movieDao: MovieDao) : +class BookmarkMovieDetailsRepositoryImpl @Inject constructor(private val movieDao: MovieDao) : BookmarkDetailsRepository { override suspend fun addBookmark(item: Movie) { movieDao.addBookmark(item.asDatabaseModel()) diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/detail/BookmarkMovieRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/detail/BookmarkMovieRepository.kt index 1e91b2f..cc06133 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/detail/BookmarkMovieRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/detail/BookmarkMovieRepository.kt @@ -12,9 +12,7 @@ import javax.inject.Singleton import kotlinx.coroutines.CoroutineDispatcher @Singleton -class BookmarkMovieRepository -@Inject -constructor( +class BookmarkMovieRepository @Inject constructor( private val movieDao: MovieDao, @ApplicationContext context: Context, @IoDispatcher ioDispatcher: CoroutineDispatcher, diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/detail/MovieDetailRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/detail/MovieDetailRepository.kt index f55c1b2..8d460c0 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/detail/MovieDetailRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/detail/MovieDetailRepository.kt @@ -19,9 +19,7 @@ import javax.inject.Singleton import kotlinx.coroutines.CoroutineDispatcher @Singleton -class MovieDetailRepository -@Inject -constructor( +class MovieDetailRepository @Inject constructor( private val movieApi: MovieService, @ApplicationContext context: Context, @IoDispatcher ioDispatcher: CoroutineDispatcher, diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/DiscoverMoviesPagingRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/DiscoverMoviesPagingRepository.kt index 4ec1bc1..e6b52f0 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/DiscoverMoviesPagingRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/DiscoverMoviesPagingRepository.kt @@ -11,9 +11,7 @@ import javax.inject.Inject import javax.inject.Singleton @Singleton -class DiscoverMoviesPagingRepository -@Inject -constructor( +class DiscoverMoviesPagingRepository @Inject constructor( @ApplicationContext private val context: Context, private val movieApi: MovieService, ) : BasePagingRepository() { diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/NowPlayingMoviesPagingRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/NowPlayingMoviesPagingRepository.kt index b4d11d3..64774a7 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/NowPlayingMoviesPagingRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/NowPlayingMoviesPagingRepository.kt @@ -11,9 +11,7 @@ import javax.inject.Inject import javax.inject.Singleton @Singleton -class NowPlayingMoviesPagingRepository -@Inject -constructor( +class NowPlayingMoviesPagingRepository @Inject constructor( @ApplicationContext private val context: Context, private val movieApi: MovieService, ) : BasePagingRepository() { diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/PopularMoviesPagingRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/PopularMoviesPagingRepository.kt index db5d26e..ad11e4b 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/PopularMoviesPagingRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/PopularMoviesPagingRepository.kt @@ -11,9 +11,7 @@ import javax.inject.Inject import javax.inject.Singleton @Singleton -class PopularMoviesPagingRepository -@Inject -constructor( +class PopularMoviesPagingRepository @Inject constructor( @ApplicationContext private val context: Context, private val movieApi: MovieService, ) : BasePagingRepository() { diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/SearchMoviesPagingRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/SearchMoviesPagingRepository.kt index ee7eb65..35bf5d5 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/SearchMoviesPagingRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/SearchMoviesPagingRepository.kt @@ -11,9 +11,7 @@ import javax.inject.Inject import javax.inject.Singleton @Singleton -class SearchMoviesPagingRepository -@Inject -constructor( +class SearchMoviesPagingRepository @Inject constructor( @ApplicationContext private val context: Context, private val movieApi: MovieService, ) : BasePagingRepository() { diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/SimilarMoviesPagingRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/SimilarMoviesPagingRepository.kt index 9c4c986..42dbb0f 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/SimilarMoviesPagingRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/SimilarMoviesPagingRepository.kt @@ -11,9 +11,7 @@ import javax.inject.Inject import javax.inject.Singleton @Singleton -class SimilarMoviesPagingRepository -@Inject -constructor( +class SimilarMoviesPagingRepository @Inject constructor( @ApplicationContext private val context: Context, private val movieApi: MovieService, ) : BasePagingRepository() { diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/TopRatedMoviesPagingRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/TopRatedMoviesPagingRepository.kt index 36baf4f..49ce851 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/TopRatedMoviesPagingRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/TopRatedMoviesPagingRepository.kt @@ -11,9 +11,7 @@ import javax.inject.Inject import javax.inject.Singleton @Singleton -class TopRatedMoviesPagingRepository -@Inject -constructor( +class TopRatedMoviesPagingRepository @Inject constructor( @ApplicationContext private val context: Context, private val movieApi: MovieService, ) : BasePagingRepository() { diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/TrendingMoviesPagingRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/TrendingMoviesPagingRepository.kt index 7f6a7c4..fff8308 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/TrendingMoviesPagingRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/TrendingMoviesPagingRepository.kt @@ -11,9 +11,7 @@ import javax.inject.Inject import javax.inject.Singleton @Singleton -class TrendingMoviesPagingRepository -@Inject -constructor( +class TrendingMoviesPagingRepository @Inject constructor( @ApplicationContext private val context: Context, private val movieApi: MovieService, ) : BasePagingRepository() { diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/UpcomingMoviesPagingRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/UpcomingMoviesPagingRepository.kt index 01e4ba0..a3ecd03 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/UpcomingMoviesPagingRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/movie/paging/UpcomingMoviesPagingRepository.kt @@ -11,9 +11,7 @@ import javax.inject.Inject import javax.inject.Singleton @Singleton -class UpcomingMoviesPagingRepository -@Inject -constructor( +class UpcomingMoviesPagingRepository @Inject constructor( @ApplicationContext private val context: Context, private val movieApi: MovieService, ) : BasePagingRepository() { diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/TVShowFeedRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/TVShowFeedRepository.kt index 027917c..b0ac120 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/TVShowFeedRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/TVShowFeedRepository.kt @@ -13,9 +13,7 @@ import javax.inject.Singleton import kotlinx.coroutines.CoroutineDispatcher @Singleton -class TVShowFeedRepository -@Inject -constructor( +class TVShowFeedRepository @Inject constructor( @ApplicationContext context: Context, @IoDispatcher ioDispatcher: CoroutineDispatcher, private val tvShowApi: TVShowService, diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/detail/BookmarkTVShowDetailsRepositoryImpl.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/detail/BookmarkTVShowDetailsRepositoryImpl.kt index d2dd55c..e742f4b 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/detail/BookmarkTVShowDetailsRepositoryImpl.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/detail/BookmarkTVShowDetailsRepositoryImpl.kt @@ -8,9 +8,7 @@ import javax.inject.Inject import javax.inject.Singleton @Singleton -class BookmarkTVShowDetailsRepositoryImpl -@Inject -constructor(private val tvShowDao: TVShowDao) : +class BookmarkTVShowDetailsRepositoryImpl @Inject constructor(private val tvShowDao: TVShowDao) : BookmarkDetailsRepository { override suspend fun addBookmark(item: TVShow) { tvShowDao.addBookmark(item.asDatabaseModel()) diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/detail/BookmarkTVShowRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/detail/BookmarkTVShowRepository.kt index 35c35ce..b3ae280 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/detail/BookmarkTVShowRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/detail/BookmarkTVShowRepository.kt @@ -12,9 +12,7 @@ import javax.inject.Singleton import kotlinx.coroutines.CoroutineDispatcher @Singleton -class BookmarkTVShowRepository -@Inject -constructor( +class BookmarkTVShowRepository @Inject constructor( private val tvShowDao: TVShowDao, @ApplicationContext context: Context, @IoDispatcher ioDispatcher: CoroutineDispatcher, diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/detail/TVShowDetailRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/detail/TVShowDetailRepository.kt index eab467a..b5ccb01 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/detail/TVShowDetailRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/detail/TVShowDetailRepository.kt @@ -19,9 +19,7 @@ import javax.inject.Singleton import kotlinx.coroutines.CoroutineDispatcher @Singleton -class TVShowDetailRepository -@Inject -constructor( +class TVShowDetailRepository @Inject constructor( private val tvShowApi: TVShowService, @ApplicationContext context: Context, @IoDispatcher ioDispatcher: CoroutineDispatcher, diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/AiringTodayTvSeriesPagingRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/AiringTodayTvSeriesPagingRepository.kt index d771cf5..a99e097 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/AiringTodayTvSeriesPagingRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/AiringTodayTvSeriesPagingRepository.kt @@ -11,9 +11,7 @@ import javax.inject.Inject import javax.inject.Singleton @Singleton -class AiringTodayTvSeriesPagingRepository -@Inject -constructor( +class AiringTodayTvSeriesPagingRepository @Inject constructor( @ApplicationContext private val context: Context, private val tvShowApi: TVShowService, ) : BasePagingRepository() { diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/DiscoverTvSeriesPagingRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/DiscoverTvSeriesPagingRepository.kt index 894d04c..0859d98 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/DiscoverTvSeriesPagingRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/DiscoverTvSeriesPagingRepository.kt @@ -11,9 +11,7 @@ import javax.inject.Inject import javax.inject.Singleton @Singleton -class DiscoverTvSeriesPagingRepository -@Inject -constructor( +class DiscoverTvSeriesPagingRepository @Inject constructor( @ApplicationContext private val context: Context, private val tvShowApi: TVShowService, ) : BasePagingRepository() { diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/OnTheAirTvSeriesPagingRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/OnTheAirTvSeriesPagingRepository.kt index a0fb1b0..1714919 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/OnTheAirTvSeriesPagingRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/OnTheAirTvSeriesPagingRepository.kt @@ -11,9 +11,7 @@ import javax.inject.Inject import javax.inject.Singleton @Singleton -class OnTheAirTvSeriesPagingRepository -@Inject -constructor( +class OnTheAirTvSeriesPagingRepository @Inject constructor( @ApplicationContext private val context: Context, private val tvShowApi: TVShowService, ) : BasePagingRepository() { diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/PopularTvSeriesPagingRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/PopularTvSeriesPagingRepository.kt index 4c87e96..8e5fec3 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/PopularTvSeriesPagingRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/PopularTvSeriesPagingRepository.kt @@ -11,9 +11,7 @@ import javax.inject.Inject import javax.inject.Singleton @Singleton -class PopularTvSeriesPagingRepository -@Inject -constructor( +class PopularTvSeriesPagingRepository @Inject constructor( @ApplicationContext private val context: Context, private val tvShowApi: TVShowService, ) : BasePagingRepository() { diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/SearchTvSeriesPagingRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/SearchTvSeriesPagingRepository.kt index 47f5fc4..5b7b00d 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/SearchTvSeriesPagingRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/SearchTvSeriesPagingRepository.kt @@ -10,8 +10,7 @@ import dagger.hilt.android.qualifiers.ApplicationContext import javax.inject.Inject class -SearchTvSeriesPagingRepository@Inject -constructor( +SearchTvSeriesPagingRepository @Inject constructor( @ApplicationContext private val context: Context, private val tvShowApi: TVShowService, ) : BasePagingRepository() { diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/SimilarTvSeriesPagingRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/SimilarTvSeriesPagingRepository.kt index c5f7974..726c3a7 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/SimilarTvSeriesPagingRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/SimilarTvSeriesPagingRepository.kt @@ -11,9 +11,7 @@ import javax.inject.Inject import javax.inject.Singleton @Singleton -class SimilarTvSeriesPagingRepository -@Inject -constructor( +class SimilarTvSeriesPagingRepository @Inject constructor( @ApplicationContext private val context: Context, private val tvShowApi: TVShowService, ) : BasePagingRepository() { diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/TopRatedTvSeriesPagingRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/TopRatedTvSeriesPagingRepository.kt index 3d13be3..1e6af3a 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/TopRatedTvSeriesPagingRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/TopRatedTvSeriesPagingRepository.kt @@ -11,9 +11,7 @@ import javax.inject.Inject import javax.inject.Singleton @Singleton -class TopRatedTvSeriesPagingRepository -@Inject -constructor( +class TopRatedTvSeriesPagingRepository @Inject constructor( @ApplicationContext private val context: Context, private val tvShowApi: TVShowService, ) : BasePagingRepository() { diff --git a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/TrendingTvSeriesPagingRepository.kt b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/TrendingTvSeriesPagingRepository.kt index 1f62643..5c2e055 100644 --- a/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/TrendingTvSeriesPagingRepository.kt +++ b/core/data/src/main/java/com/sample/tmdb/data/repository/tvshow/paging/TrendingTvSeriesPagingRepository.kt @@ -11,9 +11,7 @@ import javax.inject.Inject import javax.inject.Singleton @Singleton -class TrendingTvSeriesPagingRepository -@Inject -constructor( +class TrendingTvSeriesPagingRepository @Inject constructor( @ApplicationContext private val context: Context, private val tvShowApi: TVShowService, ) : BasePagingRepository() { diff --git a/features/feature-bookmark/src/main/java/com/sample/tmdb/bookmark/BookmarkMovieViewModel.kt b/features/feature-bookmark/src/main/java/com/sample/tmdb/bookmark/BookmarkMovieViewModel.kt index 31c794a..08f241c 100644 --- a/features/feature-bookmark/src/main/java/com/sample/tmdb/bookmark/BookmarkMovieViewModel.kt +++ b/features/feature-bookmark/src/main/java/com/sample/tmdb/bookmark/BookmarkMovieViewModel.kt @@ -7,7 +7,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class BookmarkMovieViewModel -@Inject -constructor(repository: @JvmSuppressWildcards BaseRepository>) : +class BookmarkMovieViewModel @Inject constructor(repository: @JvmSuppressWildcards BaseRepository>) : BaseViewModel>(repository) diff --git a/features/feature-bookmark/src/main/java/com/sample/tmdb/bookmark/BookmarkTVShowViewModel.kt b/features/feature-bookmark/src/main/java/com/sample/tmdb/bookmark/BookmarkTVShowViewModel.kt index b7ff7d8..b6a5f76 100644 --- a/features/feature-bookmark/src/main/java/com/sample/tmdb/bookmark/BookmarkTVShowViewModel.kt +++ b/features/feature-bookmark/src/main/java/com/sample/tmdb/bookmark/BookmarkTVShowViewModel.kt @@ -7,7 +7,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class BookmarkTVShowViewModel -@Inject -constructor(repository: @JvmSuppressWildcards BaseRepository>) : +class BookmarkTVShowViewModel @Inject constructor(repository: @JvmSuppressWildcards BaseRepository>) : BaseViewModel>(repository) diff --git a/features/feature-credit/src/main/java/com/sample/tmdb/credit/PersonViewModel.kt b/features/feature-credit/src/main/java/com/sample/tmdb/credit/PersonViewModel.kt index 7210770..b4236c0 100644 --- a/features/feature-credit/src/main/java/com/sample/tmdb/credit/PersonViewModel.kt +++ b/features/feature-credit/src/main/java/com/sample/tmdb/credit/PersonViewModel.kt @@ -9,9 +9,7 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class PersonViewModel -@Inject -constructor(repository: BaseRepository, savedStateHandle: SavedStateHandle) : +class PersonViewModel @Inject constructor(repository: BaseRepository, savedStateHandle: SavedStateHandle) : TMDbViewModel( repository, savedStateHandle[MainDestinations.TMDB_PERSON_KEY], diff --git a/features/feature-detail/src/main/java/com/sample/tmdb/detail/MovieDetailViewModel.kt b/features/feature-detail/src/main/java/com/sample/tmdb/detail/MovieDetailViewModel.kt index 8c4f79c..e7faaa4 100644 --- a/features/feature-detail/src/main/java/com/sample/tmdb/detail/MovieDetailViewModel.kt +++ b/features/feature-detail/src/main/java/com/sample/tmdb/detail/MovieDetailViewModel.kt @@ -9,9 +9,7 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class MovieDetailViewModel -@Inject -constructor( +class MovieDetailViewModel @Inject constructor( bookmarkRepository: BookmarkDetailsRepository, repository: BaseDetailRepository, savedStateHandle: SavedStateHandle, diff --git a/features/feature-detail/src/main/java/com/sample/tmdb/detail/TVShowDetailViewModel.kt b/features/feature-detail/src/main/java/com/sample/tmdb/detail/TVShowDetailViewModel.kt index 81642b0..d4c0d93 100644 --- a/features/feature-detail/src/main/java/com/sample/tmdb/detail/TVShowDetailViewModel.kt +++ b/features/feature-detail/src/main/java/com/sample/tmdb/detail/TVShowDetailViewModel.kt @@ -9,9 +9,7 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class TVShowDetailViewModel -@Inject -constructor( +class TVShowDetailViewModel @Inject constructor( bookmarkRepository: BookmarkDetailsRepository, repository: BaseDetailRepository, savedStateHandle: SavedStateHandle, diff --git a/features/feature-feed/src/main/java/com/sample/tmdb/feed/MovieFeedViewModel.kt b/features/feature-feed/src/main/java/com/sample/tmdb/feed/MovieFeedViewModel.kt index dd08390..9f09a69 100644 --- a/features/feature-feed/src/main/java/com/sample/tmdb/feed/MovieFeedViewModel.kt +++ b/features/feature-feed/src/main/java/com/sample/tmdb/feed/MovieFeedViewModel.kt @@ -6,7 +6,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class MovieFeedViewModel -@Inject -constructor(repository: BaseFeedRepository) : +class MovieFeedViewModel @Inject constructor(repository: BaseFeedRepository) : BaseFeedViewModel(repository) diff --git a/features/feature-feed/src/main/java/com/sample/tmdb/feed/TVShowFeedViewModel.kt b/features/feature-feed/src/main/java/com/sample/tmdb/feed/TVShowFeedViewModel.kt index 2ad2163..6d61bfd 100644 --- a/features/feature-feed/src/main/java/com/sample/tmdb/feed/TVShowFeedViewModel.kt +++ b/features/feature-feed/src/main/java/com/sample/tmdb/feed/TVShowFeedViewModel.kt @@ -6,7 +6,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class TVShowFeedViewModel -@Inject -constructor(repository: BaseFeedRepository) : +class TVShowFeedViewModel @Inject constructor(repository: BaseFeedRepository) : BaseFeedViewModel(repository) diff --git a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/DiscoverMoviesViewModel.kt b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/DiscoverMoviesViewModel.kt index ef0ffea..c8cacbf 100644 --- a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/DiscoverMoviesViewModel.kt +++ b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/DiscoverMoviesViewModel.kt @@ -8,7 +8,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class DiscoverMoviesViewModel -@Inject -constructor(@Discover repository: BasePagingRepository) : +class DiscoverMoviesViewModel @Inject constructor(@Discover repository: BasePagingRepository) : BaseMainPagingViewModel(repository) diff --git a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/NowPlayingMoviesViewModel.kt b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/NowPlayingMoviesViewModel.kt index 11af64f..d2a9e2a 100644 --- a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/NowPlayingMoviesViewModel.kt +++ b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/NowPlayingMoviesViewModel.kt @@ -8,7 +8,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class NowPlayingMoviesViewModel -@Inject -constructor(@NowPlaying repository: BasePagingRepository) : +class NowPlayingMoviesViewModel @Inject constructor(@NowPlaying repository: BasePagingRepository) : BaseMainPagingViewModel(repository) diff --git a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/PopularMoviesViewModel.kt b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/PopularMoviesViewModel.kt index 1ff09cc..293a4cd 100644 --- a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/PopularMoviesViewModel.kt +++ b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/PopularMoviesViewModel.kt @@ -8,7 +8,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class PopularMoviesViewModel -@Inject -constructor(@Popular repository: BasePagingRepository) : +class PopularMoviesViewModel @Inject constructor(@Popular repository: BasePagingRepository) : BaseMainPagingViewModel(repository) diff --git a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/SimilarMoviesViewModel.kt b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/SimilarMoviesViewModel.kt index 99f6159..a8d9598 100644 --- a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/SimilarMoviesViewModel.kt +++ b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/SimilarMoviesViewModel.kt @@ -10,9 +10,7 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class SimilarMoviesViewModel -@Inject -constructor( +class SimilarMoviesViewModel @Inject constructor( @Similar repository: BasePagingRepository, savedStateHandle: SavedStateHandle, ) : BaseMainPagingViewModel(repository, savedStateHandle[MainDestinations.TMDB_SIMILAR_ID]) diff --git a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/TopRatedMoviesViewModel.kt b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/TopRatedMoviesViewModel.kt index 82960d2..118d285 100644 --- a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/TopRatedMoviesViewModel.kt +++ b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/TopRatedMoviesViewModel.kt @@ -8,7 +8,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class TopRatedMoviesViewModel -@Inject -constructor(@TopRated repository: BasePagingRepository) : +class TopRatedMoviesViewModel @Inject constructor(@TopRated repository: BasePagingRepository) : BaseMainPagingViewModel(repository) diff --git a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/TrendingMoviesViewModel.kt b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/TrendingMoviesViewModel.kt index a549f37..60555b7 100644 --- a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/TrendingMoviesViewModel.kt +++ b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/TrendingMoviesViewModel.kt @@ -8,7 +8,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class TrendingMoviesViewModel -@Inject -constructor(@Trending repository: BasePagingRepository) : +class TrendingMoviesViewModel @Inject constructor(@Trending repository: BasePagingRepository) : BaseMainPagingViewModel(repository) diff --git a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/UpcomingMoviesViewModel.kt b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/UpcomingMoviesViewModel.kt index 2af752e..32f3d39 100644 --- a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/UpcomingMoviesViewModel.kt +++ b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/movie/UpcomingMoviesViewModel.kt @@ -8,7 +8,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class UpcomingMoviesViewModel -@Inject -constructor(@Latest repository: BasePagingRepository) : +class UpcomingMoviesViewModel @Inject constructor(@Latest repository: BasePagingRepository) : BaseMainPagingViewModel(repository) diff --git a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/AiringTodayTvSeriesViewModel.kt b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/AiringTodayTvSeriesViewModel.kt index 7666026..eae4dd9 100644 --- a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/AiringTodayTvSeriesViewModel.kt +++ b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/AiringTodayTvSeriesViewModel.kt @@ -8,7 +8,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class AiringTodayTvSeriesViewModel -@Inject -constructor(@NowPlaying repository: BasePagingRepository) : +class AiringTodayTvSeriesViewModel @Inject constructor(@NowPlaying repository: BasePagingRepository) : BaseMainPagingViewModel(repository) diff --git a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/DiscoverTvSeriesViewModel.kt b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/DiscoverTvSeriesViewModel.kt index d1fc3d9..a277156 100644 --- a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/DiscoverTvSeriesViewModel.kt +++ b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/DiscoverTvSeriesViewModel.kt @@ -8,7 +8,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class DiscoverTvSeriesViewModel -@Inject -constructor(@Discover repository: BasePagingRepository) : +class DiscoverTvSeriesViewModel @Inject constructor(@Discover repository: BasePagingRepository) : BaseMainPagingViewModel(repository) diff --git a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/OnTheAirTvSeriesViewModel.kt b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/OnTheAirTvSeriesViewModel.kt index 4488b4e..00faf80 100644 --- a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/OnTheAirTvSeriesViewModel.kt +++ b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/OnTheAirTvSeriesViewModel.kt @@ -8,7 +8,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class OnTheAirTvSeriesViewModel -@Inject -constructor(@Latest repository: BasePagingRepository) : +class OnTheAirTvSeriesViewModel @Inject constructor(@Latest repository: BasePagingRepository) : BaseMainPagingViewModel(repository) diff --git a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/PopularTvSeriesViewModel.kt b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/PopularTvSeriesViewModel.kt index 55da977..22c5b3a 100644 --- a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/PopularTvSeriesViewModel.kt +++ b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/PopularTvSeriesViewModel.kt @@ -8,7 +8,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class PopularTvSeriesViewModel -@Inject -constructor(@Popular repository: BasePagingRepository) : +class PopularTvSeriesViewModel @Inject constructor(@Popular repository: BasePagingRepository) : BaseMainPagingViewModel(repository) diff --git a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/SimilarTvSeriesViewModel.kt b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/SimilarTvSeriesViewModel.kt index f12bcd7..1fe9926 100644 --- a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/SimilarTvSeriesViewModel.kt +++ b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/SimilarTvSeriesViewModel.kt @@ -10,9 +10,7 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class SimilarTvSeriesViewModel -@Inject -constructor( +class SimilarTvSeriesViewModel @Inject constructor( @Similar repository: BasePagingRepository, savedStateHandle: SavedStateHandle, ) : BaseMainPagingViewModel(repository, savedStateHandle[MainDestinations.TMDB_SIMILAR_ID]) diff --git a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/TopRatedTvSeriesViewModel.kt b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/TopRatedTvSeriesViewModel.kt index 19f6954..b168eda 100644 --- a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/TopRatedTvSeriesViewModel.kt +++ b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/TopRatedTvSeriesViewModel.kt @@ -8,7 +8,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class TopRatedTvSeriesViewModel -@Inject -constructor(@TopRated repository: BasePagingRepository) : +class TopRatedTvSeriesViewModel @Inject constructor(@TopRated repository: BasePagingRepository) : BaseMainPagingViewModel(repository) diff --git a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/TrendingTvSeriesViewModel.kt b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/TrendingTvSeriesViewModel.kt index 1c80f84..204aaca 100644 --- a/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/TrendingTvSeriesViewModel.kt +++ b/features/feature-paging/src/main/java/com/sample/tmdb/paging/main/tvshow/TrendingTvSeriesViewModel.kt @@ -8,7 +8,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel -class TrendingTvSeriesViewModel -@Inject -constructor(@Trending repository: BasePagingRepository) : +class TrendingTvSeriesViewModel @Inject constructor(@Trending repository: BasePagingRepository) : BaseMainPagingViewModel(repository)