expo-contacts 15.0.10-canary-20251015-a6a1272 → 15.0.11-canary-20251023-4c86f95

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/android/build.gradle +2 -2
  3. package/expo-module.config.json +1 -1
  4. package/ios/ContactsExceptions.swift +6 -0
  5. package/ios/ContactsModule.swift +5 -3
  6. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272.module → 15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95.module} +7 -7
  7. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95.module.md5 +1 -0
  8. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95.module.sha1 +1 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95.module.sha256 +1 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95.module.sha512 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272.pom → 15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95.pom} +1 -1
  12. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95.pom.md5 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95.pom.sha1 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95.pom.sha256 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95.pom.sha512 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml +4 -4
  17. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml.md5 +1 -1
  18. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml.sha1 +1 -1
  19. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml.sha256 +1 -1
  20. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml.sha512 +1 -1
  21. package/package.json +3 -3
  22. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272.module.md5 +0 -1
  23. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272.module.sha1 +0 -1
  24. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272.module.sha256 +0 -1
  25. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272.module.sha512 +0 -1
  26. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272.pom.md5 +0 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272.pom.sha1 +0 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272.pom.sha256 +0 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272.pom.sha512 +0 -1
  30. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272-sources.jar → 15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95-sources.jar} +0 -0
  31. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272-sources.jar.md5 → 15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95-sources.jar.md5} +0 -0
  32. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272-sources.jar.sha1 → 15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95-sources.jar.sha1} +0 -0
  33. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272-sources.jar.sha256 → 15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95-sources.jar.sha256} +0 -0
  34. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272-sources.jar.sha512 → 15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95-sources.jar.sha512} +0 -0
  35. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272.aar → 15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95.aar} +0 -0
  36. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272.aar.md5 → 15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95.aar.md5} +0 -0
  37. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272.aar.sha1 → 15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95.aar.sha1} +0 -0
  38. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272.aar.sha256 → 15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95.aar.sha256} +0 -0
  39. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251015-a6a1272/expo.modules.contacts-15.0.10-canary-20251015-a6a1272.aar.sha512 → 15.0.11-canary-20251023-4c86f95/expo.modules.contacts-15.0.11-canary-20251023-4c86f95.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -12,6 +12,7 @@
12
12
 
