Skip to content

Commit

Permalink
Merge pull request #7 from mutukuian/Caching
Browse files Browse the repository at this point in the history
fix error in repository module
  • Loading branch information
mutukuian committed May 13, 2024
2 parents 00ddc72 + 6bda232 commit 00aee2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.example.kocelainterview.common.di.repositorymodule

import com.example.kocelainterview.data.local_data_source.ShipDao
import com.example.kocelainterview.data.remote.api_service.ShipsApi
import com.example.kocelainterview.data.repository.SearchControllerRepositoryImpl
import com.example.kocelainterview.data.repository.ShipRepositoryImpl
Expand All @@ -16,8 +17,8 @@ import javax.inject.Singleton
object RepositoryModule {
@Provides
@Singleton
fun providesShipRepository(api:ShipsApi):ShipRepository{
return ShipRepositoryImpl(api)
fun providesShipRepository(api:ShipsApi,shipDao: ShipDao):ShipRepository{
return ShipRepositoryImpl(api,shipDao)
}

@Provides
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.example.kocelainterview.data.local_data_source
import androidx.room.Database
import androidx.room.RoomDatabase

@Database(entities = [ShipEntity::class], version = 1)
@Database(entities = [ShipEntity::class], version = 1, exportSchema = false)
abstract class ShipDatabase:RoomDatabase (){
abstract fun shipDao():ShipDao
}

0 comments on commit 00aee2f

Please sign in to comment.