From 215a2cafba294e529c44cac3ff6ada7eabaf3f6b Mon Sep 17 00:00:00 2001 From: Swiss Bitcoin Pay Date: Thu, 10 Apr 2025 16:09:04 +0200 Subject: [PATCH 1/2] Fix Ledger USB on Android 14 --- .env | 4 +-- .../@ledgerhq+react-native-hid+6.32.4.patch | 36 +++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 patches/@ledgerhq+react-native-hid+6.32.4.patch diff --git a/.env b/.env index 92372ed2..3115b7dd 100644 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ -APP_VERSION=2.5.0 +APP_VERSION=2.5.1 -APP_BUILD_NUMBER=426 \ No newline at end of file +APP_BUILD_NUMBER=427 \ No newline at end of file diff --git a/patches/@ledgerhq+react-native-hid+6.32.4.patch b/patches/@ledgerhq+react-native-hid+6.32.4.patch new file mode 100644 index 00000000..95a7d638 --- /dev/null +++ b/patches/@ledgerhq+react-native-hid+6.32.4.patch @@ -0,0 +1,36 @@ +diff --git a/node_modules/@ledgerhq/react-native-hid/android/src/main/java/com/ledgerwallet/hid/ReactHIDModule.java b/node_modules/@ledgerhq/react-native-hid/android/src/main/java/com/ledgerwallet/hid/ReactHIDModule.java +index 349bf39..92b5b1e 100644 +--- a/node_modules/@ledgerhq/react-native-hid/android/src/main/java/com/ledgerwallet/hid/ReactHIDModule.java ++++ b/node_modules/@ledgerhq/react-native-hid/android/src/main/java/com/ledgerwallet/hid/ReactHIDModule.java +@@ -7,6 +7,7 @@ import android.content.Intent; + import android.content.IntentFilter; + import android.hardware.usb.UsbDevice; + import android.hardware.usb.UsbManager; ++import android.os.Build; + + import androidx.annotation.NonNull; + +@@ -58,6 +59,11 @@ public class ReactHIDModule extends ReactContextBaseJavaModule { + .emit(event, buildMapFromDevice(device)); + } + }; ++ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { ++ getReactApplicationContext().registerReceiver(receiver, filter, Context.RECEIVER_NOT_EXPORTED); ++ return; ++ } ++ + getReactApplicationContext().registerReceiver(receiver, filter); + } + +@@ -213,6 +219,11 @@ public class ReactHIDModule extends ReactContextBaseJavaModule { + unregisterReceiver(this); + } + }; ++ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { ++ getReactApplicationContext().registerReceiver(receiver, intFilter, Context.RECEIVER_NOT_EXPORTED); ++ return; ++ } ++ + getReactApplicationContext().registerReceiver(receiver, intFilter); + } + From 85f5af33905297adeab44c62058e0f901f6fe913 Mon Sep 17 00:00:00 2001 From: Swiss Bitcoin Pay Date: Fri, 18 Apr 2025 10:16:25 +0200 Subject: [PATCH 2/2] changelog --- fastlane/metadata/android/en-US/changelogs/427.txt | 2 ++ fastlane/metadata/android/fr-FR/changelogs/427.txt | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 fastlane/metadata/android/en-US/changelogs/427.txt create mode 100644 fastlane/metadata/android/fr-FR/changelogs/427.txt diff --git a/fastlane/metadata/android/en-US/changelogs/427.txt b/fastlane/metadata/android/en-US/changelogs/427.txt new file mode 100644 index 00000000..e85e3383 --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/427.txt @@ -0,0 +1,2 @@ +- Fixed one Ledger connection issue on Android 14 +- New translations in German, Spanish, Italian, Finnish, French and Portuguese \ No newline at end of file diff --git a/fastlane/metadata/android/fr-FR/changelogs/427.txt b/fastlane/metadata/android/fr-FR/changelogs/427.txt new file mode 100644 index 00000000..8d8cff6e --- /dev/null +++ b/fastlane/metadata/android/fr-FR/changelogs/427.txt @@ -0,0 +1,2 @@ +- Corrigé un problème de connection des Ledger sur Android 14 +- Amélioration des traductions en Allemand, Espagnol, Italien, Finnois, Français et Portuguais \ No newline at end of file