Commit graph

64 commits

Author SHA1 Message Date
Yigit Boyar
25ef7dc72d Move dependencies to AndroidX 2019-06-30 06:18:07 -07:00
Fabio Collini
91217c8fa8 RealInternalStore refactoring (#1)
* AGP 3.5.0-beta04

* Stream implementation defined in the interface

* New class StoreWrapper

* Delete StoreBuilder

* Rename plus methods

* Move stalePolicy to Persister

* Simplify code

* Move inflight request management to a new class

* Move cache management to a new class

* Move wrappers to new package

* Delete StoreWrapper class

* New test

* Restored old versions

* Restored old versions

* Restored old versions

* Restored old versions

* Restored old versions

* Restored old versions

* Add runCatching to ignore exceptions on persisters

* Backward compatible RealStoreBuilder implementation

* Fix tests
2019-06-29 19:49:47 -04:00
fabioCollini
fc77dd153c Kotlin 1.3.31 2019-05-21 21:32:27 +02:00
fabioCollini
f3f330fa49 Android Gradle Plugin 3.5.0-beta02 and gradle 5.4.1 2019-05-21 20:25:46 +02:00
Brian Plummer
cba0bbd11b update gradle plugin and wrapper for AS 3.5 beta1, temp fix for null input to ParserException 2019-05-17 17:53:56 -04:00
fabioCollini
e2c0460964 Replaced Channel with BroadcastChannel 2019-02-20 23:23:35 -05:00
Mike Nakhimovich
e024b64e11 WIP 2019-02-12 11:40:39 -05:00
fabioCollini
1b9e79a565 Fix some tests 2019-02-11 15:15:08 -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
ychescale9
59f9c68342 Update SDK, build tools, gradle, AGP, Kotlin, and library dependencies. (#371)
* Update SDK, build tools, gradle, AGP, Kotlin, and library dependencies.

* Update travis config with new SDK version.
2019-01-07 15:05:05 +01: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
31ec45caa6 middleware conversion to kotlin (#351)
* convert middleware to kotlin, start with tests

* convert source

* pr feedback, change mocks to lateinit

* change compile to implementation

* change rest of compile to use implementation, and append version of kotlin

* remove obsolete constructor checks

* pr feedback convert one liners to assignments
2018-07-11 14:02:33 -04:00
Brian Plummer
df71de8bbd
convert moshi middleware to kotlin (#349)
* start conversion of middleware to moshi, tests first

* convert data model of tests

* convert source to kotlin

* pr feedback, change mocks to lateinit
2018-07-10 15:13:44 +02:00
Brian Plummer
fae3ccc828
Convert sample to kotlin (#347)
* start of sample app conversion to kotlin

* go with moshi kotlin codegen instead of immutables

* pr feedback, use lateinit and make non-null

* pr feedback, unwind method
2018-07-10 14:07:50 +02:00
Ramona Harrison
b62cd730ad Prepare next development version. 2018-06-07 14:13:38 -04:00
Ramona Harrison
6ea6f30a6a Prepare for release 3.1.0. 2018-06-07 13:43:16 -04:00
Mike Nakhimovich
6ac40cd371 StoreRoom (#338)
* roomStore

* kt the app class

* refactor

* fix compilation

* Update .travis.yml

* migrate relevant tests to RoomStore, mark new Room API with @Experimental

* pr feedback

* bump minor rev up

* cleanup store

* create factory, clean up example

* pr comments
2018-05-30 18:56:08 +02:00
Tournaris Pavlos-Petros
d92307f0ff Bump AGP to 3.1.2 stable 2018-05-13 22:35:44 +03:00
pavlospt
7d74ccabf0
Update AGP to 3.1.0 stable 2018-03-29 16:55:33 +03:00
Ramona Harrison
527a131bbc Prepare next development version. 2018-03-20 14:13:44 -04:00
Ramona Harrison
34ebfcaabe Prepare for release 3.0.1. 2018-03-20 13:40:54 -04:00
Pavlos-Petros Tournaris
ca615320a8 Update Kotlin & AGP versions (#311)
* Update AGP to stable 3.0.1 version

* Update Kotlin to stable 1.2.21 version
2018-02-02 20:40:45 +01:00
Ramona Harrison
6e9875855a Prepare next development version. 2018-02-01 14:00:19 -05:00
Ramona Harrison
1d0ce5f4c1 Prepare for release 3.0.0. 2018-02-01 13:45:53 -05:00
Ramona Harrison
2e4b6f734b
Update build tools to 26.0.2 (#283) 2017-10-30 10:46:53 -04: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
Jorge Antonio Díaz-Benito Soriano
c0eb4331b5 Kotlin 1.1.4 for store-kotlin (#267) 2017-08-17 07:58:44 -04:00
Ramona Harrison
21fc584e2d Prepare next development version. 2017-07-26 11:54:00 -04:00
Ramona Harrison
982f3baa09 Prepare for release 3.0.0-beta. 2017-07-26 11:31:30 -04:00
Jorge Antonio Díaz-Benito Soriano
10d0cf6d07 Add store-kotlin module (#229)
* Add store-kotlin module

* Remove useless file

* Fix package in AndroidManifest

* Refactor module tests to assertJ

* Remove wrong annotation

* Add store-kotlin artifact to README

* Add module README

* Add KDoc to Javadoc jar

* Add Experimental annotation

* Mark all public store-kotlin classes as @Experimental

* Replace use of rx's @Experimental with local one instead
2017-06-22 21:22:34 -04:00
Ramona Harrison
a85a04f9c1 Prepare next development version. 2017-05-23 18:23:02 -04:00
Ramona Harrison
047fbf3615 Prepare for release 3.0.0-alpha. 2017-05-23 18:15:13 -04:00
Ramona Harrison
730fa5bb66 Prepare next development version. (#222)
* Prepare next development version.

* Update deploy script branch for Rx2 branch
2017-05-23 17:39:00 -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
Mike Nakhimovich
f009e11a0b Feature/rx2 package rename (#171)
* first pass at store2 artifacts
2017-03-23 17:48:16 -04:00
Kevin AUDE
de6f55ed1b Remove apt dependency and use annotationProcessor instead (#166) 2017-03-23 07:19:20 -04:00
Plummer
3dba807258 Prepare next development version. 2017-03-13 17:08:50 -04:00
Plummer
7e87c254d5 Prepare for release 2.0.2 2017-03-13 16:56:36 -04:00
Plummer
aada5df067 Prepare next development version. 2017-02-28 15:46:16 -05:00
Plummer
0ff02895c6 Prepare for release 2.0.1 2017-02-28 15:31:13 -05:00
digitalbuddha
04eb58903f Prepare next development version. 2017-02-13 11:43:21 -05:00
digitalbuddha
f804983b93 Prepare for release 2.0.0. 2017-02-13 11:37:12 -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
Mike Nakhimovich
154ee0e533 lets try this travis snapshot deploy again... (#113)
* deploy snapshot
2017-02-07 10:35:41 -05:00
digitalbuddha
7154e265a6 Prepare next development version. 2017-01-30 12:13:15 -05:00
digitalbuddha
becd9c2c14 Prepare for release 1.0.7. 2017-01-30 11:57:42 -05:00