13
13
  - Added contact image uri validation. ([#39658](https://github.com/expo/expo/pull/39658) by [@hryhoriiK97](https://github.com/hryhoriiK97))
14
14
  - [Android] Removed unused `androidx.annotation:annotation` dependency ([#39761](https://github.com/expo/expo/pull/39761) by [@lukmccall](https://github.com/lukmccall))
15
+ - Added ContactSerializationException for error handling. ([#40426](https://github.com/expo/expo/pull/40426) by [@hryhoriiK97](https://github.com/hryhoriiK97))
15
16
 
16
17
  ## 15.0.9 - 2025-10-01
17
18
 
@@ -4,12 +4,12 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '15.0.10-canary-20251015-a6a1272'
7
+ version = '15.0.11-canary-20251023-4c86f95'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.contacts"
11
11
  defaultConfig {
12
12
  versionCode 29
13
- versionName "15.0.10-canary-20251015-a6a1272"
13
+ versionName "15.0.11-canary-20251023-4c86f95"
14
14
  }
15
15
  }
@@ -8,7 +8,7 @@
8
8
  "publication": {
9
9
  "groupId": "host.exp.exponent",
10
10
  "artifactId": "expo.modules.contacts",
11
- "version": "15.0.10-canary-20251015-a6a1272",
11
+ "version": "15.0.11-canary-20251023-4c86f95",
12
12
  "repository": "local-maven-repo"
13
13
  }
14
14
  }
@@ -126,3 +126,9 @@ internal final class RemoteImageUriException: Exception {
126
126
  "Only file:// URIs are supported for contact images. Provided URI: '\(providedUri)'. Download the image first using File.downloadFileAsync from expo-file-system and provide a local file URI."
127
127
  }
128
128
  }
129
+
130
+ internal final class ContactSerializationException: GenericException<String> {
131
+ override var reason: String {
132
+ "Failed to serialize contact data: \(param)"
133
+ }
134
+ }
@@ -412,13 +412,15 @@ public class ContactsModule: Module, OnContactPickingResultHandler {
412
412
  }
413
413
 
414
414
  private func serializeContactPayload(payload: [String: Any], keys: [String], options: ContactsQuery) throws -> [String: Any]? {
415
- if payload["error"] != nil {
416
- return nil
415
+ if let error = payload["error"] {
416
+ let errorMessage = String(describing: error)
417
+ throw ContactSerializationException(errorMessage)
417
418
  }
418
419
  var mutablePayload = payload
419
420
  var response = [[String: Any]]()
420
421
  guard let contacts = payload["data"] as? [CNContact] else {
421
- return nil
422
+ mutablePayload["data"] = response
423
+ return mutablePayload
422
424
  }
423
425
 
424
426
  let directory = appContext?.config.cacheDirectory?.appendingPathComponent("Contacts")
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.contacts",
6
- "version": "15.0.10-canary-20251015-a6a1272",
6
+ "version": "15.0.11-canary-20251023-4c86f95",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "files": [
26
26
  {
27
- "name": "expo.modules.contacts-15.0.10-canary-20251015-a6a1272.aar",
28
- "url": "expo.modules.contacts-15.0.10-canary-20251015-a6a1272.aar",
27
+ "name": "expo.modules.contacts-15.0.11-canary-20251023-4c86f95.aar",
28
+ "url": "expo.modules.contacts-15.0.11-canary-20251023-4c86f95.aar",
29
29
  "size": 116203,
30
30
  "sha512": "b5321b1ff3a596d9c89f550c4510cbe72fac3f2d66b3cd47158f3121f7abfcf03a21a25c08353e6bf9d340c4c66e379df7206fbcf2ab2969b800453ebc75b619",
31
31
  "sha256": "b4db21b79322b8a48eef13024fc3dc33c9ec378653dc1e73c9d1e947b7e36446",
@@ -53,8 +53,8 @@
53
53
  ],
54
54
  "files": [
55
55
  {
56
- "name": "expo.modules.contacts-15.0.10-canary-20251015-a6a1272.aar",
57
- "url": "expo.modules.contacts-15.0.10-canary-20251015-a6a1272.aar",
56
+ "name": "expo.modules.contacts-15.0.11-canary-20251023-4c86f95.aar",
57
+ "url": "expo.modules.contacts-15.0.11-canary-20251023-4c86f95.aar",
58
58
  "size": 116203,
59
59
  "sha512": "b5321b1ff3a596d9c89f550c4510cbe72fac3f2d66b3cd47158f3121f7abfcf03a21a25c08353e6bf9d340c4c66e379df7206fbcf2ab2969b800453ebc75b619",
60
60
  "sha256": "b4db21b79322b8a48eef13024fc3dc33c9ec378653dc1e73c9d1e947b7e36446",
@@ -73,8 +73,8 @@
73
73
  },
74
74
  "files": [
75
75
  {
76
- "name": "expo.modules.contacts-15.0.10-canary-20251015-a6a1272-sources.jar",
77
- "url": "expo.modules.contacts-15.0.10-canary-20251015-a6a1272-sources.jar",
76
+ "name": "expo.modules.contacts-15.0.11-canary-20251023-4c86f95-sources.jar",
77
+ "url": "expo.modules.contacts-15.0.11-canary-20251023-4c86f95-sources.jar",
78
78
  "size": 20540,
79
79
  "sha512": "3db6124c7487b6856ea70f71de5544618d794e535c0a41fcbb68295977baa13a57579627fb74357d02ccd9f7ec12e246eb67361730c439c38498fdb78882358e",
80
80
  "sha256": "f1e27bd6c22423fc462d2abff85bb7780693e23033bd7feefd2e8461d2feeec0",
@@ -0,0 +1 @@
1
+ d3b7b4ed46572eb5ecc7b9e27319158470addaf9d4178cd096c253c179006032e2b72a9bedce9b5793fabcde028ad4c5a16a92fd4ac32d7a1d0c67b1a200a803
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>host.exp.exponent</groupId>
11
11
  <artifactId>expo.modules.contacts</artifactId>
12
- <version>15.0.10-canary-20251015-a6a1272</version>
12
+ <version>15.0.11-canary-20251023-4c86f95</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.contacts</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ db9f72ec6421065b0d68562f2cb7c5000182c8d04c80f538a26b88a043061c81eb3ee16dcbb1f143709d8164580939de17314946a15b66181e259638e6ddc24b
@@ -3,11 +3,11 @@
3
3
  <groupId>host.exp.exponent</groupId>
4
4
  <artifactId>expo.modules.contacts</artifactId>
5
5
  <versioning>
6
- <latest>15.0.10-canary-20251015-a6a1272</latest>
7
- <release>15.0.10-canary-20251015-a6a1272</release>
6
+ <latest>15.0.11-canary-20251023-4c86f95</latest>
7
+ <release>15.0.11-canary-20251023-4c86f95</release>
8
8
  <versions>
9
- <version>15.0.10-canary-20251015-a6a1272</version>
9
+ <version>15.0.11-canary-20251023-4c86f95</version>
10
10
  </versions>
11
- <lastUpdated>20251015164435</lastUpdated>
11
+ <lastUpdated>20251023075112</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 8e49a340884a9d5247aa07058685f396
1
+ 2fabcfa3a785b255937a953a68c838c5
@@ -1 +1 @@
1
- cdeba1776a766fde01753b8ea1b2ea6a3835ace1
1
+ 6cfa4ff88c0071d871b94fec23d02e3762760222
@@ -1 +1 @@
1
- 798bea4b0f023647e6a1d08f3b0bdcb7d23fd08dd0c53cd285ae3eb1caace637
1
+ cc4db410d48abcfae71f29c84bc897e6dd03fc86fc328d0270160af4a44be227
@@ -1 +1 @@
1
- 56a0c92c571e662a657bc95191e53dae84143fdcecd4d7ebcfbc02d9058e2c09d9f4bca94e8d9bc5275bc09a980ed6219ae57f260022e218ba357e38bd46b401
1
+ f6d05708dcda32489517fe5323c956f6699ef5106f90b4bb049ebbf78c79181585b87bdcdbcf13126548cf0b18d87c711b66642faafb4ec23862a142c69c818a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-contacts",
3
- "version": "15.0.10-canary-20251015-a6a1272",
3
+ "version": "15.0.11-canary-20251023-4c86f95",
4
4
  "description": "Provides access to the phone's system contacts.",
5
5
  "main": "src/index.ts",
6
6
  "types": "build/index.d.ts",
@@ -34,10 +34,10 @@
34
34
  "preset": "expo-module-scripts"
35
35
  },
36
36
  "devDependencies": {
37
- "expo-module-scripts": "5.0.8-canary-20251015-a6a1272"
37
+ "expo-module-scripts": "5.0.8-canary-20251023-4c86f95"
38
38
  },
39
39
  "peerDependencies": {
40
- "expo": "55.0.0-canary-20251015-a6a1272",
40
+ "expo": "55.0.0-canary-20251023-4c86f95",
41
41
  "react": "*",
42
42
  "react-native": "*"
43
43
  }
@@ -1 +0,0 @@
1
- fb08bbc62450126a95dd95be2328896f720b1d529972e076c0fdca3ec199ab09dcfe38438dff386135ec746616ed2d19f47297f6a0f98956cc39268f64127d27
@@ -1 +0,0 @@
1
- 96fa389555ee28f8e68cb0cd1234ed65d90a22879630a6dfeb1502697e0d11f43991a2a2c647723d3559cefc5b04ae0bd96ccd4cde17bacb45b63b5cffd0ff74