Giter VIP home page Giter VIP logo

Comments (9)

kozw avatar kozw commented on September 27, 2024

Interesting, Android or iOS, or both?

from flutter_sodium.

pneves001 avatar pneves001 commented on September 27, 2024

I haven't tried ios. So right now android. But I will let you know about IOS.

from flutter_sodium.

pneves001 avatar pneves001 commented on September 27, 2024

I can confirm I get the exact same result in both. Although to get the IOS version to compile I had to add the following line to the podfile:

use_frameworks!

I'm using a newer version of swift 3.2 so when I put the following line in it didn't compile:
config.build_settings['SWIFT_VERSION'] = '3.2'

But the behavior is the same in both IOS and Android at this time.

from flutter_sodium.

pneves001 avatar pneves001 commented on September 27, 2024

I also tried using the .then function and even the .catchError and the result was the same. So its not even generating an error.

from flutter_sodium.

pneves001 avatar pneves001 commented on September 27, 2024

I have been looking into this issue a bit because it's a bit of a show stopper for me. I really need to get this package working. More specifically when comparing this package with the cordova-plugin-minisodium package for cordova. The two packages are similar. The cordova plugin has both the libsodium-jni project and the libsodium project as dependencies.

As far as I can tell. The flutter_sodium plugin is not installing libsodiumjni at all or the libsodium library. I can't find it anywhere in my build tree. Nor do I find it in my .pub-cache folder. As far as I can tell its not there. I think this might be the source of my problem. Although I've been trying to fix it manually however, I'm still quite new to flutter.

from flutter_sodium.

kozw avatar kozw commented on September 27, 2024

I'm not sure the libsodium dependency is required for Android. For iOS the binary is included. I'm running both Android and iOS, and both work fine.

Are you running in an emulator or an actual device? Have you tried running the example app that is included in GitHub?

from flutter_sodium.

kozw avatar kozw commented on September 27, 2024

Looking at your code snippet: you're doing an utf8.encode on a string in hex-format. You probably do want to do hex.decode (instead of utf8.encode). Also, make sure you pubkey consists of 32 bytes.

from flutter_sodium.

pneves001 avatar pneves001 commented on September 27, 2024

Thank you. I will try this. I am currently running it on an actual device with the latest version of Android.

from flutter_sodium.

pneves001 avatar pneves001 commented on September 27, 2024

Thank you this worked. I have it working now.

from flutter_sodium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.