https://kotlinlang.org logo
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
feed
  • j

    jmfayard

    05/07/2021, 12:25 PM
    Hello friends! I had a lot of fun this week re-implementing
    git-standup
    , a command-line tool with Kotlin Multi-platform meaning it runs both on the JVM with its wealth of libraries and on Kotlin/Native which provides an executable that starts fast and can be deployed to a computer with no JVM installed. I also found out that configuring everything you expect takes a lot of time. Configuring Gradle - Working with Files - Parsing arguments - and more Network Calls - Unit testing - Continuous Integration with GitHub Actions So I converted my project in to make it re-usable as a GitHub template ==> kotlin-cli-starter, a starter project for command-line tools in Kotlin Multiplatform Let me know if you implement something with it! https://github.com/jmfayard/kotlin-cli-starter
    :kotlin-intensifies: 12
    👍 6
    :kotlin: 6
    e
    • 2
    • 3
  • a

    Alejandro Rios

    05/08/2021, 2:13 PM
    https://github.com/mitchtabian/Food2Fork-KMM
    b
    • 2
    • 2
  • s

    Shabinder Singh

    05/09/2021, 10:38 AM
    SpotiFlyer v2.3.5 out! Now Supports: 1. MacOs 2. Windows 3. Linux 4. Android 5. Web https://github.com/Shabinder/SpotiFlyer#-install
    :kotlin-intensifies: 8
    👏🏽 1
    👏 3
    👏🏼 1
    b
    • 2
    • 7
  • t

    Tomasz Krakowiak

    05/11/2021, 12:44 PM
    NOTE: Project is not ready for general use yet! Want a pure Kotlin WEB framework with SSR(server-side rendering) and hydration support, that allows you to write your code, like this:
    val welcome: CBlock = {
        tag(::DIV) {
            css {
                classes.add("welcome")
                display = Display.none
            }
            +"Hello, "
            tag(::SPAN) {
                val classes = currentUser.map {
                    if (it == null) {
                        setOf("username", "usernameAnonymous")
                    } else {
                        setOf("username", "usernameLoggedIn")
                    }
                }
                bind(SPAN::classes, classes)
                dynamic(currentUser) { +(it?.username ?: "you") }
            }
            +"."
        }
    }
    It's coming! Currently I'm looking for people willing to help me with design and development. No code contribution is necessary, advising on API design is not less valuable for me. See live demo: http://tictactoe.demo.carrat.org/ Code: https://github.com/carrat-framework/carrat-demo-tictactoe/blob/master/src/commonMain/kotlin/org/carrat/demo/tictactoe/site/displayGame.kt If you want to help, join #carrat-dev
    a
    a
    • 3
    • 5
  • b

    Big Chungus

    05/11/2021, 3:50 PM
    We've passed 4k (4012) kotlin libs threshold tonight! Pop the champagne! 🍾
    :kotlin-intensifies: 23
    c
    a
    • 3
    • 5
  • d

    Dmitry Kandalov

    05/14/2021, 9:05 AM
    I released an updated version of QuickFix plugin which lets you do 
    alt+enter, enter
     with a single keypress (e.g. with 
    F1
    ). The new version can be configured to (de)prioritise some intentions, e.g. “Introduce import alias” which I almost never use. See github readme for more details. All feedback is welcome 🙂
    👏🏾 1
    👏🏻 1
    👏🏿 1
    👏🏼 2
    👏🏽 1
    💯 4
    👏 5
    😮 3
    r
    • 2
    • 2
  • e

    Ewald

    05/14/2021, 3:02 PM
    I wrote a little article about my experiences with starting to play with Compose on the desktop. It's a bit rough, but if you have feedback I can use in a follow-up article, I'd appreciate it. See it here https://www.nofuss.co.za/blog/kotlin_compose_desktop_balloons/
    🙌 1
    a
    • 2
    • 2
  • j

    jmfayard

    05/15/2021, 8:21 AM
    Hello friends, we have released gradle refreshVersions 0.10.0! refreshVersions is our attempt at making adding and updating dependencies more convenient, faster and less error-prone The focus for the next version is to make it easy to migrate to refreshVersions. Do you have an open-source project you would like me to migrate? If so, please add a link in the comments here Changelog: https://jmfayard.github.io/refreshVersions/CHANGELOG/#version-0100-2021-05-13 Website: https://jmfayard.github.io/refreshVersions
    :thank-you: 2
    👍🏼 3
    👍 4
    :kotlin-intensifies: 10
    a
    • 2
    • 4
  • s

    Shreyas Patil

    05/17/2021, 4:26 AM
    https://medium.com/scalereal/hide-internal-members-of-kotlin-module-from-jvm-c7730507fb17
    👍 3
    r
    • 2
    • 2
  • m

    marcinmoskala

    05/18/2021, 3:42 PM
    I've added two new items to the Effective Kotlin, I plan to publish them soon, and now looking for reviewers: • Item 39: Use sealed classes and interfaces to express restricted hierarchies • Item 41: Use enum to represent a list of values Reviewers are listed on the website. Anyone willing to help?
    m
    j
    +5
    • 8
    • 9
  • s

    Shreyas Patil

    05/25/2021, 11:32 AM
    https://medium.com/scalereal/dont-let-kotlin-s-single-expression-function-ruin-your-business-99ea67258241
    t
    • 2
    • 2
  • s

    Shreyas Patil

    05/26/2021, 12:57 PM
    https://twitter.com/KotlinMumbai/status/1397156821505249286?s=20
    j
    r
    j
    • 4
    • 7
  • a

    Alina Dolgikh [JB]

    05/27/2021, 4:19 PM
    📣 Hi everyone! Today and tomorrow we’re hosting an Ask me Anything session with the Kotlin team on Reddit. There are lots of people from JetBrains paying attention to your questions: developers, advocates, product managers, and of course, the lead of the project – Roman Elizarov. We also have a few guests from Google and VMware (Spring framework).  If you were looking for an opportunity to ask about the future of Kotlin, get a recommendation for your specific use case or product, or even find out what are the favourite Kotlin features of the team members – this is the right time and place to ask! Join us and spread the word about the AMA 🙂 https://www.reddit.com/r/Kotlin/comments/nm2eaf/kotlin_team_ama_3_ask_us_anything/
    ❤️ 2
    🎉 9
    l
    • 2
    • 2
  • a

    Atchay Varma

    05/28/2021, 1:18 PM
    Hi guys I have made a Developer tool. Which is a search engine you can. There are 25+ Docs supported including Android, Flutter, React Native. For more info visit: https://www.producthunt.com/posts/devhuntr
    😒 7
    🛑 3
    👎 1
    a
    r
    • 3
    • 8
  • b

    Big Chungus

    05/29/2021, 4:26 AM
    Just released klip@0.0.1 to maven central and gradle plugin portal. It's an exploration project of KSP that lets you do easy snapshot testing. Currently only works on jvm, but all code is multiplatform, so it'll support more targets as KSP expands into MPP. Give it a go!
    c
    d
    • 3
    • 31
  • s

    Shabinder Singh

    05/31/2021, 6:01 PM
    SpotiFlyer: v3.1.0 Released 🥳 Changelog: • 320KBPS Support • Jio-Saavn Support. • Android Bitmap Compression , Fix OOM’s • Analytics Switch Added , To Help in toggling it on/off. • Intitial Release on F-Droid. (Will be available there in a day or two.) • Various other Bug Fixes. Link: https://github.com/Shabinder/SpotiFlyer#-install _*Encourage us by giving above repo a Star*_⭐ .
    p
    a
    • 3
    • 6
  • l

    louiscad

    05/31/2021, 8:44 PM
    https://twitter.com/Louis_CAD/status/1399463762726473736?s=19
    c
    b
    +4
    • 7
    • 11
  • p

    Paul

    06/01/2021, 7:24 PM
    Introducing HiltBinder: An annotation processing library that automatically generates Dagger Hilt's @Binds methods. Just annotate your class with the @BindType annotation:
    interface ImageLoader
    
    @BindType
    class GlideImageLoader @Inject constructor(): ImageLoader
    and HiltBinder will generate the following:
    @Module
    @InstallIn(SingletonComponent.class)
    public interface HiltBinder_SingletonComponentModule {
      @Binds
      ImageLoader bind_GlideImageLoader(GlideImageLoader binding);
    }
    HiltBinder supports lots of features: • Specifying a particular type to bind to. • Installing bindings in both Dagger Hilt's predefined and custom components. • Contributing bindings into a set and map collections (Dagger multibindings). • Associating bindings with Dagger qualifiers. • KSP support. For more info, take a look at the GitHub repository that contains extensive documentation for the API as well as sample application to showcase the library in action.
    💯 1
    n
    • 2
    • 1
  • r

    rnett

    06/02/2021, 9:42 AM
    Announcing Krosstalk, a fully multiplatform pure Kotlin RPC library. Serialization, client, and server implementations are pluggable (Ktor and kotlinx.serialization are provided), and using `expect`/`actual` to enforce method signatures and share configuration is fully supported (and is in fact the main intended use case). Once you configure common, client, and server using an
    expect object
    (
    MyKrosstalk
    ), declaring a RPC method is as simple as:
    // common
    @KrosstalkMethod(MyKrosstalk::class)
    expect suspend fun basicTest(n: Int): List<String>
    
    // client (i.e. js)
    actual suspend fun basicTest(n: Int): List<String> = krosstalkCall()
    
    // server (i.e. jvm)
    actual suspend fun basicTest(n: Int): List<String> = List(n) { "$it" }
    See the README for the full example, and details. https://github.com/rnett/krosstalk
    🌟 3
    p
    b
    +2
    • 5
    • 12
  • y

    Yev Kanivets

    06/02/2021, 3:39 PM
    Just published a short overview of yet another KMP starter project powered by Redux (ReKotlin/ReKamp) architecture and XcodeGen on iOS side: https://medium.com/xorum-io/battle-tested-template-project-for-kotlin-multiplatfor[…]92bb00c?source=friends_link&amp;sk=399363810f81c43301472a08cbfef50d
    👏 2
    l
    • 2
    • 12
  • g

    gammax

    06/03/2021, 2:20 PM
    Hey all :android-wave: The Developers’ Bakery podcast is back with a new episode this week: ♻️ refreshVersions with @louiscad This time we will venture through the dependency hell problem 😈 I also had a great time chatting with Louis about pair programming in the open-source world. You can listen to it on the website here: https://thebakery.dev/12/ or on the major streaming platforms. As always, any feedback is more than welcome 🙏
    👏 5
    c
    • 2
    • 4
  • l

    louiscad

    06/03/2021, 5:02 PM
    Me again, just released a new project that Linux users, Windows users, and even some macOS users, are likely to like. So yeah, now, you can work on KMM projects from any desktop OS. I think it'll be great for existing and new teams and projects. https://github.com/LouisCAD/CompleteKotlin
    ❤️ 9
    👍 36
    💜 1
    🎉 9
    👍🏼 1
    a
    c
    +2
    • 5
    • 8
  • y

    y9san9

    06/05/2021, 4:51 PM
    Hey all! The previous message is awesome, didn't want to interrupt, but anyway. Recently I've searched a library for simple key-value storage built on top of a file to store some preferences, so I decided to do the one. Later I had need such a storage in the browser (since I'm using
    kotlin/js
    I wanted something typesafe and convenient), so I have added support for different platforms. I was experimenting for a while with API because it was hard to unify files sync/async behavior and
    localStorage
    , but now it's completely friendly for any customization and soon I plan to implement SharedPreferences, NsUserDefaults, Bundle, and so on support. Also, I have ideas to integrate with frameworks such as kvision, more with the link below: https://github.com/kotlingang/kds
    👍 2
    r
    r
    • 3
    • 5
  • l

    LeoColman

    06/05/2021, 5:39 PM
    Hi guys! I've written a small library to parse and roll dice for RPGs. I hope it's useful for you 🎉 https://github.com/LeoColman/dice-helper
    🎲 5
    👍 1
    m
    m
    • 3
    • 4
  • b

    Big Chungus

    06/07/2021, 10:33 AM
    Aaand we're past 4.5k kotlin libs on maven central! Check them out on kamp.petuska.dev
    :kotlin-intensifies: 29
    z
    e
    l
    • 4
    • 12
  • s

    Slackbot

    06/10/2021, 7:34 AM
    This message was deleted.
    a
    • 2
    • 1
  • a

    ankitgoyal1009

    06/11/2021, 9:35 AM
    https://ankitgoyal1009.medium.com/auto-format-code-in-android-studio-intellij-idea-1f0450ee44a3
    d
    z
    c
    • 4
    • 4
  • j

    jmfayard

    06/14/2021, 5:33 PM
    Hello friends, I was very impressed how Kotlin + Coroutines + Spring Boot allow to build a GraphQL Gateway with a minimum of boilerplate If you are interested in GraphQL, I share my experience here: https://dev.to/jmfayard/how-to-build-a-graphql-gateway-with-spring-boot-and-kotlin-h30
    👍🏻 1
    :kotlin-intensifies: 6
    👍 4
    d
    • 2
    • 4
  • d

    dave

    06/16/2021, 6:36 AM
    Hey everyone! @Ivan Sanchez and I did an Http4k Webinar with JetBrains yesterday. We really enjoyed it, so thought we'd share it here 😉:

    https://youtu.be/NjoCjupV8HE▾

    :kotlin-intensifies: 15
    👀 1
    j
    • 2
    • 1
  • m

    mbonnin

    06/21/2021, 9:08 AM
    I wrote about Gradle publishing plugins https://mbonnin.medium.com/gradle-publishing-plugins-a-decision-matrix-a2f04bba6f13
    👏 1
    🙇‍♂️ 1
    ❤️ 1
    d
    • 2
    • 4
Powered by Linen
Title
m

mbonnin

06/21/2021, 9:08 AM
I wrote about Gradle publishing plugins https://mbonnin.medium.com/gradle-publishing-plugins-a-decision-matrix-a2f04bba6f13
👏 1
🙇‍♂️ 1
❤️ 1
d

Dariusz Kuc

06/21/2021, 12:33 PM
Awesome writeup! Personally I still find it somewhat weird that Gradle does not provide nicer integrations with sonatype out of the box and we end up using 3rd party plugins to get it working
m

mbonnin

06/21/2021, 1:13 PM
Thanks 🙏! Yea, I guess it's not an easy problem mainly because there are tons of different options (mpp, plugins, android, custom pom, sources, etc, etc...). At least the bintray plugin and older
maven
are on their way out now which somehow simplifies the setup.
d

Dariusz Kuc

06/21/2021, 2:02 PM
I was thinking about even something more basic -> like the ability to auto-release your project from sonatype staging and ensuring that multi module projects end up in a single staging repo
m

mbonnin

06/21/2021, 2:05 PM
Yea, that'd be nice
View count: 5