https://kotlinlang.org logo
Docs
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
koin-dev
  • b

    BorzdeG

    12/14/2019, 9:13 AM
    https://github.com/InsertKoinIO/koin/issues/577 - in work
    • 1
    • 1
  • b

    BorzdeG

    12/14/2019, 11:23 PM
    @arnaud.giuliani can you upgrade to branch 2.1.0 to the latest master?
    a
    • 2
    • 5
  • a

    arnaud.giuliani

    12/16/2019, 2:02 PM
    is it
    synchronized
    / monitor expression?
    k
    • 2
    • 29
  • k

    Kirill Rozov

    12/18/2019, 10:09 AM
    HI. @arnaud.giuliani, what about support Android Saved State for Viewmodel?
    a
    • 2
    • 19
  • k

    Kirill Rozov

    12/18/2019, 10:16 AM
    I have problem in 2.0.1 that I can’t have two dependencies of different types but with the same qualifier in the graph. For now I’ve solved this with creating more complex qualifiers, but it looks realy bad. It it possible to support dependencies of different types but with the same qualifier ?
    a
    • 2
    • 2
  • b

    BorzdeG

    12/25/2019, 12:36 PM
    @arnaud.giuliani Take a look my PR, plz… https://github.com/InsertKoinIO/koin/pull/667 https://github.com/InsertKoinIO/koin/pull/681 Well, someone else note that there are no comments 🙂
    a
    • 2
    • 6
  • a

    arnaud.giuliani

    01/08/2020, 9:59 AM
    Before going to Beta, can be good to check 2 things: • Better usage of Enum for Qualifier • Gradle plugin to help verify graph
    🔥 1
    👍 1
    k
    • 2
    • 2
  • a

    arnaud.giuliani

    01/08/2020, 10:01 AM
    After this, 2 major features : • going Multiplatform • working with Arrow Meta to help write DSL or produce IDE checks
    b
    • 2
    • 9
  • b

    BorzdeG

    01/08/2020, 8:09 PM
    @arnaud.giuliani https://github.com/InsertKoinIO/koin/pull/692 - First draft. I will add changes to this PR, according to the list.
    a
    k
    • 3
    • 48
  • k

    Kirill Rozov

    01/12/2020, 2:57 PM
    Hi @arnaud.giuliani . What do you think about possibility to include module into another modules? Like in Dagger.
    b
    a
    • 3
    • 14
  • k

    Kirill Rozov

    01/12/2020, 3:01 PM
    The second issue is constructor lazy & provider injection into constructor. It’s bad to have required dependencies of a component into properties because DI library can’t do that
    a
    • 2
    • 12
  • b

    BorzdeG

    01/13/2020, 10:51 AM
    @arnaud.giuliani in GitHub can you specify developers (field “Assignees”)? I would take this one: https://github.com/InsertKoinIO/koin/issues/694
    a
    • 2
    • 3
  • k

    kpgalligan

    02/03/2020, 3:25 PM
    OK
    a
    • 2
    • 56
  • s

    sunnat629

    03/21/2020, 7:30 AM
    Hey, I am Mohi from Bangladesh. The Country Lead of Bangladesh Kotlin User Group. I want to be a contributor to Koin. This is really awesome. I would like to be a part of it. I need some initial help to start. I believe @arnaud.giuliani can help with it. 🙂 Thanks.
    a
    • 2
    • 2
  • a

    arnaud.giuliani

    03/24/2020, 9:53 AM
    finally, pushed last fixes for 2.1.5 - https://medium.com/koin-developers/unboxing-koin-2-1-7f1133ebb790
    🎉 3
    🔥 4
    s
    a
    • 3
    • 2
  • k

    Kirill Rozov

    03/24/2020, 9:54 AM
    What about features and performance ?
    a
    • 2
    • 5
  • y

    yervandalexanyan

    03/31/2020, 11:59 AM
    Hi all, I have a question. In my application, I use the navigation library and in the navigation library graph, I have 3 fragments. Koin has a function for creating shared ViewModel only for these 3 fragments not for all fragments in the activity.
    a
    • 2
    • 2
  • k

    Kirill Rozov

    04/09/2020, 12:05 PM
    https://github.com/InsertKoinIO/koin/issues/771
    a
    • 2
    • 12
  • s

    scraplesh

    04/13/2020, 1:26 PM
    https://github.com/InsertKoinIO/koin/pull/775
    a
    • 2
    • 4
  • a

    arnaud.giuliani

    04/14/2020, 9:48 AM
    there is several ways to help: • Issue solving & Bugfix • answer some questions • add new feature
    h
    • 2
    • 3
  • h

    HarryPulvirenti

    04/14/2020, 4:08 PM
    I'm trying to sync the project but I'm getting this error: FAILURE: Build failed with an exception. * What went wrong: New Gradle Sync is not supported due to containing Kotlin modules
    a
    • 2
    • 7
  • j

    Jeziel Lago

    05/06/2020, 3:57 PM
    Hello everyone, I'm using
    stateViewModel
    in my project, but I have the same problem related here https://github.com/InsertKoinIO/koin/issues/787 and I opened a pull request fixing that (https://github.com/InsertKoinIO/koin/pull/795).
    a
    • 2
    • 2
  • w

    Werner Altewischer

    05/08/2020, 1:27 PM
    I was wondering if anybody has some ideas/feedbacks regarding this. In our project we use the described code on top of Koin for more safety.
    a
    t
    • 3
    • 5
  • j

    Jan Mottl

    05/09/2020, 3:05 PM
    Hi, I opened an issue for a bug and also provided possible solutions here https://github.com/InsertKoinIO/koin/issues/803. I would like to open PR for this if possible as well :)
    a
    • 2
    • 1
  • s

    scraplesh

    05/10/2020, 9:50 AM
    Hi everyone, viewing files with lots of koin factories, singles or scoped lambdas makes my Android Studio working very slow. Does anybody have any idea how to fix this? Or it's only my problem?
    a
    • 2
    • 3
  • d

    Deepti M

    05/18/2020, 7:00 PM
    Hi There, I wanted to know is there any Android version limitation to use Koin?
    a
    • 2
    • 1
  • b

    bobby

    05/25/2020, 2:35 PM
    Hi everyone, Recently I had tried to implement Koin in my project. After trying Koin, I realized how concise and simple the implementation is. The time for me to learn using Koin is pretty fast, comparing to Dagger 2. But there's something that keeps bothering me. I saw an article mentioned that Koin isn't using the DI pattern, rather it using the Service Locator pattern. My question is, why Koin use the Service Locator pattern? And is that matter which pattern to use? Thanks a lot.
    a
    • 2
    • 10
  • a

    arnaud.giuliani

    05/29/2020, 7:58 AM
    ping me if you want to participate, I will continue to post some current updates
    j
    • 2
    • 2
  • h

    HarryPulvirenti

    06/05/2020, 8:50 AM
    Hi Everyone, I'm facing a bug related to the
    koin
    implementation of the
    FragmentFactory
    . Basically, if you inject a
    ViewModel
    in the constructor of the
    Fragment
    , this one will be instantiated again if you rotate the screen. This bug is reproducible only injecting the
    ViewModel
    via the fragment constructor but is not possible to reproduce it injecting the
    ViewModel
    via the lazy extension
    viewModel()
    Let me know if you are already aware of this bug or I can open an issue on Github.
    t
    a
    • 3
    • 7
  • b

    bobby

    06/15/2020, 3:40 AM
    Hi All, recently I had written an article about how to start using Koin in Android Development. It's not perfect, so if you found any mistake, please let me know. I write this article as a medium to learn about Koin. Thanks, really appreciate it. https://medium.com/@bobbyirawan_/how-to-start-using-koin-in-android-development-70ccf49833f1
    👍 1
    a
    • 2
    • 9
Powered by Linen
Title
b

bobby

06/15/2020, 3:40 AM
Hi All, recently I had written an article about how to start using Koin in Android Development. It's not perfect, so if you found any mistake, please let me know. I write this article as a medium to learn about Koin. Thanks, really appreciate it. https://medium.com/@bobbyirawan_/how-to-start-using-koin-in-android-development-70ccf49833f1
👍 1
a

arnaud.giuliani

06/19/2020, 8:28 AM
Good article 👍
In this snippet, I would just show the lazy inject one https://gist.github.com/bobbyirawan09/681db1f6ab31edfa6c301d3c8ae381d7#file-examplekoin-kt
just mentioning the get() in your text
You can also inject property like dagger with: https://doc.insert-koin.io/#/koin-core/setters
in you want to respect full DI injection and avoid by inject()
My recommendation is to avoid KoinComponent as much as possible
because it’s linking you to the Koin API
but after that, up to you to decide
Why do you use a KoinComponent here? https://gist.github.com/bobbyirawan09/3a6b616a4bdcd9dd5d16c18d7e81de6c#file-examplepropertyinjection-kt
View count: 2