expo-contacts 14.1.0-canary-20250207-8bc5146 → 14.1.0-canary-20250221-ef26fed

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
@@ -8,6 +8,7 @@
8
8
 
9
9
  ### 🎉 New features
10
10
 
11
+ - added the ability to change isFavorite property of contacts on Android (using updateContactAsync) ([#34483](https://github.com/expo/expo/pull/34483) by [@NorseGaud](https://github.com/NorseGaud))
11
12
  - added the ability to read and write starred property (as "isFavorite") of contacts on Android ([#33208](https://github.com/expo/expo/pull/33208) by [@NorseGaud](https://github.com/NorseGaud))
12
13
  - Add `presentAccessPickerAsync` function that presents the iOS 18.0+ picker for limited contacts access. ([#33771](https://github.com/expo/expo/pull/33771) by [@tsapeta](https://github.com/tsapeta))
13
14
  - [iOS] Exposed `ContactAccessButton` from SwiftUI. ([#33782](https://github.com/expo/expo/pull/33782) by [@tsapeta](https://github.com/tsapeta))
@@ -1,22 +1,6 @@
1
- apply plugin: 'com.android.library'
2
-
3
- def useLegacyExpoModulesCorePlugin = {
4
- def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
5
- apply from: expoModulesCorePlugin
6
- applyKotlinExpoModulesCorePlugin()
7
- useCoreDependencies()
8
- useDefaultAndroidSdkVersions()
9
- useExpoPublishing()
10
- }
11
-
12
- try {
13
- apply plugin: 'expo-module-gradle-plugin'
14
- } catch (e) {
15
- if (!e instanceof UnknownPluginException) {
16
- throw e
17
- }
18
-
19
- useLegacyExpoModulesCorePlugin()
1
+ plugins {
2
+ id 'com.android.library'
3
+ id 'expo-module-gradle-plugin'
20
4
  }
21
5
 
22
6
  group = 'host.exp.exponent'
@@ -287,6 +287,10 @@ class Contact(var contactId: String, var appContext: AppContext) {
287
287
  .build()
288
288
  )
289
289
  }
290
+ op = ContentProviderOperation.newUpdate(ContactsContract.Contacts.CONTENT_URI)
291
+ .withSelection("${ContactsContract.Contacts._ID}=?", arrayOf(contactId))
292
+ .withValue(ContactsContract.Contacts.STARRED, if (isFavorite) 1 else 0)
293
+ ops.add(op.build())
290
294
 
291
295
  // Flush all data from linked db
292
296
  rawContactId?.let { id ->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-contacts",
3
- "version": "14.1.0-canary-20250207-8bc5146",
3
+ "version": "14.1.0-canary-20250221-ef26fed",
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": "4.0.4-canary-20250207-8bc5146"
37
+ "expo-module-scripts": "4.0.5-canary-20250221-ef26fed"
38
38
  },
39
39
  "peerDependencies": {
40
- "expo": "53.0.0-canary-20250207-8bc5146",
40
+ "expo": "53.0.0-canary-20250221-ef26fed",
41
41
  "react": "*",
42
42
  "react-native": "*"
43
- },
44
- "gitHead": "8bc5146852ccd7033138bac9ef8d3c41ae85a211"
43
+ }
45
44
  }