napperley
06/16/2020, 2:17 AMNick
06/16/2020, 6:52 AMclass HelloWorld(display: Display): Application {
init {
display.children += object: View() {
init { size = display.size }
override fun render(canvas: Canvas) {
canvas.text("Hello, world!",
at = Origin,
brush = ColorBrush(Black))
}
}
}
override fun shutdown() {}
}
fun main() {
application {
HelloWorld(display = instance())
}
}
GarouDan
06/16/2020, 5:09 PMUniversal Kotlin
is a project that aims to run on the most popular platforms using just Kotlin.
Also, one of its goals is to use shared code from the common modules and libraries in all other ones.
The current supported implementations are
- buildSrc
- common (multiplatform)
- multiple source folders
- single_source folder
- library (multiplatform)
- multiple source folders
- single_source folder
- application
- backend
- jvm
- spring boot
- browser
- js
- spa
- react
- vanilla javascript (kotlin only)
- native
- wasm32 (kotlin only)
- desktop
- jvm
- tornado fx
- mobile
- jvm
- android
- native
- apple
- ios
- iosX64 application copying a kotlin framework
- iosX64 kotlin framework (for reuse)
- iosX64 application with a kotlin framework embedded
- iosX64 application withtout a kotlin framework
- script
- jvm
- kscript
- terminal
- jvm
- terminal (jvm terminal application)
https://github.com/funttastic/universal_kotlingammax
06/16/2020, 5:28 PMSlackbot
06/19/2020, 9:29 AMnfrankel
06/21/2020, 7:37 PMromainbsl
06/22/2020, 2:43 PMdiego-gomez-olvera
06/22/2020, 4:13 PMhttps://www.youtube.com/watch?v=OvFoTRhqaKg&list=PLnYRVL0Cw1FQRDYpKQ8kbcg2-K8I9k1RH▾
mattmoore
06/24/2020, 10:26 PMRobert Jaros
06/30/2020, 9:15 PMelizarov
07/01/2020, 2:34 PMsuresh
07/07/2020, 8:21 PMDennis Schröder
07/10/2020, 11:44 AMval KHOME = khomeApplication()
val LivingRoomLuminance = KHOME.LuminanceSensor("livingRoom_luminance")
val LivingRoomMainLight = KHOME.SwitchableLight("livingRoom_main_light")
fun main() {
LivingRoomLuminance.attachObserver { //this: Actuator<LuminanceState,LuminanceAttributes>
if (actualState.value < 3.0) {
LivingRoomMainLight.desiredState = SwitchableState(ON)
}
}
KHOME.runBlocking()
}
Anwar
07/10/2020, 12:22 PMErik Christensen
07/13/2020, 1:58 AMelizarov
07/22/2020, 9:22 AMSlackbot
07/24/2020, 7:53 AMgammax
07/24/2020, 12:17 PMnoinline
and crossinline
together with some examples:
https://medium.com/@cortinico/kotlins-noinline-crossline-once-for-all-c942fd07b7a3napperley
07/26/2020, 1:17 AMBig Chungus
07/28/2020, 9:11 AMbrandonmcansh
07/28/2020, 1:53 PMaltavir
07/29/2020, 10:05 AMAlex Vanyo
07/29/2020, 5:36 PMsealed class Choices {
object A : Choices()
object B : Choices()
object C : Choices()
object D : Choices()
companion object {
val defaultChoice = C
}
}
https://medium.com/livefront/kotlin-a-tale-of-static-cyclical-initialization-3aea530d2053evanchooly
08/05/2020, 7:43 PMChris
08/07/2020, 12:39 AMMadalin Valceleanu
08/10/2020, 6:22 AMsingle-activity architecture
, using the Navigation component to manage fragment operations.
• Android architecture components
, part of Android Jetpack give to project a robust design, testable and maintainable.
• Pattern Model-View-ViewModel
(MVVM) facilitating separation of development of the graphical user interface.
• S.O.L.I.D
design principles intended to make software designs more understandable, flexible and maintainable.
• Modular app architecture
allows being developed features in isolation, independently from other features.
Project link: https://github.com/VMadalin/android-modular-architectureJarosław Michalik
08/11/2020, 7:16 AMelye
08/12/2020, 11:03 AMpawegio
08/14/2020, 12:00 PMManish Jain
08/17/2020, 4:49 PMManish Jain
08/17/2020, 4:49 PMStephan Schroeder
08/17/2020, 9:11 PMManish Jain
08/17/2020, 9:20 PM