fix: Fix typecasting issue
This commit is contained in:
parent
7990ef2aec
commit
7a999cf860
@ -32,10 +32,10 @@ dependencies:
|
|||||||
|
|
||||||
moxplatform:
|
moxplatform:
|
||||||
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
||||||
version: 0.1.14
|
version: 0.1.15
|
||||||
moxplatform_android:
|
moxplatform_android:
|
||||||
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
||||||
version: 0.1.14
|
version: 0.1.15
|
||||||
|
|
||||||
file_picker: 5.2.0+1
|
file_picker: 5.2.0+1
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: moxplatform
|
name: moxplatform
|
||||||
description: Moxxy platform-specific code
|
description: Moxxy platform-specific code
|
||||||
version: 0.1.14
|
version: 0.1.15
|
||||||
publish_to: https://git.polynom.me/api/packages/Moxxy/pub
|
publish_to: https://git.polynom.me/api/packages/Moxxy/pub
|
||||||
homepage: https://codeberg.org/moxxy/moxplatform
|
homepage: https://codeberg.org/moxxy/moxplatform
|
||||||
|
|
||||||
@ -26,10 +26,10 @@ dependencies:
|
|||||||
|
|
||||||
moxplatform_android:
|
moxplatform_android:
|
||||||
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
||||||
version: ^0.1.14
|
version: ^0.1.15
|
||||||
moxplatform_platform_interface:
|
moxplatform_platform_interface:
|
||||||
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
||||||
version: ^0.1.14
|
version: ^0.1.15
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
@ -17,10 +17,11 @@ class AndroidCryptographyImplementation extends CryptographyImplementation {
|
|||||||
]);
|
]);
|
||||||
if (resultRaw == null) return null;
|
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(
|
return CryptographyResult(
|
||||||
result['plaintext_hash']!,
|
result['plaintext_hash']! as Uint8List,
|
||||||
result['ciphertext_hash']!,
|
result['ciphertext_hash']! as Uint8List,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -36,10 +37,11 @@ class AndroidCryptographyImplementation extends CryptographyImplementation {
|
|||||||
]);
|
]);
|
||||||
if (resultRaw == null) return null;
|
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(
|
return CryptographyResult(
|
||||||
result['plaintext_hash']!,
|
result['plaintext_hash']! as Uint8List,
|
||||||
result['ciphertext_hash']!,
|
result['ciphertext_hash']! as Uint8List,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: moxplatform_android
|
name: moxplatform_android
|
||||||
description: Android implementation of moxplatform
|
description: Android implementation of moxplatform
|
||||||
version: 0.1.14
|
version: 0.1.15
|
||||||
homepage: https://codeberg.org/moxxy/moxplatform
|
homepage: https://codeberg.org/moxxy/moxplatform
|
||||||
publish_to: https://git.polynom.me/api/packages/Moxxy/pub
|
publish_to: https://git.polynom.me/api/packages/Moxxy/pub
|
||||||
|
|
||||||
@ -30,10 +30,10 @@ dependencies:
|
|||||||
|
|
||||||
moxplatform:
|
moxplatform:
|
||||||
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
||||||
version: ^0.1.14
|
version: ^0.1.15
|
||||||
moxplatform_platform_interface:
|
moxplatform_platform_interface:
|
||||||
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
||||||
version: ^0.1.14
|
version: ^0.1.15
|
||||||
|
|
||||||
plugin_platform_interface: ^2.1.2
|
plugin_platform_interface: ^2.1.2
|
||||||
uuid: ^3.0.5
|
uuid: ^3.0.5
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: moxplatform_platform_interface
|
name: moxplatform_platform_interface
|
||||||
description: A common platform interface for the my_plugin plugin.
|
description: A common platform interface for the my_plugin plugin.
|
||||||
version: 0.1.14
|
version: 0.1.15
|
||||||
homepage: https://codeberg.org/moxxy/moxplatform
|
homepage: https://codeberg.org/moxxy/moxplatform
|
||||||
publish_to: https://git.polynom.me/api/packages/Moxxy/pub
|
publish_to: https://git.polynom.me/api/packages/Moxxy/pub
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ dependencies:
|
|||||||
version: ^0.1.4
|
version: ^0.1.4
|
||||||
moxplatform:
|
moxplatform:
|
||||||
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
||||||
version: ^0.1.14
|
version: ^0.1.15
|
||||||
|
|
||||||
plugin_platform_interface: ^2.1.2
|
plugin_platform_interface: ^2.1.2
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user