Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced SQLBrite library with SQLDelight library #949

Open
wants to merge 1 commit into
base: gsoc2022
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ ext {
def sqlite_version = "2.1.0"
supportSqlite = "androidx.sqlite:sqlite:$sqlite_version"
supportSqliteFramework = "androidx.sqlite:sqlite-framework:$sqlite_version"
sqlBrite = 'com.squareup.sqlbrite3:sqlbrite:3.2.0'
sqlDelight = 'com.squareup.sqldelight:gradle-plugin:1.5.0'

// Dependency injection, view injection, event bus...
dagger = 'com.google.dagger:dagger:2.35.1'
Expand Down
4 changes: 2 additions & 2 deletions org.envirocar.storage/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies {
// RxJava dependencies
implementation rootProject.ext.rxJava
implementation rootProject.ext.rxAndroid
api rootProject.ext.sqlBrite // change to implementation when updating
api rootProject.ext.sqlDelight // change to implementation when updating

// Testing
testImplementation rootProject.ext.junit
Expand All @@ -35,7 +35,7 @@ dependencies {
// Database Dependencies
implementation rootProject.ext.supportSqlite
implementation rootProject.ext.supportSqliteFramework
implementation rootProject.ext.sqlBrite
implementation rootProject.ext.sqlDelight

// Modules
api project(path : ':org.envirocar.core')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
import androidx.sqlite.db.SupportSQLiteOpenHelper;
import androidx.sqlite.db.framework.*;

import com.squareup.sqlbrite3.BriteDatabase;
import com.squareup.sqlbrite3.SqlBrite;
import com.squareup.sqldelight.gradle.SqlDelightDatabase;
import com.squareup.sqldelight.gradle.SqlDelightPlugin;

import org.envirocar.core.EnviroCarDB;
import org.envirocar.core.entity.PowerSource;
Expand Down