theta-client-react-native 1.14.0 → 1.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,7 +68,7 @@ dependencies {
68
68
  implementation "com.facebook.react:react-native:+"
69
69
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
70
70
  implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3"
71
- implementation "com.ricoh360.thetaclient:theta-client:1.14.0"
71
+ implementation "com.ricoh360.thetaclient:theta-client:1.14.1"
72
72
  }
73
73
 
74
74
  react {
@@ -2205,7 +2205,7 @@ class ThetaClientReactNative: RCTEventEmitter {
2205
2205
  @objc(setAccessPointConnectionPriority:connectionPriority:ssidStealth:resolve:reject:)
2206
2206
  func setAccessPointConnectionPriority(
2207
2207
  ssid: String,
2208
- connectionPriority: Int,
2208
+ connectionPriority: Double,
2209
2209
  ssidStealth: Bool,
2210
2210
  resolve: @escaping RCTPromiseResolveBlock,
2211
2211
  reject: @escaping RCTPromiseRejectBlock
@@ -2214,9 +2214,15 @@ class ThetaClientReactNative: RCTEventEmitter {
2214
2214
  reject(ERROR_CODE_ERROR, MESSAGE_NOT_INIT, nil)
2215
2215
  return
2216
2216
  }
2217
+
2218
+ guard let priority = Int32(exactly:connectionPriority) else {
2219
+ reject(ERROR_CODE_ERROR, MESSAGE_NO_ARGUMENT, nil)
2220
+ return
2221
+ }
2222
+
2217
2223
  do {
2218
2224
  thetaRepository.setAccessPointConnectionPriority(
2219
- ssid: ssid, connectionPriority: Int32(clamping: connectionPriority),
2225
+ ssid: ssid, connectionPriority: priority,
2220
2226
  ssidStealth: ssidStealth
2221
2227
  ) { error in
2222
2228
  if let error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "theta-client-react-native",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "description": "This library provides a way to control RICOH THETA using.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -15,7 +15,7 @@ Pod::Spec.new do |s|
15
15
 
16
16
  s.source_files = "ios/**/*.{h,m,mm,swift,cpp}"
17
17
 
18
- s.dependency "THETAClient", "1.14.0"
18
+ s.dependency "THETAClient", "1.14.1"
19
19
 
20
20
  install_modules_dependencies(s)
21
21
  end