From 09f8821815aeb2fbf945d430ddfc8147485b8eb7 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Wed, 12 May 2021 09:22:00 +0800 Subject: [PATCH] update podfile --- lib/provider/user_provider.dart | 7 +++++-- macos/Podfile.lock | 8 ++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/provider/user_provider.dart b/lib/provider/user_provider.dart index 6d8fb6e4..24a33a8f 100644 --- a/lib/provider/user_provider.dart +++ b/lib/provider/user_provider.dart @@ -1,3 +1,6 @@ +import 'dart:io'; + +import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flustars/flustars.dart'; @@ -32,7 +35,7 @@ class UserProvider extends ChangeNotifier { } logout() { - JPush().deleteAlias(); + if (!kIsWeb && !Platform.isMacOS) JPush().deleteAlias(); final appProvider = Provider.of(Get.context!, listen: false); appProvider.setCurrentHouse(null); _isLogin = false; @@ -48,7 +51,7 @@ class UserProvider extends ChangeNotifier { Future updateProfile() async { _userInfoModel = await SignFunc.getUserInfo(); - if (_userInfoModel != null) { + if (_userInfoModel != null && !kIsWeb && !Platform.isMacOS) { await JPush().setAlias(_userInfoModel!.id.toString()); } notifyListeners(); diff --git a/macos/Podfile.lock b/macos/Podfile.lock index 93516674..24c4c506 100644 --- a/macos/Podfile.lock +++ b/macos/Podfile.lock @@ -6,10 +6,10 @@ PODS: - Firebase/Crashlytics (7.11.0): - Firebase/CoreOnly - FirebaseCrashlytics (~> 7.11.0) - - firebase_core (1.1.0): + - firebase_core (1.1.1): - Firebase/CoreOnly (~> 7.11.0) - FlutterMacOS - - firebase_crashlytics (2.0.2): + - firebase_crashlytics (2.0.3): - Firebase/CoreOnly (~> 7.11.0) - Firebase/Crashlytics (~> 7.11.0) - firebase_core @@ -108,8 +108,8 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: device_info_plus_macos: 1ad388a1ef433505c4038e7dd9605aadd1e2e9c7 Firebase: c121feb35e4126c0b355e3313fa9b487d47319fd - firebase_core: 9e45a9c5ba9dbcb8973b3a68e6ff43ecf2dcf206 - firebase_crashlytics: 4ab08e6b22a4f6ec909cc1f0a046eac2d1b2925c + firebase_core: 6db6207b18525075f0d6b639045f6752722836e9 + firebase_crashlytics: 82416d5f310a4c1576e71797f653520af2da26a7 FirebaseCore: 907447d8917a4d3eb0cce2829c5a0ad21d90b432 FirebaseCoreDiagnostics: 68ad972f99206cef818230f3f3179d52ccfb7f8c FirebaseCrashlytics: 272b675aa9d1e9bae1f9e1449fcc1f2cf6042806