Skip to content

Commit ff79e76

Browse files
committed
bump version
1 parent b3c4b58 commit ff79e76

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

ios/ReactNativeDeviceActivityModule.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public class ReactNativeDeviceActivityModule: Module {
187187
])
188188
let fileManager = FileManager.default
189189

190-
_ = NativeEventObserver(module: self)
190+
let observer = NativeEventObserver(module: self)
191191

192192
var watchActivitiesHandle: Cancellable?
193193
var onDeviceActivityDetectedHandle: Cancellable?
@@ -369,7 +369,9 @@ public class ReactNativeDeviceActivityModule: Module {
369369
}
370370

371371
Function("clearAllManagedSettingsStoreSettings") {
372-
clearAllManagedSettingsStoreSettings()
372+
if #available(iOS 16, *) {
373+
clearAllManagedSettingsStoreSettings()
374+
}
373375
}
374376

375377
AsyncFunction("startMonitoring") {

ios/Shared.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ func refreshManagedSettingsStore() {
391391
store = ManagedSettingsStore()
392392
}
393393

394-
@available(iOS 15.0, *)
394+
@available(iOS 16.0, *)
395395
func clearAllManagedSettingsStoreSettings() {
396396
store.clearAllSettings()
397397
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-device-activity",
3-
"version": "0.4.11",
3+
"version": "0.4.13",
44
"description": "Provides access to Apples DeviceActivity API",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",

0 commit comments

Comments
 (0)