Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Generic adapter implementation.
  • Loading branch information
muratbilir committed Aug 17, 2023
1 parent bdbaa59 commit 40b1176
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ indent_size = 2
[*.{kt, kts, java}]
indent_size = 4
max_line_length = 120
ij_kotlin_imports_layout=*,java.**,javax.**,kotlin.**,^
ij_kotlin_imports_layout=*,java.**,javax.**,kotlin.**,kotlinx.**,^
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package com.adesso.movee.internal.util.api

import com.adesso.movee.internal.util.Failure
import com.adesso.movee.internal.util.NetworkConnectivityListener
import javax.inject.Inject
import okhttp3.Interceptor
import okhttp3.Protocol
import okhttp3.Response
import okhttp3.ResponseBody.Companion.toResponseBody
import javax.inject.Inject

class NetworkConnectivityInterceptor @Inject constructor(
private val networkConnectivityListener: NetworkConnectivityListener
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.adesso.movee.internal.util.api

import java.io.IOException
import java.net.HttpURLConnection
import okhttp3.Interceptor
import okhttp3.Response
import okhttp3.logging.HttpLoggingInterceptor
import java.io.IOException
import java.net.HttpURLConnection

/**
* Retry the request in case of "Account Over Queries Per Second Limit" error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import com.adesso.movee.scene.moviedetail.model.MovieDetailUiModel
import com.github.michaelbull.result.onFailure
import com.github.michaelbull.result.onSuccess
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import javax.inject.Inject

@HiltViewModel
class MovieDetailViewModel @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.adesso.movee.scene.movielist

import androidx.lifecycle.ViewModel
import androidx.lifecycle.navigate
import androidx.lifecycle.viewModelScope
import com.adesso.movee.base.handleFailure
import com.adesso.movee.base.navigate
Expand All @@ -11,11 +10,11 @@ import com.adesso.movee.scene.movielist.model.MovieUiModel
import com.github.michaelbull.result.onFailure
import com.github.michaelbull.result.onSuccess
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.launch
import javax.inject.Inject

@HiltViewModel
class MovieListViewModel @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package com.adesso.movee.scene.movielist.model
import android.os.Parcelable
import com.adesso.movee.base.ListAdapterItem
import com.adesso.movee.internal.extension.formatDate
import kotlinx.parcelize.Parcelize
import java.time.LocalDate
import kotlinx.parcelize.Parcelize

@Parcelize
data class MovieUiModel(
Expand Down

0 comments on commit 40b1176

Please sign in to comment.