![JAR search and dependency download from the Maven repository](/logo.png)
com.hiczp.bilibili.api.BilibiliClientProperties.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bilibili-api Show documentation
Show all versions of bilibili-api Show documentation
Bilibili Android client API library for Kotlin
package com.hiczp.bilibili.api
/**
* 客户端固有属性. 包括版本号, 密钥以及硬件编码.
* 默认值对应 5.37.0(release-b220051) 版本.
*/
class BilibiliClientProperties {
/**
* 默认 UA, 用于大多数访问
*/
@Suppress("SpellCheckingInspection")
var defaultUserAgent = "Mozilla/5.0 BiliDroid/5.37.0 ([email protected])"
/**
* Android 平台的 appKey(该默认值为普通版客户端, 非概念版)
*/
var appKey = "1d8b6e7d45233436"
/**
* 由反编译 so 文件得到的 appSecret, 与 appKey 必须匹配
*/
@Suppress("SpellCheckingInspection")
var appSecret = "560c52ccd288fed045859ed18bffd973"
/**
* 获取视频播放地址使用的 appKey, 与访问其他 RestFulAPI 所用的 appKey 是不一样的
*/
@Suppress("SpellCheckingInspection")
var videoAppKey = "iVGUTjsxvpLeuDCf"
/**
* 获取视频播放地址所用的 appSecret
*/
@Suppress("SpellCheckingInspection")
var videoAppSecret = "aHRmhWMLkdeMuILqORnYZocwMBpMEOdt"
/**
* 客户端平台
*/
var platform = "android"
/**
* 客户端类型
* 此属性在旧版客户端不存在
*/
var channel = "html5_app_bili"
/**
* 硬件 ID, 尚不明确生成算法
*/
@Suppress("SpellCheckingInspection")
var hardwareId = "aBRoDWAVeRhsA3FDewMzS3lLMwM"
/**
* 屏幕尺寸, 大屏手机(已经没有小屏手机了)统一为 xxhdpi
* 此参数在新版客户端已经较少使用
*/
var scale = "xxhdpi"
/**
* 版本号
*/
var version = "5.37.0.5370000"
/**
* 构建版本号
*/
var build = "5370000"
/**
* 构建版本 ID, 可能是某种 Hash
*/
var buildVersionId = "XXD9E43D7A1EBB6669597650E3EE417D9E7F5"
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy