expo-contacts 14.2.4 → 14.2.6-canary-20250611-f0afe80
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/CHANGELOG.md +10 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/contacts/models/DateModel.kt +7 -1
- package/expo-module.config.json +7 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80-sources.jar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80-sources.jar.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80-sources.jar.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80-sources.jar.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80-sources.jar.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80.aar.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80.aar.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80.aar.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80.aar.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80.module +94 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80.pom +41 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/14.2.6-canary-20250611-f0afe80/expo.modules.contacts-14.2.6-canary-20250611-f0afe80.pom.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml +13 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml.sha512 +1 -0
- package/package.json +4 -5
- 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
|
package/android/build.gradle
CHANGED
|
@@ -4,13 +4,13 @@ plugins {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
group = 'host.exp.exponent'
|
|
7
|
-
version = '14.2.
|
|
7
|
+
version = '14.2.6-canary-20250611-f0afe80'
|
|
8
8
|
|
|
9
9
|
android {
|
|
10
10
|
namespace "expo.modules.contacts"
|
|
11
11
|
defaultConfig {
|
|
12
12
|
versionCode 29
|
|
13
|
-
versionName "14.2.
|
|
13
|
+
versionName "14.2.6-canary-20250611-f0afe80"
|
|
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
|
package/expo-module.config.json
CHANGED
|
@@ -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.6-canary-20250611-f0afe80",
|
|
12
|
+
"repository": "local-maven-repo"
|
|
13
|
+
}
|
|
8
14
|
}
|
|
9
15
|
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b03c91138ab3950fd241c862b7439b5f
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b39c529ef7f2a0aa86fd98d627c8610b058f22c2
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7805b5686f14c0034af179db4c28f3af823529d1f21fca8eac2355601cca4636
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b56feb83e945a7b4df2ca5a71da12aa5d4dc939082da448ab8548bc4967bb24eb48062902db6f3bb234e47d2ad2e55647c3b39f344af2cecd6d87f5b2b5f6aaa
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ffd057a6a123dfecf6228127c9e61a98
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b41d3861408e16c215c3912917f1910a325cce14
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b00718f866a259940debc7fec8d916a75e9f2816006c2771e452577c5830c021
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a5d364c19cc28ee221a167fdf6f4930122143c1fecc4cc7f876ca8c68eda37a84e159e42bfe97c9872f890f1a05dc5fea2958272977c19afd1dfac8598ad2b3c
|
|
@@ -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.6-canary-20250611-f0afe80",
|
|
7
|
+
"attributes": {
|
|
8
|
+
"org.gradle.status": "release"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"createdBy": {
|
|
12
|
+
"gradle": {
|
|
13
|
+
"version": "8.14"
|
|
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.6-canary-20250611-f0afe80.aar",
|
|
28
|
+
"url": "expo.modules.contacts-14.2.6-canary-20250611-f0afe80.aar",
|
|
29
|
+
"size": 110152,
|
|
30
|
+
"sha512": "a5d364c19cc28ee221a167fdf6f4930122143c1fecc4cc7f876ca8c68eda37a84e159e42bfe97c9872f890f1a05dc5fea2958272977c19afd1dfac8598ad2b3c",
|
|
31
|
+
"sha256": "b00718f866a259940debc7fec8d916a75e9f2816006c2771e452577c5830c021",
|
|
32
|
+
"sha1": "b41d3861408e16c215c3912917f1910a325cce14",
|
|
33
|
+
"md5": "ffd057a6a123dfecf6228127c9e61a98"
|
|
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.1.20"
|
|
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.6-canary-20250611-f0afe80.aar",
|
|
64
|
+
"url": "expo.modules.contacts-14.2.6-canary-20250611-f0afe80.aar",
|
|
65
|
+
"size": 110152,
|
|
66
|
+
"sha512": "a5d364c19cc28ee221a167fdf6f4930122143c1fecc4cc7f876ca8c68eda37a84e159e42bfe97c9872f890f1a05dc5fea2958272977c19afd1dfac8598ad2b3c",
|
|
67
|
+
"sha256": "b00718f866a259940debc7fec8d916a75e9f2816006c2771e452577c5830c021",
|
|
68
|
+
"sha1": "b41d3861408e16c215c3912917f1910a325cce14",
|
|
69
|
+
"md5": "ffd057a6a123dfecf6228127c9e61a98"
|
|
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.6-canary-20250611-f0afe80-sources.jar",
|
|
84
|
+
"url": "expo.modules.contacts-14.2.6-canary-20250611-f0afe80-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
|
+
7bb06fcef64c291306e4797050be0057
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
05f81e3c285213e6d611c47cf10e4de621cb25da
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
454c6faaeab391739ca258e6701a39a74ad72b558397b23ce32d3d648ed8526f
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a2d0c4d1443f3a022d0282b3593fec82d01f23d9128d2031af4dee8b22a64f03d491beff4c3813e7426ad5cef2a8bf95c8117cf414d72c35c1dab328e7f3fefc
|
|
@@ -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.6-canary-20250611-f0afe80</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.1.20</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
|
+
7ed20ae116dfa3922f3762609694c112
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
dc860e8a8e7764ffc9825f5d41acb1f4f76a2a14
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f356b9bf8d18cf2570a9ab02fa4bfdc3d21d9d2d0f44ce4734b70a91354fea92
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d481b8b8a996bb1f90754f09e3d11ecee5647367d7ea06b901ffdcc3e999bfed737d0b8d1f1c32badbcb6d22a450a5aa748e65e6af734d3d4d454e2dcac7ab47
|
|
@@ -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.6-canary-20250611-f0afe80</latest>
|
|
7
|
+
<release>14.2.6-canary-20250611-f0afe80</release>
|
|
8
|
+
<versions>
|
|
9
|
+
<version>14.2.6-canary-20250611-f0afe80</version>
|
|
10
|
+
</versions>
|
|
11
|
+
<lastUpdated>20250611221459</lastUpdated>
|
|
12
|
+
</versioning>
|
|
13
|
+
</metadata>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2a816b0659b552f718e09e283ffe9604
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
718eb4c3c21b10d71757127377134912d710b106
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
e00d85083f49d26d4b5baee72395740ad066a6fdad0a101d5acef65e5924ed26
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cf853b39648cf00037394521a41dceca22276cbde33b46c4e3e5c114985c62f067f2b616f2164e021499e03f2756f140bb1c4c689d02b521659517c12cd083af
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-contacts",
|
|
3
|
-
"version": "14.2.
|
|
3
|
+
"version": "14.2.6-canary-20250611-f0afe80",
|
|
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,12 +34,11 @@
|
|
|
34
34
|
"preset": "expo-module-scripts"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"expo-module-scripts": "
|
|
37
|
+
"expo-module-scripts": "4.1.8-canary-20250611-f0afe80"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"expo": "
|
|
40
|
+
"expo": "54.0.0-canary-20250611-f0afe80",
|
|
41
41
|
"react": "*",
|
|
42
42
|
"react-native": "*"
|
|
43
|
-
}
|
|
44
|
-
"gitHead": "49c9d53cf0a9fc8179d1c8f5268beadd141f70ca"
|
|
43
|
+
}
|
|
45
44
|
}
|
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:
|
|
667
|
+
throw new Error('Error: Contacts.getContactByIdAsync: id is required');
|
|
668
668
|
} else {
|
|
669
669
|
const results = await ExpoContacts.getContactsAsync({
|
|
670
670
|
pageSize: 1,
|