feat(sdk): 初始化 Android SDK 核心功能模块
- 添加 SDK 配置管理、网络请求客户端和令牌存储功能 - 实现即时通讯 IM 模块,包括消息收发、群组管理和会话功能 - 集成推送服务和应用更新功能模块 - 创建示例应用演示 SDK 使用方法 - 配置项目依赖管理和构建设置
这个提交包含在:
父节点
afe13d1c90
当前提交
edbffce815
@ -1,6 +1,6 @@
|
|||||||
export interface XuqmInitOptions {
|
export interface XuqmInitOptions {
|
||||||
appId: string
|
appId: string
|
||||||
serverUrl: string // e.g. "https://sentry.xuqinmin.com" — SDK fetches config from here
|
serverUrl: string // e.g. "https://dev.xuqinmin.com" — SDK fetches config from here
|
||||||
appKey?: string
|
appKey?: string
|
||||||
debug?: boolean
|
debug?: boolean
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,9 +4,9 @@
|
|||||||
* XuqmSDK.initialize(). These constants are kept only as fallback
|
* XuqmSDK.initialize(). These constants are kept only as fallback
|
||||||
* references and for backward compatibility.
|
* references and for backward compatibility.
|
||||||
*/
|
*/
|
||||||
export const API_BASE_URL = 'https://sentry.xuqinmin.com'
|
export const API_BASE_URL = 'https://dev.xuqinmin.com'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated See API_BASE_URL.
|
* @deprecated See API_BASE_URL.
|
||||||
*/
|
*/
|
||||||
export const IM_WS_URL = 'wss://sentry.xuqinmin.com/ws/im'
|
export const IM_WS_URL = 'wss://dev.xuqinmin.com/ws/im'
|
||||||
|
|||||||
@ -6,7 +6,7 @@ export const XuqmSDK = {
|
|||||||
* Recommended for production use.
|
* Recommended for production use.
|
||||||
*
|
*
|
||||||
* @param options.appId - Your application ID (from the tenant platform)
|
* @param options.appId - Your application ID (from the tenant platform)
|
||||||
* @param options.serverUrl - Base URL of the tenant platform, e.g. "https://sentry.xuqinmin.com"
|
* @param options.serverUrl - Base URL of the tenant platform, e.g. "https://dev.xuqinmin.com"
|
||||||
* @param options.appKey - Optional; defaults to appId
|
* @param options.appKey - Optional; defaults to appId
|
||||||
* @param options.debug - Enable verbose logging
|
* @param options.debug - Enable verbose logging
|
||||||
*/
|
*/
|
||||||
@ -38,7 +38,7 @@ export const XuqmSDK = {
|
|||||||
* Kept for backward compatibility; prefer initialize() for production use.
|
* Kept for backward compatibility; prefer initialize() for production use.
|
||||||
*
|
*
|
||||||
* @param options.appId - Your application ID (from the tenant platform)
|
* @param options.appId - Your application ID (from the tenant platform)
|
||||||
* @param options.serverUrl - Base URL of the tenant platform, e.g. "https://sentry.xuqinmin.com"
|
* @param options.serverUrl - Base URL of the tenant platform, e.g. "https://dev.xuqinmin.com"
|
||||||
* @param options.appKey - Optional; defaults to appId
|
* @param options.appKey - Optional; defaults to appId
|
||||||
* @param options.debug - Enable verbose logging
|
* @param options.debug - Enable verbose logging
|
||||||
*/
|
*/
|
||||||
|
|||||||
正在加载...
在新工单中引用
屏蔽一个用户