diff --git a/README.md b/README.md index 8bd30e6..03ac89d 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,8 @@ ESSE, stands for Encrypted Symmetrical Session Engine, positioned as an engine. ### 2. Compile #### 2.1. Pre-installed - Rustup [install](https://rustup.rs/) -- Rust (Nightly Version) -- Flutter (Master channel) +- Rust (Lastest Stable version) +- Flutter (Lastest Stable channel) #### 2.2. Compile Rust code to dynamic link library (FFI) ##### 2.2.1. Auto-compile script diff --git a/lib/widgets/qr_scan.dart b/lib/widgets/qr_scan.dart index 83b8ec1..551b30e 100644 --- a/lib/widgets/qr_scan.dart +++ b/lib/widgets/qr_scan.dart @@ -114,8 +114,10 @@ class _QRScanState extends State { this.controller = controller; }); controller.scannedDataStream.listen((scanData) async { - print(scanData.code); - final Map qrInfo = json.decode(scanData.code); + if (scanData.code == null) { + return; + } + final Map qrInfo = json.decode(scanData.code!); if (!qrInfo.containsKey("app") || !qrInfo.containsKey("params")) { // TODO show Error. return; diff --git a/pubspec.lock b/pubspec.lock index 6902698..d446aa5 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1,6 +1,20 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: + _fe_analyzer_shared: + dependency: transitive + description: + name: _fe_analyzer_shared + url: "https://pub.dartlang.org" + source: hosted + version: "30.0.0" + analyzer: + dependency: transitive + description: + name: analyzer + url: "https://pub.dartlang.org" + source: hosted + version: "2.7.0" archive: dependency: transitive description: @@ -57,6 +71,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.3.1" + cli_util: + dependency: transitive + description: + name: cli_util + url: "https://pub.dartlang.org" + source: hosted + version: "0.3.5" clock: dependency: transitive description: @@ -98,7 +119,7 @@ packages: name: cross_file url: "https://pub.dartlang.org" source: hosted - version: "0.3.1+5" + version: "0.3.2" crypto: dependency: "direct main" description: @@ -119,7 +140,7 @@ packages: name: device_info_plus url: "https://pub.dartlang.org" source: hosted - version: "3.0.1" + version: "3.1.1" device_info_plus_linux: dependency: transitive description: @@ -133,14 +154,14 @@ packages: name: device_info_plus_macos url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.2.0" device_info_plus_platform_interface: dependency: transitive description: name: device_info_plus_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.2.1" device_info_plus_web: dependency: transitive description: @@ -162,6 +183,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.4.1" + equatable: + dependency: transitive + description: + name: equatable + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.3" esse_core: dependency: "direct main" description: @@ -196,7 +224,7 @@ packages: name: file_picker url: "https://pub.dartlang.org" source: hosted - version: "4.1.4" + version: "4.2.3" file_selector: dependency: "direct main" description: @@ -256,7 +284,7 @@ packages: name: flutter_colorpicker url: "https://pub.dartlang.org" source: hosted - version: "0.5.0" + version: "0.6.1" flutter_driver: dependency: transitive description: flutter @@ -275,7 +303,7 @@ packages: name: flutter_keyboard_visibility url: "https://pub.dartlang.org" source: hosted - version: "5.0.3" + version: "5.1.0" flutter_keyboard_visibility_platform_interface: dependency: transitive description: @@ -322,21 +350,21 @@ packages: name: flutter_native_splash url: "https://pub.dartlang.org" source: hosted - version: "1.2.4" + version: "1.3.1" flutter_plugin_android_lifecycle: dependency: transitive description: name: flutter_plugin_android_lifecycle url: "https://pub.dartlang.org" source: hosted - version: "2.0.3" + version: "2.0.4" flutter_quill: dependency: "direct main" description: name: flutter_quill url: "https://pub.dartlang.org" source: hosted - version: "2.0.6" + version: "2.0.17" flutter_test: dependency: "direct dev" description: flutter @@ -359,6 +387,20 @@ packages: description: flutter source: sdk version: "0.0.0" + gettext_parser: + dependency: transitive + description: + name: gettext_parser + url: "https://pub.dartlang.org" + source: hosted + version: "0.2.0" + glob: + dependency: transitive + description: + name: glob + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.2" html: dependency: transitive description: @@ -380,6 +422,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "4.0.0" + i18n_extension: + dependency: transitive + description: + name: i18n_extension + url: "https://pub.dartlang.org" + source: hosted + version: "4.1.3" image: dependency: transitive description: @@ -393,14 +442,14 @@ packages: name: image_picker url: "https://pub.dartlang.org" source: hosted - version: "0.8.4+2" + version: "0.8.4+4" image_picker_for_web: dependency: transitive description: name: image_picker_for_web url: "https://pub.dartlang.org" source: hosted - version: "2.1.3" + version: "2.1.4" image_picker_platform_interface: dependency: transitive description: @@ -440,7 +489,7 @@ packages: name: just_audio url: "https://pub.dartlang.org" source: hosted - version: "0.9.13" + version: "0.9.18" just_audio_platform_interface: dependency: transitive description: @@ -490,6 +539,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "3.2.1" + package_config: + dependency: transitive + description: + name: package_config + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.2" path: dependency: transitive description: @@ -503,21 +559,35 @@ packages: name: path_provider url: "https://pub.dartlang.org" source: hosted - version: "2.0.5" + version: "2.0.7" + path_provider_android: + dependency: transitive + description: + name: path_provider_android + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.7" + path_provider_ios: + dependency: transitive + description: + name: path_provider_ios + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.7" path_provider_linux: dependency: transitive description: name: path_provider_linux url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.1.2" path_provider_macos: dependency: transitive description: name: path_provider_macos url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.3" path_provider_platform_interface: dependency: transitive description: @@ -531,7 +601,7 @@ packages: name: path_provider_windows url: "https://pub.dartlang.org" source: hosted - version: "2.0.3" + version: "2.0.4" pedantic: dependency: transitive description: @@ -552,7 +622,7 @@ packages: name: permission_handler url: "https://pub.dartlang.org" source: hosted - version: "8.1.4+2" + version: "8.3.0" permission_handler_platform_interface: dependency: transitive description: @@ -566,14 +636,14 @@ packages: name: petitparser url: "https://pub.dartlang.org" source: hosted - version: "4.3.0" + version: "4.4.0" photo_view: dependency: transitive description: name: photo_view url: "https://pub.dartlang.org" source: hosted - version: "0.12.0" + version: "0.13.0" platform: dependency: transitive description: @@ -602,6 +672,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "6.0.1" + pub_semver: + dependency: transitive + description: + name: pub_semver + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0" qr: dependency: transitive description: @@ -615,7 +692,7 @@ packages: name: qr_code_scanner url: "https://pub.dartlang.org" source: hosted - version: "0.5.2" + version: "0.6.1" qr_flutter: dependency: "direct main" description: @@ -629,7 +706,7 @@ packages: name: quiver url: "https://pub.dartlang.org" source: hosted - version: "3.0.1" + version: "3.0.1+1" record: dependency: "direct main" description: @@ -671,7 +748,7 @@ packages: name: shared_preferences_linux url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.3" shared_preferences_macos: dependency: transitive description: @@ -699,7 +776,7 @@ packages: name: shared_preferences_windows url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.3" sky_engine: dependency: transitive description: flutter @@ -712,6 +789,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.8.1" + sprintf: + dependency: transitive + description: + name: sprintf + url: "https://pub.dartlang.org" + source: hosted + version: "6.0.0" stack_trace: dependency: transitive description: @@ -795,7 +879,7 @@ packages: name: url_launcher url: "https://pub.dartlang.org" source: hosted - version: "6.0.12" + version: "6.0.13" url_launcher_linux: dependency: transitive description: @@ -851,7 +935,7 @@ packages: name: video_player url: "https://pub.dartlang.org" source: hosted - version: "2.2.5" + version: "2.2.7" video_player_platform_interface: dependency: transitive description: @@ -873,6 +957,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "7.1.1" + watcher: + dependency: transitive + description: + name: watcher + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.1" web_socket_channel: dependency: "direct main" description: @@ -893,7 +984,7 @@ packages: name: win32 url: "https://pub.dartlang.org" source: hosted - version: "2.2.9" + version: "2.3.0" xdg_directories: dependency: transitive description: @@ -907,7 +998,7 @@ packages: name: xml url: "https://pub.dartlang.org" source: hosted - version: "5.3.0" + version: "5.3.1" yaml: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 49e97e0..8bbb052 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -21,7 +21,7 @@ dependencies: shared_preferences: any path_provider: any url_launcher: any - permission_handler: 8.1.4+2 + permission_handler: any image_picker: any # pick image image_save: any # Mobile save image to gallery file_picker: any # pick file @@ -41,7 +41,6 @@ dependencies: path: plugins/file_selector/file_selector_windows open_file: any # open file in mobile. crypto: any - #pointycastle: any crop: any unorm_dart: any qr_flutter: any @@ -51,9 +50,9 @@ dependencies: just_audio: any device_info_plus: any percent_indicator: any - bottom_navy_bar: ^6.0.0 - flutter_quill: ^2.0.6 - fluttertoast: ^8.0.8 + bottom_navy_bar: any + flutter_quill: any + fluttertoast: any dev_dependencies: flutter_test: