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

Introduce Kotlin Multiplatform into apollo-api module #2062

Merged
merged 13 commits into from Mar 13, 2020
Merged

Conversation

tasomaniac
Copy link
Contributor

@tasomaniac tasomaniac commented Mar 10, 2020

For now, we only have jvm as a target. That means that all changes in JVM should be backward compatible.

What is next?

  • Maven publish should be tested (probably needs to be adjusted) More info: https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#publishing-a-multiplatform-library
  • FileUpload, ScalarTypeAdapters implementations only exist in jvm. So in a potential native implementation, these need to be reimplemented.
  • BigDecimal is typealiased to java.math.BigDecimal. Investigation showed that using ULong in possible native impl should be enough.
  • Optional, its siblings and UnmodifiableMapBuilder classes are kept in Java and only ever going to be available for Java code generation. This should just work for now.

Unit tests

Kept all tests in Java (Checkstyle suddenly started to yell and had to little style fixes)

In apolli-api module, we only have jvmTest target. Once we have actual multi-platform code, this needs to be moved into commonTest as much as possible.

apollo-api/build.gradle.kts Outdated Show resolved Hide resolved
Copy link
Contributor

@sav007 sav007 left a comment

Choose a reason for hiding this comment

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

🎉

@tasomaniac tasomaniac merged commit c3a264c into master Mar 13, 2020
@tasomaniac tasomaniac deleted the apollo-api-kmp branch March 13, 2020 08:19
@tonilopezmr
Copy link

This is awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants