feat(sdk): 初始化 Android SDK 核心功能模块
- 添加 SDK 配置管理、网络请求客户端和令牌存储功能 - 实现即时通讯 IM 模块,包括消息收发、群组管理和会话功能 - 集成推送服务和应用更新功能模块 - 创建示例应用演示 SDK 使用方法 - 配置项目依赖管理和构建设置
这个提交包含在:
父节点
624554a173
当前提交
74faf6ffc0
@ -6,11 +6,11 @@
|
|||||||
|
|
||||||
| 服务 | 地址 | 说明 |
|
| 服务 | 地址 | 说明 |
|
||||||
|------|------|------|
|
|------|------|------|
|
||||||
| 租户服务 | `https://sentry.xuqinmin.com/api/` | 认证、应用、子账号、运营平台 |
|
| 租户服务 | `https://dev.xuqinmin.com/api/` | 认证、应用、子账号、运营平台 |
|
||||||
| IM HTTP | `https://sentry.xuqinmin.com/api/im/` | IM 登录、消息发送、撤回、历史消息 |
|
| IM HTTP | `https://dev.xuqinmin.com/api/im/` | IM 登录、消息发送、撤回、历史消息 |
|
||||||
| IM WebSocket | `wss://sentry.xuqinmin.com/ws/im` | 实时消息 |
|
| IM WebSocket | `wss://dev.xuqinmin.com/ws/im` | 实时消息 |
|
||||||
| App 更新 | `https://sentry.xuqinmin.com/api/v1/updates/` | 原生版本管理 |
|
| App 更新 | `https://dev.xuqinmin.com/api/v1/updates/` | 原生版本管理 |
|
||||||
| RN 热更新 | `https://sentry.xuqinmin.com/api/v1/rn/` | Bundle 热更新 |
|
| RN 热更新 | `https://dev.xuqinmin.com/api/v1/rn/` | Bundle 热更新 |
|
||||||
|
|
||||||
## 初始化管理员账号
|
## 初始化管理员账号
|
||||||
|
|
||||||
@ -119,7 +119,7 @@
|
|||||||
### 运营平台登录
|
### 运营平台登录
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -X POST 'https://sentry.xuqinmin.com/api/auth/ops/login' \
|
curl -X POST 'https://dev.xuqinmin.com/api/auth/ops/login' \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d '{"username":"admin","password":"Admin@123456"}'
|
-d '{"username":"admin","password":"Admin@123456"}'
|
||||||
```
|
```
|
||||||
@ -127,17 +127,17 @@ curl -X POST 'https://sentry.xuqinmin.com/api/auth/ops/login' \
|
|||||||
### App 更新检查
|
### App 更新检查
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl 'https://sentry.xuqinmin.com/api/v1/updates/app/check?appId=ak_demo_chat&platform=ANDROID¤tVersionCode=1'
|
curl 'https://dev.xuqinmin.com/api/v1/updates/app/check?appId=ak_demo_chat&platform=ANDROID¤tVersionCode=1'
|
||||||
```
|
```
|
||||||
|
|
||||||
### RN 热更新检查
|
### RN 热更新检查
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl 'https://sentry.xuqinmin.com/api/v1/rn/update/check?appId=ak_demo_chat&platform=ANDROID&moduleId=chat-home¤tVersion=1.0.0'
|
curl 'https://dev.xuqinmin.com/api/v1/rn/update/check?appId=ak_demo_chat&platform=ANDROID&moduleId=chat-home¤tVersion=1.0.0'
|
||||||
```
|
```
|
||||||
|
|
||||||
### IM 登录
|
### IM 登录
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -X POST 'https://sentry.xuqinmin.com/api/im/auth/login?appId=ak_demo_chat&userId=demo_alice'
|
curl -X POST 'https://dev.xuqinmin.com/api/im/auth/login?appId=ak_demo_chat&userId=demo_alice'
|
||||||
```
|
```
|
||||||
|
|||||||
正在加载...
在新工单中引用
屏蔽一个用户