diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-06-07 01:43:13 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-06-07 01:43:13 +0200 |
commit | c73905e037608c76b08e4a3327fc53fe72a96622 (patch) | |
tree | f6c19ba7364bd62434e276c09066633defcfe575 /kvision-modules | |
parent | d40abae23a4700447b000c55a177bfdb703fef44 (diff) | |
download | kvision-c73905e037608c76b08e4a3327fc53fe72a96622.tar.gz kvision-c73905e037608c76b08e4a3327fc53fe72a96622.tar.bz2 kvision-c73905e037608c76b08e4a3327fc53fe72a96622.zip |
Code style fixes.
Diffstat (limited to 'kvision-modules')
3 files changed, 7 insertions, 2 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 { /** diff --git a/kvision-modules/kvision-moment/src/main/kotlin/pl/treksoft/kvision/moment/Moment.kt b/kvision-modules/kvision-moment/src/main/kotlin/pl/treksoft/kvision/moment/Moment.kt index 9eb9d9a7..39e7c2dc 100644 --- a/kvision-modules/kvision-moment/src/main/kotlin/pl/treksoft/kvision/moment/Moment.kt +++ b/kvision-modules/kvision-moment/src/main/kotlin/pl/treksoft/kvision/moment/Moment.kt @@ -23,7 +23,7 @@ package pl.treksoft.kvision.moment import kotlin.js.Date -@Suppress("unused") +@Suppress("unused", "TooManyFunctions") @JsNonModule @JsModule("moment") open external class Moment { @@ -79,7 +79,9 @@ open external class Moment { open fun isSameOrAfter(moment: dynamic): Boolean = definedExternally open fun isSameOrAfter(moment: dynamic, key: String): Boolean = definedExternally open fun isBetween(firstMoment: dynamic, secondMoment: dynamic): Boolean = definedExternally - open fun isBetween(firstMoment: dynamic, secondMoment: dynamic, key: String, inclusivity: String): Boolean = definedExternally + open fun isBetween(firstMoment: dynamic, secondMoment: dynamic, key: String, inclusivity: String): Boolean = + definedExternally + open fun isBetween(firstMoment: dynamic, secondMoment: dynamic, key: String): Boolean = definedExternally open fun isDST(): Boolean = definedExternally open fun isDSTShifted(): Boolean = definedExternally |