diff --git a/README.md b/README.md index 89cd7a7..af979aa 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,11 @@ This library uses a unique **worklet bundle** to run intensive cryptographic ope ## Installation ### 1. Install the Core Library + +Install the `expo-crypto` version compatible with your app's Expo SDK, then install the core library: + ```bash +npx expo install expo-crypto npm install @tetherto/wdk-react-native-core ``` @@ -236,4 +240,4 @@ See the [Contributing Guide](CONTRIBUTING.md) for details on how to build, test, ## License -This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details. \ No newline at end of file +This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details. diff --git a/package-lock.json b/package-lock.json index 9dffb21..f4803be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,6 @@ "@tanstack/react-query": "^5.101.0", "@tetherto/pear-wrk-wdk": "1.0.0-beta.10", "@tetherto/wdk-react-native-secure-storage": "1.0.0-beta.4", - "expo-crypto": "^56.0.4", "immer": "^11.1.8", "react-native-mmkv": "^4.3.1", "zod": "^4.4.3", @@ -31,6 +30,7 @@ "eslint": "^9.39.4", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^7.0.1", + "expo-crypto": "^56.0.4", "globals": "^17.4.0", "jest": "^29.7.0", "jest-environment-node": "^29.7.0", @@ -42,6 +42,7 @@ "typescript-eslint": "^8.57.2" }, "peerDependencies": { + "expo-crypto": ">=55.0.0 <57.0.0", "react-native": ">=0.70.0", "react-native-bare-kit": ">=0.14.5" } @@ -8306,6 +8307,7 @@ "version": "56.0.4", "resolved": "https://registry.npmjs.org/expo-crypto/-/expo-crypto-56.0.4.tgz", "integrity": "sha512-fRNEhoXRXgAWBpe3/hq5X+KXTit3OZqdiAGts1YvNEUHQb+H5591mpPac0Yw+sZg9pXcrjRnzo5AxvZaENpc7g==", + "dev": true, "license": "MIT", "peerDependencies": { "expo": "*" diff --git a/package.json b/package.json index 00fac28..35c8a4b 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,6 @@ "@tanstack/react-query": "^5.101.0", "@tetherto/pear-wrk-wdk": "1.0.0-beta.10", "@tetherto/wdk-react-native-secure-storage": "1.0.0-beta.4", - "expo-crypto": "^56.0.4", "immer": "^11.1.8", "react-native-mmkv": "^4.3.1", "zod": "^4.4.3", @@ -77,6 +76,7 @@ "eslint": "^9.39.4", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^7.0.1", + "expo-crypto": "^56.0.4", "globals": "^17.4.0", "jest": "^29.7.0", "jest-environment-node": "^29.7.0", @@ -95,6 +95,7 @@ "react-test-renderer": "18.3.1" }, "peerDependencies": { + "expo-crypto": ">=55.0.0 <57.0.0", "react-native": ">=0.70.0", "react-native-bare-kit": ">=0.14.5" }