From 7d86bba7f18cd58f790e723ce6047d3ff8eaba11 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 20 Dec 2024 21:17:58 +0000 Subject: [PATCH] Fix Android save to camera permissions --- patches/expo-media-library+17.0.3.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 patches/expo-media-library+17.0.3.patch diff --git a/patches/expo-media-library+17.0.3.patch b/patches/expo-media-library+17.0.3.patch new file mode 100644 index 0000000000..c7bb6b000c --- /dev/null +++ b/patches/expo-media-library+17.0.3.patch @@ -0,0 +1,19 @@ +diff --git a/node_modules/expo-media-library/android/src/main/java/expo/modules/medialibrary/MediaLibraryModule.kt b/node_modules/expo-media-library/android/src/main/java/expo/modules/medialibrary/MediaLibraryModule.kt +index b928b8f..7175cf6 100644 +--- a/node_modules/expo-media-library/android/src/main/java/expo/modules/medialibrary/MediaLibraryModule.kt ++++ b/node_modules/expo-media-library/android/src/main/java/expo/modules/medialibrary/MediaLibraryModule.kt +@@ -99,12 +99,12 @@ class MediaLibraryModule : Module() { + } + + AsyncFunction("createAssetAsync") { localUri: String, promise: Promise -> +- throwUnlessPermissionsGranted { ++ //throwUnlessPermissionsGranted { + withModuleScope(promise) { + CreateAsset(context, localUri, promise) + .execute() + } +- } ++ //} + } + + AsyncFunction("addAssetsToAlbumAsync") { assetsId: List, albumId: String, copyToAlbum: Boolean, promise: Promise ->