Add ads to dashboard (#1815)

This commit is contained in:
Rafał Borcz 2022-06-26 13:28:35 +02:00 committed by GitHub
parent c808bf2e61
commit d8f644c5b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 621 additions and 85 deletions

View file

@ -4,7 +4,9 @@ import io.github.wulkanowy.data.repositories.PreferencesRepository
import io.github.wulkanowy.data.repositories.StudentRepository
import io.github.wulkanowy.services.sync.SyncManager
import io.github.wulkanowy.ui.base.ErrorHandler
import io.github.wulkanowy.utils.AdsHelper
import io.github.wulkanowy.utils.AnalyticsHelper
import io.github.wulkanowy.utils.AppInfo
import io.mockk.*
import io.mockk.impl.annotations.MockK
import kotlinx.serialization.json.Json
@ -31,6 +33,12 @@ class MainPresenterTest {
@MockK(relaxed = true)
lateinit var analytics: AnalyticsHelper
@MockK(relaxed = true)
lateinit var appInfo: AppInfo
@MockK(relaxed = true)
lateinit var adsHelper: AdsHelper
private lateinit var presenter: MainPresenter
@Before
@ -42,10 +50,12 @@ class MainPresenterTest {
presenter = MainPresenter(
errorHandler = errorHandler,
studentRepository = studentRepository,
prefRepository = prefRepository,
preferencesRepository = prefRepository,
syncManager = syncManager,
analytics = analytics,
json = Json
json = Json,
appInfo = appInfo,
adsHelper = adsHelper
)
presenter.onAttachView(mainView, null)
}