-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use pnpm patch for react-native-video and react-native-fast-crypto
- Loading branch information
1 parent
6304914
commit fec2759
Showing
12 changed files
with
113 additions
and
97 deletions.
There are no files selected for viewing
18 changes: 0 additions & 18 deletions
18
apps/ledger-live-mobile/scripts/patches/RNAnalytics.h.patch
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
apps/ledger-live-mobile/scripts/patches/RNFastCrypto.h.patch
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
apps/ledger-live-mobile/scripts/patches/react-native-video+5.2.0.patch
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
apps/ledger-live-mobile/scripts/patches/react-native-video.2575.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
libs/ledger-live-common/src/generated/deviceTransactionConfig.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/ios/RNFastCrypto.h b/ios/RNFastCrypto.h | ||
index 0a8f93d97e9d873b919d14060575bbd6b3cfb35c..884ca905cc412ba366a852805d25b0ee11e57311 100644 | ||
--- a/ios/RNFastCrypto.h | ||
+++ b/ios/RNFastCrypto.h | ||
@@ -2,7 +2,7 @@ | ||
#if __has_include("RCTBridgeModule.h") | ||
#import "RCTBridgeModule.h" | ||
#else | ||
-#import <RCTBridgeModule.h> | ||
+#import <React/RCTBridgeModule.h> | ||
#endif | ||
|
||
@interface RNFastCrypto : NSObject <RCTBridgeModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
diff --git a/android-exoplayer/build.gradle b/android-exoplayer/build.gradle | ||
index d005a58f293f29c7f87aa9482a42cac25a79c722..6a9922b095d56aaca163d8488f33cc23ae4f40b5 100644 | ||
--- a/android-exoplayer/build.gradle | ||
+++ b/android-exoplayer/build.gradle | ||
@@ -28,7 +28,7 @@ android { | ||
|
||
dependencies { | ||
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}" | ||
- implementation('com.google.android.exoplayer:exoplayer:2.13.2') { | ||
+ implementation('com.google.android.exoplayer:exoplayer:2.13.3') { | ||
exclude group: 'com.android.support' | ||
} | ||
|
||
@@ -37,7 +37,7 @@ dependencies { | ||
implementation "androidx.core:core:1.1.0" | ||
implementation "androidx.media:media:1.1.0" | ||
|
||
- implementation('com.google.android.exoplayer:extension-okhttp:2.13.2') { | ||
+ implementation('com.google.android.exoplayer:extension-okhttp:2.13.3') { | ||
exclude group: 'com.squareup.okhttp3', module: 'okhttp' | ||
} | ||
implementation 'com.squareup.okhttp3:okhttp:${OKHTTP_VERSION}' | ||
diff --git a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java | ||
index fe95fdf416c9499c6fb6970a100f9808d4b9d921..652f9ccb487791b64d9dd4963d67d121f3f3c503 100644 | ||
--- a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java | ||
+++ b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java | ||
@@ -183,10 +183,10 @@ class ReactExoplayerView extends FrameLayout implements | ||
} | ||
} | ||
}; | ||
- | ||
+ | ||
public double getPositionInFirstPeriodMsForCurrentWindow(long currentPosition) { | ||
Timeline.Window window = new Timeline.Window(); | ||
- if(!player.getCurrentTimeline().isEmpty()) { | ||
+ if(!player.getCurrentTimeline().isEmpty()) { | ||
player.getCurrentTimeline().getWindow(player.getCurrentWindowIndex(), window); | ||
} | ||
return window.windowStartTimeMs + currentPosition; | ||
@@ -947,7 +947,7 @@ class ReactExoplayerView extends FrameLayout implements | ||
// Special case for decoder initialization failures. | ||
MediaCodecRenderer.DecoderInitializationException decoderInitializationException = | ||
(MediaCodecRenderer.DecoderInitializationException) cause; | ||
- if (decoderInitializationException.codecInfo.name == null) { | ||
+ if (decoderInitializationException.codecInfo == null || decoderInitializationException.codecInfo.name == null) { | ||
if (decoderInitializationException.getCause() instanceof MediaCodecUtil.DecoderQueryException) { | ||
errorString = getResources().getString(R.string.error_querying_decoders); | ||
} else if (decoderInitializationException.secureDecoderRequired) { |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.