expo-contacts 14.0.1 → 14.0.2

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 CHANGED
@@ -10,6 +10,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 14.0.2 — 2024-11-07
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [Android] Fix `ContactQuery` `id` field not accepting arrays. ([#32651](https://github.com/expo/expo/pull/32651) by [@behenate](https://github.com/behenate))
18
+
13
19
  ## 14.0.1 — 2024-10-22
14
20
 
15
21
  _This version does not introduce any user-facing changes._
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '14.0.1'
4
+ version = '14.0.2'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
7
  apply from: expoModulesCorePlugin
@@ -14,7 +14,7 @@ android {
14
14
  namespace "expo.modules.contacts"
15
15
  defaultConfig {
16
16
  versionCode 29
17
- versionName "14.0.1"
17
+ versionName "14.0.2"
18
18
  }
19
19
  }
20
20
 
@@ -110,7 +110,7 @@ class ContactQuery : Record {
110
110
  val name: String? = null
111
111
 
112
112
  @Field
113
- val id: String? = null
113
+ val id: List<String>? = null
114
114
  }
115
115
 
116
116
  class QueryArguments(
@@ -154,9 +154,11 @@ class ContactsModule : Module() {
154
154
  appContext
155
155
  .backgroundCoroutineScope
156
156
  .launch {
157
- if (options.id != null) {
158
- val contact = getContactById(options.id, options.fields)
159
- promise.resolve(contact.toBundle(options.fields))
157
+ if (!options.id.isNullOrEmpty()) {
158
+ val contacts = options.id.mapNotNull { id ->
159
+ getContactById(id, options.fields)
160
+ }
161
+ promise.resolve(ContactPage(data = contacts).toBundle(options.fields))
160
162
  return@launch
161
163
  }
162
164
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-contacts",
3
- "version": "14.0.1",
3
+ "version": "14.0.2",
4
4
  "description": "Provides access to the phone's system contacts.",
5
5
  "main": "build/Contacts.js",
6
6
  "types": "build/Contacts.d.ts",
@@ -40,5 +40,5 @@
40
40
  "expo": "*",
41
41
  "react-native": "*"
42
42
  },
43
- "gitHead": "f7adac0a6b82ab484a8254a68c3808ba6f2afde5"
43
+ "gitHead": "c0899e56c5be08b0142f06f05aa7bac8d6bc18b8"
44
44
  }