Skip to content

Commit

Permalink
Merge pull request #646 from kaidotarma/patch-1
Browse files Browse the repository at this point in the history
Fix iOS setCustomKey wrong param order
  • Loading branch information
nbransby authored Oct 13, 2024
2 parents e489ac1 + dacb86a commit 312beed
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,22 @@ public actual class FirebaseCrashlytics internal constructor(internal val ios: F
}
public actual fun didCrashOnPreviousExecution(): Boolean = ios.didCrashDuringPreviousExecution()
public actual fun setCustomKey(key: String, value: String) {
ios.setCustomValue(key, value)
ios.setCustomValue(value, key)
}
public actual fun setCustomKey(key: String, value: Boolean) {
ios.setCustomValue(key, value.toString())
ios.setCustomValue(value.toString(), key)
}
public actual fun setCustomKey(key: String, value: Double) {
ios.setCustomValue(key, value.toString())
ios.setCustomValue(value.toString(), key)
}
public actual fun setCustomKey(key: String, value: Float) {
ios.setCustomValue(key, value.toString())
ios.setCustomValue(value.toString(), key)
}
public actual fun setCustomKey(key: String, value: Int) {
ios.setCustomValue(key, value.toString())
ios.setCustomValue(value.toString(), key)
}
public actual fun setCustomKey(key: String, value: Long) {
ios.setCustomValue(key, value.toString())
ios.setCustomValue(value.toString(), key)
}

@Suppress("UNCHECKED_CAST")
Expand Down

0 comments on commit 312beed

Please sign in to comment.