Skip to content

drift_flutter and sqlite3_flutter_libs #3702

Description

@tenhobi

Hi, we started using drift_flutter which internally uses sqlite3_flutter_libs. This breaks SQLCipher - as recommended https://drift.simonbinder.eu/platforms/encryption/ we are using sqlcipher_flutter_libs.

I noticed sqlite3_flutter_libs is only used for applyWorkaroundToOpenSqlite3OnOldAndroidVersions and sqlcipher_flutter_libs already has applyWorkaroundToOpenSqlCipherOnOldAndroidVersions and openCipherOnAndroid.

Because of this added dependency on sqlite3_flutter_libs we are unable to run our Flutter app because of

Error (Xcode): 'Sqlite3FlutterLibsPlugin' has different definitions in different modules; first difference is definition in module 'sqlcipher_flutter_libs.Sqlite3FlutterLibsPlugin' found end of class
/Users/myName/.pub-cache/hosted/pub.dev/sqlcipher_flutter_libs-0.6.8/ios/Classes/Sqlite3FlutterLibsPlugin.h:3:0

What to do about it? Can this function be i.e. extracted from the package and users can pass it in callback?

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