https://kotlinlang.org logo
#feed
Title
b

Big Chungus

03/17/2022, 10:24 PM
We're at 8030 kotlin libraries on MavenCentral after last night's kamp.petuska.dev scan! An increase of 494 since 2022-02-01 (just over a month and a half ago). Apologies for the spam - over and out! K K
K 7
r

russhwolf

03/17/2022, 10:37 PM
Have you considered adding more sorting or filtering options? It's really hard to discover new things with the current interface (unless they're at the beginning of the alphabet or you already know the name)
b

Big Chungus

03/17/2022, 11:26 PM
I have. Searching by github tags, filtering by last updated daterange, providing stats page and Library page like on npm with extra data is all on the roadmap. I simply don't have the time to do it all plus my focus now is kmdc so I could rewrite kamp with compose-web and maybe even provide intellij plugin via compose-desktop. But if you think of something else, do raise an issue on the repo so the idea would not get lost
A "new & updated" page to showcase recent developments would probably be a good idea too.
And after all that I'll probably look into "author claims" feature where lib authors could claim their libs on kamp and manually add extra data to make it more discoverable (categories, useful links, better descriptions, etc...)
❤️ 3
a

Albert Chang

03/18/2022, 12:10 AM
How are you judging whether a library is a Kotlin library?
b

Big Chungus

03/18/2022, 12:54 AM
Via gradle metadata. This does mean that kotlin libs published via maven or older versions of gradle are not detected.
a

Albert Chang

03/18/2022, 1:02 AM
Does it only include jar libraries?
b

Big Chungus

03/18/2022, 8:59 AM
No, it includes all kmp combinations
e.g. aar built with kotlin or kmp library with aar artefact. Pretty much all libs returned when filtering by android are aar artefacts
a

Albert Chang

03/18/2022, 10:02 AM
I asked because it doesn't seem to be including my library.
b

Big Chungus

03/18/2022, 10:05 AM
Is it published with gradle metadata?
There's also a known bug in the scanner preventing it from detecting modules if there's already a module detected higher up the same path
a

Albert Chang

03/18/2022, 10:20 AM
I’m not actually configuring anything related to gradle metadata but if you mean
.module
file, it is there.
b

Big Chungus

03/18/2022, 10:22 AM
Hmm, could you please raise an issue on github.com/mpetuska/kamp please? Something else seems to be bugged.
Looks like kotlin metadata is not present in your .module file. Maybe kotlin plugin in use is outdated too much?
a

Albert Chang

03/18/2022, 10:33 AM
I’m using 1.6.10. Could it be related to gradle-maven-publish-plugin? I noticed that Google’s Accompanist which is using the same plugin is also missing from the index.
b

Big Chungus

03/18/2022, 10:35 AM
Might be. I personally always use maven-publish and all my stuff is in the index
a

andylamax

03/18/2022, 11:18 AM
my stuff is in the index too and I use maven-publish as well
a

Albert Chang

03/18/2022, 11:34 AM
It actually doesn’t seem to be related to the plugin because this and this are also using the plugin and are both indexed.
And considering the extremely low number of Android-only libs compared to multiplatform Android libs in the index, I highly suspect that there are many missing Android libs.
b

Big Chungus

03/18/2022, 11:37 AM
Really odd, as there are tons a decent number of android-only libs already present. This certainly needs a proper look.
I still have no clue why, but the core reason your lib is not in the index is because your .module has no mention of kotlin in variant attributes.
Namely "org.jetbrains.kotlin.platform.type" as seen in this android only lib from the index
2 Views