Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Commit

Permalink
Adds missing provider method for new Objective DAO
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgeMucientes committed Sep 19, 2024
1 parent 11af0e4 commit 9be674b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import org.wordpress.android.fluxc.persistence.RemoteConfigDao
import org.wordpress.android.fluxc.persistence.WPAndroidDatabase
import org.wordpress.android.fluxc.persistence.WPAndroidDatabase.Companion.buildDb
import org.wordpress.android.fluxc.persistence.blaze.BlazeCampaignsDao
import org.wordpress.android.fluxc.persistence.blaze.BlazeObjectivesDao
import org.wordpress.android.fluxc.persistence.blaze.BlazeTargetingDao
import org.wordpress.android.fluxc.persistence.bloggingprompts.BloggingPromptsDao
import org.wordpress.android.fluxc.persistence.comments.CommentsDao
Expand Down Expand Up @@ -95,6 +96,12 @@ class DatabaseModule {
return wpAndroidDatabase.blazeTargetingDao()
}

@Singleton
@Provides
fun provideBlazeObjectivesDao(wpAndroidDatabase: WPAndroidDatabase): BlazeObjectivesDao {
return wpAndroidDatabase.blazeObjectivesDao()
}

@Singleton
@Provides
fun provideJetpackSocialDao(wpAndroidDatabase: WPAndroidDatabase): JetpackSocialDao {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import org.wordpress.android.fluxc.persistence.PlanOffersDao.PlanOfferId
import org.wordpress.android.fluxc.persistence.RemoteConfigDao.RemoteConfig
import org.wordpress.android.fluxc.persistence.blaze.BlazeCampaignsDao
import org.wordpress.android.fluxc.persistence.blaze.BlazeCampaignsDao.BlazeCampaignEntity
import org.wordpress.android.fluxc.persistence.blaze.BlazeObjectivesDao
import org.wordpress.android.fluxc.persistence.blaze.BlazeObjectivesDao.BlazeCampaignObjectiveEntity
import org.wordpress.android.fluxc.persistence.blaze.BlazeTargetingDao
import org.wordpress.android.fluxc.persistence.blaze.BlazeTargetingDeviceEntity
Expand Down Expand Up @@ -101,6 +102,8 @@ abstract class WPAndroidDatabase : RoomDatabase() {

abstract fun jetpackSocialDao(): JetpackSocialDao

abstract fun blazeObjectivesDao(): BlazeObjectivesDao

@Suppress("MemberVisibilityCanBePrivate")
companion object {
const val WP_DB_NAME = "wp-android-database"
Expand Down

0 comments on commit 9be674b

Please sign in to comment.