-
Couldn't load subscription status.
- Fork 6.1k
refactor: removed usless toHex functions #5510
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
base: master
Are you sure you want to change the base?
Conversation
| } | ||
| } | ||
| } | ||
| } |
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.
Sorry for that.
I have this setting to add newlines to the end of files enabled. Can remove that change if that's something critical.
| return File(cacheDirectory, computeDependenciesHash(dependency, resolvedConfiguration, partialLinkageMode)) | ||
| } | ||
|
|
||
| internal fun ByteArray.toHexString() = joinToString("") { (0xFF and it.toInt()).toString(16).padStart(2, '0') } |
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.
Kotlin Gradle plugin has to use a Kotlin language level of 1.4, because KGP has to be compatible with its lowest supported Gradle version, which is 7.6.
https://docs.gradle.org/current/userguide/compatibility.html
This means code in libraries/tools/kotlin-gradle-plugin/ can't use the new ByteArray.toHexString util, which was added as experimental in Kotlin 1.9.
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.
That's fair, thank you. Added this one back
We already have this in stdlib, let's use that :)
Hope nothing've broken, as far as I see the logic should be the same.
Just doing some choirs.