@capgo/capacitor-contacts 8.0.10 → 8.0.12

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.
@@ -35,11 +35,12 @@ import java.util.Set;
35
35
  permissions = {
36
36
  @Permission(alias = "readContacts", strings = { Manifest.permission.READ_CONTACTS }),
37
37
  @Permission(alias = "writeContacts", strings = { Manifest.permission.WRITE_CONTACTS })
38
- }
38
+ },
39
+ requestCodes = { 7001, 7003 }
39
40
  )
40
41
  public class CapacitorContactsPlugin extends Plugin {
41
42
 
42
- private final String pluginVersion = "8.0.10";
43
+ private final String pluginVersion = "8.0.12";
43
44
  private static final int BATCH_SIZE = 50;
44
45
 
45
46
  // MARK: - Implemented API surface
@@ -5,7 +5,7 @@ import UIKit
5
5
 
6
6
  @objc(CapacitorContactsPlugin)
7
7
  public class CapacitorContactsPlugin: CAPPlugin, CAPBridgedPlugin {
8
- private let pluginVersion: String = "8.0.10"
8
+ private let pluginVersion: String = "8.0.12"
9
9
  public let identifier = "CapacitorContactsPlugin"
10
10
  public let jsName = "CapacitorContacts"
11
11
  public let pluginMethods: [CAPPluginMethod] = [
@@ -493,8 +493,10 @@ public class CapacitorContactsPlugin: CAPPlugin, CAPBridgedPlugin {
493
493
 
494
494
  private func mapAuthorizationStatus(_ status: CNAuthorizationStatus) -> String {
495
495
  switch status {
496
- case .authorized, .limited:
496
+ case .authorized:
497
497
  return "granted"
498
+ case .limited:
499
+ return "limited"
498
500
  case .denied:
499
501
  return "denied"
500
502
  case .restricted:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-contacts",
3
- "version": "8.0.10",
3
+ "version": "8.0.12",
4
4
  "description": "Work with device contacts using Capacitor APIs",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",