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/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 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); + } +