jerson / flutter-openpgp

OpenPGP for flutter made with golang for fast performance with support for android, ios, macos, linux, windows, web and hover
https://pub.dev/packages/openpgp
MIT License
67 stars 23 forks source link

Incorrect location of libopenpgp_bridge.so on Linux platform #28

Closed ryans233 closed 2 years ago

ryans233 commented 2 years ago

Hi! I tried the plugin recently and it works flawlessly on Windows. However when I try to build a project which depends on flutter-openpgp on Linux, the location of libopenpgp_bridge.so seems to be incorrect. In my case I cannot find out libopenpgp_bridge.so in ${PROJECT_NAME}/build/linux/x64/${BUILD_FLAVOR}/bundle/lib/ with both debug and release build, thus getting flutter: Invalid argument(s): Failed to load dynamic library 'libopenpgp_bridge.so': libopenpgp_bridge.so: cannot open shared object file: No such file or directory output on debug console. Then I found that file at ${PROJECT_NAME}/build/linux/x64/${BUILD_FLAVOR}/plugins/openpgp/bundle/lib/ and copy it to the first one, letting openpgp back to work. Could you please make a fix? So that we don't need to move that file manually every time. Thanks.

jerson commented 2 years ago

Hi @ryans233 thanks for report the issue, I will check that next week, bc this week im on vacation

ryans233 commented 2 years ago

Thanks! Have a great vacation!

jerson commented 2 years ago

hey @ryans233 I just released a new version with the fix for that, please take a look https://pub.dev/packages/openpgp/versions/3.1.1

tested here and seems works fine.

commit: https://github.com/jerson/flutter-openpgp/commit/1baab646721a11f24c36120027805a0980339f77

jerson commented 2 years ago

im gonna close this ticket but if you feel that is not fixed yet please reopen it