Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHANGE: upgrade camera package to react-native-vision-camera FIX: [APP-171], [APP-776] #5178

Merged
merged 41 commits into from Jan 18, 2024

Conversation

BrodyHughes
Copy link
Member

@BrodyHughes BrodyHughes commented Nov 3, 2023

Fixes APP-171

Goals:

I believe this PR accomplishes all three of these. Things I also had to do to make the new package work:

  • bump Kotlin version
  • update some patches to point to the new Kotlin version

Remaining concerns for eng:

  • How should I handle inline styles?

POW:

In the video I test closing by swiping and by the 'x' button. The green status light and the torch both properly turn off.

RPReplay_Final1704226814.MP4

Copy link

socket-security bot commented Nov 6, 2023

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
react-native-worklets-core 0.2.4 filesystem, environment +0 355 kB chrfalch
react-native-vision-camera 3.6.4 None +1 1.22 MB mrousavy
react-native-permissions 3.6.1...3.10.1 None +0/-0 518 kB zoontek

🚮 Removed packages: react-native-camera@4.2.1

…brody/QR-code-scanner-fixes

* 'develop' of https://github.com/rainbow-me/rainbow:
  [PATCH]: react-native-fast-image iOS 17 spec (#5188)
  Feature: Add remote promo sheet (#5140)
  mints: fix insufficient eth check (#5186)
  sends: fix prev sends logic (#5185)
  Update copy for an Error Occurred message for Support (#5187)
  Fixes for activity list coin icons and migrating some components to network instead of assetType (#5143)
  audit: axios + reservior client bump (#5184)
  bump to v1.9.10 (#5183)
  nonces: reset nonces (#5170)
  Cleanup unused coinrow components (#5142)
  reviews: bump watch wallet threshold (#5181)
  lang: fix english revert (#5182)
  WC: enabled eth_sign but only for connections (#5180)
  wc: use methodRegistry on all networks (#5179)
  bump to v1.9.9 (#5173)
  walletconnect: sanitize 712 signs (#5159)
Copy link

linear bot commented Nov 15, 2023

APP-171 camera light is staying on after making a WC link in Rainbow

The camera light is staying on after making a WC link in Rainbow

Anyone else see that? is keeping the camera on a bug?

Steps to reproduce - connect to a site like RainbowKit.com using WalletConnect and the Rainbow app.
The green camera light will stay on after leaving the QR scanner screen, and if you pull down to open the Control Center on your phone it will say Rainbow is recording.

@BrodyHughes BrodyHughes marked this pull request as ready for review November 15, 2023 23:13
@BrodyHughes BrodyHughes changed the title Brody/qr code scanner fixes CHANGE: upgrade camera package to react-native-vision-camera FIX: [APP-171], [APP-776] Nov 15, 2023
…brody/QR-code-scanner-fixes

* 'develop' of https://github.com/rainbow-me/rainbow:
  v bump 1.9.11 (#5204)
  Simulation fixes (#5194)
  [Android]: Random bug fixes (#5195)
  revert onpress (#5193)
  wc: tx simulation (#5177)
  [APP-917]: Minimum recieved shown in wei not in ETH on eth to weth swap on Arbitrum in latest iOS prod (#5192)
  RPC Proxy (#5169)
  . (#5191)
  [Android] Fix: Hide Navigation & Status bar (#5150)
…brody/QR-code-scanner-fixes

* 'develop' of https://github.com/rainbow-me/rainbow:
  chore: i18n updates (#5292)
  bump version to 1.9.13 (#5303)
  3s race (#5302)
  remote config overhaul (#5297)
  fix lint (#5296)
  remove the need for switching to hide splash screen (#5298)
Copy link
Contributor

@dereknelson dereknelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not much to say other than it works, code is clean and straightforward, just a great showing all around 👍🏻

Copy link
Contributor

@skylarbarrera skylarbarrera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good 2 go, needs android testing

ios/Rainbow.xcodeproj/project.pbxproj Outdated Show resolved Hide resolved
src/screens/QRScannerScreen.tsx Outdated Show resolved Hide resolved
src/screens/QRScannerScreen.tsx Outdated Show resolved Hide resolved
@walmat
Copy link
Contributor

walmat commented Jan 17, 2024

Kinda Sus intermediate screen on android. Not sure if this is expected but doesn't seem like it.
Screenshot_20240117-144521.png

Copy link
Contributor

@ibrahimtaveras00 ibrahimtaveras00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌮

@BrodyHughes BrodyHughes merged commit 4a5dd3a into develop Jan 18, 2024
6 checks passed
@BrodyHughes BrodyHughes deleted the brody/QR-code-scanner-fixes branch January 18, 2024 01:03
walmat added a commit that referenced this pull request Jan 26, 2024
* [APP-1051]: (feat): add backups global config (#5306)

* (feat): add backups global config

* stash

* add migration for setting initial backup method

* add method to migrations array

* revert pbx change

* change backup status value

* chore: hide testnet settings (#5308)

* remote testnet settings

* trying this

* switch to breadcrumbs (#5309)

* switch to breadcrumbs

* change to debug calls

* . (#5311)

* bump version to v1.9.14 (#5312)

* [APP-1052]: Add icon to Settings depending on `preferredBackupMethod` and `backupStatus` (#5313)

* [APP-1052]: (feat): adjust settings page row

* fix migration and hook for useWallets

* simplify an if statement

* chore: fix CI (#5307)

* disable deeplinks jest tests

* try this

* disable

* oop

* anotha 1

* oop

* swap changes

* e2e for swap flow changes

* testing

* yes

* revert file names

* yup

* audit: follow-redirects (#5323)

* audit mmkv (#5325)

* wallets and backups screen progress (#5315)

* wallets and backups screen progress

* manual backups progress

* progress

* feat(backups): more work on wallets and backups

* revert pbx

* rev init wallet change

* final touches on wallets and backup view

* f (#5327)

* bump react-native-linear-gradient (#5328)

* CHANGE: upgrade camera package to react-native-vision-camera FIX: [APP-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>

* [APP-925]: Backend Driven Cards (#5198)

* add experimental flag for remote cards (#5196)

* [APP-929]: Add `RemoteCardProvider` and react-query calls (#5197)

* add card and cardCollection to arc

* rm logs

* [APP-930]: Add `<RemoteCard />` component (#5203)

* start progress on remote card

* update remote card

* [APP-932]: Add `<RemoteCardCarousel />` component (#5205)

* added card carousel to wallet and discover screen

* update card and package

* tweaks to make carousel fit in

* update styles

* idkwtfiad

* disable scroll when only one card is present and adjust view dimensions size based on card length

* .

* fix layout issues

* remove unused debuglayout

* fix card and re-enable check to not show cards again

* Apply suggestions from code review

* tweak discover page

* add some testing edge cases

* add remote config stuff

* fix graphql schema

* code review changes

* change to new remote config hook

* fix remote config

* new design

* start with view weekly earnings flow

* progress on points breakdown from last week

* Delete ios/.xcode.env.local

* Update src/components/asset-list/RecyclerAssetList2/core/ViewDimensions.tsx

* Update src/components/asset-list/RecyclerAssetList2/core/getLayoutProvider.tsx

* Apply suggestions from code review

* chore: rm snap carousel

* Update shim.js

* finish earnings screen

* finish spec

* adjust gutter size depending on how many cards are in the carousel

* clean unused import

* fix font weight on android and conditionally wrap remote card if primary button has action

* fix recycler list view blank space for watched wallets

* adjust card to prev card on dismissal

* fix text formatting

* fix: lint

* change gutter size

* fix text truncation

* fix ios touch event overlap

* fix: disable hiding cards in dev

* Update src/components/cards/remote-cards/RemoteCardProvider.tsx

* weekly earnings fix and leaderboard diff (#5330)

* fix weekly earnings total

* leaderboard ranking diff

* Update src/screens/points/content/PointsContent.tsx

Co-authored-by: Matthew Wall <matthew.wallt@gmail.com>

---------

Co-authored-by: Matthew Wall <matthew.wallt@gmail.com>

* filter & reduce

---------

Co-authored-by: Ben Goldberg <bengoldberg@rainbow.me>
Co-authored-by: skylarbarrera <skylar.barrera@gmail.com>

* bump: fastlane (#5331)

* Points: rank card fixes (#5332)

* fixes

* fix ens display

* Points: notifications toggle (#5329)

* cleanup unused stuff and progress on backups flow

* rename points topic (#5334)

* rename points topic

* Update constants.ts

---------

Co-authored-by: Skylar Barrera <skylar.barrera@gmail.com>

* backups: warning + new secret phrase styles (#5322)

* save progress

* cleanup and finish secret phrase / private key viewiing screens

---------

Co-authored-by: Matthew Wall <matthew.wallt@gmail.com>

* chore: cleanup WalletsAndBackup settings screen and replace lang with i18n

* bump minSdkVersion (#5337)

* android settings fixes

* progress on cloud backup flow

* cloud backup flow progress

---------

Co-authored-by: Skylar Barrera <skylar.barrera@gmail.com>
Co-authored-by: brdy <41711440+BrodyHughes@users.noreply.github.com>
Co-authored-by: Ibrahim Taveras <ibrahim@rainbow.me>
Co-authored-by: Ben Goldberg <bengoldberg@rainbow.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants