Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
[Fixes #258] Pin dependencies and patch build.gradle for Windows/Andr…
Browse files Browse the repository at this point in the history
…oid (#265)
  • Loading branch information
francisli authored Feb 14, 2023
1 parent 4137af9 commit a3686a3
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 51 deletions.
8 changes: 8 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ buildscript {
}
}

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

allprojects {
configurations.all {
resolutionStrategy {
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
}
}

repositories {
mavenLocal()
maven {
Expand Down
85 changes: 36 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"react-native-localization": "^2.3.1",
"react-native-progress": "^4.0.3",
"react-native-push-notification": "^3.5.2",
"react-native-reanimated": "^2.2.0",
"react-native-reanimated": "2.2.0",
"react-native-safe-area-context": "^3.2.0",
"react-native-screens": "^3.4.0",
"react-native-screens": "3.4.0",
"react-native-side-menu-updated": "^1.3.2",
"react-native-splash-screen": "^3.2.0",
"react-native-vector-icons": "^6.6.0",
Expand Down

0 comments on commit a3686a3

Please sign in to comment.