Skip to content

A flipper database plugin work with database on sqlcipher

Notifications You must be signed in to change notification settings

yueban/flipper-sqlcipher-plugin

Repository files navigation

preview

preview

How to use

  1. Add the JitPack repository to your build file
allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
  1. Add the dependency
dependencies {
    implementation 'com.github.yueban:flipper-sqlcipher-plugin:1.0.2'
}
  1. Create a SqlCipherDatabaseDriver to init your DatabasesFlipperPlugin
val client = AndroidFlipperClient.getInstance(this)

// add database plugin
client.addPlugin(
    DatabasesFlipperPlugin(
        SqlCipherDatabaseDriver(this, object : DatabasePasswordProvider {
            override fun getDatabasePassword(databaseFile: File): String {
                return if ("your database file name" == databaseFile.name) {
                    return "your database password"
                } else {
                    ""
                }
            }
        })
    )
)

client.start()

check sample for more details.

minSdkVersioin

The minSdkVersion is 16, cause this library depends on android-database-sqlcipher library which minSdkVersion is 16.

About

A flipper database plugin work with database on sqlcipher

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages