These snippets should mostly work, but if you want a fully compiling project then please check out my ShoppingApp project here: https://github.com/handstandsam/ShoppingApp in that project there is a shopping-cart module and shopping-cart-sqldelight module that are used to implement the DB functionality.
Last active
May 29, 2019 12:29
-
-
Save handstandsam/c000c77c402ecd37684876142063be36 to your computer and use it in GitHub Desktop.
SqlDelight 1.x Quick Start Guide for Android
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 { | |
| ... | |
| dependencies { | |
| ... | |
| classpath "com.squareup.sqldelight:gradle-plugin:${Versions.sql_delight}" | |
| } | |
| } |
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
| apply plugin: "com.squareup.sqldelight" | |
| dependencies { | |
| ... | |
| implementation "com.squareup.sqldelight:android-driver:${Versions.sql_delight}" | |
| testImplementation "com.squareup.sqldelight:sqlite-driver:${Versions.sql_delight}" | |
| ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment