Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgtz committed Nov 14, 2022
1 parent cf44690 commit 5aab711
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions example/android/build.gradle
@@ -1,5 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

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())

buildscript {
ext {
buildToolsVersion = '30.0.2'
Expand Down Expand Up @@ -37,4 +39,11 @@ allprojects {
google()
maven { url 'https://www.jitpack.io' }
}

configurations.all {
resolutionStrategy {
// Remove this override in 0.65+, as a proper fix is included in react-native itself.
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
}
}
}

0 comments on commit 5aab711

Please sign in to comment.