package com.yidian.bcommon.constant

import com.yidian.bcommon.BuildConfig


/**
 * 应用的配置信息(常量配置)
 */
class AppConfig {
  companion object {

    // 域名
    const val DEV_DOMAIN = "http://bp-dev.go2yd.com"
    const val TEST_DOMAIN = "http://bp-test.go2yd.com"
    const val PROD_DOMAIN = "https://bp.go2yd.com"

    // 业务线
    const val appIdMerchantB = "merchant-b"
    const val appIdMerchantC = "merchant-c"

    // 客户端版本号
    const val cv = BuildConfig.VERSION_NAME

    // 分发
    const val distribution = "official"

    // 平台
    const val platform = "1"

    // TowerPro 动态下发管理
    const val TowerProAppUpgradePlatformId = 29 // App版本升级
    const val TowerProXBridUpgradePlatformId = 32 // XBrid版本升级
    const val TowerProPlatform = "Android"

    // Tower Api域名定义
    const val TowerApiDomainTest = "http://open-tower-api.test.int.yidian-inc.com:8222"
    const val TowerApiDomainPro = "https://open-tower-api.go2yd.com"

    // TowerPro 通用配置模块
    const val TowerApiEnvTest = 0 // 测试环境
    const val TowerApiEnvPro = 2 // 外网-正式环境
    const val TowerApiOS = "2" // 0:ios 1:安卓 2:全部
    const val TowerApiKeyTagMerchantB = "function-config"
    const val TowerApiKeyTagMerchantC = "function-config-c"
    const val TowerApiVersion = "1.0.0"

    // 任意门域名定义
    const val JiraDomain = "https://hub.go2yd.com"

    // 用户反馈配置
    const val feedbackAssignee = "chengxiaofeng" // 经办人
    const val feedbackProject = "10721" // 项目
    const val feedbackIssueType = "10001" // 问题类型
    const val feedbackPriority = "4" // 优先级
    const val feedbackPlatform = "Android" // 平台
    const val feedbackDefaultSummary = "something's wrong" // 默认问题概要

    // XInsight配置
    const val XInsightEnvDev = 0 // 开发环境
    const val XInsightEnvTest = 1 // 测试环境
    const val XInsightEnvPre = 2 // 预生产环境
    const val XInsightEnvPro = 3 // 生产环境

    // 分享相关的三方平台配置
    const val WeChatAppKey = "wxef4c37f254e29e84"
    const val WeChatAppSecret = "fb596ed3641b481b6f973774987fd04f"
    const val QQAppKey = "101923771"
    const val QQAppSecret = "c34d63cfcf9f8b13a71f48424b48d692"
    const val SinaAppKey = "4157874278"
    const val SinaAppSecret = "85c422bc0a1e0553e6a6a075701422a7"
    const val SinaCallBackUrl = "https://api.weibo.com/oauth2/default.html"

    // 用户协议
    const val userProtocol = "http://merchant.jwshq.cn/home/agreement"

    // 隐私政策
    const val privacyPolicy = "http://merchant.jwshq.cn/home/policy"

    // 我的钱包 - 常见问题
    const val commonProblem = "https://www.appgc.cn/plugins/privacy/content?type=privacy&appId=1080334&ver=210601"

    // 友盟测试环境配置
    const val UMAppTestKey = "60c8479fe044530ff0a49936"//umeng统计key注释
    const val UMTestChannel = "android_test"
    const val UMTestPushSecret = "e78446e86d153e2891ae7523e1532f13"// push secret

    // 友盟线上环境配置
    const val UMAppKey = "60ccc0c68a102159db70438c"//umeng统计key注释
    const val UMChannel = "android_prod"
    const val UMPushSecret = "27ac72f77ef4ff6593cca8be3069ecd0"// push secret
    const val PUSH_XIAOMI_SUPPORT_MASK = 0x40000000
    const val PUSH_UMENG_SUPPORT_MASK = 0x20000000
    const val PUSH_GETUI_SUPPORT_MASK = 0x10000000
    const val PUSH_PASS_THROGH_UNIQUE_MASK = 0x00000001

    const val PUSH_LEVEL = (PUSH_XIAOMI_SUPPORT_MASK or PUSH_UMENG_SUPPORT_MASK
      or PUSH_GETUI_SUPPORT_MASK or PUSH_PASS_THROGH_UNIQUE_MASK)
  }
}
