package com.base.locationsharewhite.helper.config

import com.base.locationsharewhite.BuildConfig
import com.base.locationsharewhite.R

/**
 * 部分常量配置相关，如admob广告位id与通知渠道等
 */
object ConstConfig {

    //用于替换广告位，区分debug与正式广告位id
    inline val openAdId get() = if (BuildConfig.DEBUG) openAdmobIdTest else openAdmobId
    inline val bannerAdId get() = if (BuildConfig.DEBUG) bannerAdmobIdTest else bannerAdmobId
    inline val insertAdId get() = if (BuildConfig.DEBUG) interAdmobIdTest else interAdmobId
    inline val nativeAdId get() = if (BuildConfig.DEBUG) nativeAdmobIdTest else nativeAdmobId

    //云控remoteConfig对应的key
    const val REMOTE_MSG = "MsgConfig"//云控消息配置对应的key
    const val REMOTE_AD = "AdmobConfig"//云控广告配置对应的key


    //admob test id
    const val openAdmobIdTest = "ca-app-pub-3940256099942544/9257395921"
    const val bannerAdmobIdTest = "ca-app-pub-3940256099942544/9214589741"
    const val interAdmobIdTest = "ca-app-pub-3940256099942544/1033173712"
    const val nativeAdmobIdTest = "ca-app-pub-3940256099942544/2247696110"

    // admob广告id
    const val interAdmobId = "ca-app-pub-3940256099942544/1033173111"
    const val nativeAdmobId = "ca-app-pub-3940256099942544/2247696111"
    const val openAdmobId = "/6499/example/app-open"
    const val bannerAdmobId = "ca-app-pub-3940256099942544/9214581111"

    //通知相关配置
    const val CHANNEL_ID = "msg_notification_id" // 通知渠道ID
    const val CHANNEL_NAME = "msg_fcm_channel" // 通知渠道名称
    const val NOTIFICATION_ID = 8889//普通通知id
    const val NOTIFICATION_PERMANENT_ID = 10001//常驻通知id
    val NOTIFICATION_LOGO = R.mipmap.logo

    //通知栏的一些应用事件，自己定咯，不同事件和不同的自定义通知栏视图
    const val ACTION_STAY_HOME = 0
    const val ACTION_STAY_MY_CODE = 1
    const val ACTION_STAY_SHARE = 2
    const val ACTION_STAY_SETTING = 3
    const val ACTION_SHARE_LOCATION = 4
    const val ACTION_ENABLE_LOCATION = 5
    const val ACTION_COPY_CODE = 6

}