fix: Fix typecasting issue

This commit is contained in:
PapaTutuWawa 2022-10-05 16:38:15 +02:00
parent 7990ef2aec
commit 7a999cf860
5 changed files with 18 additions and 16 deletions

View File

@ -32,10 +32,10 @@ dependencies:
moxplatform:
hosted: https://git.polynom.me/api/packages/Moxxy/pub
version: 0.1.14
version: 0.1.15
moxplatform_android:
hosted: https://git.polynom.me/api/packages/Moxxy/pub
version: 0.1.14
version: 0.1.15
file_picker: 5.2.0+1

View File

@ -1,6 +1,6 @@
name: moxplatform
description: Moxxy platform-specific code
version: 0.1.14
version: 0.1.15
publish_to: https://git.polynom.me/api/packages/Moxxy/pub
homepage: https://codeberg.org/moxxy/moxplatform
@ -26,10 +26,10 @@ dependencies:
moxplatform_android:
hosted: https://git.polynom.me/api/packages/Moxxy/pub
version: ^0.1.14
version: ^0.1.15
moxplatform_platform_interface:
hosted: https://git.polynom.me/api/packages/Moxxy/pub
version: ^0.1.14
version: ^0.1.15
dev_dependencies:
flutter_test:

View File

@ -17,10 +17,11 @@ class AndroidCryptographyImplementation extends CryptographyImplementation {
]);
if (resultRaw == null) return null;
final result = Map<String, Uint8List>.from(resultRaw as Map<String, dynamic>);
// ignore: argument_type_not_assignable
final result = Map<String, dynamic>.from(resultRaw);
return CryptographyResult(
result['plaintext_hash']!,
result['ciphertext_hash']!,
result['plaintext_hash']! as Uint8List,
result['ciphertext_hash']! as Uint8List,
);
}
@ -36,10 +37,11 @@ class AndroidCryptographyImplementation extends CryptographyImplementation {
]);
if (resultRaw == null) return null;
final result = Map<String, Uint8List>.from(resultRaw as Map<String, dynamic>);
// ignore: argument_type_not_assignable
final result = Map<String, dynamic>.from(resultRaw);
return CryptographyResult(
result['plaintext_hash']!,
result['ciphertext_hash']!,
result['plaintext_hash']! as Uint8List,
result['ciphertext_hash']! as Uint8List,
);
}

View File

@ -1,6 +1,6 @@
name: moxplatform_android
description: Android implementation of moxplatform
version: 0.1.14
version: 0.1.15
homepage: https://codeberg.org/moxxy/moxplatform
publish_to: https://git.polynom.me/api/packages/Moxxy/pub
@ -30,10 +30,10 @@ dependencies:
moxplatform:
hosted: https://git.polynom.me/api/packages/Moxxy/pub
version: ^0.1.14
version: ^0.1.15
moxplatform_platform_interface:
hosted: https://git.polynom.me/api/packages/Moxxy/pub
version: ^0.1.14
version: ^0.1.15
plugin_platform_interface: ^2.1.2
uuid: ^3.0.5

View File

@ -1,6 +1,6 @@
name: moxplatform_platform_interface
description: A common platform interface for the my_plugin plugin.
version: 0.1.14
version: 0.1.15
homepage: https://codeberg.org/moxxy/moxplatform
publish_to: https://git.polynom.me/api/packages/Moxxy/pub
@ -17,7 +17,7 @@ dependencies:
version: ^0.1.4
moxplatform:
hosted: https://git.polynom.me/api/packages/Moxxy/pub
version: ^0.1.14
version: ^0.1.15
plugin_platform_interface: ^2.1.2