Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Add store-kotlin module #229
Conversation
|
Great work! One comment, we could introduce a better DSL for MemoryPolicy I guess since Kotlin allows us to do so :) something like: memoryPolicy {
expireAfterWrite = ...
expireAfterAccess = ...
expireAfterTimeUnit = ...
memorySize = ...
}Let me know what you think :) |
| @@ -0,0 +1,3 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <manifest | |||
| package="org.jorge.store.kotlin"/> | |||
stoyicker
Jun 14, 2017
Author
Contributor
ooopsie
ooopsie
| @@ -0,0 +1,9 @@ | |||
| package com.nytimes.android.external.store3.base.impl | |||
|
|
|||
| //when(other) { | |||
|
your base branch was off I changed it to |
|
First off, thank you guys, always a pleasure to help the project :)
|
|
I think you had a bad rebase, says there are 176 files touched and other commits within the branch. |
|
@digitalbuddha if the branch that he checked out from to start this was not the Rx2 one, I think the rebase is legit, since it contains all the package name changes. |
|
everything wrt to the base change has been done by github, so now that you guys mention I should probably rebase to drop the commits from the other branch so that the diff correctly matches what this pr is about. will do later today |
|
@stoyicker Impressive work, huge congrats for this one! |
|
thanks :3 |
|
thank you, will rereview tonight
…On Thu, Jun 15, 2017 at 2:46 PM, Jorge Antonio Díaz-Benito Soriano < ***@***.***> wrote:
thanks :3
I've added a bit of a 'hack' to include kdoc in the javadoc jar so it
doesn't go empty to mavencentral, even though it won't be parsable by IDEs.
With that, everything other than removing commons lang should now be
addressed I think, we just need to decide on that.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#229 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AEUX3C5Jg-7cgLY0WCl3kQue0_RegGK3ks5sEXwWgaJpZM4N5C7Q>
.
|
|
LGTM! great work! |
| /** | ||
| * Wraps methods for fluent MemoryPolicy instantiation. | ||
| */ | ||
| class FluentMemoryPolicyBuilder private constructor() { |
digitalbuddha
Jun 21, 2017
Contributor
lets mark this class with @experimental annotation. you can create that as a new marker interface. This way we can take a few minor revisions to stabilize api prior to shipping
lets mark this class with @experimental annotation. you can create that as a new marker interface. This way we can take a few minor revisions to stabilize api prior to shipping
| * A fluent builder for Store instantiation. | ||
| * @param fetcher The fetcher for the created instance. | ||
| */ | ||
| internal class FluentRealStoreBuilder<Raw, Parsed, Key> constructor( |
|
few annotations and then lgtm |
|
thanks! I've added an Experimental annotation of our own and I have also updated usages of rx's one to it. As for the new artifact, all public classes are now annotated as Experimental. |
10d0cf6
into
nytimes:feature/rx2
This PR adds a new artifact, store-kotlin, which compiles regular Store and includes a few handy methods for Store initialization when using Kotlin.
I doubt this will seamlessly plug onto the current release procedure because the documentation generated by dokka goes somewhere else than the traditional javadoc by default, and I'm not sure what approach to take - could probably use some help with regards to that.
Also, a few tests use reflection via commons lang
EqualsBuilder.reflectionEquals(...). If in the future the relevant attributes gain more relaxed access it may be a good idea to edit the tests.