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.
package/android/build.gradle
CHANGED
|
@@ -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.
|
|
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:
|
|
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:
|
|
2225
|
+
ssid: ssid, connectionPriority: priority,
|
|
2220
2226
|
ssidStealth: ssidStealth
|
|
2221
2227
|
) { error in
|
|
2222
2228
|
if let error {
|
package/package.json
CHANGED