Skip to content

Commit

Permalink
Merge pull request #12510 from Expensify/jules-resolveAndroidBuildIssue
Browse files Browse the repository at this point in the history
[NO-QA] Resolve upstream ReactNative android build blocker
  • Loading branch information
luacmartins authored Nov 7, 2022
2 parents e5281fc + 26f9fe6 commit e50d8f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ allprojects {
configurations.all {
resolutionStrategy {
force 'org.xerial:sqlite-jdbc:3.34.0'

// Manually set the react-native version to resolve this upstream issue: https://github.com/facebook/react-native/issues/35210
def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
}
}
repositories {
Expand Down

0 comments on commit e50d8f4

Please sign in to comment.