feat(ads): Yandex Mobile Ads SDK 설정을 추가한다
This commit is contained in:
@@ -232,6 +232,9 @@ dependencies {
|
||||
// Appsflyer
|
||||
implementation 'com.appsflyer:af-android-sdk:6.17.4'
|
||||
|
||||
// Yandex Mobile Ads
|
||||
implementation 'com.yandex.android:mobileads:7.18.5'
|
||||
|
||||
// 노티플라이
|
||||
implementation 'com.github.team-michael:notifly-android-sdk:1.12.0'
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ import com.facebook.FacebookSdk
|
||||
import com.kakao.sdk.common.KakaoSdk
|
||||
import com.orhanobut.logger.AndroidLogAdapter
|
||||
import com.orhanobut.logger.Logger
|
||||
import com.yandex.mobile.ads.common.MobileAds
|
||||
import kr.co.vividnext.sodalive.BuildConfig
|
||||
import kr.co.vividnext.sodalive.R
|
||||
import kr.co.vividnext.sodalive.chat.talk.room.ChatRoomPreferenceManager
|
||||
@@ -52,6 +53,8 @@ class SodaLiveApp : Application(), DefaultLifecycleObserver {
|
||||
setupAppsFlyer()
|
||||
|
||||
setupNotifly()
|
||||
|
||||
setupYandexAd()
|
||||
}
|
||||
|
||||
private fun isDebuggable(): Boolean {
|
||||
@@ -137,6 +140,10 @@ class SodaLiveApp : Application(), DefaultLifecycleObserver {
|
||||
)
|
||||
}
|
||||
|
||||
private fun setupYandexAd() {
|
||||
MobileAds.enableDebugErrorIndicator(BuildConfig.DEBUG && isDebuggable())
|
||||
}
|
||||
|
||||
override fun onStart(owner: LifecycleOwner) {
|
||||
super.onStart(owner)
|
||||
isAppInForeground = true
|
||||
|
||||
Reference in New Issue
Block a user