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

refactor #17

Merged
merged 2 commits into from
Jul 31, 2023
Merged

refactor #17

merged 2 commits into from
Jul 31, 2023

Conversation

terrakok
Copy link
Contributor

No description provided.

}
sourceSets.commonTest.get().dependencies {
implementation(libs.kotlin.test)
sourceSets {
Copy link
Contributor

Choose a reason for hiding this comment

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

Here you changed the way which Sebastian recommended

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is not good idea because it works only for common source sets. for any other user will have to use "by getting" syntax

Copy link
Contributor Author

Choose a reason for hiding this comment

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

another point is I'd prefer to have a common approach in our templates.
we don't use sourceSets. for each source set

Choose a reason for hiding this comment

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

With 1.9.20 there will be static accessors not just for commonMain but other default source sets (including nativeMain, iosMain and etc)

@asm0dey asm0dey merged commit a815b7a into Kotlin:main Jul 31, 2023
6 checks passed
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.

3 participants