fix: Fix typecasting issue
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user