Skip to content

Commit

Permalink
Feature IOS: Touch ID Passcode (#40)
Browse files Browse the repository at this point in the history
* Update NativeSettingsPlugin.swift
* Update definitions.ts
* Bumped version
* Updated prettier
  • Loading branch information
RaphaelWoude authored Aug 30, 2023
1 parent 2ba7740 commit 7f89996
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,5 +231,6 @@ might break in future iOS versions or have your app rejected in the App Store.
| **`WiFi`** | <code>'wifi'</code> | WiFi settings. |
| **`Tethering`** | <code>'tethering'</code> | Tethering settings (used to create a hotspot with mobile data). |
| **`DoNotDisturb`** | <code>'doNotDisturb'</code> | Do Not Disturb settings. |
| **`TouchIdPasscode`** | <code>'touchIdPasscode'</code> | Touch id passcode settings. |

</docgen-api>
3 changes: 2 additions & 1 deletion ios/Plugin/NativeSettingsPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 5 additions & 0 deletions src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,4 +408,9 @@ export enum IOSSettings {
* Do Not Disturb settings.
*/
DoNotDisturb = 'doNotDisturb',

/**
* Touch id passcode settings.
*/
TouchIdPasscode = 'touchIdPasscode',
}

0 comments on commit 7f89996

Please sign in to comment.