expo-contacts 15.0.10-canary-20251013-623c5a6 → 15.0.10

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 +9 -2
  2. package/android/build.gradle +6 -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-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6.module → 15.0.10/expo.modules.contacts-15.0.10.module} +15 -8
  7. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10/expo.modules.contacts-15.0.10.module.md5 +1 -0
  8. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10/expo.modules.contacts-15.0.10.module.sha1 +1 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10/expo.modules.contacts-15.0.10.module.sha256 +1 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10/expo.modules.contacts-15.0.10.module.sha512 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6.pom → 15.0.10/expo.modules.contacts-15.0.10.pom} +7 -1
  12. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10/expo.modules.contacts-15.0.10.pom.md5 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10/expo.modules.contacts-15.0.10.pom.sha1 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10/expo.modules.contacts-15.0.10.pom.sha256 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10/expo.modules.contacts-15.0.10.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 +5 -4
  22. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6.module.md5 +0 -1
  23. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6.module.sha1 +0 -1
  24. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6.module.sha256 +0 -1
  25. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6.module.sha512 +0 -1
  26. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6.pom.md5 +0 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6.pom.sha1 +0 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6.pom.sha256 +0 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6.pom.sha512 +0 -1
  30. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6-sources.jar → 15.0.10/expo.modules.contacts-15.0.10-sources.jar} +0 -0
  31. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6-sources.jar.md5 → 15.0.10/expo.modules.contacts-15.0.10-sources.jar.md5} +0 -0
  32. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6-sources.jar.sha1 → 15.0.10/expo.modules.contacts-15.0.10-sources.jar.sha1} +0 -0
  33. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6-sources.jar.sha256 → 15.0.10/expo.modules.contacts-15.0.10-sources.jar.sha256} +0 -0
  34. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6-sources.jar.sha512 → 15.0.10/expo.modules.contacts-15.0.10-sources.jar.sha512} +0 -0
  35. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6.aar → 15.0.10/expo.modules.contacts-15.0.10.aar} +0 -0
  36. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6.aar.md5 → 15.0.10/expo.modules.contacts-15.0.10.aar.md5} +0 -0
  37. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6.aar.sha1 → 15.0.10/expo.modules.contacts-15.0.10.aar.sha1} +0 -0
  38. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6.aar.sha256 → 15.0.10/expo.modules.contacts-15.0.10.aar.sha256} +0 -0
  39. /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.10-canary-20251013-623c5a6/expo.modules.contacts-15.0.10-canary-20251013-623c5a6.aar.sha512 → 15.0.10/expo.modules.contacts-15.0.10.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -10,10 +10,17 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 15.0.10 — 2025-10-20
