plangrid / SQLite-FTS5-Android

[DEPRECATED] Android SQLite FTS5 Module for Requery SQLite Support Library - see README.md

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DEPRECATED, REQUERY NOW SUPPORTS FTS5 NATIVELY WITHOUT THE NEED FOR THIS EXTENSION

SQLite FTS5 Module for Android

This builds and packages the FTS5 extension for SQLite for consumption by the Requery SQLite Support Library. Load the module by overriding SQLiteOpenHelper#createConfiguration to add it to the list of #customExtensions:


    @Override protected SQLiteDatabaseConfiguration createConfiguration(final String path, final int openFlags) {
        final SQLiteDatabaseConfiguration config = super.createConfiguration(path, openFlags);
        config.customExtensions.add(new SQLiteFTS5Module().getExtension(context.getApplicationInfo()));
        return config;
    }

Building

To build this module, you must install gcc, tcl, and make to your PATH. Alternately, install Docker, and use the docker-gradle script to build inside a container.

Build the module with gradle:

./gradlew sqlite-fts5:assemble

Alternately, build the module on a Docker container using gradle:

./docker-gradle sqlite-fts5:generateRelease

Using

Add the PlanGrid repo to your module's build.gradle:

repositories {
    ...
    maven {
         url 'https://plangrid.jfrog.io/plangrid/libs-release-local'
         
         credentials {
            //Ask @goosemo or @misterrager about credentials
         }
    }
    ...
}

As noted above, you need credentials to access the private repo.

Then, add the package to your list of dependencies:

dependencies {
    compile 'com.plangrid.android:sqlite-fts5-android:3.27.2'
}

Updating and Publishing

Before publishing, make sure to update the PUBLISH_VERSION in build.gradle. That is where we set the version for the lib. There is no CI for this module, though it is pending. When deploying, be sure to set env vars for ARTIFACTORY_USER and ARTIFACTORY_PASSWORD before running uploadArchives. These should be set for you already in the CI environment.

./gradlew sqlite-fts5:uploadArchives

Known Limitations

  • mips and mips64 ABI's are deprecated, so the binaries are not provided by this project

About

[DEPRECATED] Android SQLite FTS5 Module for Requery SQLite Support Library - see README.md

License:Other


Languages

Language:Makefile 36.9%Language:Java 32.1%Language:Dockerfile 17.4%Language:CMake 10.5%Language:Shell 3.2%