feat(mobile-next): 建立 v2 Token 唯一入口、内网地址与功能开关

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
编码工程师
2026-08-20 02:30:09 +08:00
co-authored by Cursor multica-agent
parent 45d91684bc
commit d787c0a477
11 changed files with 384 additions and 81 deletions
@@ -0,0 +1,15 @@
import 'package:openim_common/openim_common.dart';
import '../brand/apply_official_styles.dart';
import 'app_endpoints.dart';
/// 启动时注入内网地址与官方 Styles→Token 映射。不改 SDK 核心。
class CompanyBootstrap {
CompanyBootstrap._();
static Future<void> install() async {
applyOfficialStylesFromTokens();
await DataSp.putServerConfig(AppEndpoints.toServerConfig());
ApiService().setBaseUrl(AppEndpoints.host);
}
}