14
+
15
+ ### 🐛 Bug fixes
16
+
13
17
  - Added contact image uri validation. ([#39658](https://github.com/expo/expo/pull/39658) by [@hryhoriiK97](https://github.com/hryhoriiK97))
14
- - [Android] Removed unused `androidx.annotation:annotation` dependency ([#39761](https://github.com/expo/expo/pull/39761) by [@lukmccall](https://github.com/lukmccall))
15
18
 
16
- ## 15.0.9 - 2025-10-01
19
+ ### 💡 Others
20
+
21
+ - Added ContactSerializationException for error handling. ([#40426](https://github.com/expo/expo/pull/40426) by [@hryhoriiK97](https://github.com/hryhoriiK97))
22
+
23
+ ## 15.0.9 — 2025-10-01
17
24
 
18
25
  ### 🐛 Bug fixes
19
26
 
@@ -4,12 +4,16 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '15.0.10-canary-20251013-623c5a6'
7
+ version = '15.0.10'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.contacts"
11
11
  defaultConfig {
12
12
  versionCode 29
13
- versionName "15.0.10-canary-20251013-623c5a6"
13
+ versionName "15.0.10"
14
14
  }
15
15
  }
16
+
17
+ dependencies {
18
+ implementation 'androidx.annotation:annotation:1.2.0'
19
+ }
@@ -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-20251013-623c5a6",
11
+ "version": "15.0.10",
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,14 +3,14 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.contacts",
6
- "version": "15.0.10-canary-20251013-623c5a6",
6
+ "version": "15.0.10",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
10
10
  },
11
11
  "createdBy": {
12
12
  "gradle": {
13
- "version": "9.0.0"
13
+ "version": "8.14.3"
14
14
  }
15
15
  },
16
16
  "variants": [
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "files": [
26
26
  {
27
- "name": "expo.modules.contacts-15.0.10-canary-20251013-623c5a6.aar",
28
- "url": "expo.modules.contacts-15.0.10-canary-20251013-623c5a6.aar",
27
+ "name": "expo.modules.contacts-15.0.10.aar",
28
+ "url": "expo.modules.contacts-15.0.10.aar",
29
29
  "size": 116203,
30
30
  "sha512": "b5321b1ff3a596d9c89f550c4510cbe72fac3f2d66b3cd47158f3121f7abfcf03a21a25c08353e6bf9d340c4c66e379df7206fbcf2ab2969b800453ebc75b619",
31
31
  "sha256": "b4db21b79322b8a48eef13024fc3dc33c9ec378653dc1e73c9d1e947b7e36446",
@@ -49,12 +49,19 @@
49
49
  "version": {
50
50
  "requires": "2.1.20"
51
51
  }
52
+ },
53
+ {
54
+ "group": "androidx.annotation",
55
+ "module": "annotation",
56
+ "version": {
57
+ "requires": "1.2.0"
58
+ }
52
59
  }
53
60
  ],
54
61
  "files": [
55
62
  {
56
- "name": "expo.modules.contacts-15.0.10-canary-20251013-623c5a6.aar",
57
- "url": "expo.modules.contacts-15.0.10-canary-20251013-623c5a6.aar",
63
+ "name": "expo.modules.contacts-15.0.10.aar",
64
+ "url": "expo.modules.contacts-15.0.10.aar",
58
65
  "size": 116203,
59
66
  "sha512": "b5321b1ff3a596d9c89f550c4510cbe72fac3f2d66b3cd47158f3121f7abfcf03a21a25c08353e6bf9d340c4c66e379df7206fbcf2ab2969b800453ebc75b619",
60
67
  "sha256": "b4db21b79322b8a48eef13024fc3dc33c9ec378653dc1e73c9d1e947b7e36446",
@@ -73,8 +80,8 @@
73
80
  },
74
81
  "files": [
75
82
  {
76
- "name": "expo.modules.contacts-15.0.10-canary-20251013-623c5a6-sources.jar",
77
- "url": "expo.modules.contacts-15.0.10-canary-20251013-623c5a6-sources.jar",
83
+ "name": "expo.modules.contacts-15.0.10-sources.jar",
84
+ "url": "expo.modules.contacts-15.0.10-sources.jar",
78
85
  "size": 20540,
79
86
  "sha512": "3db6124c7487b6856ea70f71de5544618d794e535c0a41fcbb68295977baa13a57579627fb74357d02ccd9f7ec12e246eb67361730c439c38498fdb78882358e",
80
87
  "sha256": "f1e27bd6c22423fc462d2abff85bb7780693e23033bd7feefd2e8461d2feeec0",
@@ -0,0 +1 @@
1
+ f20404489177e13f20f5cf7004a634e1ac3eb077e4e85554984e5d728205b556
@@ -0,0 +1 @@
1
+ f8e6d2f73b9c9909fedbeba58c40841c44c52f81a2f40942441101175c62736e4e2fa84525ab90473285042de7aa9f9a6c173d21d11c6c049d6963a13ad073af
@@ -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-20251013-623c5a6</version>
12
+ <version>15.0.10</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.contacts</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -31,5 +31,11 @@
31
31
  <version>2.1.20</version>
32
32
  <scope>runtime</scope>
33
33
  </dependency>
34
+ <dependency>
35
+ <groupId>androidx.annotation</groupId>
36
+ <artifactId>annotation</artifactId>
37
+ <version>1.2.0</version>
38
+ <scope>runtime</scope>
39
+ </dependency>
34
40
  </dependencies>
35
41
  </project>
@@ -0,0 +1 @@
1
+ a58cbb685fec4cf1394628064545c51ab89407c70a273c9e75f8b3cfaaa3d6c5
@@ -0,0 +1 @@
1
+ e19a2c1b3d887ef786e03c389b7734911d08a4fedbce1f0d7582a54e9cc9ad4ed2211133e63924318e2cdc35123e8cc27dcc8d1140315048398105cb747565cc
@@ -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-20251013-623c5a6</latest>
7
- <release>15.0.10-canary-20251013-623c5a6</release>
6
+ <latest>15.0.10</latest>
7
+ <release>15.0.10</release>
8
8
  <versions>
9
- <version>15.0.10-canary-20251013-623c5a6</version>
9
+ <version>15.0.10</version>
10
10
  </versions>
11
- <lastUpdated>20251013171030</lastUpdated>
11
+ <lastUpdated>20251020232653</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- e2f0e574277b17a616f373e67b423114
1
+ 64e9b42777b5ffee041623f7f28f1d5d
@@ -1 +1 @@
1
- 701a8c361ab29fb30e237016d94d13bbe8c9b15a
1
+ 3e0ace41149c0dec46eb7c6ee79bbd4c505215dd
@@ -1 +1 @@
1
- 6b52a3cdeba921cbe4ce1eccb2777065726ca4499ed10aa779dee33dd0d68577
1
+ 8a7ced42f6678bb2ba84fda1823d9d018416aa6117f29d977bc2079244877db1
@@ -1 +1 @@
1
- 7ced97b2004955f837b64d0f3f6de8b7d521abf9b9856d933d65691b963fc729acfda9f6a5884720e31e6dae12e740e70c55ed1f17e72d0a7218749e8cbb033a
1
+ 2cab5875031861e141856330553f27bc2824dbdc34a5f4db455bc1c01da92444efcc567355ac467772f8703db5ab977585fbcfe3042d240d3fe30b307031f71d
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-contacts",
3
- "version": "15.0.10-canary-20251013-623c5a6",
3
+ "version": "15.0.10",
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,11 +34,12 @@
34
34
  "preset": "expo-module-scripts"
35
35
  },
36
36
  "devDependencies": {
37
- "expo-module-scripts": "5.0.8-canary-20251013-623c5a6"
37
+ "expo-module-scripts": "^5.0.7"
38
38
  },
39
39
  "peerDependencies": {
40
- "expo": "55.0.0-canary-20251013-623c5a6",
40
+ "expo": "*",
41
41
  "react": "*",
42
42
  "react-native": "*"
43
- }
43
+ },
44
+ "gitHead": "ea56136a4420322f46d00e4b1549595d8f85150e"
44
45
  }
@@ -1 +0,0 @@
1
- 86edf8823e3a16bd0f0ae98399fa6b0f1baeea7c3c69b9480564faeb015fdfcc1cbab87aad43deb9a4cb451200b89e8b9ac9b6de5eaf28c25ac07ed4b80099c0
@@ -1 +0,0 @@
1
- 1032a7a32483b79331e1af2e836cd2e816fee9fae409f2873630c0645f696b2b19ebf414aaf763dbf2a84989ef18c1e7799f388122ddff1ec334033bab7f6637