feat(sdk): 初始化 Android SDK 核心功能模块

- 添加 SDK 配置管理、网络请求客户端和令牌存储功能
- 实现即时通讯 IM 模块,包括消息收发、群组管理和会话功能
- 集成推送服务和应用更新功能模块
- 创建示例应用演示 SDK 使用方法
- 配置项目依赖管理和构建设置
这个提交包含在:
XuqmGroup 2026-04-27 17:18:56 +08:00
父节点 afe13d1c90
当前提交 edbffce815
共有 3 个文件被更改,包括 5 次插入5 次删除

查看文件

@ -1,6 +1,6 @@
export interface XuqmInitOptions {
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
debug?: boolean
}

查看文件

@ -4,9 +4,9 @@
* XuqmSDK.initialize(). These constants are kept only as fallback
* 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.
*/
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.
*
* @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.debug - Enable verbose logging
*/
@ -38,7 +38,7 @@ export const XuqmSDK = {
* Kept for backward compatibility; prefer initialize() for production use.
*
* @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.debug - Enable verbose logging
*/