Giter Club home page Giter Club logo

sqlite-fts5-android's Introduction

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.21.0'
}

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

sqlite-fts5-android's People

Contributors

misterrager avatar

Watchers

James Cloos avatar Alex Doubov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.