Commit graph

112 commits

Author SHA1 Message Date
mnakhimovich
fee0bccde7 [Store5] Target Android, iOS, JVM, JS (#493)
* [Temp] Remove all modules

* Remove references to Store 4

* Update CHANGELOG

* Update README

* Add Store 5 foundation
Co-authored-by: Andre Claßen <aclassen@users.noreply.github.com>
Co-authored-by: Mike Nakhimovich <mnakhimovich@Mikes-MBP.localdomain>
2023-01-16 16:31:12 -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
Brian Plummer
6ebeea26f3 point readme to core repo 2019-06-30 11:20:01 -04:00