-
Notifications
You must be signed in to change notification settings - Fork 3
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 core to be mpp #20
base: main
Are you sure you want to change the base?
Conversation
# Conflicts: # build.gradle.kts # core/build.gradle.kts
� Conflicts: � core/build.gradle.kts � core/src/commonMain/kotlin/arrow/endpoint/ArrowEndpoint.kt � core/src/commonMain/kotlin/arrow/endpoint/Endpoint.kt � core/src/commonMain/kotlin/arrow/endpoint/EndpointIO.kt � core/src/commonMain/kotlin/arrow/endpoint/EndpointInput.kt � core/src/commonMain/kotlin/arrow/endpoint/EndpointInterceptor.kt � core/src/commonMain/kotlin/arrow/endpoint/EndpointOutput.kt � core/src/commonMain/kotlin/arrow/endpoint/EndpointTransput.kt � core/src/commonMain/kotlin/arrow/endpoint/FieldName.kt � core/src/commonMain/kotlin/arrow/endpoint/Mapping.kt � core/src/commonMain/kotlin/arrow/endpoint/MethodSyntax.kt � core/src/commonMain/kotlin/arrow/endpoint/Params.kt � core/src/commonMain/kotlin/arrow/endpoint/client/RequestInfo.kt � core/src/commonMain/kotlin/arrow/endpoint/model/CodecFormat.kt � core/src/commonMain/kotlin/arrow/endpoint/model/Cookie.kt � core/src/commonMain/kotlin/arrow/endpoint/model/Header.kt � core/src/commonMain/kotlin/arrow/endpoint/model/MediaType.kt � core/src/commonMain/kotlin/arrow/endpoint/model/Method.kt � core/src/commonMain/kotlin/arrow/endpoint/model/QueryParams.kt � core/src/commonMain/kotlin/arrow/endpoint/model/Rfc2616.kt � core/src/commonMain/kotlin/arrow/endpoint/model/Rfc3986.kt � core/src/commonMain/kotlin/arrow/endpoint/model/StatusCode.kt � core/src/commonMain/kotlin/arrow/endpoint/server/ServerEndpoint.kt � core/src/commonMain/kotlin/arrow/endpoint/server/interpreter/DecodeBasicInputsResult.kt � core/src/commonMain/kotlin/arrow/endpoint/server/interpreter/InputValueResult.kt � core/src/commonMain/kotlin/arrow/endpoint/server/interpreter/OutputValues.kt � core/src/commonMain/kotlin/arrow/endpoint/server/interpreter/RequestBody.kt � core/src/commonMain/kotlin/arrow/endpoint/server/interpreter/ServerInterpreter.kt � core/src/jvmMain/kotlin/arrow/endpoint/ArrowEndpoint.kt � core/src/jvmMain/kotlin/arrow/endpoint/Endpoint.kt � core/src/jvmMain/kotlin/arrow/endpoint/EndpointIO.kt � core/src/jvmMain/kotlin/arrow/endpoint/EndpointInput.kt � core/src/jvmMain/kotlin/arrow/endpoint/EndpointInterceptor.kt � core/src/jvmMain/kotlin/arrow/endpoint/EndpointOutput.kt � core/src/jvmMain/kotlin/arrow/endpoint/EndpointTransput.kt � core/src/jvmMain/kotlin/arrow/endpoint/FieldName.kt � core/src/jvmMain/kotlin/arrow/endpoint/Mapping.kt � core/src/jvmMain/kotlin/arrow/endpoint/MethodSyntax.kt � core/src/jvmMain/kotlin/arrow/endpoint/Params.kt � core/src/jvmMain/kotlin/arrow/endpoint/client/RequestInfo.kt � core/src/jvmMain/kotlin/arrow/endpoint/model/CodecFormat.kt � core/src/jvmMain/kotlin/arrow/endpoint/model/Cookie.kt � core/src/jvmMain/kotlin/arrow/endpoint/model/Header.kt � core/src/jvmMain/kotlin/arrow/endpoint/model/MediaType.kt � core/src/jvmMain/kotlin/arrow/endpoint/model/Method.kt � core/src/jvmMain/kotlin/arrow/endpoint/model/QueryParams.kt � core/src/jvmMain/kotlin/arrow/endpoint/model/Rfc2616.kt � core/src/jvmMain/kotlin/arrow/endpoint/model/Rfc3986.kt � core/src/jvmMain/kotlin/arrow/endpoint/model/StatusCode.kt � core/src/jvmMain/kotlin/arrow/endpoint/server/ServerEndpoint.kt � core/src/jvmMain/kotlin/arrow/endpoint/server/interpreter/DecodeBasicInputsResult.kt � core/src/jvmMain/kotlin/arrow/endpoint/server/interpreter/InputValueResult.kt � core/src/jvmMain/kotlin/arrow/endpoint/server/interpreter/OutputValues.kt � core/src/jvmMain/kotlin/arrow/endpoint/server/interpreter/RequestBody.kt � core/src/jvmMain/kotlin/arrow/endpoint/server/interpreter/ServerInterpreter.kt � core/src/main/kotlin/arrow/endpoint/ArrowEndpoint.kt � core/src/main/kotlin/arrow/endpoint/Endpoint.kt � core/src/main/kotlin/arrow/endpoint/EndpointIO.kt � core/src/main/kotlin/arrow/endpoint/EndpointInput.kt � core/src/main/kotlin/arrow/endpoint/EndpointInterceptor.kt � core/src/main/kotlin/arrow/endpoint/EndpointOutput.kt � core/src/main/kotlin/arrow/endpoint/EndpointTransput.kt � core/src/main/kotlin/arrow/endpoint/FieldName.kt � core/src/main/kotlin/arrow/endpoint/Mapping.kt � core/src/main/kotlin/arrow/endpoint/MethodSyntax.kt � core/src/main/kotlin/arrow/endpoint/Params.kt � core/src/main/kotlin/arrow/endpoint/client/RequestInfo.kt � core/src/main/kotlin/arrow/endpoint/model/CodecFormat.kt � core/src/main/kotlin/arrow/endpoint/model/Cookie.kt � core/src/main/kotlin/arrow/endpoint/model/Header.kt � core/src/main/kotlin/arrow/endpoint/model/MediaType.kt � core/src/main/kotlin/arrow/endpoint/model/Method.kt � core/src/main/kotlin/arrow/endpoint/model/QueryParams.kt � core/src/main/kotlin/arrow/endpoint/model/Rfc2616.kt � core/src/main/kotlin/arrow/endpoint/model/Rfc3986.kt � core/src/main/kotlin/arrow/endpoint/model/StatusCode.kt � core/src/main/kotlin/arrow/endpoint/server/ServerEndpoint.kt � core/src/main/kotlin/arrow/endpoint/server/interpreter/DecodeBasicInputsResult.kt � core/src/main/kotlin/arrow/endpoint/server/interpreter/InputValueResult.kt � core/src/main/kotlin/arrow/endpoint/server/interpreter/OutputValues.kt � core/src/main/kotlin/arrow/endpoint/server/interpreter/RequestBody.kt � core/src/main/kotlin/arrow/endpoint/server/interpreter/ServerInterpreter.kt
# Conflicts: # build.gradle.kts # core/build.gradle.kts
# Conflicts: # core/src/commonMain/kotlin/arrow/endpoint/model/Uri.kt # core/src/jvmMain/kotlin/arrow/endpoint/model/UriUtils.kt
# Conflicts: # build.gradle.kts # clients/ktor-client/src/main/kotlin/arrow/endpoint/ktor/client/KtorClientInterpreter.kt # core/build.gradle.kts # core/src/commonMain/kotlin/arrow/endpoint/ArrowEndpoint.kt # core/src/commonMain/kotlin/arrow/endpoint/model/Method.kt # core/src/commonMain/kotlin/arrow/endpoint/model/QueryParams.kt # core/src/commonMain/kotlin/arrow/endpoint/model/RequestMetadata.kt # core/src/commonMain/kotlin/arrow/endpoint/model/Rfc3986.kt # core/src/commonMain/kotlin/arrow/endpoint/model/Uri.kt # core/src/commonMain/kotlin/arrow/endpoint/predef.kt # core/src/jvmMain/kotlin/arrow/endpoint/CodecUtils.kt # core/src/jvmMain/kotlin/arrow/endpoint/SchemaUtils.kt # core/src/jvmMain/kotlin/arrow/endpoint/model/UriUtils.kt # servers/ktor-server/src/main/kotlin/arrow/endpoint/ktor/server/KtorHttpServerInterpreter.kt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Making good progress. Nice!
import java.util.Date | ||
|
||
public val Codec.Companion.uuid: Codec<String, UUID, CodecFormat.TextPlain> | ||
get() = stringCodec(Schema.uuid, UUID::fromString) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot be =
without get()
, right? Can we cache the instances?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't looked into Caching, yet
Don't fear the 2k changes, most of it is just the yarn file for KotlinJS |
Thanks for taking this on @i-walker 💪 |
# Conflicts: # core/build.gradle.kts # core/src/main/kotlin/arrow/endpoint/model/Uri.kt
parseToUri("http://abcd").fold( | ||
{ fail("this should work") }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can all become shoudBeRight()
, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, there are also other places where this fix applies, but I am focusing on getting the other platform tests to compile first.
small Update: |
Status:
temporarily on hold
A fix for https://app.clickup.com/t/kt7qd2 has been addressed here, but we can improve it more in further iterations, adding validation steps before parsing the Uri
TODO: