expo-image-picker 16.0.5 → 16.0.6

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,11 +10,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 16.0.6 — 2025-02-10
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
13
17
  ## 16.0.5 — 2025-01-31
14
18
 
15
19
  ### 🐛 Bug fixes
16
20
 
17
21
  - [ios] fixed concurrency freeze on low-end iOS devices when selecting multiple images. ([#34585](https://github.com/expo/expo/pull/34585) by [@chrfalch](https://github.com/chrfalch))
22
+ - [android] fixed removal of temporary file after picking image using camera ([#34797](https://github.com/expo/expo/pull/34797) by [@chrfalch](https://github.com/chrfalch))
18
23
 
19
24
  ## 16.0.4 — 2025-01-10
20
25
 
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '16.0.5'
4
+ version = '16.0.6'
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.imagepicker"
15
15
  defaultConfig {
16
16
  versionCode 22
17
- versionName "16.0.5"
17
+ versionName "16.0.6"
18
18
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
19
19
  }
20
20
  testOptions {
@@ -70,11 +70,16 @@ class ImagePickerModule : Module() {
70
70
  ensureTargetActivityIsAvailable(options)
71
71
  ensureCameraPermissionsAreGranted()
72
72
 
73
- val mediaFile = createOutputFile(cacheDirectory, options.nativeMediaTypes.toFileExtension())
74
- val uri = mediaFile.toContentUri(context)
75
- val contractOptions = options.toCameraContractOptions(uri.toString())
73
+ val tempFile = createOutputFile(cacheDirectory, options.nativeMediaTypes.toFileExtension())
76
74
 
77
- launchContract({ cameraLauncher.launch(contractOptions) }, options)
75
+ try {
76
+ val uri = tempFile.toContentUri(context)
77
+ val contractOptions = options.toCameraContractOptions(uri.toString())
78
+
79
+ launchContract({ cameraLauncher.launch(contractOptions) }, options)
80
+ } finally {
81
+ tempFile.delete()
82
+ }
78
83
  }
79
84
 
80
85
  AsyncFunction("launchImageLibraryAsync") Coroutine { options: ImagePickerOptions ->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-image-picker",
3
- "version": "16.0.5",
3
+ "version": "16.0.6",
4
4
  "description": "Provides access to the system's UI for selecting images and videos from the phone's library or taking a photo with the camera.",
5
5
  "main": "build/ImagePicker.js",
6
6
  "types": "build/ImagePicker.d.ts",
@@ -45,5 +45,5 @@
45
45
  "peerDependencies": {
46
46
  "expo": "*"
47
47
  },
48
- "gitHead": "d13f18276d52b15263754f35ec72befcb2785104"
48
+ "gitHead": "81941fa03383e748ba1b6345d9ca0d048bb5c4d1"
49
49
  }