jmfayard
05/07/2021, 12:25 PMgit-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-starterAlejandro Rios
05/08/2021, 2:13 PMShabinder Singh
05/09/2021, 10:38 AMTomasz Krakowiak
05/11/2021, 12:44 PMval 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-devBig Chungus
05/11/2021, 3:50 PMDmitry Kandalov
05/14/2021, 9:05 AMalt+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 🙂Ewald
05/14/2021, 3:02 PMjmfayard
05/15/2021, 8:21 AMShreyas Patil
05/17/2021, 4:26 AMmarcinmoskala
05/18/2021, 3:42 PMShreyas Patil
05/25/2021, 11:32 AMShreyas Patil
05/26/2021, 12:57 PMAlina Dolgikh [JB]
05/27/2021, 4:19 PMAtchay Varma
05/28/2021, 1:18 PMBig Chungus
05/29/2021, 4:26 AMShabinder Singh
05/31/2021, 6:01 PMlouiscad
05/31/2021, 8:44 PMPaul
06/01/2021, 7:24 PMinterface 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.rnett
06/02/2021, 9:42 AMexpect 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/krosstalkYev Kanivets
06/02/2021, 3:39 PMgammax
06/03/2021, 2:20 PMlouiscad
06/03/2021, 5:02 PMy9san9
06/05/2021, 4:51 PMkotlin/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/kdsLeoColman
06/05/2021, 5:39 PMBig Chungus
06/07/2021, 10:33 AMSlackbot
06/10/2021, 7:34 AMankitgoyal1009
06/11/2021, 9:35 AMjmfayard
06/14/2021, 5:33 PMdave
06/16/2021, 6:36 AMhttps://youtu.be/NjoCjupV8HE▾
mbonnin
06/21/2021, 9:08 AMmbonnin
06/21/2021, 9:08 AMDariusz Kuc
06/21/2021, 12:33 PMmbonnin
06/21/2021, 1:13 PMmaven
are on their way out now which somehow simplifies the setup.Dariusz Kuc
06/21/2021, 2:02 PMmbonnin
06/21/2021, 2:05 PM