HI, I saw in some projects for handling dependenci...
# getting-started
z
HI, I saw in some projects for handling dependencies something like that
object Libs {
object Google {
object Test {
……
}
object Firebase {
…..
}
}
object Accompanist {
……
}
object Gson {
…..
}
object Log {
…….
}
//other objects ...
}
Is it ok to creates many object like this just to handle dependencies ? for me it’s not :(
j
nowadays just use version catalogs
v
Assuming you are talking about Gradle and having that in
buildSrc
or an included build, I'd use a version catalog nowadays instead
e
https://kotlinlang.org/community/slackccugl.html
If the code you are pasting is longer than a few lines, use "Code or text snippet" available from + menu next to message input. Only first few lines will be displayed to all users and people interested in the code can expand your code to look into details.
at least use proper code blocks in Slack, they take up less space than multiple lines containing code
✔️ 1
j
@ephemient maybe he pasted it in mobile. I got a lot of problems when I use code on mobile… Hope for a markdown mode without syntax highlighting in the mobile app
e
OP can still fix it to use
Copy code
multi-line
code block
instead of
multiple lines
of code
z
yes from mobile, sorry for that @ephemient
@Javier @Vampire thanks 👍
👌 1
e
code blocks on mobile work fine if you just type ````` first, same as desktop
👍 1
j
@ephemient that is not the problem, the problem is you copy and paste in a block code and it can be modified to a random code formatting like the OP. I have those issues every time I try to paste any code in mobile, so you have to start to try to paste without formatting and so on, really annoying
👍 1
e
I have not encountered any issues with pasting on mobile that can't be fixed by just moving some newlines around
it is annoying that snippets aren't available though
j
In desktop I haven’t had this issue tho
yeah that is another issue
e
I would recommend not pasting code on mobile
z
I agree @ephemient
j
hope they add snippets to mobile because it will solve this problem easily
👍 1