From cc1071d86e9a873e7db5186719b8248b80b238c2 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 13 Oct 2024 14:58:47 +0800 Subject: [PATCH] :rocket: Launch 1.3.7+9 --- lib/providers/websocket.dart | 5 ++++- pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/providers/websocket.dart b/lib/providers/websocket.dart index 710c012..04a2b96 100644 --- a/lib/providers/websocket.dart +++ b/lib/providers/websocket.dart @@ -3,6 +3,7 @@ import 'dart:convert'; import 'dart:developer'; import 'dart:io'; +import 'package:crypto/crypto.dart'; import 'package:device_info_plus/device_info_plus.dart'; import 'package:firebase_messaging/firebase_messaging.dart'; import 'package:flutter_local_notifications/flutter_local_notifications.dart'; @@ -165,11 +166,13 @@ class WebSocketProvider extends GetxController { late final String? token; late final String provider; - final deviceUuid = await _getDeviceUuid(); + var deviceUuid = await _getDeviceUuid(); if (deviceUuid == null || deviceUuid.isEmpty) { log("Unable to active push notifications, couldn't get device uuid"); + return; } else { + deviceUuid = md5.convert(utf8.encode(deviceUuid)).toString(); log('Device UUID is $deviceUuid'); } diff --git a/pubspec.yaml b/pubspec.yaml index 7bd0352..e93f4ec 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: solian description: "The Solar Network App" publish_to: "none" -version: 1.3.7+8 +version: 1.3.7+9 environment: sdk: ">=3.3.4 <4.0.0"