-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37079 from staszekscp/expo-av-hybrid-patch
[HybridApp] Add patch for `expo-av` required to run HybridApp
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
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,17 @@ | ||
diff --git a/node_modules/expo-av/android/build.gradle b/node_modules/expo-av/android/build.gradle | ||
index 2d68ca6..c3fa3c5 100644 | ||
--- a/node_modules/expo-av/android/build.gradle | ||
+++ b/node_modules/expo-av/android/build.gradle | ||
@@ -7,10 +7,11 @@ apply plugin: 'maven-publish' | ||
group = 'host.exp.exponent' | ||
version = '13.10.4' | ||
|
||
+def REACT_NATIVE_PATH = this.hasProperty('reactNativeProject') ? this.reactNativeProject + '/node_modules/react-native/package.json' : 'react-native/package.json' | ||
def REACT_NATIVE_BUILD_FROM_SOURCE = findProject(":ReactAndroid") != null | ||
def REACT_NATIVE_DIR = REACT_NATIVE_BUILD_FROM_SOURCE | ||
? findProject(":ReactAndroid").getProjectDir().parent | ||
- : new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).parent | ||
+ : new File(["node", "--print", "require.resolve('${REACT_NATIVE_PATH}')"].execute(null, rootDir).text.trim()).parent | ||
|
||
def reactNativeArchitectures() { | ||
def value = project.getProperties().get("reactNativeArchitectures") |