Skip to content

Commit

Permalink
Modify spotless changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali committed Sep 24, 2024
1 parent eb64746 commit 1eca4bc
Show file tree
Hide file tree
Showing 46 changed files with 46 additions and 137 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Movie> {
override suspend fun addBookmark(item: Movie) {
movieDao.addBookmark(item.asDatabaseModel())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Movie>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Movie>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Movie>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Movie>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Movie>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Movie>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Movie>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Movie>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<TVShow> {
override suspend fun addBookmark(item: TVShow) {
tvShowDao.addBookmark(item.asDatabaseModel())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<TVShow>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<TVShow>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<TVShow>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<TVShow>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<TVShow>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<TVShow>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<TVShow>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<TVShow>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class BookmarkMovieViewModel
@Inject
constructor(repository: @JvmSuppressWildcards BaseRepository<List<Movie>>) :
class BookmarkMovieViewModel @Inject constructor(repository: @JvmSuppressWildcards BaseRepository<List<Movie>>) :
BaseViewModel<List<Movie>>(repository)
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class BookmarkTVShowViewModel
@Inject
constructor(repository: @JvmSuppressWildcards BaseRepository<List<TVShow>>) :
class BookmarkTVShowViewModel @Inject constructor(repository: @JvmSuppressWildcards BaseRepository<List<TVShow>>) :
BaseViewModel<List<TVShow>>(repository)
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class PersonViewModel
@Inject
constructor(repository: BaseRepository<Person>, savedStateHandle: SavedStateHandle) :
class PersonViewModel @Inject constructor(repository: BaseRepository<Person>, savedStateHandle: SavedStateHandle) :
TMDbViewModel<Person>(
repository,
savedStateHandle[MainDestinations.TMDB_PERSON_KEY],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Movie>,
repository: BaseDetailRepository<MovieDetails>,
savedStateHandle: SavedStateHandle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<TVShow>,
repository: BaseDetailRepository<TvDetails>,
savedStateHandle: SavedStateHandle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class MovieFeedViewModel
@Inject
constructor(repository: BaseFeedRepository<Movie>) :
class MovieFeedViewModel @Inject constructor(repository: BaseFeedRepository<Movie>) :
BaseFeedViewModel<Movie>(repository)
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class TVShowFeedViewModel
@Inject
constructor(repository: BaseFeedRepository<TVShow>) :
class TVShowFeedViewModel @Inject constructor(repository: BaseFeedRepository<TVShow>) :
BaseFeedViewModel<TVShow>(repository)
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class DiscoverMoviesViewModel
@Inject
constructor(@Discover repository: BasePagingRepository<Movie>) :
class DiscoverMoviesViewModel @Inject constructor(@Discover repository: BasePagingRepository<Movie>) :
BaseMainPagingViewModel<Movie>(repository)
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class NowPlayingMoviesViewModel
@Inject
constructor(@NowPlaying repository: BasePagingRepository<Movie>) :
class NowPlayingMoviesViewModel @Inject constructor(@NowPlaying repository: BasePagingRepository<Movie>) :
BaseMainPagingViewModel<Movie>(repository)
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class PopularMoviesViewModel
@Inject
constructor(@Popular repository: BasePagingRepository<Movie>) :
class PopularMoviesViewModel @Inject constructor(@Popular repository: BasePagingRepository<Movie>) :
BaseMainPagingViewModel<Movie>(repository)
Original file line number Diff line number Diff line change
Expand Up @@ -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<Movie>,
savedStateHandle: SavedStateHandle,
) : BaseMainPagingViewModel<Movie>(repository, savedStateHandle[MainDestinations.TMDB_SIMILAR_ID])
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class TopRatedMoviesViewModel
@Inject
constructor(@TopRated repository: BasePagingRepository<Movie>) :
class TopRatedMoviesViewModel @Inject constructor(@TopRated repository: BasePagingRepository<Movie>) :
BaseMainPagingViewModel<Movie>(repository)
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class TrendingMoviesViewModel
@Inject
constructor(@Trending repository: BasePagingRepository<Movie>) :
class TrendingMoviesViewModel @Inject constructor(@Trending repository: BasePagingRepository<Movie>) :
BaseMainPagingViewModel<Movie>(repository)
Loading

0 comments on commit 1eca4bc

Please sign in to comment.