Commit graph

35 commits

Author SHA1 Message Date
Ramona Harrison
8b4b186aaf Refactor package name to store3 for the Rx2 branch (#220)
* Refactor package name to store3 for the Rx2 branch

* Fix cache autoimports

* Fix LocalCache imports
2017-05-23 13:27:32 -04:00
Ramona Harrison
2c2872504b Include develop changes in Rx2 branch (#214)
* Update README.md

* Update README.md

* Update README.md (#175)

* Update README.md

* Close source after  write to filesystem

* Refactor FSFileTest to rx2 package

* remove null check on source and annotate arg with NonNull

* Standardize store.stream() to only emit new items

* Standardize store.stream() to only emit new items

* Remove unneeded call to asObservable()

* Update README.md

* Update README.md

* Fixed PMD violation God Class for RealInternalStore (#179)

* Update README.md

* Fixing dependency importation typo (#186)

* Mike/test (#195)

* new test

* Refactor NoNetworkTest to rx2 package

* Typo fixed (#202)

* Typo fixed

* Simplified by removing generics

* Update build.gradle (#193)

rename app id for sample app

* Add a missing Source.close() call (#200)

* Add Retrolambda plugin on the rest modules (#205)

* Add Retrolambda plugin on the rest modules and modify sample app for new config

* Suppress PMD violation on equals()

* Add Raw to BufferedSource transformer (#198)

* expireAfterAccess added to MemoryPolicy (#199)

* Add test coverage for MemoryPolicyBuilder (#210)

* Add test coverage for MemoryPolicyBuilder

* Checkstyle new line at EOF

* Fix PMD

* Refactor MemoryPolicyBuilderTest to rx2 package

* Deprecate setExpireAfter and getExpireAfter (#211)
2017-05-19 10:25:04 -04:00
Shane Fitzpatrick
47c463ba8a Add lambdas to Store and Filesystem modules (rx2) (#189) 2017-05-01 16:44:44 -04:00
Tair
20445fff13 RxJava2 Migration: Return single/maybe where appropriate. (#185)
* RxJava2 Migration: Return single/maybe where appropriate.

* Remove no longer used class.

* Pull in the fix for #181 from develop.

* Re-iterated solution #181 issue.
2017-04-24 16:37:45 -04:00
Mike Nakhimovich
f009e11a0b Feature/rx2 package rename (#171)
* first pass at store2 artifacts
2017-03-23 17:48:16 -04:00
Maksim Moiseikin
a9ed871834 Port to RxJava 2 (#155)
* Port Store artifact to RxJava 2
2017-03-23 16:29:47 -04:00
Brian Plummer
554bb25a32 persisterIsStale() should return false if record is missing or policy is unspecified (#164)
* persisterIsStale() should return false if record is missing or policy is unspecified

* Updated store network stale test
2017-03-20 16:39:18 -04:00
Amine Laadhari
10eb6ee0a4 Add Inject annotations with the correct dependency 2017-03-07 18:28:38 +01:00
Amine Laadhari
986fc456bd Remove dagger dependency and clean unused dependencies from modules 2017-03-06 17:40:53 +01:00
Brian Plummer
d6ed9c7916 modify clearMemory() to call regular clear() since they are equivalant… (#144)
* modify clearMemory() to call regular clear() since they are equivalant,  bullet-proof BreadthFirstFileTreeIterator
2017-03-02 11:24:24 -05:00
Pavlos-Petros Tournaris
a7e536cc25 Add FileSystemRecordPersisterFactory (#140)
* Add FileSystemRecordPersisterFactory
2017-02-23 16:30:28 -05:00
Vasilis Charalampakis
be5a7d6da5 Introduce RecordPersisterFactory (#138) 2017-02-23 14:46:33 -05:00
Mike Nakhimovich
9395d8a36c FileSystemRecordPersister (#137)
* FileSystemRecordPersister

* checkstyle
2017-02-23 12:47:51 -05:00
Paul Woitaschek
62c7ca39d7 Cleanup (#127)
* Fixed a race condition that would appear when the read was called but not immediately subscribed to. Defer the whole file check till subscription.

* Diamonds

* General cleanup, missing nullity annotations, missing override annotations

* More key naming conventions

* Dependency update

* More key naming conventions

* Parser, not func

* Name outer key different so cache can be evicted correctly

* Another missing override
2017-02-09 13:04:07 -08:00
Mike Nakhimovich
f3ba204e3c Store v1 removal in favor of Stores with generic keys (#122)
* remove old Store.java

* no more depracted Store.java
2017-02-08 18:18:17 -05:00
Pavlos-Petros Tournaris
3065d7d54f Avoid multiple resolves of the same Key (#120) 2017-02-08 17:04:45 -05:00
Paul Woitaschek
c9c181ed70 Fixed a race condition that would appear when the read was called but not immediately subscribed to. Defer the whole file check till subscription. (#121) 2017-02-08 16:49:48 -05:00
Mike Nakhimovich
d01f2abe45 Feature/filepersister (#115)
* generic file persister with path resolver
2017-02-08 15:46:35 -05:00
Mike Nakhimovich
f4fdd1e9d9 Feature/clear all cache (#117)
* public api to clear memory and disk caches
2017-02-08 15:44:12 -05:00
Mike Nakhimovich
4afb8ceb0c remove extranous exception throw (#114) 2017-02-07 13:02:57 -05:00
Mike Nakhimovich
1c7bc502b0 Tech/record stale fs (#111)
networkBeforeStale and refreshOnStale
2017-02-07 09:45:48 -05:00
Mike Nakhimovich
2c24357df9 Migrate Barcode to any Type (#86)
* migrate barcode to a generic key
2017-02-03 17:49:40 -05:00
Brian Plummer
defaaa19cd convert filesystem to javax.annotations 2017-01-30 21:01:14 -05:00
Plummer
405a15d3b6 start of conversion to javax.annotations 2017-01-30 17:46:05 -05:00
Brian Plummer
be5ba6443a convert store to java, #83 (#85)
convert store to java, #83
2017-01-28 20:52:55 -05:00
Brian Plummer
d31b8c5f44 fix issue #76, add additional create(FileSystem) within SourcePersisterFactory, some unit tests for SourcePersister (#77) 2017-01-23 21:57:25 -05:00
Paul Woitaschek
b700fc2868 Added missing nonnull and override annotations 2017-01-20 15:52:29 +01:00
Brian Plummer
a31deb7f0c always call sink.close() from finally block (#63) 2017-01-15 19:23:24 -05:00
Maksim Moiseikin
17987bf15f Add Nullability Annotations (#52) 2017-01-12 05:48:25 -05:00
Brian Plummer
382c00dbfb start of pmd inclusion (#50)
* start of pmd inclusion

* fix all pmd violations

* fail on pmd

* fail on pmd

* fail on pmd
2017-01-11 15:11:41 -05:00
Brian Plummer
eaa4219dd7 start of checkstyle inclusion... (#48)
* start of checkstyle inclusion

* checkstyle!
2017-01-11 10:04:44 -05:00
Scott Meschke
2906cf469d Fixes a few javadoc mistakes. 2017-01-09 18:55:38 -07:00
Scott Meschke
dba6ed26e2 Added factories for SourcePersisters and the various GsonParser implementations. Updated README to use new factories. Updated example activity to use new factories. All factories return the general Store interfaces. 2017-01-08 15:31:13 -07:00
Michal Drabik
efd342c027 FileSystem factory (#28)
* Add FileSystem factory
2017-01-06 16:39:21 -05:00
digitalbuddha
9badd11494 initial 2017-01-04 14:17:53 -05:00