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
package/android/build.gradle
CHANGED
|
@@ -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.
|
|
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.
|
|
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
|
|
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.
|
|
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": "
|
|
42
|
+
"gitHead": "43f1b4f8a5a9bca649e4e7ca6e4155482a162431"
|
|
43
43
|
}
|