@capgo/capacitor-contacts 8.0.5 → 8.0.6
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/README.md
CHANGED
|
@@ -13,6 +13,17 @@ Manage device contacts across iOS, Android, and the Web with a unified Capacitor
|
|
|
13
13
|
|
|
14
14
|
The most complete doc is available here: https://capgo.app/docs/plugins/contacts/
|
|
15
15
|
|
|
16
|
+
## Compatibility
|
|
17
|
+
|
|
18
|
+
| Plugin version | Capacitor compatibility | Maintained |
|
|
19
|
+
| -------------- | ----------------------- | ---------- |
|
|
20
|
+
| v8.\*.\* | v8.\*.\* | ✅ |
|
|
21
|
+
| v7.\*.\* | v7.\*.\* | On demand |
|
|
22
|
+
| v6.\*.\* | v6.\*.\* | ❌ |
|
|
23
|
+
| v5.\*.\* | v5.\*.\* | ❌ |
|
|
24
|
+
|
|
25
|
+
> **Note:** The major version of this plugin follows the major version of Capacitor. Use the version that matches your Capacitor installation (e.g., plugin v8 for Capacitor 8). Only the latest major version is actively maintained.
|
|
26
|
+
|
|
16
27
|
## Install
|
|
17
28
|
|
|
18
29
|
```bash
|
|
@@ -39,7 +39,7 @@ import java.util.Set;
|
|
|
39
39
|
)
|
|
40
40
|
public class CapacitorContactsPlugin extends Plugin {
|
|
41
41
|
|
|
42
|
-
private final String pluginVersion = "8.0.
|
|
42
|
+
private final String pluginVersion = "8.0.6";
|
|
43
43
|
private static final int BATCH_SIZE = 50;
|
|
44
44
|
|
|
45
45
|
// MARK: - Implemented API surface
|
|
@@ -1179,7 +1179,7 @@ public class CapacitorContactsPlugin extends Plugin {
|
|
|
1179
1179
|
},
|
|
1180
1180
|
selection.toString(),
|
|
1181
1181
|
selectionArgs.toArray(new String[0]),
|
|
1182
|
-
|
|
1182
|
+
ContactsContract.RawContacts._ID + " ASC"
|
|
1183
1183
|
)
|
|
1184
1184
|
) {
|
|
1185
1185
|
if (rawCursor != null) {
|
|
@@ -1394,7 +1394,8 @@ public class CapacitorContactsPlugin extends Plugin {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
}
|
|
1396
1396
|
} catch (Exception e) {
|
|
1397
|
-
//
|
|
1397
|
+
// Log and return empty set if parsing fails
|
|
1398
|
+
android.util.Log.w("CapacitorContacts", "Failed to parse fields array", e);
|
|
1398
1399
|
}
|
|
1399
1400
|
return fields.isEmpty() ? null : fields;
|
|
1400
1401
|
}
|
|
@@ -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.
|
|
8
|
+
private let pluginVersion: String = "8.0.6"
|
|
9
9
|
public let identifier = "CapacitorContactsPlugin"
|
|
10
10
|
public let jsName = "CapacitorContacts"
|
|
11
11
|
public let pluginMethods: [CAPPluginMethod] = [
|
|
@@ -526,7 +526,7 @@ public class CapacitorContactsPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
526
526
|
if shouldFetchAll || fields!.contains("urlAddresses") { keys.append(CNContactUrlAddressesKey as CNKeyDescriptor) }
|
|
527
527
|
if shouldFetchAll || fields!.contains("birthday") { keys.append(CNContactBirthdayKey as CNKeyDescriptor) }
|
|
528
528
|
if shouldFetchAll || fields!.contains("note") { keys.append(CNContactNoteKey as CNKeyDescriptor) }
|
|
529
|
-
|
|
529
|
+
|
|
530
530
|
if shouldFetchAll || fields!.contains("photo") {
|
|
531
531
|
keys.append(CNContactImageDataAvailableKey as CNKeyDescriptor)
|
|
532
532
|
keys.append(CNContactImageDataKey as CNKeyDescriptor)
|