@ -125,7 +125,7 @@ void main() async {
// FlutterBugly.init(androidAppId: "204f207673",iOSAppId: "8bb92ba0f6");
}
final XgFlutterPlugin xgFlutterPlugin = XgFlutterPlugin();
// final XgFlutterPlugin xgFlutterPlugin = XgFlutterPlugin();
@ -139,8 +139,9 @@ class _MainPage extends State<MainPage> with WidgetsBindingObserver {
queryUserInfo();
initSdk() async {
xgFlutterPlugin.stopXg();
///ios 调用startXg前需要调用此方法
xgFlutterPlugin.configureClusterDomainName("tpns.sh.tencent.com");
xgFlutterPlugin.setEnableDebug(true);
@ -452,8 +452,8 @@ class _LogoutIng extends State<LogoutIng> {
Navigator.of(context)
.pushNamedAndRemoveUntil('/router/login_page', (route) => false);
if (xgFlutterPlugin != null) {
// if (xgFlutterPlugin != null) {
// xgFlutterPlugin.stopXg();
// }
@ -243,9 +243,9 @@ class _SettingPage extends State<SettingPage> {
Widget settingItem(left, right) {