@cap-kit/settings 8.0.2 → 8.1.2

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Fabio Martino
3
+ Copyright (c) 2026 CapKit Team
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/Package.swift CHANGED
@@ -10,7 +10,7 @@ let package = Package(
10
10
  targets: ["SettingsPlugin"])
11
11
  ],
12
12
  dependencies: [
13
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.2")
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.1.0")
14
14
  ],
15
15
  targets: [
16
16
  .target(
package/README.md CHANGED
@@ -58,7 +58,7 @@ Configuration options for the Settings plugin.
58
58
 
59
59
  | Prop | Type | Description | Default | Since |
60
60
  | -------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ | ----- |
61
- | **`verboseLogging`** | <code>boolean</code> | Enables verbose native logging. When enabled, additional debug information is printed to the native console (Logcat on Android, Xcode on iOS). This option affects native logging behavior only and has no impact on the JavaScript API. | <code>false</code> | 1.0.0 |
61
+ | **`verboseLogging`** | <code>boolean</code> | Enables verbose native logging. When enabled, additional debug information is printed to the native console (Logcat on Android, Xcode on iOS). This option affects native logging behavior only and has no impact on the JavaScript API. | <code>false</code> | 8.0.0 |
62
62
 
63
63
  ### Examples
64
64
 
@@ -132,7 +132,7 @@ On Web, this method is not supported.
132
132
  | ------------- | ----------------------------------------------------------- | ----------------------------------- |
133
133
  | **`options`** | <code><a href="#platformoptions">PlatformOptions</a></code> | Platform-specific settings options. |
134
134
 
135
- **Since:** 1.0.0
135
+ **Since:** 8.0.0
136
136
 
137
137
  --------------------
138
138
 
@@ -149,7 +149,7 @@ Opens a specific system settings section. (iOS Only)
149
149
  | ------------- | ------------------------------------------------- | --------------------- |
150
150
  | **`options`** | <code><a href="#iosoptions">IOSOptions</a></code> | iOS settings options. |
151
151
 
152
- **Since:** 1.0.0
152
+ **Since:** 8.0.0
153
153
 
154
154
  --------------------
155
155
 
@@ -167,7 +167,7 @@ On Web, this method is not supported.
167
167
  | ------------- | --------------------------------------------------------- | ------------------------- |
168
168
  | **`options`** | <code><a href="#androidoptions">AndroidOptions</a></code> | Android settings options. |
169
169
 
170
- **Since:** 1.0.0
170
+ **Since:** 8.0.0
171
171
 
172
172
  --------------------
173
173
 
@@ -185,7 +185,7 @@ bundled with the application.
185
185
 
186
186
  **Returns:** <code>Promise&lt;<a href="#pluginversionresult">PluginVersionResult</a>&gt;</code>
187
187
 
188
- **Since:** 1.0.0
188
+ **Since:** 8.0.0
189
189
 
190
190
  #### Example
191
191
 
@@ -5,13 +5,13 @@ buildscript {
5
5
  mavenCentral()
6
6
  }
7
7
  dependencies {
8
- classpath 'com.android.tools.build:gradle:8.13.0'
8
+ classpath 'com.android.tools.build:gradle:8.13.2'
9
9
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
10
10
  }
11
11
  }
12
12
 
13
13
  plugins {
14
- id "org.jlleitschuh.gradle.ktlint" version "12.1.1" apply false
14
+ id "org.jlleitschuh.gradle.ktlint" version "14.0.1" apply false
15
15
  }
16
16
 
17
17
  ext {
@@ -38,8 +38,9 @@ def getPluginVersion() {
38
38
  }
39
39
  } catch (Exception e) {
40
40
  // Ignore errors and fallback
41
+ logger.info("Exception", e)
41
42
  }
42
- return "0.0.1"
43
+ return "8.0.0"
43
44
  }
44
45
 
45
46
  def pluginVersion = getPluginVersion()
@@ -48,16 +49,16 @@ android {
48
49
  namespace = "io.capkit.settings"
49
50
  compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion as Integer : 36
50
51
 
51
- // AGP 8.0+ disables BuildConfig by default for libraries.
52
+ // AGP 8.0+ disables BuildConfig by default for libraries.
52
53
  // We need to enable it to inject the plugin version.
53
54
  buildFeatures {
54
55
  buildConfig = true
55
56
  }
56
57
 
57
58
  defaultConfig {
58
- minSdkVersion = project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion as Integer : 24
59
- targetSdkVersion = project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion as Integer : 36
60
- versionCode = 1
59
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion as Integer : 24
60
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion as Integer : 36
61
+ versionCode 1
61
62
 
62
63
  // Dynamic versioning (feature enabled)
63
64
  versionName = pluginVersion
@@ -80,9 +81,6 @@ android {
80
81
  sourceCompatibility = JavaVersion.VERSION_21
81
82
  targetCompatibility = JavaVersion.VERSION_21
82
83
  }
83
- kotlinOptions {
84
- jvmTarget = JavaVersion.VERSION_21
85
- }
86
84
  }
87
85
 
88
86
  repositories {
@@ -12,7 +12,9 @@ import com.getcapacitor.Plugin
12
12
  * Configuration is read once during plugin initialization and treated as
13
13
  * immutable runtime input.
14
14
  */
15
- class SettingsConfig(plugin: Plugin) {
15
+ class SettingsConfig(
16
+ plugin: Plugin,
17
+ ) {
16
18
  /**
17
19
  * Android application context.
18
20
  * Exposed for native components that may require it.
@@ -12,14 +12,22 @@ sealed class SettingsError(
12
12
  message: String,
13
13
  ) : Throwable(message) {
14
14
  /** Feature or capability is not available on this device */
15
- class Unavailable(message: String) : SettingsError(message)
15
+ class Unavailable(
16
+ message: String,
17
+ ) : SettingsError(message)
16
18
 
17
19
  /** Permission was denied by the user or system */
18
- class PermissionDenied(message: String) : SettingsError(message)
20
+ class PermissionDenied(
21
+ message: String,
22
+ ) : SettingsError(message)
19
23
 
20
24
  /** Plugin failed to initialize correctly */
21
- class InitFailed(message: String) : SettingsError(message)
25
+ class InitFailed(
26
+ message: String,
27
+ ) : SettingsError(message)
22
28
 
23
29
  /** Unsupported or unknown type/value was provided */
24
- class UnknownType(message: String) : SettingsError(message)
30
+ class UnknownType(
31
+ message: String,
32
+ ) : SettingsError(message)
25
33
  }
@@ -25,8 +25,8 @@ object SettingsUtils {
25
25
  fun resolveIntent(
26
26
  option: String,
27
27
  packageName: String,
28
- ): Intent? {
29
- return when (option) {
28
+ ): Intent? =
29
+ when (option) {
30
30
  // --- App-specific ---
31
31
  "application_details" ->
32
32
  Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS).apply {
@@ -71,5 +71,4 @@ object SettingsUtils {
71
71
 
72
72
  else -> null
73
73
  }
74
- }
75
74
  }
package/dist/docs.json CHANGED
@@ -27,7 +27,7 @@
27
27
  },
28
28
  {
29
29
  "name": "since",
30
- "text": "1.0.0"
30
+ "text": "8.0.0"
31
31
  }
32
32
  ],
33
33
  "docs": "Opens the specified settings option on the current platform.\nOn Web, this method is not supported.",
@@ -66,7 +66,7 @@
66
66
  },
67
67
  {
68
68
  "name": "since",
69
- "text": "1.0.0"
69
+ "text": "8.0.0"
70
70
  }
71
71
  ],
72
72
  "docs": "Opens a specific system settings section. (iOS Only)",
@@ -101,7 +101,7 @@
101
101
  },
102
102
  {
103
103
  "name": "since",
104
- "text": "1.0.0"
104
+ "text": "8.0.0"
105
105
  }
106
106
  ],
107
107
  "docs": "Opens a specific Android Intent. (Android Only)\nOn Web, this method is not supported.",
@@ -126,7 +126,7 @@
126
126
  },
127
127
  {
128
128
  "name": "since",
129
- "text": "1.0.0"
129
+ "text": "8.0.0"
130
130
  }
131
131
  ],
132
132
  "docs": "Returns the native plugin version.\n\nThe returned version corresponds to the native implementation\nbundled with the application.",
@@ -792,7 +792,7 @@
792
792
  "name": "example"
793
793
  },
794
794
  {
795
- "text": "1.0.0",
795
+ "text": "8.0.0",
796
796
  "name": "since"
797
797
  }
798
798
  ],
@@ -40,7 +40,7 @@ export interface SettingsConfig {
40
40
  *
41
41
  * @default false
42
42
  * @example true
43
- * @since 1.0.0
43
+ * @since 8.0.0
44
44
  */
45
45
  verboseLogging?: boolean;
46
46
  }
