-
Notifications
You must be signed in to change notification settings - Fork 294
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
Update kotlinx-metadata APIs for changes #1766
Conversation
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.
Wanna add a note to the "Unreleased" section of the changelog about the API changes?
Yeah build that habit, Egor! |
@ZacSweers this would need to be rebased now that we've merged the 0.9.0 version bump: #1830. |
public final class com/squareup/kotlinpoet/metadata/KotlinPoetMetadata { | ||
public static final fun readKotlinClassMetadata (Lkotlin/Metadata;)Lkotlinx/metadata/jvm/KotlinClassMetadata; | ||
public static final fun toKmClass (Ljava/lang/Class;)Lkotlinx/metadata/KmClass; | ||
public static final fun toKmClass (Ljavax/lang/model/element/TypeElement;)Lkotlinx/metadata/KmClass; | ||
public static final fun toKmClass (Lkotlin/Metadata;)Lkotlinx/metadata/KmClass; | ||
public static final fun toKmClass (Lkotlin/reflect/KClass;)Lkotlinx/metadata/KmClass; | ||
public static final fun readKotlinClassMetadata (Lkotlin/Metadata;Z)Lkotlinx/metadata/jvm/KotlinClassMetadata; | ||
public static final fun toKmClass (Ljava/lang/Class;Z)Lkotlinx/metadata/KmClass; | ||
public static final fun toKmClass (Ljavax/lang/model/element/TypeElement;Z)Lkotlinx/metadata/KmClass; | ||
public static final fun toKmClass (Lkotlin/Metadata;Z)Lkotlinx/metadata/KmClass; | ||
public static final fun toKmClass (Lkotlin/reflect/KClass;Z)Lkotlinx/metadata/KmClass; | ||
} |
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.
None of these functions have KotlinPoet types as parameter types or return types. Do they need to be public?
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.
We've historically offered a bit of a superset of APIs here with some helpers to make KM usage easier. It's become less necessary now though that the API on their side has caught up. Let me take a pass at cleaning these up in a followup PR?
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.
Sounds good
No changelog yet: https://github.com/JetBrains/kotlin/blob/master/libraries/kotlinx-metadata/jvm/ChangeLog.md