Skip to content

Commit

Permalink
Merge pull request #19 from zeoflow/feature/deps
Browse files Browse the repository at this point in the history
Bumped dependencies to new versions
  • Loading branch information
teogor authored Mar 24, 2022
2 parents 37df8ce + 2fb838a commit ea707f3
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ To use it:
```

## License
Copyright (C) 2021 ZeoFlow S.R.L.
Copyright (C) 2022 ZeoFlow S.R.L.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
11 changes: 7 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ dependencies {
implementation project(':dispatcher-runtime')
annotationProcessor project(':dispatcher-compiler')

implementation('com.zeoflow:flow-kit:1.6.0')
implementation("com.zeoflow:startup:1.0.0")
implementation('com.zeoflow:flow-kit:1.6.2') {
exclude group: 'com.zeoflow', module: 'material-elements'
}

implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
}
4 changes: 4 additions & 0 deletions app/src/main/java/com/zeoflow/depot/db/WordDao.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,8 @@ public interface WordDao
@Query("DELETE FROM word_table")
void deleteAll();

@Query("SELECT COUNT(word) FROM word_table WHERE word=:word")
@Observable
LiveData<Integer> pagesRead(String word);

}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ kotlin.code.style=official
# Maven
POM_NAME=Depot
POM_PACKAGING=aar
VERSION_NAME=1.0.3
VERSION_NAME=1.0.4
GROUP=com.zeoflow.depot
POM_DESCRIPTION=The Depot persistence library provides an abstraction layer over SQLite to allow for more robust database access while using the full power of SQLite.
POM_URL=https://github.com/zeoflow/depot
Expand Down
5 changes: 2 additions & 3 deletions runtime/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ dependencies {
api(project(':depot-common'))
api(project(":sqlite-framework"))

implementation('com.zeoflow:flow-kit:1.6.1') {
exclude group: 'com.zeoflow', module: 'material-elements'
}
implementation("com.zeoflow:startup:1.0.0")

implementation("androidx.arch.core:core-runtime:2.0.1")
compileOnly("androidx.paging:paging-common:2.0.0")
compileOnly("androidx.lifecycle:lifecycle-livedata-core:2.0.0")
Expand Down
4 changes: 2 additions & 2 deletions runtime/src/main/java/com/zeoflow/depot/Depot.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import androidx.annotation.NonNull;
import androidx.annotation.RestrictTo;

import com.zeoflow.initializer.ZeoFlowApp;
import com.zeoflow.startup.AppInitializer;

/**
* Utility class for Depot.
Expand Down Expand Up @@ -55,7 +55,7 @@ public static <T extends DepotDatabase> DepotDatabase.Builder<T> databaseBuilder
+ " If you are trying to create an in memory database, use Depot"
+ ".inMemoryDatabaseBuilder");
}
return new DepotDatabase.Builder<>(ZeoFlowApp.getContext(), klass, name);
return new DepotDatabase.Builder<>(AppInitializer.getAppContext(), klass, name);
}

/**
Expand Down

0 comments on commit ea707f3

Please sign in to comment.