fix: react-native crypto on android

This commit is contained in:
Jorrin
2024-02-11 19:40:20 +01:00
parent c52c3309fe
commit 2dd7eb49bb
3 changed files with 29 additions and 0 deletions

View File

@@ -49,6 +49,21 @@ const defineConfig = (): ExpoConfig => ({
initialOrientation: "DEFAULT",
},
],
[
"expo-build-properties",
{
android: {
packagingOptions: {
pickFirst: [
"lib/x86/libcrypto.so",
"lib/x86_64/libcrypto.so",
"lib/armeabi-v7a/libcrypto.so",
"lib/arm64-v8a/libcrypto.so",
],
},
},
},
],
],
});

View File

@@ -26,6 +26,7 @@
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"expo": "~50.0.5",
"expo-build-properties": "~0.11.1",
"expo-constants": "~15.4.5",
"expo-linking": "~6.2.2",
"expo-router": "~3.4.6",

13
pnpm-lock.yaml generated
View File

@@ -55,6 +55,9 @@ importers:
expo:
specifier: ~50.0.5
version: 50.0.5(@babel/core@7.23.9)(@react-native/babel-preset@0.73.20)
expo-build-properties:
specifier: ~0.11.1
version: 0.11.1(expo@50.0.5)
expo-constants:
specifier: ~15.4.5
version: 15.4.5(expo@50.0.5)
@@ -5491,6 +5494,16 @@ packages:
- supports-color
dev: false
/expo-build-properties@0.11.1(expo@50.0.5):
resolution: {integrity: sha512-m4j4aEjFaDuBE6KWYMxDhWgLzzSmpE7uHKAwtvXyNmRK+6JKF0gjiXi0sXgI5ngNppDQpsyPFMvqG7uQpRuCuw==}
peerDependencies:
expo: '*'
dependencies:
ajv: 8.12.0
expo: 50.0.5(@babel/core@7.23.9)(@react-native/babel-preset@0.73.20)
semver: 7.5.4
dev: false
/expo-constants@15.4.5(expo@50.0.5):
resolution: {integrity: sha512-1pVVjwk733hbbIjtQcvUFCme540v4gFemdNlaxM2UXKbfRCOh2hzgKN5joHMOysoXQe736TTUrRj7UaZI5Yyhg==}
peerDependencies: