From 7f899967fe0b4592cefc6819ac03c8c2c8b6fbc6 Mon Sep 17 00:00:00 2001 From: Raphael van der Woude <47354694+RaphaelWoude@users.noreply.github.com> Date: Wed, 30 Aug 2023 14:55:44 +0200 Subject: [PATCH] Feature IOS: Touch ID Passcode (#40) * Update NativeSettingsPlugin.swift * Update definitions.ts * Bumped version * Updated prettier --- README.md | 1 + ios/Plugin/NativeSettingsPlugin.swift | 3 ++- package.json | 2 +- src/definitions.ts | 5 +++++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f6087d8..053e4cd 100644 --- a/README.md +++ b/README.md @@ -231,5 +231,6 @@ might break in future iOS versions or have your app rejected in the App Store. | **`WiFi`** | 'wifi' | WiFi settings. | | **`Tethering`** | 'tethering' | Tethering settings (used to create a hotspot with mobile data). | | **`DoNotDisturb`** | 'doNotDisturb' | Do Not Disturb settings. | +| **`TouchIdPasscode`** | 'touchIdPasscode' | Touch id passcode settings. | diff --git a/ios/Plugin/NativeSettingsPlugin.swift b/ios/Plugin/NativeSettingsPlugin.swift index 431b3d3..e18ab14 100644 --- a/ios/Plugin/NativeSettingsPlugin.swift +++ b/ios/Plugin/NativeSettingsPlugin.swift @@ -30,7 +30,8 @@ public class NativeSettingsPlugin: CAPPlugin { "wallpaper": "App-prefs:Wallpaper", "wifi": "App-prefs:WIFI", "tethering": "App-prefs:INTERNET_TETHERING", - "doNotDisturb": "App-prefs:DO_NOT_DISTURB" + "doNotDisturb": "App-prefs:DO_NOT_DISTURB", + "touchIdPasscode": "App-prefs:TOUCHID_PASSCODE" ] @objc func open(_ call: CAPPluginCall) { diff --git a/package.json b/package.json index 489ee89..8fb312a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "capacitor-native-settings", - "version": "5.0.0", + "version": "5.0.1", "description": "Capacitor plugin to open native settings screens for android and iOS", "main": "dist/plugin.cjs.js", "module": "dist/esm/index.js", diff --git a/src/definitions.ts b/src/definitions.ts index 091579a..ace9c02 100644 --- a/src/definitions.ts +++ b/src/definitions.ts @@ -408,4 +408,9 @@ export enum IOSSettings { * Do Not Disturb settings. */ DoNotDisturb = 'doNotDisturb', + + /** + * Touch id passcode settings. + */ + TouchIdPasscode = 'touchIdPasscode', }