diff --git a/.solidarity b/.solidarity new file mode 100644 index 000000000..561f1505c --- /dev/null +++ b/.solidarity @@ -0,0 +1,79 @@ +{ + "$schema": "http://json.schemastore.org/solidaritySchema", + "config" : { + "output" : "moderate" + }, + "requirements": { + "Node": [ + { + "rule": "cli", + "binary": "node", + "semver": ">=16.0.0", + "error": "install node using nvm https://github.com/nvm-sh/nvm#installing-and-updating" + }, + { + "rule": "cli", + "binary": "npm", + "semver": ">=8.5.5 <9.0.0", + "error": "install npm 8.5.5 `npm i -g npm@8.5.5" + } + ], + "Android": [ + { + "rule": "cli", + "binary": "emulator" + }, + { + "rule": "cli", + "binary": "android" + }, + { + "rule": "env", + "variable": "ANDROID_HOME", + "error": "The ANDROID_HOME environment variable must be set to your local SDK. Refer to getting started docs for help." + } + ], + "iOS": [ + { + "rule": "cli", + "binary": "watchman", + "error": "install watchman `brew install watchman`", + "platform": "darwin" + }, + { + "rule": "cli", + "binary": "xcodebuild", + "semver": ">=13.0", + "error": "install xcode", + "platform": "darwin" + }, + { + "rule": "cli", + "binary": "ruby", + "semver": ">=2.7.1 <3.0.0", + "error": "visit rvm install https://rvm.io/rvm/install", + "platform": "darwin" + }, + { + "rule": "cli", + "binary": "bundler", + "semver": "2.1.4", + "error": "install watchman `gem install bundler --version 2.1.4`", + "platform": "darwin" + }, + { + "rule": "cli", + "binary": "pod", + "semver": "1.11.3", + "platform": "darwin" + } + ], + "Git email": [ + { + "rule": "shell", + "command": "git config user.email", + "match": ".+@.+" + } + ] + } +} diff --git a/package-lock.json b/package-lock.json index 921e68c3a..2001000d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29630,7 +29630,7 @@ "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz", "integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==", "requires": { - "@types/react": "*", + "@types/react": "^18.0.15", "hoist-non-react-statics": "^3.3.0" } }, diff --git a/package.json b/package.json index d2a7d6480..bc0497507 100644 --- a/package.json +++ b/package.json @@ -193,6 +193,7 @@ "mmjstool": "mmjstool", "pod-install": "cd ios && bundle exec pod install", "postinstall": "patch-package && ./scripts/postinstall.sh", + "preinstall": "npx solidarity", "prestorybook": "rnstl", "start": "react-native start", "storybook": "start-storybook -p 7007", @@ -202,13 +203,34 @@ "tsc": "NODE_OPTIONS=--max_old_space_size=12000 tsc --noEmit", "updatesnapshot": "jest --updateSnapshot" }, - "config": { - "react-native-storybook-loader": { - "searchDir": [ - "./app/components" - ], - "pattern": "**/*.stories.@(js|jsx|ts|tsx)", - "outputFile": "./storybook/storyLoader.js" + "overrides": { + "@nozbe/with-observables": { + "@types/react": "^18.0.15", + "react": "^18.2.0" + }, + "@react-native-community/cameraroll": { + "react": "^18.2.0" + }, + "@rudderstack/rudder-sdk-react-native": { + "react-native": "^0.69.0" + }, + "@testing-library/react-hooks": { + "@types/react": "^18.0.15", + "react": "^18.2.0", + "react-test-renderer": "^18.2.0" + }, + "react-native": { + "react": "^18.2.0" + }, + "react-native-elements": { + "react-native-safe-area-context": "^4.3.1" + }, + "react-native-fast-image": { + "react": "^18.2.0" + }, + "rn-placeholder": { + "react": "^18.2.0", + "react-native": "^0.69.0" } } }