Skip to content

Commit

Permalink
modify code
Browse files Browse the repository at this point in the history
  • Loading branch information
elmahsieh authored May 16, 2024
1 parent d4a2155 commit 53709e3
Show file tree
Hide file tree
Showing 30 changed files with 0 additions and 60 deletions.
2 changes: 0 additions & 2 deletions MainActivity.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.NavController
Expand Down
2 changes: 0 additions & 2 deletions Movie.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv

import com.google.gson.annotations.SerializedName

data class Movie(
Expand Down
2 changes: 0 additions & 2 deletions MovieDetailsCallback.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv

interface MovieDetailsCallback {
fun onSuccess(movie: Movie)
fun onError(error: String)
Expand Down
2 changes: 0 additions & 2 deletions MovieDiffCallback.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv

import androidx.recyclerview.widget.DiffUtil

class MovieDiffCallback : DiffUtil.ItemCallback<Movie>() {
Expand Down
2 changes: 0 additions & 2 deletions MoviesAdapter.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv

import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
Expand Down
2 changes: 0 additions & 2 deletions MoviesFragmentDirections.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv

import android.os.Bundle
import androidx.navigation.NavDirections

Expand Down
2 changes: 0 additions & 2 deletions MoviesResponse.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv

data class MoviesResponse(
val page: Int,
val results: List<Movie>,
Expand Down
2 changes: 0 additions & 2 deletions MoviesViewModel.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv

import android.app.Application
import android.content.Context
import androidx.lifecycle.AndroidViewModel
Expand Down
2 changes: 0 additions & 2 deletions NotesAdapter.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv

import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.TextView
Expand Down
2 changes: 0 additions & 2 deletions SettingsViewModel.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv

import android.app.Application
import android.content.Context.MODE_PRIVATE
import androidx.lifecycle.AndroidViewModel
Expand Down
2 changes: 0 additions & 2 deletions animationSettings/AppPreferences.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.animationSettings

import android.content.Context

object AppPreferences {
Expand Down
2 changes: 0 additions & 2 deletions apiFragments/PopularMoviesFragment.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.apiFragments

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
Expand Down
2 changes: 0 additions & 2 deletions apiFragments/PopularMoviesFragmentDirections.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.apiFragments

import android.os.Bundle
import androidx.navigation.NavDirections
import com.ehsieh2.letswatchtv.R
Expand Down
2 changes: 0 additions & 2 deletions apiFragments/UpcomingMoviesFragment.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.apiFragments

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
Expand Down
2 changes: 0 additions & 2 deletions apiFragments/UpcomingMoviesFragmentDirection.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.apiFragments

import android.os.Bundle
import androidx.navigation.NavDirections
import com.ehsieh2.letswatchtv.R
Expand Down
2 changes: 0 additions & 2 deletions dataHandler/Api.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.dataHandler

import com.ehsieh2.letswatchtv.Movie
import com.ehsieh2.letswatchtv.MoviesResponse
import retrofit2.Call
Expand Down
2 changes: 0 additions & 2 deletions dataHandler/AssetJsonReader.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.dataHandler

import android.content.Context
import com.ehsieh2.letswatchtv.MoviesResponse
import com.google.gson.Gson
Expand Down
2 changes: 0 additions & 2 deletions dataHandler/RetrofitClient.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.dataHandler

import okhttp3.Interceptor
import okhttp3.OkHttpClient
import okhttp3.Response
Expand Down
2 changes: 0 additions & 2 deletions dataHandler/moviesRepository.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.dataHandler

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.ehsieh2.letswatchtv.Movie
Expand Down
2 changes: 0 additions & 2 deletions fragments/HomeFragment.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.fragments

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
Expand Down
2 changes: 0 additions & 2 deletions fragments/InfoFragment.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.fragments

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
Expand Down
2 changes: 0 additions & 2 deletions fragments/MovieDetailsFragment.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.fragments

import android.widget.ImageView
import android.os.Bundle
import android.view.LayoutInflater
Expand Down
2 changes: 0 additions & 2 deletions fragments/MoviesFragment.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.fragments

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
Expand Down
2 changes: 0 additions & 2 deletions fragments/NotepadFragment.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.fragments

import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
Expand Down
2 changes: 0 additions & 2 deletions fragments/SettingsFragment.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.fragments

import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
Expand Down
2 changes: 0 additions & 2 deletions heartedMoviesManager/FavoritesManager.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
package com.ehsieh2.letswatchtv.heartedMoviesManager

class FavoritesManager {
}
2 changes: 0 additions & 2 deletions showRateAppDialog.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv

import android.app.AlertDialog
import android.view.LayoutInflater
import android.widget.RatingBar
Expand Down
2 changes: 0 additions & 2 deletions ui/theme/Color.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.ui.theme

import androidx.compose.ui.graphics.Color

val Purple80 = Color(0xFFD0BCFF)
Expand Down
2 changes: 0 additions & 2 deletions ui/theme/Theme.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.ui.theme

import android.app.Activity
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
Expand Down
2 changes: 0 additions & 2 deletions ui/theme/Type.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package com.ehsieh2.letswatchtv.ui.theme

import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontFamily
Expand Down

0 comments on commit 53709e3

Please sign in to comment.