Browse Source

upgrade deps & fix nullable

pull/18/head
Sun 4 years ago
parent
commit
2d9892da4f
  1. 4
      README.md
  2. 6
      lib/widgets/qr_scan.dart
  3. 147
      pubspec.lock
  4. 9
      pubspec.yaml

4
README.md

@ -28,8 +28,8 @@ ESSE, stands for Encrypted Symmetrical Session Engine, positioned as an engine.
### 2. Compile ### 2. Compile
#### 2.1. Pre-installed #### 2.1. Pre-installed
- Rustup [install](https://rustup.rs/) - Rustup [install](https://rustup.rs/)
- Rust (Nightly Version) - Rust (Lastest Stable version)
- Flutter (Master channel) - Flutter (Lastest Stable channel)
#### 2.2. Compile Rust code to dynamic link library (FFI) #### 2.2. Compile Rust code to dynamic link library (FFI)
##### 2.2.1. Auto-compile script ##### 2.2.1. Auto-compile script

6
lib/widgets/qr_scan.dart

@ -114,8 +114,10 @@ class _QRScanState extends State<QRScan> {
this.controller = controller; this.controller = controller;
}); });
controller.scannedDataStream.listen((scanData) async { controller.scannedDataStream.listen((scanData) async {
print(scanData.code); if (scanData.code == null) {
final Map qrInfo = json.decode(scanData.code); return;
}
final Map qrInfo = json.decode(scanData.code!);
if (!qrInfo.containsKey("app") || !qrInfo.containsKey("params")) { if (!qrInfo.containsKey("app") || !qrInfo.containsKey("params")) {
// TODO show Error. // TODO show Error.
return; return;

147
pubspec.lock

@ -1,6 +1,20 @@
# Generated by pub # Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile # See https://dart.dev/tools/pub/glossary#lockfile
packages: 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: archive:
dependency: transitive dependency: transitive
description: description:
@ -57,6 +71,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.3.1" version: "1.3.1"
cli_util:
dependency: transitive
description:
name: cli_util
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.5"
clock: clock:
dependency: transitive dependency: transitive
description: description:
@ -98,7 +119,7 @@ packages:
name: cross_file name: cross_file
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.3.1+5" version: "0.3.2"
crypto: crypto:
dependency: "direct main" dependency: "direct main"
description: description:
@ -119,7 +140,7 @@ packages:
name: device_info_plus name: device_info_plus
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.1" version: "3.1.1"
device_info_plus_linux: device_info_plus_linux:
dependency: transitive dependency: transitive
description: description:
@ -133,14 +154,14 @@ packages:
name: device_info_plus_macos name: device_info_plus_macos
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.0" version: "2.2.0"
device_info_plus_platform_interface: device_info_plus_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: device_info_plus_platform_interface name: device_info_plus_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.0" version: "2.2.1"
device_info_plus_web: device_info_plus_web:
dependency: transitive dependency: transitive
description: description:
@ -162,6 +183,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.1" version: "0.4.1"
equatable:
dependency: transitive
description:
name: equatable
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.3"
esse_core: esse_core:
dependency: "direct main" dependency: "direct main"
description: description:
@ -196,7 +224,7 @@ packages:
name: file_picker name: file_picker
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.1.4" version: "4.2.3"
file_selector: file_selector:
dependency: "direct main" dependency: "direct main"
description: description:
@ -256,7 +284,7 @@ packages:
name: flutter_colorpicker name: flutter_colorpicker
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.5.0" version: "0.6.1"
flutter_driver: flutter_driver:
dependency: transitive dependency: transitive
description: flutter description: flutter
@ -275,7 +303,7 @@ packages:
name: flutter_keyboard_visibility name: flutter_keyboard_visibility
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "5.0.3" version: "5.1.0"
flutter_keyboard_visibility_platform_interface: flutter_keyboard_visibility_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -322,21 +350,21 @@ packages:
name: flutter_native_splash name: flutter_native_splash
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.2.4" version: "1.3.1"
flutter_plugin_android_lifecycle: flutter_plugin_android_lifecycle:
dependency: transitive dependency: transitive
description: description:
name: flutter_plugin_android_lifecycle name: flutter_plugin_android_lifecycle
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.3" version: "2.0.4"
flutter_quill: flutter_quill:
dependency: "direct main" dependency: "direct main"
description: description:
name: flutter_quill name: flutter_quill
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.6" version: "2.0.17"
flutter_test: flutter_test:
dependency: "direct dev" dependency: "direct dev"
description: flutter description: flutter
@ -359,6 +387,20 @@ packages:
description: flutter description: flutter
source: sdk source: sdk
version: "0.0.0" 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: html:
dependency: transitive dependency: transitive
description: description:
@ -380,6 +422,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.0.0" version: "4.0.0"
i18n_extension:
dependency: transitive
description:
name: i18n_extension
url: "https://pub.dartlang.org"
source: hosted
version: "4.1.3"
image: image:
dependency: transitive dependency: transitive
description: description:
@ -393,14 +442,14 @@ packages:
name: image_picker name: image_picker
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.8.4+2" version: "0.8.4+4"
image_picker_for_web: image_picker_for_web:
dependency: transitive dependency: transitive
description: description:
name: image_picker_for_web name: image_picker_for_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.3" version: "2.1.4"
image_picker_platform_interface: image_picker_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -440,7 +489,7 @@ packages:
name: just_audio name: just_audio
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.9.13" version: "0.9.18"
just_audio_platform_interface: just_audio_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -490,6 +539,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.2.1" version: "3.2.1"
package_config:
dependency: transitive
description:
name: package_config
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.2"
path: path:
dependency: transitive dependency: transitive
description: description:
@ -503,21 +559,35 @@ packages:
name: path_provider name: path_provider
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted 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: path_provider_linux:
dependency: transitive dependency: transitive
description: description:
name: path_provider_linux name: path_provider_linux
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.0" version: "2.1.2"
path_provider_macos: path_provider_macos:
dependency: transitive dependency: transitive
description: description:
name: path_provider_macos name: path_provider_macos
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.2" version: "2.0.3"
path_provider_platform_interface: path_provider_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -531,7 +601,7 @@ packages:
name: path_provider_windows name: path_provider_windows
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.3" version: "2.0.4"
pedantic: pedantic:
dependency: transitive dependency: transitive
description: description:
@ -552,7 +622,7 @@ packages:
name: permission_handler name: permission_handler
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "8.1.4+2" version: "8.3.0"
permission_handler_platform_interface: permission_handler_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -566,14 +636,14 @@ packages:
name: petitparser name: petitparser
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.3.0" version: "4.4.0"
photo_view: photo_view:
dependency: transitive dependency: transitive
description: description:
name: photo_view name: photo_view
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.12.0" version: "0.13.0"
platform: platform:
dependency: transitive dependency: transitive
description: description:
@ -602,6 +672,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.0.1" version: "6.0.1"
pub_semver:
dependency: transitive
description:
name: pub_semver
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
qr: qr:
dependency: transitive dependency: transitive
description: description:
@ -615,7 +692,7 @@ packages:
name: qr_code_scanner name: qr_code_scanner
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.5.2" version: "0.6.1"
qr_flutter: qr_flutter:
dependency: "direct main" dependency: "direct main"
description: description:
@ -629,7 +706,7 @@ packages:
name: quiver name: quiver
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.1" version: "3.0.1+1"
record: record:
dependency: "direct main" dependency: "direct main"
description: description:
@ -671,7 +748,7 @@ packages:
name: shared_preferences_linux name: shared_preferences_linux
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.2" version: "2.0.3"
shared_preferences_macos: shared_preferences_macos:
dependency: transitive dependency: transitive
description: description:
@ -699,7 +776,7 @@ packages:
name: shared_preferences_windows name: shared_preferences_windows
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.2" version: "2.0.3"
sky_engine: sky_engine:
dependency: transitive dependency: transitive
description: flutter description: flutter
@ -712,6 +789,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.8.1" version: "1.8.1"
sprintf:
dependency: transitive
description:
name: sprintf
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.0"
stack_trace: stack_trace:
dependency: transitive dependency: transitive
description: description:
@ -795,7 +879,7 @@ packages:
name: url_launcher name: url_launcher
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.0.12" version: "6.0.13"
url_launcher_linux: url_launcher_linux:
dependency: transitive dependency: transitive
description: description:
@ -851,7 +935,7 @@ packages:
name: video_player name: video_player
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.2.5" version: "2.2.7"
video_player_platform_interface: video_player_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -873,6 +957,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "7.1.1" version: "7.1.1"
watcher:
dependency: transitive
description:
name: watcher
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
web_socket_channel: web_socket_channel:
dependency: "direct main" dependency: "direct main"
description: description:
@ -893,7 +984,7 @@ packages:
name: win32 name: win32
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.2.9" version: "2.3.0"
xdg_directories: xdg_directories:
dependency: transitive dependency: transitive
description: description:
@ -907,7 +998,7 @@ packages:
name: xml name: xml
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "5.3.0" version: "5.3.1"
yaml: yaml:
dependency: transitive dependency: transitive
description: description:

9
pubspec.yaml

@ -21,7 +21,7 @@ dependencies:
shared_preferences: any shared_preferences: any
path_provider: any path_provider: any
url_launcher: any url_launcher: any
permission_handler: 8.1.4+2 permission_handler: any
image_picker: any # pick image image_picker: any # pick image
image_save: any # Mobile save image to gallery image_save: any # Mobile save image to gallery
file_picker: any # pick file file_picker: any # pick file
@ -41,7 +41,6 @@ dependencies:
path: plugins/file_selector/file_selector_windows path: plugins/file_selector/file_selector_windows
open_file: any # open file in mobile. open_file: any # open file in mobile.
crypto: any crypto: any
#pointycastle: any
crop: any crop: any
unorm_dart: any unorm_dart: any
qr_flutter: any qr_flutter: any
@ -51,9 +50,9 @@ dependencies:
just_audio: any just_audio: any
device_info_plus: any device_info_plus: any
percent_indicator: any percent_indicator: any
bottom_navy_bar: ^6.0.0 bottom_navy_bar: any
flutter_quill: ^2.0.6 flutter_quill: any
fluttertoast: ^8.0.8 fluttertoast: any
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:

Loading…
Cancel
Save