Skip to content

Instantly share code, notes, and snippets.

@ryansgot
Last active October 17, 2018 13:17
Show Gist options
  • Save ryansgot/74967961720fa1ac805208408a8c430c to your computer and use it in GitHub Desktop.
Save ryansgot/74967961720fa1ac805208408a8c430c to your computer and use it in GitHub Desktop.
ForSure DB Android contentprovider Java app build.grade
apply plugin: 'com.android.application'
apply plugin: 'com.fsryan.gradle.forsuredb'
dependencies {
annotationProcessor 'com.fsryan.forsuredb:forsuredbcompiler:0.13.0'
implementation 'com.fsryan.forsuredb:forsuredbapi:0.13.0'
implementation 'com.fsryan.forsuredb:sqlitelib:0.13.0'
implementation 'com.fsryan.forsuredb:forsuredbandroid-contentprovider:0.13.0'
// forsuredbmodels-jackson and forsuredbmodels-moshi are also options
implementation 'com.fsryan.forsuredb:forsuredbmodels-gson:0.13.0'
}
forsuredb {
applicationPackageName = 'com.fsryan.example.forsuredb'
resultParameter = "android.net.Uri"
recordContainer = "com.fsryan.forsuredb.queryable.FSContentValues"
migrationDirectory = 'app/src/main/assets'
appProjectDirectory = 'app'
resourcesDirectory = 'app/src/main/resources'
dbmsIntegratorClass = 'com.fsryan.forsuredb.sqlitelib.SqlGenerator'
// optional, specific to your app
fsSerializerFactoryClass = 'com.fsryan.example.forsuredb.data.db.JsonAdapterFactory'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment