Skip to content

fix: rename Error to AsyncError in ObjC/Swift export - #52

Merged
mrmans0n merged 2 commits into
mainfrom
fix/ios-error-name-clash
Mar 16, 2026
Merged

mrmans0n merged 2 commits into
mainfrom
fix/ios-error-name-clash

Conversation

@mrmans0n

Copy link
Copy Markdown
Owner

Summary

Add @ObjCName annotations to avoid name collisions with Swift.Error when using the library from iOS/Swift.

Changes

  • Error class → AsyncError
  • ErrorId value class → AsyncErrorId
  • ErrorWithMetadata function → AsyncErrorWithMetadata
  • ErrorWithId function → AsyncErrorWithId

Notes

This is a non-breaking change for Kotlin consumers. The annotations only affect the ObjC/Swift interop layer.

Uses @OptIn(ExperimentalObjCName::class) at file level since the annotation is still experimental in Kotlin 2.x.

Add @ObjCName annotations to avoid name collisions with Swift.Error
when using the library from iOS/Swift:

- Error class → AsyncError
- ErrorId value class → AsyncErrorId
- ErrorWithMetadata function → AsyncErrorWithMetadata
- ErrorWithId function → AsyncErrorWithId

This is a non-breaking change for Kotlin consumers.
@github-actions

github-actions Bot commented Mar 16, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-03-16 18:47 UTC

@mrmans0n
mrmans0n merged commit dd18dd2 into main Mar 16, 2026
3 checks passed
@mrmans0n
mrmans0n deleted the fix/ios-error-name-clash branch March 16, 2026 18:46
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.

1 participant