Skip to content

Commit a76945c

Browse files
authored
chore(deps): change camera dependencies (#6644)
### Description Changes camera dependencies from react-native-camera to expo-camera. ### Test plan - [x] Tested locally on Android - [x] Tested in CI ### Related issues - ENG-302 ### Backwards compatibility Yes ### Network scalability N/A
1 parent ce79fc1 commit a76945c

File tree

3 files changed

+27
-15
lines changed

3 files changed

+27
-15
lines changed

app.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@ module.exports = () => {
190190
'org.gradle.jvmargs': '-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError',
191191
},
192192
],
193+
[
194+
'expo-camera',
195+
{
196+
recordAudioAndroid: false,
197+
},
198+
],
193199
...(firebaseEnabled
194200
? [
195201
'@react-native-firebase/app',

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"dependencies": {
3333
"@divvi/cookies": "^6.2.3",
34-
"@divvi/mobile": "^1.0.0-alpha.82",
34+
"@divvi/mobile": "^1.0.0-alpha.83",
3535
"@divvi/react-native-fs": "^2.20.1",
3636
"@divvi/react-native-keychain": "^9.2.2",
3737
"@interaxyz/react-native-webview": "^13.13.4",
@@ -61,17 +61,17 @@
6161
"@walletconnect/react-native-compat": "^2.19.0",
6262
"expo": "~52.0.37",
6363
"expo-build-properties": "~0.13.2",
64+
"expo-camera": "~16.0.18",
6465
"expo-constants": "~17.0.7",
6566
"expo-dev-client": "~5.0.12",
66-
"expo-font": "^13.0.4",
67+
"expo-font": "~13.0.4",
6768
"expo-splash-screen": "~0.27.7",
6869
"expo-status-bar": "~2.0.1",
6970
"lottie-react-native": "^5.1.6",
7071
"react": "18.3.1",
7172
"react-native": "0.76.5",
7273
"react-native-adjust": "^4.38.1",
7374
"react-native-auth0": "^3.2.1",
74-
"react-native-camera": "^4.2.1",
7575
"react-native-config": "^1.5.3",
7676
"react-native-contacts": "https://github.com/valora-inc/react-native-contacts#9940121",
7777
"react-native-device-info": "^13.2.0",

yarn.lock

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -873,13 +873,14 @@
873873
dependencies:
874874
invariant "^2.2.4"
875875

876-
"@divvi/mobile@^1.0.0-alpha.82":
877-
version "1.0.0-alpha.82"
878-
resolved "https://registry.yarnpkg.com/@divvi/mobile/-/mobile-1.0.0-alpha.82.tgz#be99d9723b11f08cda7420a0c4d0634b1299b86d"
879-
integrity sha512-rraVmfXwsKUz/k1zVHk8YQSvK/ZybEQIFNiwGpBhywtH0pKCtToUuS6XvTtgu4AQE+aEdSqhYRoJ+LSHR2oFwg==
876+
"@divvi/mobile@^1.0.0-alpha.83":
877+
version "1.0.0-alpha.85"
878+
resolved "https://registry.yarnpkg.com/@divvi/mobile/-/mobile-1.0.0-alpha.85.tgz#2168b7ccaabd8d11fef6cf735a2f44384f61de1b"
879+
integrity sha512-pZS5nGx7bAuisbGFzKiTtIvpTq3Jy+AHauUQibU7zDApYdbCCkDxBpjoIO65dq9tsWt9kWDF5sXFCcESwsr8+w==
880880
dependencies:
881881
"@badrap/result" "~0.2.13"
882882
"@crowdin/ota-client" "^2.0.1"
883+
"@divvi/referral-sdk" "^1.0.0"
883884
"@fiatconnect/fiatconnect-sdk" "^0.5.74"
884885
"@fiatconnect/fiatconnect-types" "^13.3.11"
885886
"@gorhom/bottom-sheet" "^5.1.1"
@@ -955,6 +956,11 @@
955956
resolved "https://registry.yarnpkg.com/@divvi/react-native-keychain/-/react-native-keychain-9.2.2.tgz#9379a89f4199e70b39eafdc60a2fd81037a65e25"
956957
integrity sha512-akPEW3R1e9eSyo0O2aoPf+vEpVx3KJ/s6GTQO/4tCTYEQZsaBZiCSc7FnS+HEO7xAWX6Zq66pnqYdywT0nBT3w==
957958

959+
"@divvi/referral-sdk@^1.0.0":
960+
version "1.0.0"
961+
resolved "https://registry.yarnpkg.com/@divvi/referral-sdk/-/referral-sdk-1.0.0.tgz#008e0e882003486dae7db12bd7943c382f3c9831"
962+
integrity sha512-X1i66AFQMJCu5jdOjg6mruSZ70YXolTNE1VHDr9tSHRnoR3EWki1Wtgb+A5fyE0AVl73uWZClqXlEGivyZbQ1w==
963+
958964
"@egjs/hammerjs@^2.0.17":
959965
version "2.0.17"
960966
resolved "https://registry.yarnpkg.com/@egjs/hammerjs/-/hammerjs-2.0.17.tgz#5dc02af75a6a06e4c2db0202cae38c9263895124"
@@ -6657,6 +6663,13 @@ expo-build-properties@~0.13.2:
66576663
ajv "^8.11.0"
66586664
semver "^7.6.0"
66596665

6666+
expo-camera@~16.0.18:
6667+
version "16.0.18"
6668+
resolved "https://registry.yarnpkg.com/expo-camera/-/expo-camera-16.0.18.tgz#5b54dc1a929c12732c585b137b04cef2b01dee3b"
6669+
integrity sha512-NP5u2yyc+wZc9GdUXH+jcEytyXZwBnHxItMwXoZQQxi4wgltwvs4XfSWjBtRZe1LngnhpBfPyPJV0aShjWlLDg==
6670+
dependencies:
6671+
invariant "^2.2.4"
6672+
66606673
expo-constants@~17.0.7:
66616674
version "17.0.7"
66626675
resolved "https://registry.yarnpkg.com/expo-constants/-/expo-constants-17.0.7.tgz#630d42ec7d142065aeb75958becb9a27e0907d24"
@@ -6705,7 +6718,7 @@ expo-file-system@~18.0.11:
67056718
dependencies:
67066719
web-streams-polyfill "^3.3.2"
67076720

6708-
expo-font@^13.0.4, expo-font@~13.0.4:
6721+
expo-font@~13.0.4:
67096722
version "13.0.4"
67106723
resolved "https://registry.yarnpkg.com/expo-font/-/expo-font-13.0.4.tgz#c60771446598ddfa98ac1d25244c916a089a99c9"
67116724
integrity sha512-eAP5hyBgC8gafFtprsz0HMaB795qZfgJWqTmU0NfbSin1wUuVySFMEPMOrTkTgmazU73v4Cb4x7p86jY1XXYUw==
@@ -10058,13 +10071,6 @@ react-native-auth0@^3.2.1:
1005810071
prop-types "^15.8.1"
1005910072
url "^0.11.0"
1006010073

10061-
react-native-camera@^4.2.1:
10062-
version "4.2.1"
10063-
resolved "https://registry.yarnpkg.com/react-native-camera/-/react-native-camera-4.2.1.tgz#caf74081f055e89d7e9b0cd5108965d808c60e90"
10064-
integrity sha512-+Vkql24PFYQfsPRznJCvPwJQfyzCnjlcww/iZ4Ej80bgivKjL9eU0IMQIXp4yi6XCrKi4voWXxIDPMupQZKeIQ==
10065-
dependencies:
10066-
prop-types "^15.6.2"
10067-
1006810074
react-native-config@^1.5.3:
1006910075
version "1.5.5"
1007010076
resolved "https://registry.yarnpkg.com/react-native-config/-/react-native-config-1.5.5.tgz#5977db58ff20b6fe9dd6fb28c815a9ba43d018d2"

0 commit comments

Comments
 (0)