expo-contacts 14.2.4 → 14.2.5

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 (31) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/expo/modules/contacts/models/DateModel.kt +7 -1
  4. package/expo-module.config.json +7 -1
  5. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5-sources.jar +0 -0
  6. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5-sources.jar.md5 +1 -0
  7. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5-sources.jar.sha1 +1 -0
  8. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5-sources.jar.sha256 +1 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5-sources.jar.sha512 +1 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5.aar +0 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5.aar.md5 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5.aar.sha1 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5.aar.sha256 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5.aar.sha512 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5.module +94 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5.module.md5 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5.module.sha1 +1 -0
  18. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5.module.sha256 +1 -0
  19. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5.module.sha512 +1 -0
  20. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5.pom +41 -0
  21. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5.pom.md5 +1 -0
  22. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5.pom.sha1 +1 -0
  23. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5.pom.sha256 +1 -0
  24. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.5/expo.modules.contacts-14.2.5.pom.sha512 +1 -0
  25. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml +13 -0
  26. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml.md5 +1 -0
  27. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml.sha1 +1 -0
  28. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml.sha256 +1 -0
  29. package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml.sha512 +1 -0
  30. package/package.json +2 -2
  31. package/src/Contacts.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -10,6 +10,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 14.2.5 — 2025-06-04
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [Android] fixed `updateContactAsync()` removing contact rawDates / birthday ([#37054](https://github.com/expo/expo/pull/37054) by [@NorseGaud](https://github.com/NorseGaud)
18
+
19
+ ### 💡 Others
20
+
21
+ - Remove "Please" from warnings and errors ([#36862](https://github.com/expo/expo/pull/36862) by [@brentvatne](https://github.com/brentvatne))
22
+
13
23
  ## 14.2.4 — 2025-05-08
14
24
 
15
25
  ### 🐛 Bug fixes
@@ -4,13 +4,13 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '14.2.4'
7
+ version = '14.2.5'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.contacts"
11
11
  defaultConfig {
12
12
  versionCode 29
13
- versionName "14.2.4"
13
+ versionName "14.2.5"
14
14
  }
15
15
  }
16
16
 
@@ -51,6 +51,12 @@ open class DateModel : BaseModel() {
51
51
  }
52
52
 
53
53
  private fun formatDateString(): String? {
54
+ val existingFormattedDate = this.data
55
+ if (existingFormattedDate != null) {
56
+ // when the date is loaded from an existing contact (from cursor)
57
+ return existingFormattedDate
58
+ }
59
+
54
60
  val year = map.getDouble("year", -1.0).toInt().takeIf { it > 0 }
55
61
  val month = map.getDouble("month", -1.0).toInt().takeIf { it >= 0 }?.plus(1)
56
62
  val day = map.getDouble("day", -1.0).toInt().takeIf { it > 0 }
@@ -59,7 +65,7 @@ open class DateModel : BaseModel() {
59
65
  year != null && month != null && day != null ->
60
66
  String.format(Locale.US, "%04d-%02d-%02d", year, month, day)
61
67
 
62
- month != null && day != null ->
68
+ month != null && day != null -> // No year
63
69
  String.format(Locale.US, "--%02d-%02d", month, day)
64
70
 
65
71
  else -> null
@@ -4,6 +4,12 @@
4
4
  "modules": ["ContactsModule", "ContactAccessButtonModule"]
5
5
  },
6
6
  "android": {
7
- "modules": ["expo.modules.contacts.ContactsModule"]
7
+ "modules": ["expo.modules.contacts.ContactsModule"],
8
+ "publication": {
9
+ "groupId": "host.exp.exponent",
10
+ "artifactId": "expo.modules.contacts",
11
+ "version": "14.2.5",
12
+ "repository": "local-maven-repo"
13
+ }
8
14
  }
9
15
  }
@@ -0,0 +1 @@
1
+ 7805b5686f14c0034af179db4c28f3af823529d1f21fca8eac2355601cca4636
@@ -0,0 +1 @@
1
+ b56feb83e945a7b4df2ca5a71da12aa5d4dc939082da448ab8548bc4967bb24eb48062902db6f3bb234e47d2ad2e55647c3b39f344af2cecd6d87f5b2b5f6aaa
@@ -0,0 +1 @@
1
+ bfe041493a7fae2499c54b0fb02fc477490645f7960a01a3a78e4b0901b6e85b
@@ -0,0 +1 @@
1
+ 5a408c160bfc3d9f66aa320cb8ff377e144c3c06cd3e0663afa865fe64c3f7baf68ec64c20649a9fe9dd4f984ca52acb9013958f15d6ad86dd7b840ff899e4c3
@@ -0,0 +1,94 @@
1
+ {
2
+ "formatVersion": "1.1",
3
+ "component": {
4
+ "group": "host.exp.exponent",
5
+ "module": "expo.modules.contacts",
6
+ "version": "14.2.5",
7
+ "attributes": {
8
+ "org.gradle.status": "release"
9
+ }
10
+ },
11
+ "createdBy": {
12
+ "gradle": {
13
+ "version": "8.13"
14
+ }
15
+ },
16
+ "variants": [
17
+ {
18
+ "name": "releaseVariantReleaseApiPublication",
19
+ "attributes": {
20
+ "org.gradle.category": "library",
21
+ "org.gradle.dependency.bundling": "external",
22
+ "org.gradle.libraryelements": "aar",
23
+ "org.gradle.usage": "java-api"
24
+ },
25
+ "files": [
26
+ {
27
+ "name": "expo.modules.contacts-14.2.5.aar",
28
+ "url": "expo.modules.contacts-14.2.5.aar",
29
+ "size": 110221,
30
+ "sha512": "5a408c160bfc3d9f66aa320cb8ff377e144c3c06cd3e0663afa865fe64c3f7baf68ec64c20649a9fe9dd4f984ca52acb9013958f15d6ad86dd7b840ff899e4c3",
31
+ "sha256": "bfe041493a7fae2499c54b0fb02fc477490645f7960a01a3a78e4b0901b6e85b",
32
+ "sha1": "85400f2f3220cd30a271deb9de688eb9e18e2262",
33
+ "md5": "926c33d18199d5f093024007f0b7dd8e"
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "name": "releaseVariantReleaseRuntimePublication",
39
+ "attributes": {
40
+ "org.gradle.category": "library",
41
+ "org.gradle.dependency.bundling": "external",
42
+ "org.gradle.libraryelements": "aar",
43
+ "org.gradle.usage": "java-runtime"
44
+ },
45
+ "dependencies": [
46
+ {
47
+ "group": "org.jetbrains.kotlin",
48
+ "module": "kotlin-stdlib-jdk7",
49
+ "version": {
50
+ "requires": "2.0.21"
51
+ }
52
+ },
53
+ {
54
+ "group": "androidx.annotation",
55
+ "module": "annotation",
56
+ "version": {
57
+ "requires": "1.2.0"
58
+ }
59
+ }
60
+ ],
61
+ "files": [
62
+ {
63
+ "name": "expo.modules.contacts-14.2.5.aar",
64
+ "url": "expo.modules.contacts-14.2.5.aar",
65
+ "size": 110221,
66
+ "sha512": "5a408c160bfc3d9f66aa320cb8ff377e144c3c06cd3e0663afa865fe64c3f7baf68ec64c20649a9fe9dd4f984ca52acb9013958f15d6ad86dd7b840ff899e4c3",
67
+ "sha256": "bfe041493a7fae2499c54b0fb02fc477490645f7960a01a3a78e4b0901b6e85b",
68
+ "sha1": "85400f2f3220cd30a271deb9de688eb9e18e2262",
69
+ "md5": "926c33d18199d5f093024007f0b7dd8e"
70
+ }
71
+ ]
72
+ },
73
+ {
74
+ "name": "releaseVariantReleaseSourcePublication",
75
+ "attributes": {
76
+ "org.gradle.category": "documentation",
77
+ "org.gradle.dependency.bundling": "external",
78
+ "org.gradle.docstype": "sources",
79
+ "org.gradle.usage": "java-runtime"
80
+ },
81
+ "files": [
82
+ {
83
+ "name": "expo.modules.contacts-14.2.5-sources.jar",
84
+ "url": "expo.modules.contacts-14.2.5-sources.jar",
85
+ "size": 19972,
86
+ "sha512": "b56feb83e945a7b4df2ca5a71da12aa5d4dc939082da448ab8548bc4967bb24eb48062902db6f3bb234e47d2ad2e55647c3b39f344af2cecd6d87f5b2b5f6aaa",
87
+ "sha256": "7805b5686f14c0034af179db4c28f3af823529d1f21fca8eac2355601cca4636",
88
+ "sha1": "b39c529ef7f2a0aa86fd98d627c8610b058f22c2",
89
+ "md5": "b03c91138ab3950fd241c862b7439b5f"
90
+ }
91
+ ]
92
+ }
93
+ ]
94
+ }
@@ -0,0 +1 @@
1
+ 27740c2786fb74afe4b73897b987c1fb6fa48e2a82a858681832f5ea5d0926d2
@@ -0,0 +1 @@
1
+ d4b8be9e19f5b7f031c9c6384990645d29d2ddb8c349b821cbd807cadd014f949e0fb747b7d622289b313104c87ad8baba2b7d20cd40e4a8dbbe96797a15e8b1
@@ -0,0 +1,41 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+ <!-- This module was also published with a richer model, Gradle metadata, -->
5
+ <!-- which should be used instead. Do not delete the following line which -->
6
+ <!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
7
+ <!-- that they should prefer consuming it instead. -->
8
+ <!-- do_not_remove: published-with-gradle-metadata -->
9
+ <modelVersion>4.0.0</modelVersion>
10
+ <groupId>host.exp.exponent</groupId>
11
+ <artifactId>expo.modules.contacts</artifactId>
12
+ <version>14.2.5</version>
13
+ <packaging>aar</packaging>
14
+ <name>expo.modules.contacts</name>
15
+ <url>https://github.com/expo/expo</url>
16
+ <licenses>
17
+ <license>
18
+ <name>MIT License</name>
19
+ <url>https://github.com/expo/expo/blob/main/LICENSE</url>
20
+ </license>
21
+ </licenses>
22
+ <scm>
23
+ <connection>https://github.com/expo/expo.git</connection>
24
+ <developerConnection>https://github.com/expo/expo.git</developerConnection>
25
+ <url>https://github.com/expo/expo</url>
26
+ </scm>
27
+ <dependencies>
28
+ <dependency>
29
+ <groupId>org.jetbrains.kotlin</groupId>
30
+ <artifactId>kotlin-stdlib-jdk7</artifactId>
31
+ <version>2.0.21</version>
32
+ <scope>runtime</scope>
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>
40
+ </dependencies>
41
+ </project>
@@ -0,0 +1 @@
1
+ ff81c48b0b2ab8f3d4cfef73f2375463b41602825b3a4183d2ae6246ecc272f4
@@ -0,0 +1 @@
1
+ 1c462ab25b295baf9dc75e7275c4dc39755fc4acaa8ab866c20742f40d1a68aec947f42a67c58d31d9fbc45eea241ede3f7dbf441c681b469c9b5a392e73a4b8
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <metadata>
3
+ <groupId>host.exp.exponent</groupId>
4
+ <artifactId>expo.modules.contacts</artifactId>
5
+ <versioning>
6
+ <latest>14.2.5</latest>
7
+ <release>14.2.5</release>
8
+ <versions>
9
+ <version>14.2.5</version>
10
+ </versions>
11
+ <lastUpdated>20250604230414</lastUpdated>
12
+ </versioning>
13
+ </metadata>
@@ -0,0 +1 @@
1
+ 018f8af72901e82c1e23ea146e8d242f
@@ -0,0 +1 @@
1
+ af5e11e030f93bb44a87ddda84cfe685c5266467
@@ -0,0 +1 @@
1
+ d5767af3486c3e8bdb428e8d819e963195d768371db67fcf1e8a66b87e05bd00
@@ -0,0 +1 @@
1
+ 9e4fb9e673937caa8d1a58d6f399510fa101ad12b83bf5c52fd9d506e5cb3e376e67ce4edf16866d65777272422166e6f108856bc4e72cab109a66bbc00e1fc7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-contacts",
3
- "version": "14.2.4",
3
+ "version": "14.2.5",
4
4
  "description": "Provides access to the phone's system contacts.",
5
5
  "main": "src/index.ts",
6
6
  "types": "build/index.d.ts",
@@ -41,5 +41,5 @@
41
41
  "react": "*",
42
42
  "react-native": "*"
43
43
  },
44
- "gitHead": "49c9d53cf0a9fc8179d1c8f5268beadd141f70ca"
44
+ "gitHead": "7638c800b57fe78f57cc7f129022f58e84a523c5"
45
45
  }
package/src/Contacts.ts CHANGED
@@ -664,7 +664,7 @@ export async function getContactByIdAsync(
664
664
  }
665
665
 
666
666
  if (id == null) {
667
- throw new Error('Error: Contacts.getContactByIdAsync: Please pass an ID as a parameter');
667
+ throw new Error('Error: Contacts.getContactByIdAsync: id is required');
668
668
  } else {
669
669
  const results = await ExpoContacts.getContactsAsync({
670
670
  pageSize: 1,