firstfloorsoftware / flutter_sodium

Flutter bindings for libsodium
BSD 3-Clause "New" or "Revised" License
102 stars 47 forks source link

MissingPluginException #36

Closed Rakshak1344 closed 3 years ago

Rakshak1344 commented 4 years ago
$ flutter test
00:11 +1 -1: Unlock FundRaiser Identity [E]                                                                                         
  MissingPluginException(No implementation found for method crypto_sign_seed_keypair on channel flutter_sodium)
  package:flutter/src/services/platform_channel.dart 154:7  MethodChannel._invokeMethod

00:12 +1 -1: Some tests failed.     

I have no Issues implementing the package, But when I test it. I get this issue.

kozw commented 4 years ago

The flutter_sodium test cases do not exist due to the nature of platform channels, this will change with the ffi implementation.

Rakshak1344 commented 4 years ago

Will I be able to test my function? If so how to do it with ffi implementation?

kozw commented 4 years ago

Yes, you should be able to implement your own tests with flutter_sodium in the ffi scenario. The test runs in the scope of your host os (mac, win, linux), so you need to have libsodium installed on your os. See also the libsodium installation instructions at https://doc.libsodium.org/