expo-contacts 12.8.1 → 12.8.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,10 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 12.8.2 — 2023-12-19
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
13
17
  ## 12.8.1 — 2023-12-13
14
18
 
15
19
  _This version does not introduce any user-facing changes._
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '12.8.1'
6
+ version = '12.8.2'
7
7
 
8
8
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
9
9
  if (expoModulesCorePlugin.exists()) {
@@ -94,7 +94,7 @@ android {
94
94
  namespace "expo.modules.contacts"
95
95
  defaultConfig {
96
96
  versionCode 29
97
- versionName "12.8.1"
97
+ versionName "12.8.2"
98
98
  }
99
99
 
100
100
  }
@@ -180,7 +180,9 @@ class Contact(var contactId: String) {
180
180
  fun getFinalDisplayName(): String? {
181
181
  return if (displayName == null && firstName != null) {
182
182
  if (lastName == null) firstName else String.format("%s %s", firstName, lastName).trim { it <= ' ' }
183
- } else displayName
183
+ } else {
184
+ displayName
185
+ }
184
186
  }
185
187
 
186
188
  private fun toByteArray(bitmap: Bitmap): ByteArray {
@@ -104,7 +104,7 @@ private val DEFAULT_PROJECTION = listOf(
104
104
  CommonDataKinds.StructuredName.PHONETIC_FAMILY_NAME,
105
105
  CommonDataKinds.Organization.COMPANY,
106
106
  CommonDataKinds.Organization.TITLE,
107
- CommonDataKinds.Organization.DEPARTMENT,
107
+ CommonDataKinds.Organization.DEPARTMENT
108
108
  )
109
109
 
110
110
  class ContactQuery : Record {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-contacts",
3
- "version": "12.8.1",
3
+ "version": "12.8.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",
@@ -39,5 +39,5 @@
39
39
  "peerDependencies": {
40
40
  "expo": "*"
41
41
  },
42
- "gitHead": "1c97be7c8c3c8661698038bf7912fb7c64ba8c35"
42
+ "gitHead": "43f1b4f8a5a9bca649e4e7ca6e4155482a162431"
43
43
  }