forked from pagopa/io-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: [IA-842] Integrate React Native Vision Camera to scan QR Codes (…
…pagopa#3928) * Upgrading bottomsheet library and hooks * upgrade new bottomsheet component * update bancomatInformationBottomSheet * update OptOutBottomSheet * update OtpNotWorking * wip updating useChangeActivationConfirmationBottomSheet * Upgrades useBottomSheetMethodsToDelete * Upgrades UnsubscribeToBpd * Upgrades useDownloadAttachmentConfirmationBottomSheet and tests * Upgrades useDownloadAttachmentConfirmationBottomSheet usage * Upgrades useDownloadAttachmentConfirmationBottomSheet usage on tests * downgrades react-native-gesture-handler to avoid warning * upgrades VoucherDetailsScreen bottomsheet * fixes on tests and setup and removes old hooks * final upgrade * prettifies * fixes BpdToggles bottomSheets * prettify * Fixes InnerBpdPaymentMethodCapability * fixes test execution * fixes * fixes mocks and tests * prettify * Fixes podfile * fixes and updates * patches bottom sheet library for accessibility * Updates failing snapshot * Created the `BarcodeCamera` component * Integrated the barcode scanner * Fixes android configuration * Now building on android * Restore gradle settings * Camera is now working on Android * Restore the old kotlin version param * Fix dependencies versions * Upgrade `yarn.lock` * Restore `Podfile` * Improve `BarcodeCamera` component to handle a scan callback * Handle permissions in `BarcodeCamera` * Wire the old QRCode logic with the new `BarcodeCamera` component * Restore QRCode screen footer * Remove Data Matrix support in `useScanBarcodes` * Restore android permissions alert * Remove `BottomSheetModalProvider` from `AddCardScreen` test * Restore the scanning marker * Restore settings link on `denied` permission * Render `props.marker` only when it does exist * Add inline styles to the `styles` object * Disable audio from camera * Restore invalid QR Code timeout * Remove `react-native-qrcode-scanner` from the dependencies * Removed `react-native-qrcode-scanner` patch * Re-introduce `react-native-permissions` * Fix `Podfile` RNPermissions directory * Removed `react-native-permissions` from the core * Remove another RNPersmissionPackage reference from `MainApplication.java` * Add scan haptic feedback * Fix `useEffect` leak while disabled * Fix multiple barcode scan on low-end devices * Use IO typography components * Move the haptic feedback to the external `ScanQrCodeScreen` * Add `onInvalidQrCode` scanning state check to avoid flickering Co-authored-by: CrisTofani <[email protected]> Co-authored-by: fabriziofff <[email protected]> Co-authored-by: Matteo Boschi <[email protected]>
- Loading branch information
1 parent
dadb556
commit f5508c8
Showing
19 changed files
with
404 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
module.exports = { | ||
plugins: ["react-native-reanimated/plugin", "macros"], | ||
plugins: [ | ||
"macros", | ||
[ | ||
"react-native-reanimated/plugin", | ||
{ | ||
globals: ["__scanCodes"] | ||
} | ||
] | ||
], | ||
presets: ["module:metro-react-native-babel-preset"] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,7 @@ | |
<dict> | ||
<key>BuildSystemType</key> | ||
<string>Latest</string> | ||
<key>PreviewsEnabled</key> | ||
<false/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.