-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Create a friends configuration to use internals. #8651
base: master
Are you sure you want to change the base?
Conversation
From https://www.liutikas.net/2025/01/12/Kotlin-Library-Friends.html we should avoid using @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") So instead lets just be friends.
One reference left in okhttp.android.test.AndroidAsyncDnsTest To follow up |
api(projects.okhttp) | ||
"friends"(projects.okhttp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this requires two configurations: implementationFriend
and apiFriend
. Otherwise you are changing the visibility of the transitive dependency, as evidence by all the unrelated changes below where you are having to add the dependency yourself when it should be automatically available.
From https://www.liutikas.net/2025/01/12/Kotlin-Library-Friends.html we should avoid using
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
So instead lets just be friends.