Skip to content

Instantly share code, notes, and snippets.

@ryansgot
Last active October 17, 2018 13:17
Show Gist options
  • Save ryansgot/6ea070b2dc3b5f3f61b8c1fec59afdad to your computer and use it in GitHub Desktop.
Save ryansgot/6ea070b2dc3b5f3f61b8c1fec59afdad to your computer and use it in GitHub Desktop.
ForSure DB Android directdb 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-directdb: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 = "com.fsryan.forsuredb.queryable.DirectLocator"
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