Commit graph

113 commits

Author SHA1 Message Date
Matt
728d0e5792
Clean Up (#499)
* Remove "Representation" from generics

Signed-off-by: mramotar <mramotar@dropbox.com>

* Remove "Representation" from generics

Signed-off-by: mramotar <mramotar@dropbox.com>

* Rename to Validator

Signed-off-by: mramotar <mramotar@dropbox.com>

* Add logo!

Signed-off-by: mramotar <mramotar@dropbox.com>

* Update README.md

Signed-off-by: mramotar <mramotar@dropbox.com>

* Format

Signed-off-by: mramotar <mramotar@dropbox.com>

* Update CI

Signed-off-by: Matt <mramotar@dropbox.com>

* Remove "Representation" from generics

Signed-off-by: mramotar <mramotar@dropbox.com>

* Remove "Representation" from generics

Signed-off-by: mramotar <mramotar@dropbox.com>

* Rename to Validator

Signed-off-by: mramotar <mramotar@dropbox.com>

* Add logo!

Signed-off-by: mramotar <mramotar@dropbox.com>

* Update README.md

Signed-off-by: mramotar <mramotar@dropbox.com>

* Format

Signed-off-by: mramotar <mramotar@dropbox.com>

* Rename generics

Signed-off-by: mramotar <mramotar@dropbox.com>

* Rename input to value

Signed-off-by: mramotar <mramotar@dropbox.com>

* Update README

Signed-off-by: mramotar <mramotar@dropbox.com>

* Update README

Signed-off-by: mramotar <mramotar@dropbox.com>

Signed-off-by: mramotar <mramotar@dropbox.com>
Signed-off-by: Matt <mramotar@dropbox.com>
2022-12-23 11:04:24 -08:00
Matt
4689ca59c7
[Store5] Target Android, iOS, JVM, JS (#493)
* [Temp] Remove all modules

* Remove references to Store 4

* Update CHANGELOG

* Update README

* Add Store 5 foundation

Signed-off-by: mramotar <mramotar@dropbox.com>

* Dump API

Signed-off-by: mramotar <mramotar@dropbox.com>

* Delete scratch API

Signed-off-by: mramotar <mramotar@dropbox.com>

* Fix workflow

Signed-off-by: mramotar <mramotar@dropbox.com>

* Rename clear to delete

Signed-off-by: mramotar <mramotar@dropbox.com>

* Flatten sealed classes

Signed-off-by: mramotar <mramotar@dropbox.com>

* Make ShareableLruCache threadsafe

Signed-off-by: mramotar <mramotar@dropbox.com>

* First stab

Signed-off-by: mramotar <mramotar@dropbox.com>

* Remove scope

Signed-off-by: mramotar <mramotar@dropbox.com>

* Remove scope

Signed-off-by: mramotar <mramotar@dropbox.com>

* Cherry pick

Signed-off-by: mramotar <mramotar@dropbox.com>

* Remove scope

Signed-off-by: mramotar <mramotar@dropbox.com>

* Fix multithreading LRU cache test

Signed-off-by: mramotar <mramotar@dropbox.com>

* Remove logs

Signed-off-by: mramotar <mramotar@dropbox.com>

* Cover multithreaded market write

Signed-off-by: mramotar <mramotar@dropbox.com>

* Remove redundant advance

Signed-off-by: mramotar <mramotar@dropbox.com>

* Remove Stately !!

Signed-off-by: mramotar <mramotar@dropbox.com>

* Use mutex

Signed-off-by: mramotar <mramotar@dropbox.com>

* Refactor Store to interface with factory

Signed-off-by: mramotar <mramotar@dropbox.com>

* Rename to MemoryLruCache

Signed-off-by: mramotar <mramotar@dropbox.com>

* Rename to RealMarket

Signed-off-by: mramotar <mramotar@dropbox.com>

* Rename to delete all

Signed-off-by: mramotar <mramotar@dropbox.com>

* Rename tests

Signed-off-by: mramotar <mramotar@dropbox.com>

* Clean up Android LRU cache tests

Signed-off-by: mramotar <mramotar@dropbox.com>

* Fix market factory

Signed-off-by: mramotar <mramotar@dropbox.com>

* Rename ConflictResolver to Bookkeeper

Signed-off-by: mramotar <mramotar@dropbox.com>

* From desktop

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Fix tests

Signed-off-by: mramotar <mramotar@dropbox.com>

* Document Lightswitch

Signed-off-by: mramotar <mramotar@dropbox.com>

* Guard against multiple releases

Signed-off-by: mramotar <mramotar@dropbox.com>

* Rename to StoreSafety

Signed-off-by: mramotar <mramotar@dropbox.com>

* Use withLock

Signed-off-by: mramotar <mramotar@dropbox.com>

* Document load

Signed-off-by: mramotar <mramotar@dropbox.com>

* Make delete and deleteAll optional

Signed-off-by: mramotar <mramotar@dropbox.com>

* Add foundation for sample app

Signed-off-by: mramotar <mramotar@dropbox.com>

* Remove Kotlin serialization

Signed-off-by: mramotar <mramotar@dropbox.com>

* Rename masterLock to mainLock

Signed-off-by: mramotar <mramotar@dropbox.com>

* Rename Bookkeeper methods

Signed-off-by: mramotar <mramotar@dropbox.com>

* Rename using Market/Network prefix

Signed-off-by: mramotar <mramotar@dropbox.com>

* Make NetworkFetcher an interface

Signed-off-by: mramotar <mramotar@dropbox.com>

* Make NetworkUpdater an interface

Signed-off-by: mramotar <mramotar@dropbox.com>

* Make MarketReader an interface

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Make MarketWriter an interface

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Add app and main activity

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Add scoping

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Remove unused mipmap

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Add Dagger components

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Remove icon

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Draft README.md

Signed-off-by: mramotar <mramotar@dropbox.com>

* Wire account tab

Signed-off-by: mramotar <mramotar@dropbox.com>

* Remove campaigns sample

Signed-off-by: mramotar <mramotar@dropbox.com>

* Add Market wiring

Signed-off-by: mramotar <mramotar@dropbox.com>

* Remove unused resources

Signed-off-by: mramotar <mramotar@dropbox.com>

* Fix Gradle plugins

Signed-off-by: mramotar <mramotar@dropbox.com>

* Fix rebase issue

Signed-off-by: mramotar <mramotar@dropbox.com>

* Fix wiring

Signed-off-by: mramotar <mramotar@dropbox.com>

* Introduce GoodValidator

Signed-off-by: mramotar <mramotar@dropbox.com>

* Add unit tests

Signed-off-by: mramotar <mramotar@dropbox.com>

* Only load if read not in progress

Signed-off-by: mramotar <mramotar@dropbox.com>

* Update CI and autogenerate Swift Package (#469)

* Update CI and autogenerate Swift Package

Signed-off-by: mramotar <mramotar@dropbox.com>

* Update CI and autogenerate Swift Package

Signed-off-by: mramotar <mramotar@dropbox.com>

* Run on MacOS

Signed-off-by: mramotar <mramotar@dropbox.com>

* Only run on push

Signed-off-by: mramotar <mramotar@dropbox.com>

Signed-off-by: mramotar <mramotar@dropbox.com>

* Use KMM Bridge (#470)

* Clean up deps

Signed-off-by: mramotar <mramotar@dropbox.com>

* Use KMM Bridge

Signed-off-by: mramotar <mramotar@dropbox.com>

* Fix version prefix

Signed-off-by: mramotar <mramotar@dropbox.com>

Signed-off-by: mramotar <mramotar@dropbox.com>

* Fix Maven publish plugin (#471)

Signed-off-by: mramotar <mramotar@dropbox.com>

Signed-off-by: mramotar <mramotar@dropbox.com>

* Refactor fetcher and updater to 1:1 with market

Signed-off-by: mramotar <mramotar@dropbox.com>

* Reset Fake API

Signed-off-by: mramotar <mramotar@dropbox.com>

* Remove unused imports

Signed-off-by: mramotar <mramotar@dropbox.com>

* Run check on store

Signed-off-by: mramotar <mramotar@dropbox.com>

* Format

Signed-off-by: mramotar <mramotar@dropbox.com>

* Api Dump + Format

Signed-off-by: mramotar <mramotar@dropbox.com>

* Add default config

Signed-off-by: mramotar <mramotar@dropbox.com>

* Check all

Signed-off-by: mramotar <mramotar@dropbox.com>

* Add ItemValidator

Signed-off-by: mramotar <mramotar@dropbox.com>

* README.md

Signed-off-by: mramotar <mramotar@dropbox.com>

* With ViewModel

Signed-off-by: mramotar <mramotar@dropbox.com>

* Format

Signed-off-by: mramotar <mramotar@dropbox.com>

* Implement fetcher and updater

Signed-off-by: mramotar <mramotar@dropbox.com>

* Cleanup Readme/Remove Persister (#474)

* cleanup readme and rename a few concepts

* fix tests

* readme cleanup

* readme cleanup

* readme cleanup

* readme cleanup

* lint

Co-authored-by: Mike Nakhimovich <mnakhimovich@Mikes-MBP.localdomain>

* Regenerate gradle-wrapper.jar

Signed-off-by: mramotar <mramotar@dropbox.com>

* Prepare for release 5.0.0-alpha1

Signed-off-by: mramotar <mramotar@dropbox.com>

* Prepare for next development version

Signed-off-by: mramotar <mramotar@dropbox.com>

* Target browser and Node!

Signed-off-by: mramotar <mramotar@dropbox.com>

* Only generate Swift Package on release

Signed-off-by: mramotar <mramotar@dropbox.com>

* Fix iOS targets

Signed-off-by: mramotar <mramotar@dropbox.com>

* Fix workflow

Signed-off-by: mramotar <mramotar@dropbox.com>

* Fix workflow

Signed-off-by: mramotar <mramotar@dropbox.com>

* Run manually only

Signed-off-by: mramotar <mramotar@dropbox.com>

* Update RELEASING.md

Signed-off-by: mramotar <mramotar@dropbox.com>

* Update README.md

Signed-off-by: matt-ramotar <mramotar@dropbox.com>

* Run on macos

Signed-off-by: mramotar <mramotar@dropbox.com>

* Remove Dropbox references

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Prepare for release 5.0.0-alpha02

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Prepare next development version

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Update CHANGELOG.md

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Add tests for complex markets

Signed-off-by: mramotar <mramotar@dropbox.com>

* Fix import

Signed-off-by: mramotar <mramotar@dropbox.com>

* Fix tests

Signed-off-by: mramotar <mramotar@dropbox.com>

* Format

Signed-off-by: mramotar <mramotar@dropbox.com>

* Distinguish network, store, and common representations

Signed-off-by: mramotar <mramotar@dropbox.com>

* Update NetworkFetcher

Signed-off-by: mramotar <mramotar@dropbox.com>

* Refactor inputs + outputs

Signed-off-by: mramotar <mramotar@dropbox.com>

* Update sample + fix tests

Signed-off-by: mramotar <mramotar@dropbox.com>

* Update comment

Signed-off-by: mramotar <mramotar@dropbox.com>

* Port Cache

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Update README.md

Signed-off-by: Matt <mramotar@dropbox.com>

* Move README.md

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Update README.md

Signed-off-by: Matt <mramotar@dropbox.com>

* Update README.md

Signed-off-by: Matt <mramotar@dropbox.com>

* Merge multicast from github.com/MobileNativeFoundation/Store/tree/Kmp

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Fix build errors

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Format

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Format

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Move to market package

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Add Fetcher + FetcherResult

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Api dump + format

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Port Store

Signed-off-by: mramotar <mramotar@dropbox.com>

* Add unit test

Signed-off-by: mramotar <mramotar@dropbox.com>

* Format

Signed-off-by: mramotar <mramotar@dropbox.com>

* Fix tests

Signed-off-by: mramotar <mramotar@dropbox.com>

* Update .gitignore

Signed-off-by: mramotar <mramotar@dropbox.com>

* Api Dump

Signed-off-by: mramotar <mramotar@dropbox.com>

* Cover stream and fresh

Signed-off-by: mramotar <mramotar@dropbox.com>

* Fix tests

Signed-off-by: mramotar <mramotar@dropbox.com>

* Run on MacOS

Signed-off-by: mramotar <mramotar@dropbox.com>

* Use Java 11

Signed-off-by: mramotar <mramotar@dropbox.com>

* Add HotFlowStoreTest

Signed-off-by: mramotar <mramotar@dropbox.com>

* Add gradle plugin repository

Signed-off-by: mramotar <mramotar@dropbox.com>

* Update check.yml

Signed-off-by: Matt <mramotar@dropbox.com>

* Update check.yml

Signed-off-by: Matt <mramotar@dropbox.com>

* Add ClearAllStoreTests

Signed-off-by: mramotar <mramotar@dropbox.com>

* Use Java 11

Signed-off-by: mramotar <mramotar@dropbox.com>

* Format

Signed-off-by: mramotar <mramotar@dropbox.com>

* Fix tests

Signed-off-by: mramotar <mramotar@dropbox.com>

* Remove binary-compatibility-validator

Signed-off-by: mramotar <mramotar@dropbox.com>

* Ignore Store podspec

Signed-off-by: mramotar <mramotar@dropbox.com>

* Update check.yml

Signed-off-by: mramotar <mramotar@dropbox.com>

* Use Java 11

Signed-off-by: mramotar <mramotar@dropbox.com>

* Use channel flow

Signed-off-by: mramotar <mramotar@dropbox.com>

* Format

Signed-off-by: mramotar <mramotar@dropbox.com>

* Fix tests

Signed-off-by: mramotar <mramotar@dropbox.com>

* Revert workflow

Signed-off-by: mramotar <mramotar@dropbox.com>

* Disable transformation

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Disable transformation

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Disable transformation

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Add ClearStoreByKeyTests

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Add FetcherResponseTests

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Add KeyTrackerTests

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Add StoreWithInMemoryCacheTests

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Add StreamWithoutSourceOfTruthTests

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* ValueFetcherTests

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Add MapIndexedTests

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Add FetcherControllerTests

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Add StoreResponseTests

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Add SourceOfTruthErrorsTests

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Add SourceOfTruthWithBarrierTests

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Remove Market and update README

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Remove Market sample

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Update README

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

* Update CHANGELOG

Signed-off-by: Matt Ramotar <mramotar@dropbox.com>

Signed-off-by: mramotar <mramotar@dropbox.com>
Signed-off-by: Matt Ramotar <mramotar@dropbox.com>
Signed-off-by: matt-ramotar <mramotar@dropbox.com>
Signed-off-by: Matt <mramotar@dropbox.com>
Co-authored-by: Mike Nakhimovich <digitalbuddha@users.noreply.github.com>
Co-authored-by: Mike Nakhimovich <mnakhimovich@Mikes-MBP.localdomain>
2022-12-18 10:53:21 -05:00
matt-ramotar
d04cd73ef1
Prepare for release 4.0.7 (#465)
Signed-off-by: mramotar <mramotar@dropbox.com>

Signed-off-by: mramotar <mramotar@dropbox.com>
2022-11-20 12:15:33 -05:00
matt-ramotar
61a57e5d70
Prepare for release 4.0.6 (#464)
Signed-off-by: mramotar <mramotar@dropbox.com>

Signed-off-by: mramotar <mramotar@dropbox.com>
2022-11-20 12:04:26 -05:00
matt-ramotar
157a2161a9
Flip coordinates (#463)
Signed-off-by: mramotar <mramotar@dropbox.com>

Signed-off-by: mramotar <mramotar@dropbox.com>
2022-11-20 11:16:52 -05:00
Sam Edwards
fb55f6a0c7
Update CHANGELOG and Sample App to use 4.0.5. (#426)
* Update sample app to use latest stable version 4.0.5.

* Update README to point to latest version 4.0.5

* Updated CHANGELOG to call out support for older Kotlin versions.

Co-authored-by: Sam Edwards <samedwards@dropbox.com>
2022-03-30 12:56:54 -04:00
Brent Watson
9721acd244
Keep README in sync with changes from PR #200 (#403) 2022-03-30 10:19:00 -04:00
Ryan Harter
f65268e602
Adds license to readme. (#396) 2022-01-31 16:49:58 -06:00
David Chang
35b79b71cb
Prepare for release 4.0.4-KT15 (#359) 2021-12-08 10:59:41 -08:00
Chris Mitchell
749bc9dfcb
Prepare next development version (#345) 2021-12-08 08:01:38 -08:00
Mike Nakhimovich
a21dacf5b9
Prepare for release 4.0.2-KT15 (#274)
* Prepare for release 4.0.2-KT15

* Update build.gradle

Co-authored-by: miken <miken@dropbox.com>
2021-05-17 12:48:14 -04:00
Mike Nakhimovich
86ab7a5251
Fire off kotlin 1.5 compatible snapshot (#273)
* upgrade to kotlin 1.5 warning breaking change

* upgrading to kotlin15, create new snapshot

Co-authored-by: miken <miken@dropbox.com>
2021-05-10 14:28:52 -04:00
David Chang
80cccd2963 Prepare for release 4.0.1 2021-05-06 10:06:13 -07:00
Mike Nakhimovich
35fd9af24f
Remove deprecated code to fix error when users upgrade to kotlin 1.5 (#265)
* upgrade to kotlin 1.5 warning breaking change

* achieve compatibility with 1.4 and 1.5

* trigger travis

* fix lint

Co-authored-by: miken <miken@dropbox.com>
2021-05-06 11:45:17 -04:00
William Clausen
c4cb296af1
Prepare for release 4.0.0 (#248)
Co-authored-by: William Clausen <wclausen@dropbox.com>
2020-11-30 15:00:10 -05:00
Mike Nakhimovich
aa0bb9b665
Update README.md 2020-11-30 14:37:12 -05:00
William Clausen
b77c37b8c4
Release 4.0.0-beta01 (#234)
* Update RELEASING.md

Needed to improve documentation about handling PRs for release versions

* Prepare for release 4.0.0-beta01

Co-authored-by: William Clausen <wclausen@dropbox.com>
2020-09-21 13:34:08 -07:00
Dave Parker
3c2f994648 Prepare for release 4.0.0-alpha07 2020-08-19 13:11:59 -04:00
Yigit Boyar
b86050496c
Yigit/move fetcher factories to fetcher (#168) (#181)
* Move Fetcher factories into companion

Fetcher factories were global methods, which made them hard
to discover since IDE cannot easily auto-complete.

This PR moves them into the companion of Fetcher while also
making Fetcher a real interface instead of a typealias.

Even though it is a bit more code for the developer, now they
can easily discover how to create a Fetcher by typing Fetcher.

Fixes: #167

* make rx methods start w/ from too for consistency

* Rename fether factories to be more clear, hopefully :/

* remove fetch method, use invoke instead

* Make Fetcher.from the one that receives a suspend fun.
Create Fetcher.fromFlow for the flowing version.

Rename both SourceOfTruth builder methods to . Rely on param names to disambiguate

* use .of instead, this seems better to me.

We should probably get rid of StoreBuilder.from and make it
Store.builder()

* fix jvm name for SourceOfTruth.of with flow function

* fix RxSourceOfTruth name to match original class

* specify bounds for FactoryFetcher

* updates per PR review

* update graph per SoT rename

* update rxjava3 APIs as well

These appeared after i rebased, missed them completely.
Also fixed some tests, appearantly IJ parameter name refactor does
not always work

* supress wrong unnecessary cast warning

without this, multicaster cannot resolve to the base StoreResponse type

* upgade gradle, try to fix build by disabling caching

* split subscribers

* resubscribe

Co-authored-by: miken <miken@dropbox.com>

Co-authored-by: miken <miken@dropbox.com>
2020-06-19 06:00:50 -04:00
Eric
0afefdb0b0
README corrections (#176) 2020-05-30 16:35:16 -07:00
takasfz
5a4f6e47e4
Fix README.md (#172) 2020-05-21 08:36:49 -07:00
Eyal Guthmann
431b98fd5c Prepare for release 4.0.0-alpha06. 2020-04-29 11:15:51 -07:00
Eyal Guthmann
e71a4e9e4a
Support non exception errors from fetcher (#123)
* Support non exception errors from fetcher

* revert parital changes to store builder to reduce noise

* finish off diff

* Allow to create a FetcherResult.Error without a Throwable. Add tests

* Add missing funcion and more tests

* lint

* unflake RxFlowableStoreTest

* try to rename FakeFetcher to FakeRxFetcher to (maybe) solve missing codcov

* move SourceOfTruth out of impl package

* Rename accidental change of RxStoreBuilder.fromMaybe back to formSingle

* Introduce Fetcher from #139

* fix Rx artifact

* delete legacy presistor factory

* fix api file

* move fetcher to be a typealias

* code review comments + clean up documentation

* code review comments

* Update store/src/main/java/com/dropbox/android/external/store4/Fetcher.kt

Co-Authored-By: Yigit Boyar <yboyar@google.com>

* Revert "Update sample app's build.gradle to refer to the externally released version of Store (#159)"

This reverts commit fc8da86f63.

* update releasing.md

Co-authored-by: Yigit Boyar <yboyar@google.com>
2020-04-29 10:31:10 -07:00
Dave Parker
8f0625fc70
Contain @ExperimentalStdlibApi within relevant scope. (#154)
* Contain @ExperimentalStdlibApi within relevant scope.

The alpha04 release of Store caused the requirement of the @ExperimentalStdlibApi annotation for client code. I looked into it, and the only thing in Store that required the annotation was the Kotlin ArrayDeque used in the BufferImpl class. That class is private in the ChannelManager.kt file, so I opted that file into the annotation and removed all other occurences of the annotation.

Code compiles, all 208 tests pass.

* update to correct git glitch in /build.gradle

* update to address 'needless blank line' linter

* Prepare for release 4.0.0-alpha05

* Prepare for next development version.

Co-authored-by: Dave Parker <davidp@dropbox.com>
2020-04-19 19:51:50 -04:00
Dave Parker
fc6505f2d0 Prepare for release 4.0.0-alpha04 2020-04-06 10:55:00 -07:00
Claus Holst
ee133dc5a0
#126 [Feature Request] Migrate cache library to use kotlin.time APIs (#129)
* Migrate cache library to use kotlin.time APIs

* Fix docs and inline durations in tests

* Migrate cache library to use kotlin.time APIs

* Only require ExperimentalTime when setting cache expiration

* Set ExperimentalTime on RealStore to use it on MemoryPolicy

* Set ExperimentalTime on Cache interface and not on functions

* Avoid ExperimentalTime annotation in filesystem module

* Remove unneeded ExpirationTime annotation

* Remove unneeded ExpirationTime annotation
2020-03-16 14:29:19 -07:00
Amokrane Chentir
5be4e580a6
Fix dependency declaration in README (#122)
Use double quotes for string interpolation
2020-02-28 12:00:55 -08:00
Mike Nakhimovich
6fec8d8924
Update README.md 2020-02-18 20:12:07 -05:00
David Chang
a44de986ac
Revert the version bump (#107)
* Revert "Prepare next development version."

This reverts commit 4397b4390d.

* Revert "Prepare for release 4.0.0-alpha04"

This reverts commit 671bfeaf26.
2020-02-15 14:04:11 -08:00
David Chang
671bfeaf26 Prepare for release 4.0.0-alpha04 2020-02-15 13:31:51 -08:00
David Chang
47bc665d78
Add code coverage badge (#103) 2020-02-14 05:59:31 -05:00
William Clausen
12a2600551 Prepare for release 4.0.0-alpha03 2020-02-13 11:40:22 -08:00
Mike Nakhimovich
d125a7cf29
Update README.md 2020-01-29 10:37:14 -05:00
Yang
613a5c8296 Add support for purging all store entries (#79)
* Fix typos.

* Gradle 6.1, AGP 4.0.0-alpha09, lifecycle 2.2.0.

* Add experimental invalidateAll() support and @ExperimentalStoreAPI annotation.

* Update sample with deleteAll function.

* Update README.md with deleteAll function.

* Add a section to README.md on clearing store entries.

* Rewrite tests without mocking. Move test utils / helpers to a single package.

* Code formatting and cleanups.

* Use StoreResponse.Data instead of DataWithOrigin in ClearAllStoreTest and ClearStoreByKeyTest.

* Simplified samples. Refactor tests.

* Gradle 6.1.1.
2020-01-28 09:02:28 -08:00
ychescale9
ccf9a66f07 Improve README.md. (#70)
* Improve README.md.

* Fix typo, add maven central badge, remove brackets around Store version.
2020-01-18 18:06:59 -08:00
William Clausen
351f534579 Update README to reflect availability of alpha artifacts in Maven (#61) 2020-01-10 21:13:16 -05:00
William Clausen
c227221b23 Increment version for 4.0.0-alpha01 release and prep next development version (#58)
* Prepare for release 4.0.0-alpha01

* Prepare next development version

* Update build.gradle

Co-Authored-By: Mike Nakhimovich <digitalbuddha@users.noreply.github.com>

Co-authored-by: Mike Nakhimovich <digitalbuddha@users.noreply.github.com>
2020-01-10 16:46:02 -05:00
Masataka Hirano
c99db1f05f Refactor README sample code (#60) 2020-01-10 11:01:56 -05:00
Andrey Beryukhov
dab29bd166 Replace Store.fetch() on fresh() methods in ReadMe (#52) 2020-01-02 14:47:08 -05:00
Nuh Koca
14b0646202 Fix README typos (#46) 2019-12-23 12:31:37 -05:00
David Algar
98062b155b Update Readme.md with correct artifact id (#23)
The artifact id `store4`, so the current included example dependency line doesn't locate the library.   Changing it to `store4` correctly finds the library in the local repository.
2019-12-11 11:53:33 -05:00
Mike Nakhimovich
7cb52099f6
Update README.md 2019-12-10 20:46:08 -05:00
Mike Nakhimovich
ff06e28697
Update readme to trigger travis build (#15)
* Update readme to trigger travis build

* fix deploy script to not refer to nytimes

* Update deploy_snapshot.sh
2019-12-10 13:48:43 -05:00
David Chang
03c7ef6267
Update README with Store maven gradle dependency 2019-12-09 12:11:19 -08:00
Mike Nakhimovich
a362c33c0a
Remove parsing blurb from Readme (#4)
Store3 took a parser, store4 doesn't need to due to how easy it is to add transformations to the fetcher or reader flows
2019-12-07 00:51:29 +01:00
Mike Nakhimovich
59ab3f0889
Add not about missing maven artifact (#6)
Add how to build from source and install into local m2 repo
2019-12-07 00:19:36 +01:00
Júlio Zynger
5d6ccf8422 Fix link in README (#3)
* Fix link in README

* Oops bracket
2019-12-07 00:10:40 +01:00
Yigit Boyar
2e80c6d7df Update readme (#2)
* update readme to show new streaming APIs

* more readme fixes, styles etc

* fix version to snapshot
2019-12-06 16:59:07 +01:00
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
Mike Nakhimovich
1356a27975
clean up readm (#45) 2019-11-04 21:11:07 -05:00