package com.swiftcleaner.chovey

import com.swiftcleaner.chovey.util.SPUtils
import com.swiftcleaner.chovey.view.activity.StartActivity

object GlobalConfig {
    // 包名
    const val PACKAGE_NAME = "com.swiftcleaner.chovey"

    // 域名
    /**
     * Url Event 上报接口
     */
    const val URL_EVENT = "https://rp.sifatkhan95840.xyz"

    /**
     * Url Api 业务接口
     */
    const val URL_API = "https://api.sifatkhan95840.xyz"

    /**
     * Url Privacy 隐私链接
     */
    const val URL_PRIVACY = "https://sites.google.com/view/swift-cleaner/swift-clean"

    /**
     * Url Use 使用条款
     */
    const val URL_USE = ""

    /**
     * Key Aes 加密key
     */
    const val KEY_AES = "j2xlm90mibmbpekw"

    /**
     * Key solar 归因key
     */
    const val KEY_SOLAR = "17697786c4fcd7e9"
    /*  以下测试广告id*/
//    // admob广告位id
    inline val ID_ADMOB_OPEN get() = "/6499/example/app-open"
    inline val ID_ADMOB_INTER get() = "ca-app-pub-3940256099942544/1033173712"
    inline val ID_ADMOB_NATIVE get() = "ca-app-pub-3940256099942544/2247696110"
    inline val ID_ADMOB_BANNER get() = "ca-app-pub-3940256099942544/9214589741"
    inline val ID_ADMOB_REWARD get() = "None"


    // max广告位id
    inline val ID_MAX_OPEN get() = "None"
    inline val ID_MAX_INTER get() = "None"
    inline val ID_MAX_NATIVE get() = "None"
    inline val ID_MAX_BANNER get() = "None"
    inline val ID_MAX_REWARD get() = "None"

    /**
     * Key MAX MAX广告初始化key
     */
    const val KEY_MAX = "GGPreND6SRmCt1zJgn5faiLGD8c2PVGPLgPpSg7cHanVTud1DhtuI9MmteTqlEviaJ57WnxW68kQDaATJ5z3cW"


    /*以下正式广告id*/
    // admob广告位id
//    inline val ID_ADMOB_OPEN get() = "ca-app-pub-9723053978060994/2762540539"
//    inline val ID_ADMOB_INTER get() = "ca-app-pub-9723053978060994/3372651292"
//    inline val ID_ADMOB_NATIVE get() = "ca-app-pub-9723053978060994/4075622203"
//    inline val ID_ADMOB_BANNER get() = "ca-app-pub-9723053978060994/8272758212"
//    inline val ID_ADMOB_REWARD get() = ""
//
//    // max广告位id
//    inline val ID_MAX_OPEN get() = "d1d943cdd3127c90"
//    inline val ID_MAX_INTER get() = "b31e7f6d11ee659e"
//    inline val ID_MAX_NATIVE get() = "96e8fe78b0efc5d1"
//    inline val ID_MAX_BANNER get() = "ca-app-pub-3940256099942544/9214589741"
//    inline val ID_MAX_REWARD get() = ""

    /**
     * Key MAX MAX广告初始化key
     */
//    const val KEY_MAX =
//        "GGPreND6SRmCt1zJgn5faiLGD8c2PVGPLgPpSg7cHanVTud1DhtuI9MmteTqlEviaJ57WnxW68kQDaATJ5z3cW"

    //
    const val KEY_INIT = "key_init"
    const val KEY_CLEANUP_SIZE = "key_cleanup_size"
    const val KEY_SCORE = "key_score"
    const val KEY_APP_BACKGROUND = "key_app_background"
    const val KEY_NOTIFICATION_ID = "key_notification_id"
    const val KEY_HOME_COUNT = "key_home_count"
    const val KEY_INSTALL_TIME = "key_install_time"
    const val KEY_CLEAN_LAST_TIME = "key_clean_last_time"
    const val KEY_NOT_CLEAN_TIME = "key_not_clean_time"
    const val KEY_UUID = "key_uuid"
    const val KEY_GOOGLE_ADVERTISER_ID = "key_google_advertiser_id"
    const val KEY_DEVICE_NAME = "key_device_name"
    const val KEY_REFERRER = "referrer"

    const val ID_CLEAN_JUNK = 12000
    const val ID_WHATSAPP = 12010
    const val ID_APPMANAGER = 12010
    const val ID_BATTERY_INFO = 12020
    const val ID_LARGE_FILE_CLEANER = 12030
    const val ID_SIMILAR_PHOTOS = 12040
    const val ID_SCREENSHOT_CLEAN = 12050
    const val ID_APP_INSTALL = 12060
    const val ID_APP_UNINSTALL = 12070
    const val ID_NOT_CLEANED = 12080
    const val ID_BATTERY_LEVEL = 12090
    const val ID_APP_PROCESS = 12100
    const val ID_WHEATHER = 12087
    const val ID_XINGZUO = 12088

    val noLoadingActivities = listOf(
        "full", // 过滤全屏广告
        "adActivity",
        "AppLovinFullscreenActivity",
        StartActivity::class.java.simpleName,
        // 返回前台时不跳转启动页的 activity
    )

    inline var isInit
        get() = SPUtils.getInstance().getBoolean(KEY_INIT)
        set(value) = SPUtils.getInstance().putBoolean(KEY_INIT, value)
}