Newer
Older
CasicSmartTube / app / src / main / java / com / casic / smarttube / utils / LocaleConstant.kt
package com.casic.smarttube.utils

import android.Manifest
import com.casic.smarttube.R


object LocaleConstant {
    /**
     * =============================================================================================
     * Array
     * =============================================================================================
     * */
    val USER_PERMISSIONS = arrayOf(
        Manifest.permission.ACCESS_LOCATION_EXTRA_COMMANDS,
        Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION,
        Manifest.permission.READ_PHONE_STATE, Manifest.permission.CAMERA,
        Manifest.permission.READ_MEDIA_IMAGES,
        Manifest.permission.MANAGE_EXTERNAL_STORAGE,
        Manifest.permission.READ_EXTERNAL_STORAGE,
        Manifest.permission.WRITE_EXTERNAL_STORAGE
    )
    val POPUP_IMAGES = intArrayOf(R.drawable.ic_menu_map, R.drawable.ic_satellite)
    val POPUP_TITLES = arrayOf("标准地图", "卫星地图")

    val DEVICE_OPERATE_IMAGES =
        intArrayOf(R.drawable.ic_order, R.drawable.ic_delete_white, R.drawable.ic_delete_white)
    val DEVICE_OPERATE_TITLES = arrayOf("浓度排序", "全部删除", "批量删除")

    /**
     * =============================================================================================
     * Int
     * =============================================================================================
     * */
    const val PERMISSIONS_CODE = 999
    const val PAGE_LIMIT = 20
    const val RADIUS_SIZE = 10 //相距多少米才聚合,单位:米

    /**
     * =============================================================================================
     * Long
     * =============================================================================================
     * */
    const val FIVE_YEARS = 5L * 365 * 60 * 60 * 24 * 1000L

    /**
     * =============================================================================================
     * String
     * =============================================================================================
     * */
    const val USER_DETAIL_MODEL = "userDetailModel"
    const val SERVER_BASE_URL = "http://111.198.10.15:11311"
    const val DEFAULT_SERVER_CONFIG = "defaultServerConfig"
    const val ACCOUNT = "account"
    const val PASSWORD = "password"
    const val APP_AUTHORITY = "com.casic.smarttube.fileprovider"
}