@@ -54,7 +54,7 @@ export interface SettingsConfig {
54
54
  * On iOS (Swift Package Manager), errors are returned as data
55
55
  * objects rather than rejected Promises.
56
56
  *
57
- * @since 1.0.0
57
+ * @since 8.0.0
58
58
  */
59
59
  export declare enum SettingsErrorCode {
60
60
  /** The device does not have the requested hardware. */
@@ -212,7 +212,7 @@ export interface IOSOptions {
212
212
  * resolves with:
213
213
  * `{ success: false, code: SettingsErrorCode.UNAVAILABLE }`
214
214
  *
215
- * @since 1.0.0
215
+ * @since 8.0.0
216
216
  */
217
217
  export declare enum AndroidSettings {
218
218
  /**
@@ -441,7 +441,7 @@ export declare enum AndroidSettings {
441
441
  *
442
442
  * Availability is best-effort and not guaranteed.
443
443
  *
444
- * @since 1.0.0
444
+ * @since 8.0.0
445
445
  */
446
446
  export declare enum IOSSettings {
447
447
  /**
@@ -606,7 +606,7 @@ export interface SettingsPlugin {
606
606
  * @param options Platform-specific settings options.
607
607
  * @returns A promise resolving to the operation result.
608
608
  *
609
- * @since 1.0.0
609
+ * @since 8.0.0
610
610
  */
611
611
  open(options: PlatformOptions): Promise<void>;
612
612
  /**
@@ -627,7 +627,7 @@ export interface SettingsPlugin {
627
627
  * @param options iOS settings options.
628
628
  * @returns A promise resolving to the operation result.
629
629
  *
630
- * @since 1.0.0
630
+ * @since 8.0.0
631
631
  */
632
632
  openIOS(options: IOSOptions): Promise<void>;
633
633
  /**
@@ -639,7 +639,7 @@ export interface SettingsPlugin {
639
639
  * @param options Android settings options.
640
640
  * @returns A promise resolving to the operation result.
641
641
  *
642
- * @since 1.0.0
642
+ * @since 8.0.0
643
643
  */
644
644
  openAndroid(options: AndroidOptions): Promise<void>;
645
645
  /**
@@ -655,7 +655,7 @@ export interface SettingsPlugin {
655
655
  * const { version } = await Settings.getPluginVersion();
656
656
  * ```
657
657
  *
658
- * @since 1.0.0
658
+ * @since 8.0.0
659
659
  */
660
660
  getPluginVersion(): Promise<PluginVersionResult>;
661
661
  }
@@ -9,7 +9,7 @@
9
9
  * On iOS (Swift Package Manager), errors are returned as data
10
10
  * objects rather than rejected Promises.
11
11
  *
12
- * @since 1.0.0
12
+ * @since 8.0.0
13
13
  */
14
14
  export var SettingsErrorCode;
15
15
  (function (SettingsErrorCode) {
@@ -42,7 +42,7 @@ export var SettingsErrorCode;
42
42
  * resolves with:
43
43
  * `{ success: false, code: SettingsErrorCode.UNAVAILABLE }`
44
44
  *
45
- * @since 1.0.0
45
+ * @since 8.0.0
46
46
  */
47
47
  export var AndroidSettings;
48
48
  (function (AndroidSettings) {
@@ -272,7 +272,7 @@ export var AndroidSettings;
272
272
  *
273
273
  * Availability is best-effort and not guaranteed.
274
274
  *
275
- * @since 1.0.0
275
+ * @since 8.0.0
276
276
  */
277
277
  export var IOSSettings;
278
278
  (function (IOSSettings) {
@@ -13,7 +13,7 @@ var core = require('@capacitor/core');
13
13
  * On iOS (Swift Package Manager), errors are returned as data
14
14
  * objects rather than rejected Promises.
15
15
  *
16
- * @since 1.0.0
16
+ * @since 8.0.0
17
17
  */
18
18
  exports.SettingsErrorCode = void 0;
19
19
  (function (SettingsErrorCode) {
@@ -46,7 +46,7 @@ exports.SettingsErrorCode = void 0;
46
46
  * resolves with:
47
47
  * `{ success: false, code: SettingsErrorCode.UNAVAILABLE }`
48
48
  *
49
- * @since 1.0.0
49
+ * @since 8.0.0
50
50
  */
51
51
  exports.AndroidSettings = void 0;
52
52
  (function (AndroidSettings) {
@@ -276,7 +276,7 @@ exports.AndroidSettings = void 0;
276
276
  *
277
277
  * Availability is best-effort and not guaranteed.
278
278
  *
279
- * @since 1.0.0
279
+ * @since 8.0.0
280
280
  */
281
281
  exports.IOSSettings = void 0;
282
282
  (function (IOSSettings) {
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["/// <reference types=\"@capacitor/cli\" />\n/**\n * Standardized error codes used by the Settings plugin.\n *\n * These codes are returned as part of structured error objects\n * and allow consumers to implement programmatic error handling.\n *\n * Note:\n * On iOS (Swift Package Manager), errors are returned as data\n * objects rather than rejected Promises.\n *\n * @since 1.0.0\n */\nexport var SettingsErrorCode;\n(function (SettingsErrorCode) {\n /** The device does not have the requested hardware. */\n SettingsErrorCode[\"UNAVAILABLE\"] = \"UNAVAILABLE\";\n /** The user denied the permission or the feature is disabled in settings. */\n SettingsErrorCode[\"PERMISSION_DENIED\"] = \"PERMISSION_DENIED\";\n /** The Settings plugin failed to initialize (e.g., runtime error or Looper failure). */\n SettingsErrorCode[\"INIT_FAILED\"] = \"INIT_FAILED\";\n /** The requested Settings plugin type is not valid or not supported by the plugin. */\n SettingsErrorCode[\"UNKNOWN_TYPE\"] = \"UNKNOWN_TYPE\";\n})(SettingsErrorCode || (SettingsErrorCode = {}));\n/**\n * Enumeration of supported Android system settings.\n *\n * @platform Android\n *\n * @remarks\n * Android settings are opened via system Intents.\n * Availability depends on:\n *\n * - Android version\n * - device manufacturer (OEM)\n * - system configuration and user restrictions\n *\n * Some intents are not part of the public Android SDK and may not be\n * available on all devices.\n *\n * When a requested settings screen cannot be resolved, the plugin\n * resolves with:\n * `{ success: false, code: SettingsErrorCode.UNAVAILABLE }`\n *\n * @since 1.0.0\n */\nexport var AndroidSettings;\n(function (AndroidSettings) {\n /**\n * Opens Accessibility settings.\n */\n AndroidSettings[\"Accessibility\"] = \"accessibility\";\n /**\n * Opens the Add Account screen.\n */\n AndroidSettings[\"Account\"] = \"account\";\n /**\n * Opens Airplane Mode settings.\n */\n AndroidSettings[\"AirplaneMode\"] = \"airplane_mode\";\n /**\n * Opens Access Point Name (APN) settings.\n */\n AndroidSettings[\"Apn\"] = \"apn\";\n /**\n * Opens the Application Details screen for the current app.\n */\n AndroidSettings[\"ApplicationDetails\"] = \"application_details\";\n /**\n * Opens Application Development settings.\n *\n * Availability depends on developer options being enabled.\n */\n AndroidSettings[\"ApplicationDevelopment\"] = \"application_development\";\n /**\n * Opens Application settings.\n */\n AndroidSettings[\"Application\"] = \"application\";\n /**\n * Opens app-specific notification settings.\n */\n AndroidSettings[\"AppNotification\"] = \"app_notification\";\n /**\n * Opens Battery Optimization settings.\n *\n * Allows managing apps excluded from battery optimizations.\n */\n AndroidSettings[\"BatteryOptimization\"] = \"battery_optimization\";\n /**\n * Opens Bluetooth settings.\n */\n AndroidSettings[\"Bluetooth\"] = \"bluetooth\";\n /**\n * Opens Captioning settings.\n */\n AndroidSettings[\"Captioning\"] = \"captioning\";\n /**\n * Opens Cast device settings.\n */\n AndroidSettings[\"Cast\"] = \"cast\";\n /**\n * Opens Data Roaming settings.\n */\n AndroidSettings[\"DataRoaming\"] = \"data_roaming\";\n /**\n * Opens Date & Time settings.\n */\n AndroidSettings[\"Date\"] = \"date\";\n /**\n * Opens Display settings.\n */\n AndroidSettings[\"Display\"] = \"display\";\n /**\n * Opens Dream (Daydream / Screensaver) settings.\n */\n AndroidSettings[\"Dream\"] = \"dream\";\n /**\n * Opens Home app selection settings.\n */\n AndroidSettings[\"Home\"] = \"home\";\n /**\n * Opens Input Method (Keyboard) settings.\n */\n AndroidSettings[\"Keyboard\"] = \"keyboard\";\n /**\n * Opens Input Method Subtype settings.\n */\n AndroidSettings[\"KeyboardSubType\"] = \"keyboard_subtype\";\n /**\n * Opens Language & Input (Locale) settings.\n */\n AndroidSettings[\"Locale\"] = \"locale\";\n /**\n * Opens Location Services settings.\n */\n AndroidSettings[\"Location\"] = \"location\";\n /**\n * Opens Manage Applications settings.\n */\n AndroidSettings[\"ManageApplications\"] = \"manage_applications\";\n /**\n * Opens Manage All Applications settings.\n *\n * Availability depends on Android version and OEM.\n */\n AndroidSettings[\"ManageAllApplications\"] = \"manage_all_applications\";\n /**\n * Show settings for memory card storage\n */\n AndroidSettings[\"MemoryCard\"] = \"memory_card\";\n /**\n * Opens Network Operator settings.\n */\n AndroidSettings[\"Network\"] = \"network\";\n /**\n * Opens NFC settings.\n */\n AndroidSettings[\"Nfc\"] = \"nfc\";\n /**\n * Opens NFC Sharing settings.\n */\n AndroidSettings[\"NfcSharing\"] = \"nfcsharing\";\n /**\n * Opens NFC Payment settings.\n */\n AndroidSettings[\"NfcPayment\"] = \"nfc_payment\";\n /**\n * Opens Print settings.\n */\n AndroidSettings[\"Print\"] = \"print\";\n /**\n * Opens Privacy settings.\n */\n AndroidSettings[\"Privacy\"] = \"privacy\";\n /**\n * Opens Quick Launch settings.\n */\n AndroidSettings[\"QuickLaunch\"] = \"quick_launch\";\n /**\n * Opens Search settings.\n */\n AndroidSettings[\"Search\"] = \"search\";\n /**\n * Opens Security settings.\n */\n AndroidSettings[\"Security\"] = \"security\";\n /**\n * Opens the main System Settings screen.\n */\n AndroidSettings[\"Settings\"] = \"settings\";\n /**\n * Opens Regulatory Information screen.\n */\n AndroidSettings[\"ShowRegulatoryInfo\"] = \"show_regulatory_info\";\n /**\n * Opens Sound & Volume settings.\n */\n AndroidSettings[\"Sound\"] = \"sound\";\n /**\n * Opens Internal Storage settings.\n */\n AndroidSettings[\"Storage\"] = \"storage\";\n /**\n * Opens Sync settings.\n */\n AndroidSettings[\"Sync\"] = \"sync\";\n /**\n * Opens Text-to-Speech (TTS) settings.\n *\n * Uses a non-public intent on some devices.\n */\n AndroidSettings[\"TextToSpeech\"] = \"text_to_speech\";\n /**\n * Opens Usage Access settings.\n *\n * Allows managing apps with access to usage data.\n */\n AndroidSettings[\"Usage\"] = \"usage\";\n /**\n * Opens User Dictionary settings.\n */\n AndroidSettings[\"UserDictionary\"] = \"user_dictionary\";\n /**\n * Opens Voice Input settings.\n */\n AndroidSettings[\"VoiceInput\"] = \"voice_input\";\n /**\n * Opens VPN settings.\n */\n AndroidSettings[\"VPN\"] = \"vpn\";\n /**\n * Opens Wi-Fi settings.\n */\n AndroidSettings[\"Wifi\"] = \"wifi\";\n /**\n * Opens Wi-Fi IP settings.\n *\n * Availability varies by device and Android version.\n */\n AndroidSettings[\"WifiIp\"] = \"wifi_ip\";\n /**\n * Opens Wireless & Networks settings.\n */\n AndroidSettings[\"Wireless\"] = \"wireless\";\n /**\n * Opens Zen Mode (Do Not Disturb) settings.\n *\n * This uses a non-public intent and may not work on all devices.\n */\n AndroidSettings[\"ZenMode\"] = \"zen_mode\";\n /**\n * Opens Zen Mode Priority settings.\n */\n AndroidSettings[\"ZenModePriority\"] = \"zen_mode_priority\";\n /**\n * Opens Zen Mode Blocked Effects settings.\n */\n AndroidSettings[\"ZenModeBlockedEffects\"] = \"zen_mode_blocked_effects\";\n})(AndroidSettings || (AndroidSettings = {}));\n/**\n * Enumeration of supported iOS system settings.\n *\n * @platform iOS\n *\n * @remarks\n * Apple officially supports opening only the app-specific settings screen.\n * All other values rely on undocumented URL schemes and may:\n *\n * - behave differently across iOS versions\n * - stop working in future releases\n * - be restricted during App Store review\n *\n * Availability is best-effort and not guaranteed.\n *\n * @since 1.0.0\n */\nexport var IOSSettings;\n(function (IOSSettings) {\n /**\n * Opens the app-specific settings screen.\n *\n * This is the ONLY settings destination officially supported by Apple\n * and is considered App Store safe.\n */\n IOSSettings[\"App\"] = \"app\";\n /**\n * Opens the app-specific notification settings.\n *\n * - iOS 16+: opens the dedicated notification settings screen\n * - iOS <16: falls back to the app settings screen\n */\n IOSSettings[\"AppNotification\"] = \"appNotification\";\n /**\n * Opens iOS \"About\" settings.\n */\n IOSSettings[\"About\"] = \"about\";\n /**\n * Opens Auto-Lock settings.\n */\n IOSSettings[\"AutoLock\"] = \"autoLock\";\n /**\n * Opens Bluetooth settings.\n */\n IOSSettings[\"Bluetooth\"] = \"bluetooth\";\n /**\n * Opens Date & Time settings.\n */\n IOSSettings[\"DateTime\"] = \"dateTime\";\n /**\n * Opens FaceTime settings.\n */\n IOSSettings[\"FaceTime\"] = \"facetime\";\n /**\n * Opens General settings.\n */\n IOSSettings[\"General\"] = \"general\";\n /**\n * Opens Keyboard settings.\n */\n IOSSettings[\"Keyboard\"] = \"keyboard\";\n /**\n * Opens iCloud settings.\n */\n IOSSettings[\"ICloud\"] = \"iCloud\";\n /**\n * Opens iCloud Storage & Backup settings.\n */\n IOSSettings[\"ICloudStorageBackup\"] = \"iCloudStorageBackup\";\n /**\n * Opens Language & Region (International) settings.\n */\n IOSSettings[\"International\"] = \"international\";\n /**\n * Opens Location Services settings.\n */\n IOSSettings[\"LocationServices\"] = \"locationServices\";\n /**\n * Opens Music settings.\n */\n IOSSettings[\"Music\"] = \"music\";\n /**\n * Opens Notes settings.\n */\n IOSSettings[\"Notes\"] = \"notes\";\n /**\n * Opens Notifications settings.\n *\n * Note: this is the global notifications screen,\n * not app-specific notifications.\n */\n IOSSettings[\"Notifications\"] = \"notifications\";\n /**\n * Opens Phone settings.\n */\n IOSSettings[\"Phone\"] = \"phone\";\n /**\n * Opens Photos settings.\n */\n IOSSettings[\"Photos\"] = \"photos\";\n /**\n * Opens Managed Configuration profiles list.\n */\n IOSSettings[\"ManagedConfigurationList\"] = \"managedConfigurationList\";\n /**\n * Opens Reset settings.\n */\n IOSSettings[\"Reset\"] = \"reset\";\n /**\n * Opens Ringtone settings.\n */\n IOSSettings[\"Ringtone\"] = \"ringtone\";\n /**\n * Opens Sounds settings.\n */\n IOSSettings[\"Sounds\"] = \"sounds\";\n /**\n * Opens Software Update settings.\n */\n IOSSettings[\"SoftwareUpdate\"] = \"softwareUpdate\";\n /**\n * Opens App Store settings.\n */\n IOSSettings[\"Store\"] = \"store\";\n /**\n * Opens App Tracking Transparency settings.\n *\n * Available on iOS 14+.\n */\n IOSSettings[\"Tracking\"] = \"tracking\";\n /**\n * Opens Wallpaper settings.\n */\n IOSSettings[\"Wallpaper\"] = \"wallpaper\";\n /**\n * Opens Wi-Fi settings.\n */\n IOSSettings[\"WiFi\"] = \"wifi\";\n /**\n * Opens Personal Hotspot (Tethering) settings.\n */\n IOSSettings[\"Tethering\"] = \"tethering\";\n /**\n * Opens Do Not Disturb settings.\n */\n IOSSettings[\"DoNotDisturb\"] = \"doNotDisturb\";\n /**\n * Opens Touch ID / Passcode settings.\n */\n IOSSettings[\"TouchIdPasscode\"] = \"touchIdPasscode\";\n /**\n * Opens Screen Time settings.\n */\n IOSSettings[\"ScreenTime\"] = \"screenTime\";\n /**\n * Opens Accessibility settings.\n */\n IOSSettings[\"Accessibility\"] = \"accessibility\";\n /**\n * Opens VPN settings.\n */\n IOSSettings[\"VPN\"] = \"vpn\";\n})(IOSSettings || (IOSSettings = {}));\n//# sourceMappingURL=definitions.js.map","/**\n * @file index.ts\n * This file exports the Settings and registers it with Capacitor.\n * It acts as the main entry point for accessing the plugin's functionality\n * across different platforms, including web.\n */\nimport { registerPlugin } from '@capacitor/core';\n/**\n * Main entry point for the Settings Capacitor plugin.\n *\n * This file registers the plugin with Capacitor and exports\n * both the runtime instance and the public TypeScript types.\n */\nconst Settings = registerPlugin('Settings', {\n web: () => import('./web').then((m) => new m.SettingsWeb()),\n});\nexport * from './definitions';\nexport { Settings };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\n/**\n * Web implementation of the Settings plugin.\n *\n * This implementation exists to satisfy Capacitor's multi-platform contract.\n * Opening native system settings is not supported in web browsers.\n *\n * All methods follow the same state-based result model used on\n * Android and iOS:\n * - operations never throw\n * - Promise rejection is not used\n * - failures are reported via structured result objects\n */\nexport class SettingsWeb extends WebPlugin {\n constructor() {\n super();\n }\n // --- Open Settings ---\n /**\n * Attempts to open a platform-specific settings screen.\n *\n * This operation is not supported on the Web, as browsers do not\n * provide APIs to open operating system settings.\n */\n async open() {\n this.unavailable('Opening system settings is not supported on the Web.');\n }\n /**\n * Attempts to open an iOS settings screen.\n *\n * This operation is not supported on the Web.\n */\n async openIOS() {\n this.unavailable('iOS settings are not available in web environments.');\n }\n /**\n * Attempts to open an Android settings screen.\n *\n * This operation is not supported on the Web.\n */\n async openAndroid() {\n this.unavailable('Android settings are not available in web environments.');\n }\n // --- Plugin Info ---\n /**\n * Returns the plugin version.\n *\n * On the Web, this value represents the JavaScript package version\n * rather than a native implementation.\n */\n async getPluginVersion() {\n return { version: 'web' };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["SettingsErrorCode","AndroidSettings","IOSSettings","registerPlugin","WebPlugin"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACWA;AACX,CAAC,UAAU,iBAAiB,EAAE;AAC9B;AACA,IAAI,iBAAiB,CAAC,aAAa,CAAC,GAAG,aAAa;AACpD;AACA,IAAI,iBAAiB,CAAC,mBAAmB,CAAC,GAAG,mBAAmB;AAChE;AACA,IAAI,iBAAiB,CAAC,aAAa,CAAC,GAAG,aAAa;AACpD;AACA,IAAI,iBAAiB,CAAC,cAAc,CAAC,GAAG,cAAc;AACtD,CAAC,EAAEA,yBAAiB,KAAKA,yBAAiB,GAAG,EAAE,CAAC,CAAC;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACWC;AACX,CAAC,UAAU,eAAe,EAAE;AAC5B;AACA;AACA;AACA,IAAI,eAAe,CAAC,eAAe,CAAC,GAAG,eAAe;AACtD;AACA;AACA;AACA,IAAI,eAAe,CAAC,SAAS,CAAC,GAAG,SAAS;AAC1C;AACA;AACA;AACA,IAAI,eAAe,CAAC,cAAc,CAAC,GAAG,eAAe;AACrD;AACA;AACA;AACA,IAAI,eAAe,CAAC,KAAK,CAAC,GAAG,KAAK;AAClC;AACA;AACA;AACA,IAAI,eAAe,CAAC,oBAAoB,CAAC,GAAG,qBAAqB;AACjE;AACA;AACA;AACA;AACA;AACA,IAAI,eAAe,CAAC,wBAAwB,CAAC,GAAG,yBAAyB;AACzE;AACA;AACA;AACA,IAAI,eAAe,CAAC,aAAa,CAAC,GAAG,aAAa;AAClD;AACA;AACA;AACA,IAAI,eAAe,CAAC,iBAAiB,CAAC,GAAG,kBAAkB;AAC3D;AACA;AACA;AACA;AACA;AACA,IAAI,eAAe,CAAC,qBAAqB,CAAC,GAAG,sBAAsB;AACnE;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,CAAC,GAAG,KAAK;AAC9B,CAAC,EAAEA,mBAAW,KAAKA,mBAAW,GAAG,EAAE,CAAC,CAAC;;ACrarC;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACK,MAAC,QAAQ,GAAGC,mBAAc,CAAC,UAAU,EAAE;AAC5C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;AAC/D,CAAC;;ACdD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,WAAW,SAASC,cAAS,CAAC;AAC3C,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,EAAE;AACf,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,MAAM,IAAI,GAAG;AACjB,QAAQ,IAAI,CAAC,WAAW,CAAC,sDAAsD,CAAC;AAChF,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,IAAI,MAAM,OAAO,GAAG;AACpB,QAAQ,IAAI,CAAC,WAAW,CAAC,qDAAqD,CAAC;AAC/E,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,IAAI,MAAM,WAAW,GAAG;AACxB,QAAQ,IAAI,CAAC,WAAW,CAAC,yDAAyD,CAAC;AACnF,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;AACjC,IAAI;AACJ;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["/// <reference types=\"@capacitor/cli\" />\n/**\n * Standardized error codes used by the Settings plugin.\n *\n * These codes are returned as part of structured error objects\n * and allow consumers to implement programmatic error handling.\n *\n * Note:\n * On iOS (Swift Package Manager), errors are returned as data\n * objects rather than rejected Promises.\n *\n * @since 8.0.0\n */\nexport var SettingsErrorCode;\n(function (SettingsErrorCode) {\n /** The device does not have the requested hardware. */\n SettingsErrorCode[\"UNAVAILABLE\"] = \"UNAVAILABLE\";\n /** The user denied the permission or the feature is disabled in settings. */\n SettingsErrorCode[\"PERMISSION_DENIED\"] = \"PERMISSION_DENIED\";\n /** The Settings plugin failed to initialize (e.g., runtime error or Looper failure). */\n SettingsErrorCode[\"INIT_FAILED\"] = \"INIT_FAILED\";\n /** The requested Settings plugin type is not valid or not supported by the plugin. */\n SettingsErrorCode[\"UNKNOWN_TYPE\"] = \"UNKNOWN_TYPE\";\n})(SettingsErrorCode || (SettingsErrorCode = {}));\n/**\n * Enumeration of supported Android system settings.\n *\n * @platform Android\n *\n * @remarks\n * Android settings are opened via system Intents.\n * Availability depends on:\n *\n * - Android version\n * - device manufacturer (OEM)\n * - system configuration and user restrictions\n *\n * Some intents are not part of the public Android SDK and may not be\n * available on all devices.\n *\n * When a requested settings screen cannot be resolved, the plugin\n * resolves with:\n * `{ success: false, code: SettingsErrorCode.UNAVAILABLE }`\n *\n * @since 8.0.0\n */\nexport var AndroidSettings;\n(function (AndroidSettings) {\n /**\n * Opens Accessibility settings.\n */\n AndroidSettings[\"Accessibility\"] = \"accessibility\";\n /**\n * Opens the Add Account screen.\n */\n AndroidSettings[\"Account\"] = \"account\";\n /**\n * Opens Airplane Mode settings.\n */\n AndroidSettings[\"AirplaneMode\"] = \"airplane_mode\";\n /**\n * Opens Access Point Name (APN) settings.\n */\n AndroidSettings[\"Apn\"] = \"apn\";\n /**\n * Opens the Application Details screen for the current app.\n */\n AndroidSettings[\"ApplicationDetails\"] = \"application_details\";\n /**\n * Opens Application Development settings.\n *\n * Availability depends on developer options being enabled.\n */\n AndroidSettings[\"ApplicationDevelopment\"] = \"application_development\";\n /**\n * Opens Application settings.\n */\n AndroidSettings[\"Application\"] = \"application\";\n /**\n * Opens app-specific notification settings.\n */\n AndroidSettings[\"AppNotification\"] = \"app_notification\";\n /**\n * Opens Battery Optimization settings.\n *\n * Allows managing apps excluded from battery optimizations.\n */\n AndroidSettings[\"BatteryOptimization\"] = \"battery_optimization\";\n /**\n * Opens Bluetooth settings.\n */\n AndroidSettings[\"Bluetooth\"] = \"bluetooth\";\n /**\n * Opens Captioning settings.\n */\n AndroidSettings[\"Captioning\"] = \"captioning\";\n /**\n * Opens Cast device settings.\n */\n AndroidSettings[\"Cast\"] = \"cast\";\n /**\n * Opens Data Roaming settings.\n */\n AndroidSettings[\"DataRoaming\"] = \"data_roaming\";\n /**\n * Opens Date & Time settings.\n */\n AndroidSettings[\"Date\"] = \"date\";\n /**\n * Opens Display settings.\n */\n AndroidSettings[\"Display\"] = \"display\";\n /**\n * Opens Dream (Daydream / Screensaver) settings.\n */\n AndroidSettings[\"Dream\"] = \"dream\";\n /**\n * Opens Home app selection settings.\n */\n AndroidSettings[\"Home\"] = \"home\";\n /**\n * Opens Input Method (Keyboard) settings.\n */\n AndroidSettings[\"Keyboard\"] = \"keyboard\";\n /**\n * Opens Input Method Subtype settings.\n */\n AndroidSettings[\"KeyboardSubType\"] = \"keyboard_subtype\";\n /**\n * Opens Language & Input (Locale) settings.\n */\n AndroidSettings[\"Locale\"] = \"locale\";\n /**\n * Opens Location Services settings.\n */\n AndroidSettings[\"Location\"] = \"location\";\n /**\n * Opens Manage Applications settings.\n */\n AndroidSettings[\"ManageApplications\"] = \"manage_applications\";\n /**\n * Opens Manage All Applications settings.\n *\n * Availability depends on Android version and OEM.\n */\n AndroidSettings[\"ManageAllApplications\"] = \"manage_all_applications\";\n /**\n * Show settings for memory card storage\n */\n AndroidSettings[\"MemoryCard\"] = \"memory_card\";\n /**\n * Opens Network Operator settings.\n */\n AndroidSettings[\"Network\"] = \"network\";\n /**\n * Opens NFC settings.\n */\n AndroidSettings[\"Nfc\"] = \"nfc\";\n /**\n * Opens NFC Sharing settings.\n */\n AndroidSettings[\"NfcSharing\"] = \"nfcsharing\";\n /**\n * Opens NFC Payment settings.\n */\n AndroidSettings[\"NfcPayment\"] = \"nfc_payment\";\n /**\n * Opens Print settings.\n */\n AndroidSettings[\"Print\"] = \"print\";\n /**\n * Opens Privacy settings.\n */\n AndroidSettings[\"Privacy\"] = \"privacy\";\n /**\n * Opens Quick Launch settings.\n */\n AndroidSettings[\"QuickLaunch\"] = \"quick_launch\";\n /**\n * Opens Search settings.\n */\n AndroidSettings[\"Search\"] = \"search\";\n /**\n * Opens Security settings.\n */\n AndroidSettings[\"Security\"] = \"security\";\n /**\n * Opens the main System Settings screen.\n */\n AndroidSettings[\"Settings\"] = \"settings\";\n /**\n * Opens Regulatory Information screen.\n */\n AndroidSettings[\"ShowRegulatoryInfo\"] = \"show_regulatory_info\";\n /**\n * Opens Sound & Volume settings.\n */\n AndroidSettings[\"Sound\"] = \"sound\";\n /**\n * Opens Internal Storage settings.\n */\n AndroidSettings[\"Storage\"] = \"storage\";\n /**\n * Opens Sync settings.\n */\n AndroidSettings[\"Sync\"] = \"sync\";\n /**\n * Opens Text-to-Speech (TTS) settings.\n *\n * Uses a non-public intent on some devices.\n */\n AndroidSettings[\"TextToSpeech\"] = \"text_to_speech\";\n /**\n * Opens Usage Access settings.\n *\n * Allows managing apps with access to usage data.\n */\n AndroidSettings[\"Usage\"] = \"usage\";\n /**\n * Opens User Dictionary settings.\n */\n AndroidSettings[\"UserDictionary\"] = \"user_dictionary\";\n /**\n * Opens Voice Input settings.\n */\n AndroidSettings[\"VoiceInput\"] = \"voice_input\";\n /**\n * Opens VPN settings.\n */\n AndroidSettings[\"VPN\"] = \"vpn\";\n /**\n * Opens Wi-Fi settings.\n */\n AndroidSettings[\"Wifi\"] = \"wifi\";\n /**\n * Opens Wi-Fi IP settings.\n *\n * Availability varies by device and Android version.\n */\n AndroidSettings[\"WifiIp\"] = \"wifi_ip\";\n /**\n * Opens Wireless & Networks settings.\n */\n AndroidSettings[\"Wireless\"] = \"wireless\";\n /**\n * Opens Zen Mode (Do Not Disturb) settings.\n *\n * This uses a non-public intent and may not work on all devices.\n */\n AndroidSettings[\"ZenMode\"] = \"zen_mode\";\n /**\n * Opens Zen Mode Priority settings.\n */\n AndroidSettings[\"ZenModePriority\"] = \"zen_mode_priority\";\n /**\n * Opens Zen Mode Blocked Effects settings.\n */\n AndroidSettings[\"ZenModeBlockedEffects\"] = \"zen_mode_blocked_effects\";\n})(AndroidSettings || (AndroidSettings = {}));\n/**\n * Enumeration of supported iOS system settings.\n *\n * @platform iOS\n *\n * @remarks\n * Apple officially supports opening only the app-specific settings screen.\n * All other values rely on undocumented URL schemes and may:\n *\n * - behave differently across iOS versions\n * - stop working in future releases\n * - be restricted during App Store review\n *\n * Availability is best-effort and not guaranteed.\n *\n * @since 8.0.0\n */\nexport var IOSSettings;\n(function (IOSSettings) {\n /**\n * Opens the app-specific settings screen.\n *\n * This is the ONLY settings destination officially supported by Apple\n * and is considered App Store safe.\n */\n IOSSettings[\"App\"] = \"app\";\n /**\n * Opens the app-specific notification settings.\n *\n * - iOS 16+: opens the dedicated notification settings screen\n * - iOS <16: falls back to the app settings screen\n */\n IOSSettings[\"AppNotification\"] = \"appNotification\";\n /**\n * Opens iOS \"About\" settings.\n */\n IOSSettings[\"About\"] = \"about\";\n /**\n * Opens Auto-Lock settings.\n */\n IOSSettings[\"AutoLock\"] = \"autoLock\";\n /**\n * Opens Bluetooth settings.\n */\n IOSSettings[\"Bluetooth\"] = \"bluetooth\";\n /**\n * Opens Date & Time settings.\n */\n IOSSettings[\"DateTime\"] = \"dateTime\";\n /**\n * Opens FaceTime settings.\n */\n IOSSettings[\"FaceTime\"] = \"facetime\";\n /**\n * Opens General settings.\n */\n IOSSettings[\"General\"] = \"general\";\n /**\n * Opens Keyboard settings.\n */\n IOSSettings[\"Keyboard\"] = \"keyboard\";\n /**\n * Opens iCloud settings.\n */\n IOSSettings[\"ICloud\"] = \"iCloud\";\n /**\n * Opens iCloud Storage & Backup settings.\n */\n IOSSettings[\"ICloudStorageBackup\"] = \"iCloudStorageBackup\";\n /**\n * Opens Language & Region (International) settings.\n */\n IOSSettings[\"International\"] = \"international\";\n /**\n * Opens Location Services settings.\n */\n IOSSettings[\"LocationServices\"] = \"locationServices\";\n /**\n * Opens Music settings.\n */\n IOSSettings[\"Music\"] = \"music\";\n /**\n * Opens Notes settings.\n */\n IOSSettings[\"Notes\"] = \"notes\";\n /**\n * Opens Notifications settings.\n *\n * Note: this is the global notifications screen,\n * not app-specific notifications.\n */\n IOSSettings[\"Notifications\"] = \"notifications\";\n /**\n * Opens Phone settings.\n */\n IOSSettings[\"Phone\"] = \"phone\";\n /**\n * Opens Photos settings.\n */\n IOSSettings[\"Photos\"] = \"photos\";\n /**\n * Opens Managed Configuration profiles list.\n */\n IOSSettings[\"ManagedConfigurationList\"] = \"managedConfigurationList\";\n /**\n * Opens Reset settings.\n */\n IOSSettings[\"Reset\"] = \"reset\";\n /**\n * Opens Ringtone settings.\n */\n IOSSettings[\"Ringtone\"] = \"ringtone\";\n /**\n * Opens Sounds settings.\n */\n IOSSettings[\"Sounds\"] = \"sounds\";\n /**\n * Opens Software Update settings.\n */\n IOSSettings[\"SoftwareUpdate\"] = \"softwareUpdate\";\n /**\n * Opens App Store settings.\n */\n IOSSettings[\"Store\"] = \"store\";\n /**\n * Opens App Tracking Transparency settings.\n *\n * Available on iOS 14+.\n */\n IOSSettings[\"Tracking\"] = \"tracking\";\n /**\n * Opens Wallpaper settings.\n */\n IOSSettings[\"Wallpaper\"] = \"wallpaper\";\n /**\n * Opens Wi-Fi settings.\n */\n IOSSettings[\"WiFi\"] = \"wifi\";\n /**\n * Opens Personal Hotspot (Tethering) settings.\n */\n IOSSettings[\"Tethering\"] = \"tethering\";\n /**\n * Opens Do Not Disturb settings.\n */\n IOSSettings[\"DoNotDisturb\"] = \"doNotDisturb\";\n /**\n * Opens Touch ID / Passcode settings.\n */\n IOSSettings[\"TouchIdPasscode\"] = \"touchIdPasscode\";\n /**\n * Opens Screen Time settings.\n */\n IOSSettings[\"ScreenTime\"] = \"screenTime\";\n /**\n * Opens Accessibility settings.\n */\n IOSSettings[\"Accessibility\"] = \"accessibility\";\n /**\n * Opens VPN settings.\n */\n IOSSettings[\"VPN\"] = \"vpn\";\n})(IOSSettings || (IOSSettings = {}));\n//# sourceMappingURL=definitions.js.map","/**\n * @file index.ts\n * This file exports the Settings and registers it with Capacitor.\n * It acts as the main entry point for accessing the plugin's functionality\n * across different platforms, including web.\n */\nimport { registerPlugin } from '@capacitor/core';\n/**\n * Main entry point for the Settings Capacitor plugin.\n *\n * This file registers the plugin with Capacitor and exports\n * both the runtime instance and the public TypeScript types.\n */\nconst Settings = registerPlugin('Settings', {\n web: () => import('./web').then((m) => new m.SettingsWeb()),\n});\nexport * from './definitions';\nexport { Settings };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\n/**\n * Web implementation of the Settings plugin.\n *\n * This implementation exists to satisfy Capacitor's multi-platform contract.\n * Opening native system settings is not supported in web browsers.\n *\n * All methods follow the same state-based result model used on\n * Android and iOS:\n * - operations never throw\n * - Promise rejection is not used\n * - failures are reported via structured result objects\n */\nexport class SettingsWeb extends WebPlugin {\n constructor() {\n super();\n }\n // --- Open Settings ---\n /**\n * Attempts to open a platform-specific settings screen.\n *\n * This operation is not supported on the Web, as browsers do not\n * provide APIs to open operating system settings.\n */\n async open() {\n this.unavailable('Opening system settings is not supported on the Web.');\n }\n /**\n * Attempts to open an iOS settings screen.\n *\n * This operation is not supported on the Web.\n */\n async openIOS() {\n this.unavailable('iOS settings are not available in web environments.');\n }\n /**\n * Attempts to open an Android settings screen.\n *\n * This operation is not supported on the Web.\n */\n async openAndroid() {\n this.unavailable('Android settings are not available in web environments.');\n }\n // --- Plugin Info ---\n /**\n * Returns the plugin version.\n *\n * On the Web, this value represents the JavaScript package version\n * rather than a native implementation.\n */\n async getPluginVersion() {\n return { version: 'web' };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["SettingsErrorCode","AndroidSettings","IOSSettings","registerPlugin","WebPlugin"],"mappings":";;;;AAAA;AACA;AACA;AAC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A;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACK,MAAC,QAAQ,GAAGC,mBAAc,CAAC,UAAU,EAAE;AAC5C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;AAC/D,CAAC;;ACdD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,WAAW,SAASC,cAAS,CAAC;AAC3C,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,EAAE;AACf,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,MAAM,IAAI,GAAG;AACjB,QAAQ,IAAI,CAAC,WAAW,CAAC,sDAAsD,CAAC;AAChF,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,IAAI,MAAM,OAAO,GAAG;AACpB,QAAQ,IAAI,CAAC,WAAW,CAAC,qDAAqD,CAAC;AAC/E,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,IAAI,MAAM,WAAW,GAAG;AACxB,QAAQ,IAAI,CAAC,WAAW,CAAC,yDAAyD,CAAC;AACnF,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;AACjC,IAAI;AACJ;;;;;;;;;"}
package/dist/plugin.js CHANGED
@@ -12,7 +12,7 @@ var capacitorSettings = (function (exports, core) {
12
12
  * On iOS (Swift Package Manager), errors are returned as data
13
13
  * objects rather than rejected Promises.
14
14
  *
15
- * @since 1.0.0
15
+ * @since 8.0.0
16
16
  */
17
17
  exports.SettingsErrorCode = void 0;
18
18
  (function (SettingsErrorCode) {
@@ -45,7 +45,7 @@ var capacitorSettings = (function (exports, core) {
45
45
  * resolves with:
46
46
  * `{ success: false, code: SettingsErrorCode.UNAVAILABLE }`
47
47
  *
48
- * @since 1.0.0
48
+ * @since 8.0.0
49
49
  */
50
50
  exports.AndroidSettings = void 0;
51
51
  (function (AndroidSettings) {
@@ -275,7 +275,7 @@ var capacitorSettings = (function (exports, core) {
275
275
  *
276
276
  * Availability is best-effort and not guaranteed.
277
277
  *
278
- * @since 1.0.0
278
+ * @since 8.0.0
279
279
  */
280
280
  exports.IOSSettings = void 0;
281
281
  (function (IOSSettings) {
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["/// <reference types=\"@capacitor/cli\" />\n/**\n * Standardized error codes used by the Settings plugin.\n *\n * These codes are returned as part of structured error objects\n * and allow consumers to implement programmatic error handling.\n *\n * Note:\n * On iOS (Swift Package Manager), errors are returned as data\n * objects rather than rejected Promises.\n *\n * @since 1.0.0\n */\nexport var SettingsErrorCode;\n(function (SettingsErrorCode) {\n /** The device does not have the requested hardware. */\n SettingsErrorCode[\"UNAVAILABLE\"] = \"UNAVAILABLE\";\n /** The user denied the permission or the feature is disabled in settings. */\n SettingsErrorCode[\"PERMISSION_DENIED\"] = \"PERMISSION_DENIED\";\n /** The Settings plugin failed to initialize (e.g., runtime error or Looper failure). */\n SettingsErrorCode[\"INIT_FAILED\"] = \"INIT_FAILED\";\n /** The requested Settings plugin type is not valid or not supported by the plugin. */\n SettingsErrorCode[\"UNKNOWN_TYPE\"] = \"UNKNOWN_TYPE\";\n})(SettingsErrorCode || (SettingsErrorCode = {}));\n/**\n * Enumeration of supported Android system settings.\n *\n * @platform Android\n *\n * @remarks\n * Android settings are opened via system Intents.\n * Availability depends on:\n *\n * - Android version\n * - device manufacturer (OEM)\n * - system configuration and user restrictions\n *\n * Some intents are not part of the public Android SDK and may not be\n * available on all devices.\n *\n * When a requested settings screen cannot be resolved, the plugin\n * resolves with:\n * `{ success: false, code: SettingsErrorCode.UNAVAILABLE }`\n *\n * @since 1.0.0\n */\nexport var AndroidSettings;\n(function (AndroidSettings) {\n /**\n * Opens Accessibility settings.\n */\n AndroidSettings[\"Accessibility\"] = \"accessibility\";\n /**\n * Opens the Add Account screen.\n */\n AndroidSettings[\"Account\"] = \"account\";\n /**\n * Opens Airplane Mode settings.\n */\n AndroidSettings[\"AirplaneMode\"] = \"airplane_mode\";\n /**\n * Opens Access Point Name (APN) settings.\n */\n AndroidSettings[\"Apn\"] = \"apn\";\n /**\n * Opens the Application Details screen for the current app.\n */\n AndroidSettings[\"ApplicationDetails\"] = \"application_details\";\n /**\n * Opens Application Development settings.\n *\n * Availability depends on developer options being enabled.\n */\n AndroidSettings[\"ApplicationDevelopment\"] = \"application_development\";\n /**\n * Opens Application settings.\n */\n AndroidSettings[\"Application\"] = \"application\";\n /**\n * Opens app-specific notification settings.\n */\n AndroidSettings[\"AppNotification\"] = \"app_notification\";\n /**\n * Opens Battery Optimization settings.\n *\n * Allows managing apps excluded from battery optimizations.\n */\n AndroidSettings[\"BatteryOptimization\"] = \"battery_optimization\";\n /**\n * Opens Bluetooth settings.\n */\n AndroidSettings[\"Bluetooth\"] = \"bluetooth\";\n /**\n * Opens Captioning settings.\n */\n AndroidSettings[\"Captioning\"] = \"captioning\";\n /**\n * Opens Cast device settings.\n */\n AndroidSettings[\"Cast\"] = \"cast\";\n /**\n * Opens Data Roaming settings.\n */\n AndroidSettings[\"DataRoaming\"] = \"data_roaming\";\n /**\n * Opens Date & Time settings.\n */\n AndroidSettings[\"Date\"] = \"date\";\n /**\n * Opens Display settings.\n */\n AndroidSettings[\"Display\"] = \"display\";\n /**\n * Opens Dream (Daydream / Screensaver) settings.\n */\n AndroidSettings[\"Dream\"] = \"dream\";\n /**\n * Opens Home app selection settings.\n */\n AndroidSettings[\"Home\"] = \"home\";\n /**\n * Opens Input Method (Keyboard) settings.\n */\n AndroidSettings[\"Keyboard\"] = \"keyboard\";\n /**\n * Opens Input Method Subtype settings.\n */\n AndroidSettings[\"KeyboardSubType\"] = \"keyboard_subtype\";\n /**\n * Opens Language & Input (Locale) settings.\n */\n AndroidSettings[\"Locale\"] = \"locale\";\n /**\n * Opens Location Services settings.\n */\n AndroidSettings[\"Location\"] = \"location\";\n /**\n * Opens Manage Applications settings.\n */\n AndroidSettings[\"ManageApplications\"] = \"manage_applications\";\n /**\n * Opens Manage All Applications settings.\n *\n * Availability depends on Android version and OEM.\n */\n AndroidSettings[\"ManageAllApplications\"] = \"manage_all_applications\";\n /**\n * Show settings for memory card storage\n */\n AndroidSettings[\"MemoryCard\"] = \"memory_card\";\n /**\n * Opens Network Operator settings.\n */\n AndroidSettings[\"Network\"] = \"network\";\n /**\n * Opens NFC settings.\n */\n AndroidSettings[\"Nfc\"] = \"nfc\";\n /**\n * Opens NFC Sharing settings.\n */\n AndroidSettings[\"NfcSharing\"] = \"nfcsharing\";\n /**\n * Opens NFC Payment settings.\n */\n AndroidSettings[\"NfcPayment\"] = \"nfc_payment\";\n /**\n * Opens Print settings.\n */\n AndroidSettings[\"Print\"] = \"print\";\n /**\n * Opens Privacy settings.\n */\n AndroidSettings[\"Privacy\"] = \"privacy\";\n /**\n * Opens Quick Launch settings.\n */\n AndroidSettings[\"QuickLaunch\"] = \"quick_launch\";\n /**\n * Opens Search settings.\n */\n AndroidSettings[\"Search\"] = \"search\";\n /**\n * Opens Security settings.\n */\n AndroidSettings[\"Security\"] = \"security\";\n /**\n * Opens the main System Settings screen.\n */\n AndroidSettings[\"Settings\"] = \"settings\";\n /**\n * Opens Regulatory Information screen.\n */\n AndroidSettings[\"ShowRegulatoryInfo\"] = \"show_regulatory_info\";\n /**\n * Opens Sound & Volume settings.\n */\n AndroidSettings[\"Sound\"] = \"sound\";\n /**\n * Opens Internal Storage settings.\n */\n AndroidSettings[\"Storage\"] = \"storage\";\n /**\n * Opens Sync settings.\n */\n AndroidSettings[\"Sync\"] = \"sync\";\n /**\n * Opens Text-to-Speech (TTS) settings.\n *\n * Uses a non-public intent on some devices.\n */\n AndroidSettings[\"TextToSpeech\"] = \"text_to_speech\";\n /**\n * Opens Usage Access settings.\n *\n * Allows managing apps with access to usage data.\n */\n AndroidSettings[\"Usage\"] = \"usage\";\n /**\n * Opens User Dictionary settings.\n */\n AndroidSettings[\"UserDictionary\"] = \"user_dictionary\";\n /**\n * Opens Voice Input settings.\n */\n AndroidSettings[\"VoiceInput\"] = \"voice_input\";\n /**\n * Opens VPN settings.\n */\n AndroidSettings[\"VPN\"] = \"vpn\";\n /**\n * Opens Wi-Fi settings.\n */\n AndroidSettings[\"Wifi\"] = \"wifi\";\n /**\n * Opens Wi-Fi IP settings.\n *\n * Availability varies by device and Android version.\n */\n AndroidSettings[\"WifiIp\"] = \"wifi_ip\";\n /**\n * Opens Wireless & Networks settings.\n */\n AndroidSettings[\"Wireless\"] = \"wireless\";\n /**\n * Opens Zen Mode (Do Not Disturb) settings.\n *\n * This uses a non-public intent and may not work on all devices.\n */\n AndroidSettings[\"ZenMode\"] = \"zen_mode\";\n /**\n * Opens Zen Mode Priority settings.\n */\n AndroidSettings[\"ZenModePriority\"] = \"zen_mode_priority\";\n /**\n * Opens Zen Mode Blocked Effects settings.\n */\n AndroidSettings[\"ZenModeBlockedEffects\"] = \"zen_mode_blocked_effects\";\n})(AndroidSettings || (AndroidSettings = {}));\n/**\n * Enumeration of supported iOS system settings.\n *\n * @platform iOS\n *\n * @remarks\n * Apple officially supports opening only the app-specific settings screen.\n * All other values rely on undocumented URL schemes and may:\n *\n * - behave differently across iOS versions\n * - stop working in future releases\n * - be restricted during App Store review\n *\n * Availability is best-effort and not guaranteed.\n *\n * @since 1.0.0\n */\nexport var IOSSettings;\n(function (IOSSettings) {\n /**\n * Opens the app-specific settings screen.\n *\n * This is the ONLY settings destination officially supported by Apple\n * and is considered App Store safe.\n */\n IOSSettings[\"App\"] = \"app\";\n /**\n * Opens the app-specific notification settings.\n *\n * - iOS 16+: opens the dedicated notification settings screen\n * - iOS <16: falls back to the app settings screen\n */\n IOSSettings[\"AppNotification\"] = \"appNotification\";\n /**\n * Opens iOS \"About\" settings.\n */\n IOSSettings[\"About\"] = \"about\";\n /**\n * Opens Auto-Lock settings.\n */\n IOSSettings[\"AutoLock\"] = \"autoLock\";\n /**\n * Opens Bluetooth settings.\n */\n IOSSettings[\"Bluetooth\"] = \"bluetooth\";\n /**\n * Opens Date & Time settings.\n */\n IOSSettings[\"DateTime\"] = \"dateTime\";\n /**\n * Opens FaceTime settings.\n */\n IOSSettings[\"FaceTime\"] = \"facetime\";\n /**\n * Opens General settings.\n */\n IOSSettings[\"General\"] = \"general\";\n /**\n * Opens Keyboard settings.\n */\n IOSSettings[\"Keyboard\"] = \"keyboard\";\n /**\n * Opens iCloud settings.\n */\n IOSSettings[\"ICloud\"] = \"iCloud\";\n /**\n * Opens iCloud Storage & Backup settings.\n */\n IOSSettings[\"ICloudStorageBackup\"] = \"iCloudStorageBackup\";\n /**\n * Opens Language & Region (International) settings.\n */\n IOSSettings[\"International\"] = \"international\";\n /**\n * Opens Location Services settings.\n */\n IOSSettings[\"LocationServices\"] = \"locationServices\";\n /**\n * Opens Music settings.\n */\n IOSSettings[\"Music\"] = \"music\";\n /**\n * Opens Notes settings.\n */\n IOSSettings[\"Notes\"] = \"notes\";\n /**\n * Opens Notifications settings.\n *\n * Note: this is the global notifications screen,\n * not app-specific notifications.\n */\n IOSSettings[\"Notifications\"] = \"notifications\";\n /**\n * Opens Phone settings.\n */\n IOSSettings[\"Phone\"] = \"phone\";\n /**\n * Opens Photos settings.\n */\n IOSSettings[\"Photos\"] = \"photos\";\n /**\n * Opens Managed Configuration profiles list.\n */\n IOSSettings[\"ManagedConfigurationList\"] = \"managedConfigurationList\";\n /**\n * Opens Reset settings.\n */\n IOSSettings[\"Reset\"] = \"reset\";\n /**\n * Opens Ringtone settings.\n */\n IOSSettings[\"Ringtone\"] = \"ringtone\";\n /**\n * Opens Sounds settings.\n */\n IOSSettings[\"Sounds\"] = \"sounds\";\n /**\n * Opens Software Update settings.\n */\n IOSSettings[\"SoftwareUpdate\"] = \"softwareUpdate\";\n /**\n * Opens App Store settings.\n */\n IOSSettings[\"Store\"] = \"store\";\n /**\n * Opens App Tracking Transparency settings.\n *\n * Available on iOS 14+.\n */\n IOSSettings[\"Tracking\"] = \"tracking\";\n /**\n * Opens Wallpaper settings.\n */\n IOSSettings[\"Wallpaper\"] = \"wallpaper\";\n /**\n * Opens Wi-Fi settings.\n */\n IOSSettings[\"WiFi\"] = \"wifi\";\n /**\n * Opens Personal Hotspot (Tethering) settings.\n */\n IOSSettings[\"Tethering\"] = \"tethering\";\n /**\n * Opens Do Not Disturb settings.\n */\n IOSSettings[\"DoNotDisturb\"] = \"doNotDisturb\";\n /**\n * Opens Touch ID / Passcode settings.\n */\n IOSSettings[\"TouchIdPasscode\"] = \"touchIdPasscode\";\n /**\n * Opens Screen Time settings.\n */\n IOSSettings[\"ScreenTime\"] = \"screenTime\";\n /**\n * Opens Accessibility settings.\n */\n IOSSettings[\"Accessibility\"] = \"accessibility\";\n /**\n * Opens VPN settings.\n */\n IOSSettings[\"VPN\"] = \"vpn\";\n})(IOSSettings || (IOSSettings = {}));\n//# sourceMappingURL=definitions.js.map","/**\n * @file index.ts\n * This file exports the Settings and registers it with Capacitor.\n * It acts as the main entry point for accessing the plugin's functionality\n * across different platforms, including web.\n */\nimport { registerPlugin } from '@capacitor/core';\n/**\n * Main entry point for the Settings Capacitor plugin.\n *\n * This file registers the plugin with Capacitor and exports\n * both the runtime instance and the public TypeScript types.\n */\nconst Settings = registerPlugin('Settings', {\n web: () => import('./web').then((m) => new m.SettingsWeb()),\n});\nexport * from './definitions';\nexport { Settings };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\n/**\n * Web implementation of the Settings plugin.\n *\n * This implementation exists to satisfy Capacitor's multi-platform contract.\n * Opening native system settings is not supported in web browsers.\n *\n * All methods follow the same state-based result model used on\n * Android and iOS:\n * - operations never throw\n * - Promise rejection is not used\n * - failures are reported via structured result objects\n */\nexport class SettingsWeb extends WebPlugin {\n constructor() {\n super();\n }\n // --- Open Settings ---\n /**\n * Attempts to open a platform-specific settings screen.\n *\n * This operation is not supported on the Web, as browsers do not\n * provide APIs to open operating system settings.\n */\n async open() {\n this.unavailable('Opening system settings is not supported on the Web.');\n }\n /**\n * Attempts to open an iOS settings screen.\n *\n * This operation is not supported on the Web.\n */\n async openIOS() {\n this.unavailable('iOS settings are not available in web environments.');\n }\n /**\n * Attempts to open an Android settings screen.\n *\n * This operation is not supported on the Web.\n */\n async openAndroid() {\n this.unavailable('Android settings are not available in web environments.');\n }\n // --- Plugin Info ---\n /**\n * Returns the plugin version.\n *\n * On the Web, this value represents the JavaScript package version\n * rather than a native implementation.\n */\n async getPluginVersion() {\n return { version: 'web' };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["SettingsErrorCode","AndroidSettings","IOSSettings","registerPlugin","WebPlugin"],"mappings":";;;IAAA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACWA;IACX,CAAC,UAAU,iBAAiB,EAAE;IAC9B;IACA,IAAI,iBAAiB,CAAC,aAAa,CAAC,GAAG,aAAa;IACpD;IACA,IAAI,iBAAiB,CAAC,mBAAmB,CAAC,GAAG,mBAAmB;IAChE;IACA,IAAI,iBAAiB,CAAC,aAAa,CAAC,GAAG,aAAa;IACpD;IACA,IAAI,iBAAiB,CAAC,cAAc,CAAC,GAAG,cAAc;IACtD,CAAC,EAAEA,yBAAiB,KAAKA,yBAAiB,GAAG,EAAE,CAAC,CAAC;IACjD;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACWC;IACX,CAAC,UAAU,eAAe,EAAE;IAC5B;IACA;IACA;IACA,IAAI,eAAe,CAAC,eAAe,CAAC,GAAG,eAAe;IACtD;IACA;IACA;IACA,IAAI,eAAe,CAAC,SAAS,CAAC,GAAG,SAAS;IAC1C;IACA;IACA;IACA,IAAI,eAAe,CAAC,cAAc,CAAC,GAAG,eAAe;IACrD;IACA;IACA;IACA,IAAI,e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AAI;IACJ;IACA;IACA;IACA;IACA;IACA;IACA;IACA,IAAI,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;IACjC,IAAI;IACJ;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/definitions.js","esm/index.js","esm/web.js"],"sourcesContent":["/// <reference types=\"@capacitor/cli\" />\n/**\n * Standardized error codes used by the Settings plugin.\n *\n * These codes are returned as part of structured error objects\n * and allow consumers to implement programmatic error handling.\n *\n * Note:\n * On iOS (Swift Package Manager), errors are returned as data\n * objects rather than rejected Promises.\n *\n * @since 8.0.0\n */\nexport var SettingsErrorCode;\n(function (SettingsErrorCode) {\n /** The device does not have the requested hardware. */\n SettingsErrorCode[\"UNAVAILABLE\"] = \"UNAVAILABLE\";\n /** The user denied the permission or the feature is disabled in settings. */\n SettingsErrorCode[\"PERMISSION_DENIED\"] = \"PERMISSION_DENIED\";\n /** The Settings plugin failed to initialize (e.g., runtime error or Looper failure). */\n SettingsErrorCode[\"INIT_FAILED\"] = \"INIT_FAILED\";\n /** The requested Settings plugin type is not valid or not supported by the plugin. */\n SettingsErrorCode[\"UNKNOWN_TYPE\"] = \"UNKNOWN_TYPE\";\n})(SettingsErrorCode || (SettingsErrorCode = {}));\n/**\n * Enumeration of supported Android system settings.\n *\n * @platform Android\n *\n * @remarks\n * Android settings are opened via system Intents.\n * Availability depends on:\n *\n * - Android version\n * - device manufacturer (OEM)\n * - system configuration and user restrictions\n *\n * Some intents are not part of the public Android SDK and may not be\n * available on all devices.\n *\n * When a requested settings screen cannot be resolved, the plugin\n * resolves with:\n * `{ success: false, code: SettingsErrorCode.UNAVAILABLE }`\n *\n * @since 8.0.0\n */\nexport var AndroidSettings;\n(function (AndroidSettings) {\n /**\n * Opens Accessibility settings.\n */\n AndroidSettings[\"Accessibility\"] = \"accessibility\";\n /**\n * Opens the Add Account screen.\n */\n AndroidSettings[\"Account\"] = \"account\";\n /**\n * Opens Airplane Mode settings.\n */\n AndroidSettings[\"AirplaneMode\"] = \"airplane_mode\";\n /**\n * Opens Access Point Name (APN) settings.\n */\n AndroidSettings[\"Apn\"] = \"apn\";\n /**\n * Opens the Application Details screen for the current app.\n */\n AndroidSettings[\"ApplicationDetails\"] = \"application_details\";\n /**\n * Opens Application Development settings.\n *\n * Availability depends on developer options being enabled.\n */\n AndroidSettings[\"ApplicationDevelopment\"] = \"application_development\";\n /**\n * Opens Application settings.\n */\n AndroidSettings[\"Application\"] = \"application\";\n /**\n * Opens app-specific notification settings.\n */\n AndroidSettings[\"AppNotification\"] = \"app_notification\";\n /**\n * Opens Battery Optimization settings.\n *\n * Allows managing apps excluded from battery optimizations.\n */\n AndroidSettings[\"BatteryOptimization\"] = \"battery_optimization\";\n /**\n * Opens Bluetooth settings.\n */\n AndroidSettings[\"Bluetooth\"] = \"bluetooth\";\n /**\n * Opens Captioning settings.\n */\n AndroidSettings[\"Captioning\"] = \"captioning\";\n /**\n * Opens Cast device settings.\n */\n AndroidSettings[\"Cast\"] = \"cast\";\n /**\n * Opens Data Roaming settings.\n */\n AndroidSettings[\"DataRoaming\"] = \"data_roaming\";\n /**\n * Opens Date & Time settings.\n */\n AndroidSettings[\"Date\"] = \"date\";\n /**\n * Opens Display settings.\n */\n AndroidSettings[\"Display\"] = \"display\";\n /**\n * Opens Dream (Daydream / Screensaver) settings.\n */\n AndroidSettings[\"Dream\"] = \"dream\";\n /**\n * Opens Home app selection settings.\n */\n AndroidSettings[\"Home\"] = \"home\";\n /**\n * Opens Input Method (Keyboard) settings.\n */\n AndroidSettings[\"Keyboard\"] = \"keyboard\";\n /**\n * Opens Input Method Subtype settings.\n */\n AndroidSettings[\"KeyboardSubType\"] = \"keyboard_subtype\";\n /**\n * Opens Language & Input (Locale) settings.\n */\n AndroidSettings[\"Locale\"] = \"locale\";\n /**\n * Opens Location Services settings.\n */\n AndroidSettings[\"Location\"] = \"location\";\n /**\n * Opens Manage Applications settings.\n */\n AndroidSettings[\"ManageApplications\"] = \"manage_applications\";\n /**\n * Opens Manage All Applications settings.\n *\n * Availability depends on Android version and OEM.\n */\n AndroidSettings[\"ManageAllApplications\"] = \"manage_all_applications\";\n /**\n * Show settings for memory card storage\n */\n AndroidSettings[\"MemoryCard\"] = \"memory_card\";\n /**\n * Opens Network Operator settings.\n */\n AndroidSettings[\"Network\"] = \"network\";\n /**\n * Opens NFC settings.\n */\n AndroidSettings[\"Nfc\"] = \"nfc\";\n /**\n * Opens NFC Sharing settings.\n */\n AndroidSettings[\"NfcSharing\"] = \"nfcsharing\";\n /**\n * Opens NFC Payment settings.\n */\n AndroidSettings[\"NfcPayment\"] = \"nfc_payment\";\n /**\n * Opens Print settings.\n */\n AndroidSettings[\"Print\"] = \"print\";\n /**\n * Opens Privacy settings.\n */\n AndroidSettings[\"Privacy\"] = \"privacy\";\n /**\n * Opens Quick Launch settings.\n */\n AndroidSettings[\"QuickLaunch\"] = \"quick_launch\";\n /**\n * Opens Search settings.\n */\n AndroidSettings[\"Search\"] = \"search\";\n /**\n * Opens Security settings.\n */\n AndroidSettings[\"Security\"] = \"security\";\n /**\n * Opens the main System Settings screen.\n */\n AndroidSettings[\"Settings\"] = \"settings\";\n /**\n * Opens Regulatory Information screen.\n */\n AndroidSettings[\"ShowRegulatoryInfo\"] = \"show_regulatory_info\";\n /**\n * Opens Sound & Volume settings.\n */\n AndroidSettings[\"Sound\"] = \"sound\";\n /**\n * Opens Internal Storage settings.\n */\n AndroidSettings[\"Storage\"] = \"storage\";\n /**\n * Opens Sync settings.\n */\n AndroidSettings[\"Sync\"] = \"sync\";\n /**\n * Opens Text-to-Speech (TTS) settings.\n *\n * Uses a non-public intent on some devices.\n */\n AndroidSettings[\"TextToSpeech\"] = \"text_to_speech\";\n /**\n * Opens Usage Access settings.\n *\n * Allows managing apps with access to usage data.\n */\n AndroidSettings[\"Usage\"] = \"usage\";\n /**\n * Opens User Dictionary settings.\n */\n AndroidSettings[\"UserDictionary\"] = \"user_dictionary\";\n /**\n * Opens Voice Input settings.\n */\n AndroidSettings[\"VoiceInput\"] = \"voice_input\";\n /**\n * Opens VPN settings.\n */\n AndroidSettings[\"VPN\"] = \"vpn\";\n /**\n * Opens Wi-Fi settings.\n */\n AndroidSettings[\"Wifi\"] = \"wifi\";\n /**\n * Opens Wi-Fi IP settings.\n *\n * Availability varies by device and Android version.\n */\n AndroidSettings[\"WifiIp\"] = \"wifi_ip\";\n /**\n * Opens Wireless & Networks settings.\n */\n AndroidSettings[\"Wireless\"] = \"wireless\";\n /**\n * Opens Zen Mode (Do Not Disturb) settings.\n *\n * This uses a non-public intent and may not work on all devices.\n */\n AndroidSettings[\"ZenMode\"] = \"zen_mode\";\n /**\n * Opens Zen Mode Priority settings.\n */\n AndroidSettings[\"ZenModePriority\"] = \"zen_mode_priority\";\n /**\n * Opens Zen Mode Blocked Effects settings.\n */\n AndroidSettings[\"ZenModeBlockedEffects\"] = \"zen_mode_blocked_effects\";\n})(AndroidSettings || (AndroidSettings = {}));\n/**\n * Enumeration of supported iOS system settings.\n *\n * @platform iOS\n *\n * @remarks\n * Apple officially supports opening only the app-specific settings screen.\n * All other values rely on undocumented URL schemes and may:\n *\n * - behave differently across iOS versions\n * - stop working in future releases\n * - be restricted during App Store review\n *\n * Availability is best-effort and not guaranteed.\n *\n * @since 8.0.0\n */\nexport var IOSSettings;\n(function (IOSSettings) {\n /**\n * Opens the app-specific settings screen.\n *\n * This is the ONLY settings destination officially supported by Apple\n * and is considered App Store safe.\n */\n IOSSettings[\"App\"] = \"app\";\n /**\n * Opens the app-specific notification settings.\n *\n * - iOS 16+: opens the dedicated notification settings screen\n * - iOS <16: falls back to the app settings screen\n */\n IOSSettings[\"AppNotification\"] = \"appNotification\";\n /**\n * Opens iOS \"About\" settings.\n */\n IOSSettings[\"About\"] = \"about\";\n /**\n * Opens Auto-Lock settings.\n */\n IOSSettings[\"AutoLock\"] = \"autoLock\";\n /**\n * Opens Bluetooth settings.\n */\n IOSSettings[\"Bluetooth\"] = \"bluetooth\";\n /**\n * Opens Date & Time settings.\n */\n IOSSettings[\"DateTime\"] = \"dateTime\";\n /**\n * Opens FaceTime settings.\n */\n IOSSettings[\"FaceTime\"] = \"facetime\";\n /**\n * Opens General settings.\n */\n IOSSettings[\"General\"] = \"general\";\n /**\n * Opens Keyboard settings.\n */\n IOSSettings[\"Keyboard\"] = \"keyboard\";\n /**\n * Opens iCloud settings.\n */\n IOSSettings[\"ICloud\"] = \"iCloud\";\n /**\n * Opens iCloud Storage & Backup settings.\n */\n IOSSettings[\"ICloudStorageBackup\"] = \"iCloudStorageBackup\";\n /**\n * Opens Language & Region (International) settings.\n */\n IOSSettings[\"International\"] = \"international\";\n /**\n * Opens Location Services settings.\n */\n IOSSettings[\"LocationServices\"] = \"locationServices\";\n /**\n * Opens Music settings.\n */\n IOSSettings[\"Music\"] = \"music\";\n /**\n * Opens Notes settings.\n */\n IOSSettings[\"Notes\"] = \"notes\";\n /**\n * Opens Notifications settings.\n *\n * Note: this is the global notifications screen,\n * not app-specific notifications.\n */\n IOSSettings[\"Notifications\"] = \"notifications\";\n /**\n * Opens Phone settings.\n */\n IOSSettings[\"Phone\"] = \"phone\";\n /**\n * Opens Photos settings.\n */\n IOSSettings[\"Photos\"] = \"photos\";\n /**\n * Opens Managed Configuration profiles list.\n */\n IOSSettings[\"ManagedConfigurationList\"] = \"managedConfigurationList\";\n /**\n * Opens Reset settings.\n */\n IOSSettings[\"Reset\"] = \"reset\";\n /**\n * Opens Ringtone settings.\n */\n IOSSettings[\"Ringtone\"] = \"ringtone\";\n /**\n * Opens Sounds settings.\n */\n IOSSettings[\"Sounds\"] = \"sounds\";\n /**\n * Opens Software Update settings.\n */\n IOSSettings[\"SoftwareUpdate\"] = \"softwareUpdate\";\n /**\n * Opens App Store settings.\n */\n IOSSettings[\"Store\"] = \"store\";\n /**\n * Opens App Tracking Transparency settings.\n *\n * Available on iOS 14+.\n */\n IOSSettings[\"Tracking\"] = \"tracking\";\n /**\n * Opens Wallpaper settings.\n */\n IOSSettings[\"Wallpaper\"] = \"wallpaper\";\n /**\n * Opens Wi-Fi settings.\n */\n IOSSettings[\"WiFi\"] = \"wifi\";\n /**\n * Opens Personal Hotspot (Tethering) settings.\n */\n IOSSettings[\"Tethering\"] = \"tethering\";\n /**\n * Opens Do Not Disturb settings.\n */\n IOSSettings[\"DoNotDisturb\"] = \"doNotDisturb\";\n /**\n * Opens Touch ID / Passcode settings.\n */\n IOSSettings[\"TouchIdPasscode\"] = \"touchIdPasscode\";\n /**\n * Opens Screen Time settings.\n */\n IOSSettings[\"ScreenTime\"] = \"screenTime\";\n /**\n * Opens Accessibility settings.\n */\n IOSSettings[\"Accessibility\"] = \"accessibility\";\n /**\n * Opens VPN settings.\n */\n IOSSettings[\"VPN\"] = \"vpn\";\n})(IOSSettings || (IOSSettings = {}));\n//# sourceMappingURL=definitions.js.map","/**\n * @file index.ts\n * This file exports the Settings and registers it with Capacitor.\n * It acts as the main entry point for accessing the plugin's functionality\n * across different platforms, including web.\n */\nimport { registerPlugin } from '@capacitor/core';\n/**\n * Main entry point for the Settings Capacitor plugin.\n *\n * This file registers the plugin with Capacitor and exports\n * both the runtime instance and the public TypeScript types.\n */\nconst Settings = registerPlugin('Settings', {\n web: () => import('./web').then((m) => new m.SettingsWeb()),\n});\nexport * from './definitions';\nexport { Settings };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\n/**\n * Web implementation of the Settings plugin.\n *\n * This implementation exists to satisfy Capacitor's multi-platform contract.\n * Opening native system settings is not supported in web browsers.\n *\n * All methods follow the same state-based result model used on\n * Android and iOS:\n * - operations never throw\n * - Promise rejection is not used\n * - failures are reported via structured result objects\n */\nexport class SettingsWeb extends WebPlugin {\n constructor() {\n super();\n }\n // --- Open Settings ---\n /**\n * Attempts to open a platform-specific settings screen.\n *\n * This operation is not supported on the Web, as browsers do not\n * provide APIs to open operating system settings.\n */\n async open() {\n this.unavailable('Opening system settings is not supported on the Web.');\n }\n /**\n * Attempts to open an iOS settings screen.\n *\n * This operation is not supported on the Web.\n */\n async openIOS() {\n this.unavailable('iOS settings are not available in web environments.');\n }\n /**\n * Attempts to open an Android settings screen.\n *\n * This operation is not supported on the Web.\n */\n async openAndroid() {\n this.unavailable('Android settings are not available in web environments.');\n }\n // --- Plugin Info ---\n /**\n * Returns the plugin version.\n *\n * On the Web, this value represents the JavaScript package version\n * rather than a native implementation.\n */\n async getPluginVersion() {\n return { version: 'web' };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["SettingsErrorCode","AndroidSettings","IOSSettings","registerPlugin","WebPlugin"],"mappings":";;;IAAA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACWA;IACX,CAAC,UAAU,iBAAiB,EAAE;IAC9B;IACA,IAAI,iBAAiB,CAAC,aAAa,CAAC,GAAG,aAAa;IACpD;IACA,IAAI,iBAAiB,CAAC,mBAAmB,CAAC,GAAG,mBAAmB;IAChE;IACA,IAAI,iBAAiB,CAAC,aAAa,CAAC,GAAG,aAAa;IACpD;IACA,IAAI,iBAAiB,CAAC,cAAc,CAAC,GAAG,cAAc;IACtD,CAAC,EAAEA,yBAAiB,KAAKA,yBAAiB,GAAG,EAAE,CAAC,CAAC;IACjD;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACWC;IACX,CAAC,UAAU,eAAe,EAAE;IAC5B;IACA;IACA;IACA,IAAI,eAAe,CAAC,eAAe,CAAC,GAAG,eAAe;IACtD;IACA;IACA;IACA,IAAI,eAAe,CAAC,SAAS,CAAC,GAAG,SAAS;IAC1C;IACA;IACA;IACA,IAAI,eAAe,CAAC,cAAc,CAAC,GAAG,eAAe;IACrD;IACA;IACA;IACA,IAAI,eAAe,CAAC,KAAK,CAAC,GAAG,KAAK;IAClC;IACA;IACA;IACA,IAAI,eAAe,CAAC,oBAAoB,CAAC,GAAG,qBAAq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AO,EAAE,KAAK,EAAE;IACjC,IAAI;IACJ;;;;;;;;;;;;;;;"}
@@ -32,9 +32,17 @@ import UIKit
32
32
  during plugin initialization.
33
33
  */
34
34
  func applyConfig(_ config: SettingsConfig) {
35
+ precondition(
36
+ self.config == nil,
37
+ "SettingsImpl.applyConfig(_:) must be called exactly once"
38
+ )
35
39
  self.config = config
36
40
  SettingsLogger.verbose = config.verboseLogging
37
- SettingsLogger.debug("Configuration applied. Verbose logging:", "\(config.verboseLogging)")
41
+
42
+ SettingsLogger.debug(
43
+ "Configuration applied. Verbose logging:",
44
+ config.verboseLogging
45
+ )
38
46
  }
39
47
 
40
48
  // MARK: - Settings
@@ -10,7 +10,7 @@ import Foundation
10
10
  public enum PluginVersion {
11
11
  /**
12
12
  The semantic version string of the plugin.
13
- Value synchronized from package.json: "8.0.2"
13
+ Value synchronized from package.json: "8.1.2"
14
14
  */
15
- public static let number = "8.0.2"
15
+ public static let number = "8.1.2"
16
16
  }
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@cap-kit/settings",
3
- "version": "8.0.2",
3
+ "version": "8.1.2",
4
4
  "description": "Capacitor plugin to open app and system settings on iOS and Android.",
5
5
  "type": "module",
6
6
  "private": false,
7
+ "sideEffects": false,
7
8
  "engines": {
8
9
  "node": ">=24.0.0",
9
10
  "pnpm": ">=10.0.0"
@@ -12,6 +13,14 @@
12
13
  "module": "dist/esm/index.js",
13
14
  "types": "dist/esm/index.d.ts",
14
15
  "unpkg": "dist/plugin.js",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/esm/index.d.ts",
19
+ "import": "./dist/esm/index.js",
20
+ "require": "./dist/plugin.cjs.js"
21
+ },
22
+ "./package.json": "./package.json"
23
+ },
15
24
  "files": [
16
25
  "android/src/main/",
17
26
  "android/build.gradle",
@@ -20,9 +29,14 @@
20
29
  "ios/Tests",
21
30
  "Package.swift",
22
31
  "CapKitSettings.podspec",
23
- "LICENSE"
32
+ "LICENSE",
33
+ "README.md"
24
34
  ],
25
35
  "author": "CapKit Team",
36
+ "funding": {
37
+ "type": "github",
38
+ "url": "https://github.com/sponsors/cap-kit"
39
+ },
26
40
  "license": "MIT",
27
41
  "repository": {
28
42
  "type": "git",
@@ -36,20 +50,22 @@
36
50
  "keywords": [
37
51
  "capacitor",
38
52
  "capacitor-plugin",
53
+ "cap-kit",
39
54
  "plugin",
40
55
  "native",
41
56
  "settings",
42
- "cap-kit"
57
+ "ios",
58
+ "android"
43
59
  ],
44
60
  "publishConfig": {
45
61
  "access": "public"
46
62
  },
47
63
  "devDependencies": {
48
- "@capacitor/cli": "^8.0.2",
49
- "@capacitor/android": "^8.0.2",
50
- "@capacitor/core": "^8.0.2",
64
+ "@capacitor/cli": "^8.1.0",
65
+ "@capacitor/android": "^8.1.0",
66
+ "@capacitor/core": "^8.1.0",
51
67
  "@capacitor/docgen": "^0.3.1",
52
- "@capacitor/ios": "^8.0.2",
68
+ "@capacitor/ios": "^8.1.0",
53
69
  "@eslint/eslintrc": "^3.3.3",
54
70
  "@eslint/js": "^9.39.2",
55
71
  "eslint": "^9.39.2",
@@ -61,10 +77,10 @@
61
77
  "rollup": "^4.57.1",
62
78
  "swiftlint": "^2.0.0",
63
79
  "typescript": "^5.9.3",
64
- "typescript-eslint": "^8.54.0"
80
+ "typescript-eslint": "^8.55.0"
65
81
  },
66
82
  "peerDependencies": {
67
- "@capacitor/core": ">=8.0.2"
83
+ "@capacitor/core": ">=8.1.0"
68
84
  },
69
85
  "capacitor": {
70
86
  "ios": {
@@ -76,7 +92,7 @@
76
92
  },
77
93
  "scripts": {
78
94
  "verify": "pnpm run verify:ios && pnpm run verify:android && pnpm run verify:web",
79
- "verify:ios": "node ./scripts/sync-version.js && xcodebuild -scheme CapKitSettings -destination generic/platform=iOS",
95
+ "verify:ios": "node ./scripts/sync-version.mjs && xcodebuild -scheme CapKitSettings -destination generic/platform=iOS",
80
96
  "verify:android": "cd android && ./gradlew clean build && cd ..",
81
97
  "verify:web": "pnpm run build",
82
98
  "lint:android": "cd android && ./gradlew ktlintCheck",
@@ -88,7 +104,7 @@
88
104
  "prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
89
105
  "swiftlint": "node-swiftlint lint ios/Sources",
90
106
  "docgen": "docgen --api SettingsPlugin --output-readme README.md --output-json dist/docs.json",
91
- "build": "node ./scripts/sync-version.js && pnpm run clean && pnpm run docgen && tsc && rollup -c rollup.config.mjs",
107
+ "build": "node ./scripts/sync-version.mjs && pnpm run clean && pnpm run docgen && tsc && rollup -c rollup.config.mjs",
92
108
  "clean": "rimraf ./dist",
93
109
  "watch": "tsc --watch",
94
110
  "test": "pnpm run verify",