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);
  }
}
