Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Kotlin extension functions to main artifact #339

Merged
merged 6 commits into from Apr 5, 2019

Conversation

ZacSweers
Copy link
Collaborator

This preserves binary compatibility by using a different file name at the jvm level (KotlinExtensions) while adopting the Retrofit-style approach of making the kotlin extensions directly available and making the stdlib dep optional.

This also marks the existing -ktx version as deprecated with HIDDEN severity. This makes this basically seamless for consumers where the imports are unchanged.

If this looks good, we can make passes to move the other ktx functions too

This preserves binary compatibility by using a different file name at the jvm level (`KotlinExtensions`) while adopting the Retrofit-style approach of making the kotlin extensions directly available and making the stdlib dep optional
by marking these hidden, should make the new ones "just work" for consumers since the imports are the same
@ZacSweers ZacSweers self-assigned this Apr 4, 2019
Copy link
Collaborator

@ShaishavGandhi ShaishavGandhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome!

Can we remove the autodispose-ktx in sample? That way we can make sure that it's a drop-in replacement.

Also looks like AnimalSniffer isn't playing well with the compileOnly. Do we want to run it on tests?

@ZacSweers
Copy link
Collaborator Author

I forgot about intrinsics. Let's just make it implementation then

@ZacSweers ZacSweers merged commit c89a71d into master Apr 5, 2019
@ZacSweers ZacSweers deleted the z/inlineKotlinApis branch April 5, 2019 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants