This file contains hidden or 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
| package com.fsryan.example.forsuredb.data.db.tables; | |
| import com.fsryan.forsuredb.annotations.FSColumn; | |
| import com.fsryan.forsuredb.annotations.FSTable; | |
| import com.fsryan.forsuredb.annotations.Unique; | |
| import com.fsryan.forsuredb.api.FSGetApi; | |
| import com.fsryan.forsuredb.api.Retriever; | |
| @FSTable("employees") | |
| public interface EmployeesTable extends FSGetApi { |
This file contains hidden or 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
| import android.app.Application | |
| import com.fsryan.forsuredb.FSDBHelper | |
| import com.fsryan.forsuredb.ForSureAndroidInfoFactory | |
| import com.fsryan.forsuredb.gsonserialization.FSDbInfoGsonSerializer | |
| import com.fsryan.forsuredb.api.FSTableCreator | |
| class App : Application() { | |
| override fun onCreate() { | |
| super.onCreate() |
This file contains hidden or 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
| buildscript { | |
| repositories { | |
| google() | |
| jcenter() | |
| } | |
| dependencies { | |
| classpath 'com.android.tools.build:gradle:3.1.2' | |
| classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.30' | |
| classpath 'com.fsryan.gradle.forsuredb:forsuredbplugin:0.6.3' | |
| } |
This file contains hidden or 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
| dependencies { | |
| /*...*/ | |
| implementation "com.fsryan.forsuredb:dbinfo:$forsuredbVersion" | |
| /*...*/ | |
| } |
This file contains hidden or 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
| dependencies { | |
| /*...*/ | |
| implementation "com.fsryan.forsuredb:forsuredbmodels-jackson:$forsuredbVersion" | |
| /*...*/ | |
| } |
This file contains hidden or 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
| dependencies { | |
| /*...*/ | |
| implementation "com.fsryan.forsuredb:forsuredbmodels-gson:$forsuredbVersion" | |
| /*...*/ | |
| } |
This file contains hidden or 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
| package com.fsryan.forsuredb.example; | |
| import android.app.LoaderManager; | |
| import com.fsryan.forsuredb.cursor.FSCursor; | |
| import com.fsryan.forsuredb.cursor.FSCursorLoader; | |
| public class MyActivity extends AppCompatActivity { | |
| MyRecyclerViewAdapter adapter; |
This file contains hidden or 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
| // forsuredbandroid-contentprovider | |
| dependencies { | |
| /*...*/ | |
| implementation "com.fsryan.forsuredb:forsuredbandroid-contentprovider:$forsuredbVersion" | |
| /*...*/ | |
| } |
This file contains hidden or 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
| dependencies { | |
| /*...*/ | |
| implementation "com.fsryan.forsuredb:sqlitelib:$forsuredbVersion" | |
| /*...*/ | |
| } |
This file contains hidden or 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
| dependencies { | |
| /*...*/ | |
| implementation "com.fsryan.forsuredb:api:$forsuredbVersion" | |
| /*...*/ | |
| } |