Commit graph

536 commits

Author SHA1 Message Date
David Chang
8e1f7008b7 Prepare next development version. 2021-05-06 10:13:47 -07:00
David Chang
7a2bb5093c Update to correct version 4.0.1 2021-05-06 10:10:27 -07: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
Israel Ferrer Camacho
1187b944bb
Update secrets and key (#264) 2021-04-26 16:49:36 -07:00
Mike Nakhimovich
7ba28a8588
add piggyback to all stores (#257)
* add piggyback to all stores

* lint

* pr feedback

Co-authored-by: miken <miken@dropbox.com>
2021-02-04 02:26:25 -05:00
William Clausen
b83ec8b1d2
Prepare for next development version (#249)
Co-authored-by: William Clausen <wclausen@dropbox.com>
2020-11-30 17:38:50 -06: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
Yigit Boyar
d6e73e1fe2
update coroutines to 1.4.0, kotlin to 1.4.10 (#242)
* update coroutines to 1.4.0, kotlin to 1.4.0

This CL updates coroutines to 1.4.0, kotlin to 1.4.10 and
also removes the only usage of ConflatedBroadcastChannel
(in SOTWithBarrier) with MutableStateFlow.

* expand SOTWithBarrier failure test

This change improves the failure test case to ensure it continues
for future writes
2020-11-08 14:52:26 -08:00
William Clausen
771c0e5a66
Prepare next development version (#235)
* Update RELEASING.md

Needed to improve documentation about handling PRs for release versions

* Prepare next development version.

Co-authored-by: William Clausen <wclausen@dropbox.com>
2020-09-21 16:57:29 -04: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
Eyal Guthmann
e773021fec
Revert to use the old guava port cache (via jar) (#200)
* Revert to using guava port cache by depending on jar

* Apply suggestions from code review

* revert code to old cache

* clean up build.gradle

* manually remove cache4 entries that are regenerated locally because of some dirty cache?

* bump gradle

* rerun tasks

* try to deflake rx tests

* cache builder tests

* api dump

* bump ktlint to work with 1.4 features

* formatting

Co-authored-by: Mike Nakhimovich <digitalbuddha@users.noreply.github.com>
2020-09-14 14:49:34 -07:00
ghus-raba
8c8fcc8271
Move filesystem types (#229)
* Move Persister to filesystem module

* Move DiskRead to filesystem module

* Move DiskWrite to filesystem module

Co-authored-by: Frantisek Nagy <frantisek.nagy@erstegroup.com>
2020-09-11 08:35:51 -07:00
ghus-raba
6cf2fe5d68
Sample app improvements (#227)
* Remove unused attribute in sample app layout

* Use FramentContainerView in sample app

* Fix content padding with expanded keyboard in sample app

Co-authored-by: Frantisek Nagy <frantisek.nagy@erstegroup.com>
2020-09-10 08:58:29 -07:00
ghus-raba
6002efdd90
Replace BarCode with Pair<String, String> (#228)
Co-authored-by: Frantisek Nagy <frantisek.nagy@erstegroup.com>
2020-09-10 08:56:23 -07:00
David Chang
761755335e
Update release notes (#218)
* Update release notes

* numbers
2020-08-21 14:12:57 -07:00
Eyal Guthmann
1a4b0b0966
use covariance to remove generic types from subtypes like Error (#220) 2020-08-21 14:08:38 -07:00
David Chang
2249a0a8a8
Prepare next development version. (#217) 2020-08-20 08:06:38 -07:00
David Chang
7ed7f3c874
Prepare for release 4.0.0-alpha07 (#216) 2020-08-20 08:03:54 -07:00
David Chang
7aa829c6a8
Use absolute path for signing key (#214) 2020-08-20 07:59:22 -07:00
David Chang
55c110195f
Prepare next development version. (#213) 2020-08-19 17:56:29 -07:00
David Chang
cf3ce9b027
Prepare for release 4.0.0-alpha07 (#212) 2020-08-19 17:55:04 -07:00
David Chang
3959b3ca25
Update signing method (#211) 2020-08-19 17:50:41 -07:00
David Chang
f80b8b2374
Prepare next development version. (#210) 2020-08-19 14:59:13 -07:00
David Chang
0a14bbdcbd
Prepare for release 4.0.0-alpha07 (#209) 2020-08-19 14:54:55 -07:00
David Chang
b26075f2a0
Merge pull request #208 from changusmc/main
Alpha07 release
2020-08-19 14:45:13 -07:00
David Chang
e82f4e9c63 Prepare next development version. 2020-08-19 14:42:48 -07:00
David Chang
0c33709101 Prepare for release 4.0.0-alpha07 2020-08-19 14:40:31 -07:00
David Chang
39af5de6c4 Prepare next development version. 2020-08-19 13:57:51 -07:00
David Chang
7706a7a9e4 Prepare for release 4.0.0-alpha07 2020-08-19 13:56:16 -07:00
Dave Parker
3f3a1b1b3c
Merge pull request #206 from DYJParker/alpha07-release
Alpha07 release
2020-08-19 13:46:08 -04:00
Dave Parker
5e76f1f0c1 Prepare next development version 2020-08-19 13:12:49 -04:00
Dave Parker
3c2f994648 Prepare for release 4.0.0-alpha07 2020-08-19 13:11:59 -04:00
Yang
a0477c1ed2
Update to Kotlin 1.4.0, Coroutines 1.3.9 and revert to using Duration.INFINITE (#195)
* Update to Kotlin 1.4.0-rc and Coroutines 1.3.8-1.4.0-rc, fix type inference issues.

* Kotlin 1.4.0.

* Coroutines 1.3.9.
2020-08-14 14:17:17 -04:00
Eyal Guthmann
ecc3470d55
Add StoreResult.NoNewData for empty fetchers. (#194)
* Add StoreResult.NoNewData for empty fetchers.

* handle no SoT case

* update comments
2020-08-07 09:26:51 -07:00
Eyal Guthmann
eb5b8c2fe8
Fix memory leak caused by capturing the user's coroutine context when… (#199)
Fix memory leak caused by capturing the user's coroutine context when creating a fetcher
2020-08-05 15:37:51 -07:00
Orhan Tozan
868059d060
Remove duplicate comment (#192) 2020-07-28 11:58:22 -07:00
Eyal Guthmann
b18db6f61f
Minor cleanup in RealStore.diskNetworkCombined (#190)
* Minor cleanup in RealStore.diskNetworkCombined

* add missing comment

* one more if-else -> when

* lint
2020-07-23 16:30:57 -07:00
Chris Banes
9c9f70a16d
Avoid using Duration.INFINITE (#189)
It currently breaks consumers compiling with Kotlin
1.4-M3 (not sure why).

Added some TODOs to revert back to using Duration.INFINITE
once Store is compiled with Kotlin 1.4

Closes #188
2020-07-23 09:08:10 -07:00
Yigit Boyar
61762f2f96
Emit source of truth errors to subscribers #177 (#180)
* reproduce #177 and fix reader errors

* dispatch write errors to receiver

Now source of truth can unblock reader while also letting them
know that an error happened while writing. This forces readers
to first dispatch the error then whatever data they have.

I've also added new public WriteException/ReadException classes
to SourceOfTruth so that it is easy to diagnose these problems
when it hits to the developer's code
2020-06-27 11:57:04 -07: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
Mike Nakhimovich
d733da1662
Update deploy_snapshot.sh 2020-06-15 16:37:47 -04:00
Yuki312
a5c29ffd3e
fix doc: default policy of max items = 100 (#169) 2020-05-30 16:47:44 -07:00
Mez Pahlan
10da116ea6
Add Store RxJava3 module (#171) 2020-05-30 16:47:14 -07: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
Yang
7c3ce55b63
Coroutines 1.3.5 (#166)
* Update Kotlin, Coroutines, Rx2, OkHttp, Okio, Gradle.

* Clean up @FlowPreview @ExperimentalCoroutinesApi which are no longer required.
2020-05-09 10:21:25 -04:00
Eyal Guthmann
42a21b327b Prepare next development version. 2020-04-29 11:15:51 -07:00
Eyal Guthmann
431b98fd5c Prepare for release 4.0.0-alpha06. 2020-04-29 11:15:51 -07:00