From f9af8d116c399c121a63bdd500cdb429f1179f75 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Fri, 28 Nov 2025 11:09:31 +0500 Subject: [PATCH] mobile: fix crash on pick image or file --- ...react-native-actions-shortcuts+1.0.1.patch | 27 +++++++++++++++---- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/apps/mobile/patches/react-native-actions-shortcuts+1.0.1.patch b/apps/mobile/patches/react-native-actions-shortcuts+1.0.1.patch index ff0695914..2ca0637ca 100644 --- a/apps/mobile/patches/react-native-actions-shortcuts+1.0.1.patch +++ b/apps/mobile/patches/react-native-actions-shortcuts+1.0.1.patch @@ -1,3 +1,22 @@ +diff --git a/node_modules/react-native-actions-shortcuts/android/.settings/org.eclipse.buildship.core.prefs b/node_modules/react-native-actions-shortcuts/android/.settings/org.eclipse.buildship.core.prefs +deleted file mode 100644 +index 8c253d6..0000000 +--- a/node_modules/react-native-actions-shortcuts/android/.settings/org.eclipse.buildship.core.prefs ++++ /dev/null +@@ -1,13 +0,0 @@ +-arguments= +-auto.sync=false +-build.scans.enabled=false +-connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(6.0)) +-connection.project.dir= +-eclipse.preferences.version=1 +-gradle.user.home= +-java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home +-jvm.arguments= +-offline.mode=false +-override.workspace.settings=true +-show.console.view=true +-show.executions.view=true diff --git a/node_modules/react-native-actions-shortcuts/android/build.gradle b/node_modules/react-native-actions-shortcuts/android/build.gradle index 19bd311..642ddbc 100644 --- a/node_modules/react-native-actions-shortcuts/android/build.gradle @@ -3788,7 +3807,7 @@ index b438823..ba03915 100644 } diff --git a/node_modules/react-native-actions-shortcuts/android/src/main/java/com/reactnativeshortcuts/ShortcutsModule.kt b/node_modules/react-native-actions-shortcuts/android/src/main/java/com/reactnativeshortcuts/ShortcutsModule.kt -index ec847cc..a4686a0 100644 +index ec847cc..f101793 100644 --- a/node_modules/react-native-actions-shortcuts/android/src/main/java/com/reactnativeshortcuts/ShortcutsModule.kt +++ b/node_modules/react-native-actions-shortcuts/android/src/main/java/com/reactnativeshortcuts/ShortcutsModule.kt @@ -28,18 +28,18 @@ class ShortcutsModule(reactContext: ReactApplicationContext) : @@ -3853,7 +3872,7 @@ index ec847cc..a4686a0 100644 shortcutManager?.removeAllDynamicShortcuts() } -@@ -145,6 +145,19 @@ class ShortcutsModule(reactContext: ReactApplicationContext) : +@@ -145,6 +145,17 @@ class ShortcutsModule(reactContext: ReactApplicationContext) : fun isSupported(): Boolean { return Build.VERSION.SDK_INT >= 25 } @@ -3863,9 +3882,7 @@ index ec847cc..a4686a0 100644 + requestCode: Int, + resultCode: Int, + data: Intent? -+ ) { -+ TODO("Not yet implemented") -+ } ++ ) {} + + override fun onNewIntent(intent: Intent) { + emitEvent(intent)