Commit graph

65 commits

Author SHA1 Message Date
Mike Nakhimovich
4fa9c252b6
rename package from nytimes to dropbox (#63)
* rename package from nytimes to dropbox

* Update build.gradle

Co-Authored-By: David Chang <changd@gmail.com>
2019-12-05 19:52:47 +01:00
Yigit Boyar
42c37d7656 Spotless integration (#51)
* apply spotless for unified code style

* configure circleci to run spotless
2019-11-09 17:02:01 -05:00
Mike Nakhimovich
b14b307c2c
Miken/kill2 (#43)
* cleanup with no explanation

* collapse interfaces to only Store, remove parsers

* collapse interfaces to only Store, remove parsers
2019-11-03 15:06:12 -05:00
Mike Nakhimovich
ca8c957a2d
cleanup with no explanation (#42) 2019-11-03 14:53:38 -05:00
Fabio Collini
823dbcc3e2
Fix inflight definition and create new builder (#2)
* AGP 3.5.0-beta05

* Inflight as constructor argument

* New builder class

* Rename addPersister to persister

* Rename addParser to parser

* Rename addCache to cache
2019-07-01 08:36:40 +02:00
Fabio Collini
58cdc5420d REFRESH_ON_STALE managed using a new scope (#6) 2019-06-30 13:14:22 -04:00
DigitalBuddha
b72122a5e5 fix tests 2019-06-30 12:38:46 -04:00
Fabio Collini
7480d5a9c4 Convert filesystem classes to Kotlin (#4) 2019-05-27 15:41:04 -04:00
DigitalBuddha
a24433177f newline 2019-05-27 10:24:38 -04:00
Brian Plummer
0644c2da71 fix FluentRealStoreBuilderSpec.shouldOpenAnEquivalentObject() allow final mocking in testing 2019-05-23 14:22:18 -04:00
DigitalBuddha
ea4140fa23 2 more tests 2019-05-22 08:43:56 -04:00
fabioCollini
927e77954a Coroutines 1.2.1 2019-05-21 22:57:14 +02:00
fabioCollini
015140fbf0 Fix some tests 2019-05-21 21:32:54 +02:00
fabioCollini
f486829e65 Removed rxjava dependencies 2019-02-23 17:08:22 +01:00
fabioCollini
664f60b0d0 Removed rxjava usages 2019-02-23 16:59:01 +01:00
fabioCollini
34d028337e Fix tests 2019-02-23 08:24:55 -05:00
fabioCollini
fb4ee1992d Removed rx classes and fixed tests 2019-02-22 22:17:45 -05:00
DigitalBuddha
b3a94fa1a8 fixing tests 2019-02-10 20:23:15 -05:00
DigitalBuddha
774e9d9c4b Merge remote-tracking branch 'origin/feature/kotlin_conversion' into feature/coroutines
# Conflicts:
#	app/build.gradle
#	app/src/main/java/com/nytimes/android/sample/SampleApp.kt
#	app/src/main/java/com/nytimes/android/sample/activity/PersistingStoreActivity.java
#	app/src/main/java/com/nytimes/android/sample/activity/StoreActivity.java
#	build.gradle
#	buildsystem/dependencies.gradle
#	filesystem/src/test/java/com/nytimes/android/external/fs3/FilePersisterTest.java
#	filesystem/src/test/java/com/nytimes/android/external/fs3/FileSystemRecordPersisterTest.java
#	filesystem/src/test/java/com/nytimes/android/external/fs3/RecordPersisterTest.java
#	filesystem/src/test/java/com/nytimes/android/external/fs3/SourcePersisterTest.java
#	middleware/src/main/java/com/nytimes/android/external/store3/middleware/GsonParserFactory.kt
#	middleware/src/main/java/com/nytimes/android/external/store3/middleware/GsonReaderParser.kt
#	middleware/src/main/java/com/nytimes/android/external/store3/middleware/GsonSourceParser.kt
#	middleware/src/main/java/com/nytimes/android/external/store3/middleware/GsonStringParser.kt
#	middleware/src/test/java/com/nytimes/android/external/store3/GenericParserStoreTest.java
#	middleware/src/test/java/com/nytimes/android/external/store3/GsonParserFactoryTest.java
#	middleware/src/test/java/com/nytimes/android/external/store3/GsonSourceListParserTest.java
#	store/build.gradle
2019-02-10 19:29:48 -05:00
DigitalBuddha
2d3596e4bb fixing tests 2019-02-10 19:23:00 -05:00
Brian Plummer
9b3cc88b3f
last part of filesystem tests conversion (#356)
* rest of filesystem tests

* remove el
2018-07-18 23:18:46 +02:00
Brian Plummer
a2a9978359
second part of filesystem tests conversion to kotlin (#354)
* second part of filesystem tests

* pr feedback

* pr feedback, rename tests
2018-07-17 12:35:40 +02:00
Brian Plummer
473650082c
convert first batch of filesystem module tests (#352)
* configure kotlin, convert first test

* convert half the tests

* some pr feedback

* pull up source func
2018-07-13 11:08:16 +02:00
Roberto Orgiu
ed378585c2
Merge pull request #328 from pavlospt/fix_memory_policy_default_size
Fix memory policy default size
2018-05-13 14:57:52 -07:00
Jorge Antonio Díaz-Benito Soriano
d26d50a5b6 Remove unnecessary Android-specific stuff (#319) 2018-05-03 09:39:37 -04:00
Tournaris Pavlos-Petros
799192e108 Fix checkstyle warnings 2018-03-29 23:29:24 +03:00
Pavlos-Petros Tournaris
6f2f1c12fe Fix issues occured from RxJava1 dependency (#314)
* Remove RxJava1 dependencies
* Fixed an ErrorProne warning
2018-02-20 18:05:46 +01:00
Jorge Antonio Díaz-Benito Soriano
dac878e2ce Gradle updates (#266)
* Gradle Wrapper (all) 3.3 -> 4.1

* Gradle plugin for Android 2.3.2 -> 3.0.0-beta2

This requires upgrading the errorprone plugin to 0.0.11. Also, see
https://stackoverflow.com/questions/44196672/aapt2-compile-failed-invalid-dimen-on-android-3-0-canary-1

gradle plugin

* SDK Build Tools 25.0.2 -> 26.0.1

* Remove retrolambda

* Log error from subscription on PersistingStoreActivity for consistency

* Update dependency inclusion directives to those of the 3.0 plugin

Also, jsr305 and javax usages have been taken from compile to compileOnly
since they are not required beyond.

* Add dependencies that previously were resolved through leaked ones from other artifacts

Now dependency leaks are eliminated thanks to 'implementation' from the 3.0 version of the gradle plugin.

* Remove coupling between middlewares and cache

* Replace mockito-all by mockito-core

mockito-all causes problems related to hamcrest when used with JUnit. See
https://tedvinke.wordpress.com/2013/12/17/mixing-junit-hamcrest-and-mockito-explaining-nosuchmethoderror/

* Remove unused dependency.

* Build Tools 26.0.1 on Travis

* Suppress PMD.AvoidThrowingNullPointerException for the time being

* Avoid PMD synthetic accessor warning
2017-08-17 13:48:12 -04:00
Mike Nakhimovich
ad58fad050 fix stream for a single barcode (#252) 2017-07-26 11:23:18 -04:00
Brian Plummer
30b1771170 forward port of readAll/clearAll to rxjava2 branch (#254) 2017-07-24 16:40:37 -04:00
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