From 12c70ddbb4e21b79507b7f57cae7a81c61b7f0e3 Mon Sep 17 00:00:00 2001 From: Andre Destro Date: Mon, 27 Apr 2026 17:29:36 +0100 Subject: [PATCH 1/2] fix: use unique filename per image in gallery fallback path --- .../io/ionic/libs/ioncameralib/helper/IONCAMRFileHelper.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/io/ionic/libs/ioncameralib/helper/IONCAMRFileHelper.kt b/src/main/kotlin/io/ionic/libs/ioncameralib/helper/IONCAMRFileHelper.kt index 10238de..a6ec4e0 100644 --- a/src/main/kotlin/io/ionic/libs/ioncameralib/helper/IONCAMRFileHelper.kt +++ b/src/main/kotlin/io/ionic/libs/ioncameralib/helper/IONCAMRFileHelper.kt @@ -566,7 +566,7 @@ class IONCAMRFileHelper: IONCAMRFileHelperInterface { var read: Int val buffer = ByteArray(8 * 1024) val extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType) ?: "dat" - val targetFile = createCaptureFile(context, "file.${extension}") + val targetFile = createCaptureFile(context, "${UUID.randomUUID()}.${extension}") val outputStream: OutputStream = FileOutputStream(targetFile) while (inputStream.read(buffer).also { read = it } != -1) { outputStream.write(buffer, 0, read) @@ -579,4 +579,4 @@ class IONCAMRFileHelper: IONCAMRFileHelperInterface { } return targetFile } -} \ No newline at end of file +} From 57a21078492f02ca6c2e4824d6a84305bb78b2b7 Mon Sep 17 00:00:00 2001 From: Andre Destro Date: Mon, 27 Apr 2026 17:43:16 +0100 Subject: [PATCH 2/2] chore(release): prepare for 1.0.1 release --- CHANGELOG.md | 6 ++++++ pom.xml | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 707e5cc..f5a593b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 The changes documented here do not include those from the original repository. +## [1.0.1] + +### 2026-04-27 + +- Fix: gallery multiple selection returning duplicate `uri` and `webPath` on Android devices where the MediaStore `_data` column is unavailable. Each selected image now gets a unique cache filename via `UUID.randomUUID()`. + ## [1.0.0] ### 2026-04-10 diff --git a/pom.xml b/pom.xml index 5f82141..e489da6 100644 --- a/pom.xml +++ b/pom.xml @@ -6,5 +6,5 @@ 4.0.0 io.ionic.libs ioncamera-android - 1.0.0 - \ No newline at end of file + 1.0.1 +