Skip to content

Enable custom Kotlin package name configuration in skip.yml#181

Merged
marcprux merged 1 commit intomainfrom
custom-package
Feb 7, 2026
Merged

Enable custom Kotlin package name configuration in skip.yml#181
marcprux merged 1 commit intomainfrom
custom-package

Conversation

@marcprux
Copy link
Member

@marcprux marcprux commented Feb 7, 2026

This PR adds the ability to customize the generated Kotlin package name for an individual Skip module with the package attribute in the skip.yml. For example, a Swift module name "MyModule" would default to my.module (as per the name transformation rules described at https://skip.dev/docs/platformcustomization/#kotlin-package-names), but now it can be overridden to be "com.example.mymodule":

skip:
  package: 'com.example.mymodule'

Fixes skiptools/skip#610

@cla-bot cla-bot bot added the cla-signed label Feb 7, 2026
@marcprux marcprux requested a review from aabewhite February 7, 2026 02:35
@marcprux
Copy link
Member Author

marcprux commented Feb 7, 2026

CC: @piercifani

Copy link

@piercifani piercifani left a comment

Choose a reason for hiding this comment

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

Thank you very much!

@marcprux marcprux merged commit 5b10325 into main Feb 7, 2026
3 checks passed
@marcprux marcprux deleted the custom-package branch February 7, 2026 22:41
@piercifani
Copy link

piercifani commented Feb 11, 2026

Any ETA on creating a release with this? :)

@marcprux
Copy link
Member Author

It should be later today. We just have a bit more testing to complete.

@piercifani
Copy link

Thanks a lot @marcprux !

@piercifani
Copy link

It doesn't seem to be working:

Given this yml:

image

The module visible in Android Studio is still the same:

image

Both the CLI and the Package.swift are using 1.7.2

@marcprux
Copy link
Member Author

package: is an attribute of skip, not of bridging. I think you may just need to de-dent that line.

@piercifani
Copy link

Duh... sorry! Thanks a lot 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow renaming the autogenerated Kotlin package name

2 participants

Comments