aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-cordova/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'kvision-modules/kvision-cordova/src/main')
-rw-r--r--kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Geolocation.kt1
-rw-r--r--kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Media.kt1
-rw-r--r--kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/MediaCapture.kt1
3 files changed, 3 insertions, 0 deletions
diff --git a/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Geolocation.kt b/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Geolocation.kt
index 4087a4f2..c4ccd354 100644
--- a/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Geolocation.kt
+++ b/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Geolocation.kt
@@ -251,6 +251,7 @@ object Locationservices {
}
}
+ @Suppress("MagicNumber")
private fun getJsPriority(priority: Priority): dynamic {
return when (priority) {
Priority.PRIORITY_HIGH_ACCURACY -> 100
diff --git a/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Media.kt b/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Media.kt
index 6ea43d76..a126941b 100644
--- a/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Media.kt
+++ b/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Media.kt
@@ -43,6 +43,7 @@ external class MediaError {
/**
* Cordova media class.
*/
+@Suppress("TooManyFunctions")
external class Media(
src: String,
mediaSuccess: (() -> Unit)? = definedExternally,
diff --git a/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/MediaCapture.kt b/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/MediaCapture.kt
index c7b427dc..fda81da7 100644
--- a/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/MediaCapture.kt
+++ b/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/MediaCapture.kt
@@ -100,6 +100,7 @@ object MediaCapture {
CAPTURE_NOT_SUPPORTED
}
+ @Suppress("MagicNumber")
private fun codeToEnum(code: Int): CaptureErrorCode {
return when (code) {
0 -> CaptureErrorCode.CAPTURE_INTERNAL_ERR