Slide 32
Slide 32 text
Ideas, mistakes and learnings
expect fun debugLog(tag: St
r
ing, message: St
r
ing)
Expect/Actual
impo
r
t and
r
oid.util.Log
actual fun debugLog(tag: St
r
ing, message: St
r
ing) {
Log.d(tag, message)
}
impo
r
t platfo
r
m.Foundation.NSLog
actual fun debugLog(tag: St
r
ing, message: St
r
ing) {
if (Platfo
r
m.isDebugBina
r
y) {
NSLog("%s: %s", tag, message)
}
}