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

chore: [IOPLT-603] Sets Android API Level 34 #5947

Merged
merged 268 commits into from
Jul 23, 2024

Conversation

CrisTofani
Copy link
Contributor

@CrisTofani CrisTofani commented Jul 9, 2024

Note

Depends on #5864

Short description

This PR sets Android API Level to 34 and upgrades react-native-vision-camera to solve compatibility issues

List of changes proposed in this pull request

  • Sets Android API Level to 34
  • Removes vision-camera-code-scanner
  • Updates react-native-vision-camera
  • Refactors the app components using the camera to scan Barcode

How to test

Test barcode code scanning to check everything is ok on both iOS and Android. Normally use the App on Android to check if the new API Level bump compromises anything

shadowsheep1 and others added 30 commits January 19, 2024 13:28
Copy link
Member

@shadowsheep1 shadowsheep1 left a comment

Choose a reason for hiding this comment

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

LGTM, tested:

  • Build from scratch.
  • EIC Login.
  • Camera Permissions on both Android 14 and 12.

We need just to remember that for the future:

[VisionCamera] react-native-worklets-core not found, Frame Processors disabled!
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 34

This Android Gradle plugin (7.4.2) was tested up to compileSdk = 33

This warning can be suppressed by adding
    android.suppressUnsupportedCompileSdk=34
to this project's gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 34

Copy link
Contributor

@LazyAfternoons LazyAfternoons left a comment

Choose a reason for hiding this comment

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

LGTM, tested the QR code scan on the following devices without noticing any regression:

  • iPhone XS@17;
  • Samsung S23@14;
  • Pixel 4a@13;
  • Honor 9@9;
  • Samsung A51@13.

@CrisTofani CrisTofani merged commit 26335e5 into master Jul 23, 2024
11 checks passed
@CrisTofani CrisTofani deleted the IOPLT-603-android-api-level-34 branch July 23, 2024 07:50
dmnplb added a commit that referenced this pull request Aug 8, 2024
… + Dynamic header background (under the new Experimental Lab category) (#5954)

> [!note]
> This PR depends on:
> * #5947

## Short description
This PR adds the latest version of the `react-native-skia` library and
the new **Experimental Lab** section which includes the new **Dynamic
header background** screen, built with the `skia` library

## List of changes proposed in this pull request
- Add the `react-native-skia` library
- Update `jest` config files to include `react-native-skia` references
- Add the new **Experimental Lab** section
- Add the new **Dynamic header background** as first experiment

### Preview


https://github.com/pagopa/io-app/assets/1255491/802fee95-72ac-46d1-9a93-cdf8e5195b88


 
### Acknowledgement
We've successfully added this library thanks to the RN upgrade to the
`0.72` version:
- #5864

## How to test
1. Launch the app in the local environment
2. Go to the **Experimental Lab** → **Dynamic header background**

---------

Co-authored-by: LazyAfternoons <[email protected]>
Co-authored-by: Cristiano Tofani <[email protected]>
Co-authored-by: Federico Mastrini <[email protected]>
Co-authored-by: Mario Perrotta <[email protected]>
Co-authored-by: Fabio Bombardi <[email protected]>
Co-authored-by: Alice Di Rico <[email protected]>
Co-authored-by: LazyAfternoons <[email protected]>
Co-authored-by: Andrea Piai <[email protected]>
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

9 participants