dependency wouldn't be compatible on Android. What's your reason for not wanting to use the
-android
dependency?
b
benkuly
06/30/2023, 5:53 AM
It's because
kotlin-logging
added an
-android
package in the new version, which uses
android.util.Log
, but we want to stay with Slf4J/Logback, which is still used in the
-jvm
package.
h
hallvard
07/03/2023, 7:58 AM
Does gradle not have any magic to exclude android.util.Log?
b
benkuly
07/03/2023, 8:34 AM
And then? I still need the
-jvm
package within the
android
target? Despite that,
kotlin-logging
has added a fix to use slf4j within Android target.
h
hallvard
07/03/2023, 8:39 AM
If logging is the only thing you'd like to alter, I think it would be better to exclude one logging library and explicitly include the one you want, rather than using a jvm target when an android target actually exists. But I am afk and cannot test or go into detail about anything.