aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-cordova
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-06-07 01:43:13 +0200
committerRobert Jaros <rjaros@finn.pl>2019-06-07 01:43:13 +0200
commitc73905e037608c76b08e4a3327fc53fe72a96622 (patch)
treef6c19ba7364bd62434e276c09066633defcfe575 /kvision-modules/kvision-cordova
parentd40abae23a4700447b000c55a177bfdb703fef44 (diff)
downloadkvision-c73905e037608c76b08e4a3327fc53fe72a96622.tar.gz
kvision-c73905e037608c76b08e4a3327fc53fe72a96622.tar.bz2
kvision-c73905e037608c76b08e4a3327fc53fe72a96622.zip
Code style fixes.
Diffstat (limited to 'kvision-modules/kvision-cordova')
-rw-r--r--kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Camera.kt1
-rw-r--r--kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/StatusBar.kt2
2 files changed, 3 insertions, 0 deletions
diff --git a/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Camera.kt b/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Camera.kt
index 885bfd08..40c731c7 100644
--- a/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Camera.kt
+++ b/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Camera.kt
@@ -251,6 +251,7 @@ data class CameraOptions(
val cameraDirection: Camera.Direction? = null
)
+@Suppress("ComplexMethod")
internal fun CameraOptions.toJs(): dynamic {
return obj {
if (quality != null) this.quality = quality
diff --git a/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/StatusBar.kt b/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/StatusBar.kt
index 5617bf9b..e3de6af2 100644
--- a/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/StatusBar.kt
+++ b/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/StatusBar.kt
@@ -27,12 +27,14 @@ import kotlin.browser.window
import kotlin.coroutines.resume
import kotlin.coroutines.suspendCoroutine
+@Suppress("TopLevelPropertyNaming")
@JsName("StatusBar")
internal external val StatusBarJs: dynamic
/**
* Main object for Cordova status bar.
*/
+@Suppress("TooManyFunctions")
object StatusBar {
/**