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

Update kotlinx-metadata APIs for changes #1766

Merged
merged 9 commits into from
Apr 17, 2024
Merged

Update kotlinx-metadata APIs for changes #1766

merged 9 commits into from
Apr 17, 2024

Conversation

ZacSweers
Copy link
Collaborator

@ZacSweers ZacSweers commented Dec 6, 2023

Copy link
Collaborator

@Egorand Egorand left a 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?

@JakeWharton
Copy link
Member

Yeah build that habit, Egor!

@Egorand
Copy link
Collaborator

Egorand commented Feb 15, 2024

@ZacSweers this would need to be rebased now that we've merged the 0.9.0 version bump: #1830.

@ZacSweers ZacSweers changed the title Update to kotlinx-metadata 0.8.0 Update kotlinx-metadata APIs for changes Apr 16, 2024
Comment on lines 1 to 7
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;
}
Copy link
Member

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?

Copy link
Collaborator Author

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?

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good

@ZacSweers ZacSweers merged commit cdb5426 into main Apr 17, 2024
8 checks passed
@ZacSweers ZacSweers deleted the z/updateKM branch April 17, 2024 18:03
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

3 participants