firstfloorsoftware / flutter_sodium

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

Using relative library path for Linux #66

Closed proninyaroslav closed 2 years ago

proninyaroslav commented 2 years ago

libsodium.so.23 name convention is used in many DEB and RPM-based distributions, so using the relative path is a logical step. I tested this on the latest Fedora and Ubuntu and did not notice any problems. As an option, I can add a check for the presence of libsodium.so besides libsodium.so.23.

proninyaroslav commented 2 years ago

As a proof, I can give an example of the sqlite3 package which also uses the relative path for Linux: https://github.com/simolus3/sqlite3.dart/blob/master/sqlite3/lib/src/load_library.dart#L27

proninyaroslav commented 2 years ago

@kozw Can you publish a new version with this patch, please?