aenri
07/11/2022, 1:45 AM:generateMetadataFileForKotlinMultiplatformPublication
with the error Invalid publication "kotlinMultiplatform"
while using the maven-publish
plugin. Is this something that there's a fix for or should I be doing something else to publish my library?Lukellmann
07/19/2022, 1:12 PMHIDDEN
?
for WARNING
and ERROR
you can do this:
@Deprecated("w", level = DeprecationLevel.WARNING)
val w = "w"
@Deprecated("e", level = DeprecationLevel.ERROR)
val e = "e"
@Deprecated("h", level = DeprecationLevel.HIDDEN)
val h = "h"
println(@Suppress("DEPRECATION") w)
println(@Suppress("DEPRECATION_ERROR") e)
println(@Suppress("?? what goes here ??") h)
Lukellmann
07/23/2022, 4:48 PM@RequiresOptIn
annotations in our library.
1. Experimental annotations for some new API that might change.Lukellmann
07/23/2022, 4:54 PM@RequiresOptIn
annotations in our library.
1. Annotations for new experimental API that might change.
2. Annotations for API that is easy to use incorrectly.
Which AnnotationRetention
should be used in each case? (BINARY
or RUNTIME
, SOURCE
isn't allowed)George
08/17/2022, 4:24 PMYashwant Gowla
08/25/2022, 7:23 AMxxfast
09/12/2022, 12:23 AMGeorge
09/20/2022, 12:22 PMgetAccount(): Accounts
do you prefix your entities or not? Thanks in advance for any answer !Trey
10/22/2022, 3:19 PMRafael Costa
10/26/2022, 4:41 PMOussama Bentalha
10/28/2022, 8:53 AMRafael Costa
11/11/2022, 7:01 PM@SuppressLint("NewApi", "ObsoleteSdkInt")
internal fun ByteArray.toBase64Str(): String {
// Both these methods (from java util and android util) seem to
// do exactly the same.
// The second doesn't work on Unit tests and the first doesn't work
// on older devices.
// Also, on unit tests SDK_INT is 0, but we're running on the developer's machine
// So we can still use java.util in that case
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O || Build.VERSION.SDK_INT == 0) {
java.util.Base64.getUrlEncoder().encodeToString(this)
} else {
android.util.Base64.encodeToString(this, Base64.URL_SAFE or Base64.NO_WRAP)
}
}
Alina Grebenkina
11/17/2022, 5:30 PMPath
utility functions in the stdlib
• Support for Xcode 14 in Kotlin/Native
• Discontinuation of support for the old JVM backend
Try it out and share your feedback!
👉 https://kotlinlang.org/docs/whatsnew-eap.html
Why install Beta? If you’re a library author, working with EAP versions allows you to support the latest Kotlin versions in your library almost immediately with the Stable release, which makes your users happier and your library more popular.andylamax
11/18/2022, 8:44 AMPiotr Krzemiński
11/24/2022, 10:53 AMPiotr Krzemiński
11/24/2022, 1:19 PMholgerbrandl
01/21/2023, 9:20 AMJolan Rensen [JB]
01/21/2023, 3:24 PM@include
tag to include other comments into your KDoc / JavaDoc, see @include Processor (INCLUDE_DOC_PROCESSOR
)
• @sample
/ @sampleNoComments
tag to include code samples into your KDoc / JavaDoc (SAMPLE_DOC_PROCESSOR
)
• A processor that removes all KDoc / JavaDoc comments (NO_DOC_PROCESSOR
)
• A processor that adds a /** TODO */
comment wherever there is no KDoc / JavaDoc comment (TODO_DOC_PROCESSOR
)
• A processor that makes all KDoc / JavaDoc comments uppercase (try and make this for fun!)
• The sky is the limit :)
Note that this first release is still an early Alpha, but I'm welcome to feedback, bugs, your own processors and whatnot :)George
01/25/2023, 3:13 PMAlina Dolgikh [JB]
02/09/2023, 8:35 AMwrongwrong
02/09/2023, 4:39 PMorg.jetbrains.kotlin.metadata.deserialization
?
I am developing a project to rewrite `jackson-module-kotlin` with `kotlinx-metadata-jvm` and I noticed that the initialization process of KmClass
is slow.
It can't simply compare them because the processes are different, but a benchmark on initialization shows that the content under development takes about 1.2 times longer than the original (comparison on o.w.ser.T_20Props.call
).
https://github.com/ProjectMapK/jackson-module-kogera/pull/63
I looked at the profile of this process and found that most of it was the initialization process of KmClass
.
I think this difference is caused by KmClass
reading all the information at once during initialization.
The KClassImpl
seems to lazily initialize only the information it needs.
So I tried to create a LazyKmClass
that lazily initializes only the necessary information, referring to kotlinx.metadata.internal.ProtoBuf.Class.accept
.
However, I am currently stuck because I can't figure out how to access org.jetbrains.kotlin.metadata.data.deserialization.protoTypeTableUtil
.
Any help would be greatly appreciated.remco
02/13/2023, 1:28 PMAlina Dolgikh [JB]
02/23/2023, 9:17 AMHylke Bron
02/28/2023, 8:22 AMMarcus Cvjeticanin
03/05/2023, 11:17 AMsimon.vergauwen
03/07/2023, 6:26 PMMarcus Cvjeticanin
03/13/2023, 8:52 PMorg.myorg.sdk.http
And then I have another project that have:
org.myorg.api
Could there be some conflict if I import that first one as implementation("org.myorg.sdk:http:0.1.0")
I believe there might be something like that since when I implement it, I can't import it since it probably thinks it's in the same project but on a different path?
I get the error: "Unresolved reference: sdk"
How can fix this?rkeazor
03/18/2023, 5:32 PMMarcus Cvjeticanin
03/22/2023, 9:41 AMMarcus Cvjeticanin
03/22/2023, 9:41 AM