Skip to content

Commit

Permalink
CHANGE: upgrade camera package to react-native-vision-camera FIX: [AP…
Browse files Browse the repository at this point in the history
…P-171], [APP-776] (#5178)

* init

* init

* more

* GRR!!! BARK BARK

* fixes

* revert

* fix

* changes

* changes

* hoist

* hook

* comment

* fix

* i actually did it

* cleanup 1

* get android build working

* remove old package

* move back to hook

* .

* .

* .

* build

* build fix

* provisioning profiles

* bump ios version

* .

* .

* oops

* language change

* final fixes

* Update project.pbxproj

---------

Co-authored-by: Ben Goldberg <bengoldberg@rainbow.me>
Co-authored-by: skylarbarrera <skylar.barrera@gmail.com>
  • Loading branch information
3 people authored Jan 18, 2024
1 parent 10956cd commit 4a5dd3a
Show file tree
Hide file tree
Showing 16 changed files with 294 additions and 318 deletions.
3 changes: 3 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
android:requestLegacyExternalStorage="true"
android:resizeableActivity="false"
>
<meta-data
android:name="com.google.mlkit.vision.DEPENDENCIES"
android:value="barcode" />
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@mipmap/ic_state_ic_notification"
Expand Down
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ buildscript {
compileSdkVersion = 33
targetSdkVersion = 33
ndkVersion = "23.1.7779620"
kotlin_version = "1.6.20"
kotlinVersion = "1.6.20"
kotlin_version = "1.7.21"
kotlinVersion = '1.7.21'
androidXCore = "1.6.0"
}

Expand All @@ -27,7 +27,7 @@ buildscript {
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.21"
classpath("de.undercouch:gradle-download-task:5.0.1")
classpath 'com.google.gms:google-services:4.3.15'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
Expand Down
1 change: 1 addition & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ target 'ImageNotification' do
end

target 'Rainbow' do

# Pods for Rainbow
config = use_native_modules!

Expand Down
153 changes: 79 additions & 74 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ PODS:
- Firebase/RemoteConfig (10.12.0):
- Firebase/CoreOnly
- FirebaseRemoteConfig (~> 10.12.0)
- FirebaseABTesting (10.13.0):
- FirebaseABTesting (10.19.0):
- FirebaseCore (~> 10.0)
- FirebaseAnalytics (10.12.0):
- FirebaseAnalytics/AdIdSupport (= 10.12.0)
Expand All @@ -67,7 +67,7 @@ PODS:
- GoogleUtilities/Logger (~> 7.8)
- FirebaseCoreExtension (10.12.0):
- FirebaseCore (~> 10.0)
- FirebaseCoreInternal (10.13.0):
- FirebaseCoreInternal (10.19.0):
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- FirebaseCrashlytics (10.12.0):
- FirebaseCore (~> 10.5)
Expand All @@ -77,7 +77,7 @@ PODS:
- GoogleUtilities/Environment (~> 7.8)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesObjC (~> 2.1)
- FirebaseInstallations (10.13.0):
- FirebaseInstallations (10.19.0):
- FirebaseCore (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
Expand All @@ -97,7 +97,7 @@ PODS:
- FirebaseInstallations (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- FirebaseSessions (10.13.0):
- FirebaseSessions (10.19.0):
- FirebaseCore (~> 10.5)
- FirebaseCoreExtension (~> 10.0)
- FirebaseInstallations (~> 10.0)
Expand Down Expand Up @@ -186,42 +186,42 @@ PODS:
- GoogleUtilities/Network (~> 7.11)
- "GoogleUtilities/NSData+zlib (~> 7.11)"
- nanopb (< 2.30910.0, >= 2.30908.0)
- GoogleDataTransport (9.2.5):
- GoogleDataTransport (9.3.0):
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities (7.11.5):
- GoogleUtilities/AppDelegateSwizzler (= 7.11.5)
- GoogleUtilities/Environment (= 7.11.5)
- GoogleUtilities/ISASwizzler (= 7.11.5)
- GoogleUtilities/Logger (= 7.11.5)
- GoogleUtilities/MethodSwizzler (= 7.11.5)
- GoogleUtilities/Network (= 7.11.5)
- "GoogleUtilities/NSData+zlib (= 7.11.5)"
- GoogleUtilities/Reachability (= 7.11.5)
- GoogleUtilities/SwizzlerTestHelpers (= 7.11.5)
- GoogleUtilities/UserDefaults (= 7.11.5)
- GoogleUtilities/AppDelegateSwizzler (7.11.5):
- GoogleUtilities (7.12.0):
- GoogleUtilities/AppDelegateSwizzler (= 7.12.0)
- GoogleUtilities/Environment (= 7.12.0)
- GoogleUtilities/ISASwizzler (= 7.12.0)
- GoogleUtilities/Logger (= 7.12.0)
- GoogleUtilities/MethodSwizzler (= 7.12.0)
- GoogleUtilities/Network (= 7.12.0)
- "GoogleUtilities/NSData+zlib (= 7.12.0)"
- GoogleUtilities/Reachability (= 7.12.0)
- GoogleUtilities/SwizzlerTestHelpers (= 7.12.0)
- GoogleUtilities/UserDefaults (= 7.12.0)
- GoogleUtilities/AppDelegateSwizzler (7.12.0):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (7.11.5):
- GoogleUtilities/Environment (7.12.0):
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/ISASwizzler (7.11.5)
- GoogleUtilities/Logger (7.11.5):
- GoogleUtilities/ISASwizzler (7.12.0)
- GoogleUtilities/Logger (7.12.0):
- GoogleUtilities/Environment
- GoogleUtilities/MethodSwizzler (7.11.5):
- GoogleUtilities/MethodSwizzler (7.12.0):
- GoogleUtilities/Logger
- GoogleUtilities/Network (7.11.5):
- GoogleUtilities/Network (7.12.0):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (7.11.5)"
- GoogleUtilities/Reachability (7.11.5):
- "GoogleUtilities/NSData+zlib (7.12.0)"
- GoogleUtilities/Reachability (7.12.0):
- GoogleUtilities/Logger
- GoogleUtilities/SwizzlerTestHelpers (7.11.5):
- GoogleUtilities/SwizzlerTestHelpers (7.12.0):
- GoogleUtilities/MethodSwizzler
- GoogleUtilities/UserDefaults (7.11.5):
- GoogleUtilities/UserDefaults (7.12.0):
- GoogleUtilities/Logger
- hermes-engine (0.72.3):
- hermes-engine/Pre-built (= 0.72.3)
Expand All @@ -233,34 +233,34 @@ PODS:
- KTVHTTPCache (2.0.1):
- KTVCocoaHTTPServer
- libevent (2.1.12)
- libwebp (1.3.1):
- libwebp/demux (= 1.3.1)
- libwebp/mux (= 1.3.1)
- libwebp/sharpyuv (= 1.3.1)
- libwebp/webp (= 1.3.1)
- libwebp/demux (1.3.1):
- libwebp (1.3.2):
- libwebp/demux (= 1.3.2)
- libwebp/mux (= 1.3.2)
- libwebp/sharpyuv (= 1.3.2)
- libwebp/webp (= 1.3.2)
- libwebp/demux (1.3.2):
- libwebp/webp
- libwebp/mux (1.3.1):
- libwebp/mux (1.3.2):
- libwebp/demux
- libwebp/sharpyuv (1.3.1)
- libwebp/webp (1.3.1):
- libwebp/sharpyuv (1.3.2)
- libwebp/webp (1.3.2):
- libwebp/sharpyuv
- MMKV (1.3.0):
- MMKVCore (~> 1.3.0)
- MMKVCore (1.3.0)
- MMKV (1.3.2):
- MMKVCore (~> 1.3.2)
- MMKVCore (1.3.2)
- MultiplatformBleAdapter (0.1.9)
- nanopb (2.30909.0):
- nanopb/decode (= 2.30909.0)
- nanopb/encode (= 2.30909.0)
- nanopb/decode (2.30909.0)
- nanopb/encode (2.30909.0)
- nanopb (2.30909.1):
- nanopb/decode (= 2.30909.1)
- nanopb/encode (= 2.30909.1)
- nanopb/decode (2.30909.1)
- nanopb/encode (2.30909.1)
- OpenSSL-Universal (1.1.1100)
- PanModal (1.2.7)
- Permission-Camera (3.6.1):
- Permission-Camera (3.10.1):
- RNPermissions
- Permission-FaceID (3.6.1):
- Permission-FaceID (3.10.1):
- RNPermissions
- Permission-Notifications (3.6.1):
- Permission-Notifications (3.10.1):
- RNPermissions
- Plaid (4.4.0)
- PromisesObjC (2.3.1)
Expand Down Expand Up @@ -578,14 +578,6 @@ PODS:
- react-native-branch (5.3.1):
- Branch (= 1.40.2)
- React-Core
- react-native-camera (4.2.1):
- React-Core
- react-native-camera/RCT (= 4.2.1)
- react-native-camera/RN (= 4.2.1)
- react-native-camera/RCT (4.2.1):
- React-Core
- react-native-camera/RN (4.2.1):
- React-Core
- react-native-cameraroll (5.7.1):
- React-Core
- react-native-change-icon (4.0.0):
Expand Down Expand Up @@ -653,6 +645,10 @@ PODS:
- React-Core
- react-native-widgetkit (1.0.9):
- React
- react-native-worklets-core (0.2.4):
- React
- React-callinvoker
- React-Core
- React-NativeModulesApple (0.72.3):
- hermes-engine
- React-callinvoker
Expand Down Expand Up @@ -829,7 +825,7 @@ PODS:
- React-Core
- RNOS (1.2.8):
- React
- RNPermissions (3.6.1):
- RNPermissions (3.10.1):
- React-Core
- RNReactNativeHapticFeedback (1.11.0):
- React-Core
Expand Down Expand Up @@ -905,6 +901,11 @@ PODS:
- TOCropViewController (2.6.1)
- ToolTipMenu (5.2.1):
- React
- VisionCamera (3.6.4):
- React
- React-callinvoker
- React-Core
- react-native-worklets-core
- Yoga (1.14.0)
- YogaKit (1.18.1):
- Yoga (~> 1.14)
Expand Down Expand Up @@ -978,7 +979,6 @@ DEPENDENCIES:
- react-native-ble-plx (from `../node_modules/react-native-ble-plx`)
- "react-native-blur (from `../node_modules/@react-native-community/blur`)"
- react-native-branch (from `../node_modules/react-native-branch`)
- react-native-camera (from `../node_modules/react-native-camera`)
- "react-native-cameraroll (from `../node_modules/@react-native-camera-roll/camera-roll`)"
- react-native-change-icon (from `../node_modules/react-native-change-icon`)
- react-native-cloud-fs (from `../node_modules/react-native-cloud-fs`)
Expand All @@ -1005,6 +1005,7 @@ DEPENDENCIES:
- react-native-video-cache (from `../node_modules/react-native-video-cache`)
- react-native-webview (from `../node_modules/react-native-webview`)
- react-native-widgetkit (from `../node_modules/react-native-widgetkit`)
- react-native-worklets-core (from `../node_modules/react-native-worklets-core`)
- React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`)
- React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
- React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
Expand Down Expand Up @@ -1061,6 +1062,7 @@ DEPENDENCIES:
- swift-vibrant
- TcpSockets (from `../node_modules/react-native-tcp`)
- ToolTipMenu (from `../node_modules/react-native-tooltip`)
- VisionCamera (from `../node_modules/react-native-vision-camera`)
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)

SPEC REPOS:
Expand Down Expand Up @@ -1186,8 +1188,6 @@ EXTERNAL SOURCES:
:path: "../node_modules/@react-native-community/blur"
react-native-branch:
:path: "../node_modules/react-native-branch"
react-native-camera:
:path: "../node_modules/react-native-camera"
react-native-cameraroll:
:path: "../node_modules/@react-native-camera-roll/camera-roll"
react-native-change-icon:
Expand Down Expand Up @@ -1240,6 +1240,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-webview"
react-native-widgetkit:
:path: "../node_modules/react-native-widgetkit"
react-native-worklets-core:
:path: "../node_modules/react-native-worklets-core"
React-NativeModulesApple:
:path: "../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios"
React-perflogger:
Expand Down Expand Up @@ -1348,6 +1350,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-tcp"
ToolTipMenu:
:path: "../node_modules/react-native-tooltip"
VisionCamera:
:path: "../node_modules/react-native-vision-camera"
Yoga:
:path: "../node_modules/react-native/ReactCommon/yoga"

Expand All @@ -1370,16 +1374,16 @@ SPEC CHECKSUMS:
FBLazyVector: 4cce221dd782d3ff7c4172167bba09d58af67ccb
FBReactNativeSpec: c6bd9e179757b3c0ecf815864fae8032377903ef
Firebase: 07150e75d142fb9399f6777fa56a187b17f833a0
FirebaseABTesting: 86ac5a4fc749088bb4d55a1cbfb2c4cb42c6d5de
FirebaseABTesting: bfa3b384b68cee10a89183649c64cd7998a37a12
FirebaseAnalytics: 0270389efbe3022b54ec4588862dabec3477ee98
FirebaseCore: f86a1394906b97ac445ae49c92552a9425831bed
FirebaseCoreExtension: 0ce5ac36042001cfa233ce7bfa28e5c313cf80f4
FirebaseCoreInternal: b342e37cd4f5b4454ec34308f073420e7920858e
FirebaseCoreInternal: b444828ea7cfd594fca83046b95db98a2be4f290
FirebaseCrashlytics: c4d111b7430c49744c74bcc6346ea00868661ac8
FirebaseInstallations: b28af1b9f997f1a799efe818c94695a3728c352f
FirebaseInstallations: 033d199474164db20c8350736842a94fe717b960
FirebaseMessaging: bb2c4f6422a753038fe137d90ae7c1af57251316
FirebaseRemoteConfig: bc7f260e6596956fafbb532443c19bd3c30f5258
FirebaseSessions: 991fb4c20b3505eef125f7cbfa20a5b5b189c2a4
FirebaseSessions: e5f4caa188dc8bc6142abc974355be75b042215e
FLAnimatedImage: bbf914596368867157cc71b38a8ec834b3eeb32b
Flipper: 6edb735e6c3e332975d1b17956bcc584eccf5818
Flipper-Boost-iOSX: fd1e2b8cbef7e662a122412d7ac5f5bea715403c
Expand All @@ -1392,23 +1396,23 @@ SPEC CHECKSUMS:
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
GoogleAppMeasurement: 2d800fab85e7848b1e66a6f8ce5bca06c5aad892
GoogleDataTransport: 54dee9d48d14580407f8f5fbf2f496e92437a2f2
GoogleUtilities: 13e2c67ede716b8741c7989e26893d151b2b2084
GoogleDataTransport: 57c22343ab29bc686febbf7cbb13bad167c2d8fe
GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34
hermes-engine: 10fbd3f62405c41ea07e71973ea61e1878d07322
JWT: ef71dfb03e1f842081e64dc42eef0e164f35d251
KTVCocoaHTTPServer: df8d7b861e603ff8037e9b2138aca2563a6b768d
KTVHTTPCache: 588c3eb16f6bd1e6fde1e230dabfb7bd4e490a4d
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
libwebp: 33dc822fbbf4503668d09f7885bbfedc76c45e96
MMKV: 9c6c3fa4ddd849f28c7b9a5c9d23aab84f14ee35
MMKVCore: 9bb7440b170181ac5b81f542ac258103542e693d
libwebp: 1786c9f4ff8a279e4dac1e8f385004d5fc253009
MMKV: f21593c0af4b3f2a0ceb8f820f28bb639ea22bb7
MMKVCore: 31b4cb83f8266467eef20a35b6d78e409a11060d
MultiplatformBleAdapter: 5a6a897b006764392f9cef785e4360f54fb9477d
nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
PanModal: 421fe72d4af5b7e9016aaa3b4db94a2fb71756d3
Permission-Camera: bf6791b17c7f614b6826019fcfdcc286d3a107f6
Permission-FaceID: e70223280292a1a5e4b8ad943b70cd9229a7d2c3
Permission-Notifications: 150484ae586eb9be4e32217582a78350a9bb31c3
Permission-Camera: 9b70902f34a83c10e198d2d01f0e453e58842776
Permission-FaceID: 86fb226a8ed2577db819299177a72cba54bb3327
Permission-Notifications: 817390e18898f34adad940cd4141e771e77086ea
Plaid: 29a5506900d372d6d3d77199090b9a7a3af475bd
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4
PromisesSwift: 28dca69a9c40779916ac2d6985a0192a5cb4a265
Expand All @@ -1432,7 +1436,6 @@ SPEC CHECKSUMS:
react-native-ble-plx: f10240444452dfb2d2a13a0e4f58d7783e92d76e
react-native-blur: cfdad7b3c01d725ab62a8a729f42ea463998afa2
react-native-branch: 960c897d57b9f4912b08b9d06a25284b6e9879da
react-native-camera: 3eae183c1d111103963f3dd913b65d01aef8110f
react-native-cameraroll: aff50ec1df9d054626dceca9336e6644e153d32f
react-native-change-icon: ea9bb7255b09e89f41cbf282df16eade91ab1833
react-native-cloud-fs: e7103d1f693c57b481f820fa5e6b6b0522a5a31e
Expand All @@ -1459,6 +1462,7 @@ SPEC CHECKSUMS:
react-native-video-cache: 0f8b1b2195f234eabd507cfebdd91c2e82695008
react-native-webview: b85dfe0bf95bef83e82fc354d6987c80fed5e7ad
react-native-widgetkit: efb6680df237463bbe1be3a4d1a1578a1b0bb08f
react-native-worklets-core: b4094f51cb2bc649e297206425cb8956f4945e3e
React-NativeModulesApple: c57f3efe0df288a6532b726ad2d0322a9bf38472
React-perflogger: 6bd153e776e6beed54c56b0847e1220a3ff92ba5
React-RCTActionSheet: c0b62af44e610e69d9a2049a682f5dba4e9dff17
Expand Down Expand Up @@ -1499,7 +1503,7 @@ SPEC CHECKSUMS:
RNLanguages: 962e562af0d34ab1958d89bcfdb64fafc37c513e
RNNotifee: 8ee6ddabfc44b16600b978983162e0d4db20ce19
RNOS: 31db6fa4a197d179afbba9e6b4d28d450a7f250b
RNPermissions: dcdb7b99796bbeda6975a6e79ad519c41b251b1c
RNPermissions: 4e3714e18afe7141d000beae3755e5b5fb2f5e05
RNReactNativeHapticFeedback: 653a8c126a0f5e88ce15ffe280b3ff37e1fbb285
RNReanimated: 726395a2fa2f04cea340274ba57a4e659bc0d9c1
RNScreens: 6a8a3c6b808aa48dca1780df7b73ea524f602c63
Expand All @@ -1521,9 +1525,10 @@ SPEC CHECKSUMS:
TcpSockets: bd31674146c0931a064fc254a59812dfd1a73ae0
TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863
ToolTipMenu: 8ac61aded0fbc4acfe7e84a7d0c9479d15a9a382
VisionCamera: db57ca079c4f933f1ddd07f2f8fb2d171a826b85
Yoga: 8796b55dba14d7004f980b54bcc9833ee45b28ce
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: fbcce4e8b00962de3fda1a95b6da41d278f831f4
PODFILE CHECKSUM: 8b17c4fa0961f3117e12254fd96fb54c00880084

COCOAPODS: 1.12.1
2 changes: 1 addition & 1 deletion ios/Rainbow/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
</dict>
</dict>
<key>NSCameraUsageDescription</key>
<string>Accesses the Camera to scan QR codes for connecting to dApps and discovering wallets</string>
<string>This lets you scan QR codes for connecting to dApps and discovering wallets</string>
<key>NSFaceIDUsageDescription</key>
<string>Used to sign transactions and access wallet keys</string>
<key>NSPhotoLibraryAddUsageDescription</key>
Expand Down
Loading

0 comments on commit 4a5dd3a

Please sign in to comment.