Skip to content

fix(annotations): add explicit custom name for iOS targets - #127

Merged
kingg22 merged 3 commits into
mainfrom
fix/annotations-klib-clash
Jul 5, 2026
Merged

kingg22 merged 3 commits into
mainfrom
fix/annotations-klib-clash

Conversation

@kingg22

@kingg22 kingg22 commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Closes #114

@kingg22 kingg22 self-assigned this Jul 5, 2026
Copilot AI review requested due to automatic review settings July 5, 2026 14:28
@kingg22 kingg22 added the bug Something isn't working label Jul 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to resolve the KLIB unique-name collision reported in #114 by introducing an explicit custom name for Apple-native outputs in the annotations multiplatform module.

Changes:

  • Refactors Apple target declarations into a single collection and applies a shared binaries.framework configuration.
  • Sets a fixed framework baseName (ktorgen-annotations) and makes the Apple frameworks static.
  • Moves watchosDeviceArm64() into the shared Apple-target block.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread annotations/build.gradle Outdated
Comment on lines +94 to +97
iosTarget.binaries.framework {
baseName = "ktorgen-annotations"
isStatic = true
}
Comment thread annotations/build.gradle Resolved
Comment thread annotations/build.gradle
Comment on lines 72 to +75
// Tiers are in accordance with <https://kotlinlang.org/docs/native-target-support.html>
// Tier 1
// iOS
iosArm64()
iosX64()
iosSimulatorArm64()
// macOs
macosX64()
macosArm64()
// Tier 2
// watchOS
watchosArm32()
watchosArm64()
watchosX64()
watchosSimulatorArm64()
// tvOS
tvosArm64()
tvosX64()
tvosSimulatorArm64()
List.of(

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread annotations/build.gradle
Comment on lines +112 to +120
metadata {
compilations.all {
def compilationName = name
compileTaskProvider.configure {
if (this instanceof KotlinCommonCompile) {
moduleName = "${project.group}:${project.name}_$compilationName"
}
}
}
Comment thread annotations/build.gradle Resolved
@sonarqubecloud

sonarqubecloud Bot commented Jul 5, 2026

Copy link
Copy Markdown

@kingg22
kingg22 merged commit 923136c into main Jul 5, 2026
9 checks passed
@kingg22
kingg22 deleted the fix/annotations-klib-clash branch July 5, 2026 15:21

This branch was previously deployed

1 inactive deployment
github-pages — 923136cc Deployed Jul 5, 2026 by kingg22 via Publish documentation of annotations #148
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ERROR] Clash KLIB name between jetbrains-annotations and ktorgen-annotations

2 participants