Last active
October 17, 2018 13:16
-
-
Save ryansgot/8edaee2bead9b7880f24a4ad3cfad276 to your computer and use it in GitHub Desktop.
ForSure DB Android directdb Kotlin app build.grade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
apply plugin: 'com.fsryan.gradle.forsuredb' | |
apply plugin: 'kotlin-android' // <-- must appear after applying forsuredb | |
apply plugin: 'kotlin-android-extensions' | |
apply plugin: 'kotlin-kapt' | |
dependencies { | |
kapt '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