From edbffce8156122b31b925bf4dd8c909ab554a4e6 Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Mon, 27 Apr 2026 17:18:56 +0800 Subject: [PATCH] =?UTF-8?q?feat(sdk):=20=E5=88=9D=E5=A7=8B=E5=8C=96=20Andr?= =?UTF-8?q?oid=20SDK=20=E6=A0=B8=E5=BF=83=E5=8A=9F=E8=83=BD=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 SDK 配置管理、网络请求客户端和令牌存储功能 - 实现即时通讯 IM 模块,包括消息收发、群组管理和会话功能 - 集成推送服务和应用更新功能模块 - 创建示例应用演示 SDK 使用方法 - 配置项目依赖管理和构建设置 --- packages/common/src/config.ts | 2 +- packages/common/src/constants.ts | 4 ++-- packages/common/src/sdk.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/common/src/config.ts b/packages/common/src/config.ts index 5d626d0..93cf133 100644 --- a/packages/common/src/config.ts +++ b/packages/common/src/config.ts @@ -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 } diff --git a/packages/common/src/constants.ts b/packages/common/src/constants.ts index 9401452..ddd770b 100644 --- a/packages/common/src/constants.ts +++ b/packages/common/src/constants.ts @@ -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' diff --git a/packages/common/src/sdk.ts b/packages/common/src/sdk.ts index 3c1a459..714dd0a 100644 --- a/packages/common/src/sdk.ts +++ b/packages/common/src/sdk.ts @@ -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 */