DroidKaigi / conference-app-2021

The Official App for DroidKaigi 2021
https://droidkaigi.jp/
Apache License 2.0
640 stars 182 forks source link

Logger solution for Kotlin MPP #323

Open takahirom opened 3 years ago

takahirom commented 3 years ago

Kind (Required)

I want a library that has the following elements:

daichikuwa0618 commented 3 years ago

@takahirom How about AAKira/Napier ? This logger library is inspired by Timber which you desire.

This features

If this is not suit for this project, it may be good to see AAKira/Kotlin-Multiplatform-Libraries to look for another suitable library.

takahirom commented 3 years ago

Thank you for your suggestion. I was worried that there was no update recently. 😅 However, this library uses Kotlin 1.4.0, and ABI compatibility version is 1.4.1, so there seems to be no problem. https://github.com/JetBrains/kotlin/blob/v1.4.0/compiler/util-klib/src/org/jetbrains/kotlin/library/KotlinAbiVersion.kt#L34 There is no problem from the ABI side, but there is a risk that code highlighting will not work on iOS if it does not support the hierarchical structure. https://kotlinlang.org/docs/mpp-share-on-platforms.html#use-target-shortcuts image

However, regarding the hierarchical structure, other libraries are the same, so it seems that it is okay to include it. 👍