Skip to content

Shared libraries stripped by F-Droid #84

Open
@amake

Description

@amake

F-Droid apparently strips shared libraries that are provided as binaries. It looks to me like they want the source included and the libraries to be built at application build time.

amake/orgro#151 (comment)
https://forum.f-droid.org/t/how-to-use-shared-library-in-f-droid/22041

This results in failures like this at runtime:

I/flutter ( 2660): fallback to open DynamicLibrary on older devices
I/flutter ( 2660): Invalid argument(s): Failed to load dynamic library '/data/data/com.madlonkay.orgro/lib/libopenpgp_bridge.so': dlopen failed: library "/data/data/com.madlonkay.orgro/lib/libopenpgp_bridge.so" not found
I/flutter ( 2660): #0      _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11)
I/flutter ( 2660): #1      new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22)
I/flutter ( 2660): #2      Binding.openLib (package:openpgp/bridge/binding.dart:198)
I/flutter ( 2660): #3      new Binding._internal (package:openpgp/bridge/binding.dart:29)
I/flutter ( 2660): #4      Binding._instance (package:openpgp/bridge/binding.dart:18)
I/flutter ( 2660): #5      OpenPGPBridge.bindingEnabled (package:openpgp/openpgp_bridge.dart)
I/flutter ( 2660): #6      OpenPGPBridge.callSync (package:openpgp/openpgp_bridge.dart)
I/flutter ( 2660): #7      OpenPGPSync.decryptSymmetric (package:openpgp/openpgp_sync.dart:202)
I/flutter ( 2660): #8      decrypt (package:orgro/src/encryption.dart:81)
I/flutter ( 2660): #9      compute.<anonymous closure> (package:flutter/src/foundation/_isolates_io.dart:23)
I/flutter ( 2660): #10     _RemoteRunner._run (dart:isolate:1118)
I/flutter ( 2660): #11     _RemoteRunner._remoteExecute (dart:isolate:1112)
I/flutter ( 2660): #12     _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:318)
I/flutter ( 2660): #13     _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:194)

I understand that this is arguably an F-Droid problem, but it is something that consumers of this plugin need to know if they want to publish to F-Droid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions