Skip to content

(PC-15161) build(deps): bump react-native to 0.68.2 - #2948

Merged
anoukhello merged 8 commits into
masterfrom
bump-RN
May 31, 2022
Merged

(PC-15161) build(deps): bump react-native to 0.68.2#2948
anoukhello merged 8 commits into
masterfrom
bump-RN

Conversation

@anoukhello

@anoukhello anoukhello commented Apr 29, 2022

Copy link
Copy Markdown
Contributor

Ticket jira: https://passculture.atlassian.net/browse/PC-15161

Changelog: https://github.com/facebook/react-native/releases/tag/v0.68.2

Doc suivie pour la màj:

⚠️ Avant la version 0.67, react-native recommandait d'utiliser la version de ruby installée de base sur un mac pour installer les pods. Depuis la 0.67, cette version est fixée à 2.7.4. Pour ceux qui sont en v3.X, il faut donc l'installer (via un gestionnaire de version comme http://rbenv.org/ ou https://rvm.io/).

⚠️ La màj fait apparaître un nouveau warning dans les tests:
image
Je voulais l'ignorer (grâce à LogBox.ignoreLogs mais ça ne semble pas fonctionner) jusqu'à ce que la lib react-native-dash retire ses références à ViewPropTypes (obipawan/react-native-dash#36). Cependant la lib n'a plus vraiment l'air d'être maintenue, je propose donc de supprimer son utilisation => ticket JIRA
Certains de ces warnings sont aussi causés par react-native-date-picker qu'il faudrait mettre à jour en version 4.2.2 => ticket JIRA

⚠️ 2 libs faisaient échouer le build android car elles utilisaient des versions de gradle < 7 (version minimale utilisée depuis RN 0.67)

  • react-native-profiling: à mettre à jour pour qu'elle soit compatible avec gradle 7. Pour le moment on la supprime entièrement car on souhaite la désactiver jusqu'à nouvel ordre (vu avec Mariam, JB et Alexis). Je pousse tout de même une branche du côté de la lib avec ce que j'avais commencé à faire pour la màj (trop coûteuse pour l'instant étant donné qu'on ne va potentiellement pas la réutiliser dans l'app)
  • react-native-android-keyboard-adjust: la lib ne semble plus maintenue depuis 4 ans et elle a été introduite dans cette PR (cf ticket JIRA). Le résultat attendu à l'époque ne semble plus fonctionner aujourd'hui:
avec la lib sans la lib
AVEC USEKEYBOARDADJUST SANS USEKEYBOARDADJUST
  • Screenshots après build OK:
android iOS web
ANDROID OK IOS OK Capture d’écran 2022-05-24 à 21 11 49

@anoukhello anoukhello changed the title (BSR) build(deps): bump react-native to 0.68.1 (BSR) deps: bump react-native to 0.68.1 May 2, 2022
@anoukhello anoukhello changed the title (BSR) deps: bump react-native to 0.68.1 (BSR) deps(build): bump react-native to 0.68.1 May 2, 2022
@anoukhello anoukhello changed the title (BSR) deps(build): bump react-native to 0.68.1 (BSR) (build): bump react-native to 0.68.1 May 2, 2022
@anoukhello anoukhello changed the title (BSR) (build): bump react-native to 0.68.1 (PC-15161) build(deps): bump react-native to 0.68.1 May 23, 2022
@anoukhello anoukhello changed the title (PC-15161) build(deps): bump react-native to 0.68.1 (PC-15161) build(deps): bump react-native to 0.68.2 May 23, 2022
@anoukhello
anoukhello force-pushed the bump-RN branch 7 times, most recently from a038fd4 to 9939e28 Compare May 30, 2022 07:36
Comment thread .ruby-version
Comment thread Gemfile.lock

@yorickeando yorickeando left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Trop bien, super découpage très clair. Je fais confiance à tes différents builds iOS et Android qui marchent. Tu as pu tester sur deux versions d'Android différentes, pour être un peu plus confiante ?

Il y a un petit code smell gérable (autre que FIXME).

Comment thread Gemfile
source "https://rubygems.org"

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby '2.7.4'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@yorickeando c'est plutôt ça qui permet d'imposer la version de ruby. Le fichier .ruby-version permet de dire à ton gestionnaire de version de ruby (rbenv, rvm, etc) d'utiliser cette version spécifiquement pour ce projet

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nickel

@kopax-polyconseil kopax-polyconseil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Un grand merci pour cette PR de maj. 🎉

J'insisterai sur l'importance des tests de non regression. Si on supprime TMX, il y a aussi une route sur le nextBeneficiaryTest qui lancait un profiling "on-demand", p-e à retirer si ce n'est pas déjà fait.

>
<View
accessible={true}
collapsable={false}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ça peut valoir le coup de regarder dans la version web si c'est props apparraissent maintenant dans le dom (en [Object object]) et auquel cas voir si une mise à jour de react-native-web est possible pour retirer ces props, sinon créer un ticket sur leur repo.

Comment thread src/features/auth/signup/PhoneValidation/SetPhoneValidationCode.tsx
import { useKeyboardAdjust } from 'ui/components/keyboard/useKeyboardAdjust'

export const Favorites: React.FC = () => {
useKeyboardAdjust()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

il me semble que ceci réglait l'ouverture du clavier en redimensionnant certaines view, et ça parraissait utile (du moins en avril 2021), es-tu sur que ça ne casse rien ?

@anoukhello anoukhello May 31, 2022

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sur les favoris on n'ouvre pas le clavier il me semble, donc l'utilisation de ce hook ici n'est pas adapté

import { Form } from 'ui/web/form/Form'

export function Search() {
useKeyboardAdjust()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

je pense notamment au page comme SetEmail, etc... il faut vraiment retest cette partie.

@anoukhello anoukhello May 31, 2022

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

On n'utilise pas ce hook sur le SetEmail ou autre page du parcours d'inscription. D'après le screenshot en commentaire de la PR, le comportement est le même avec ou sans la lib sur la page de recherche

@anoukhello
anoukhello deleted the bump-RN branch May 31, 2022 12:57
anoukhello added a commit that referenced this pull request Jun 1, 2022
anoukhello added a commit that referenced this pull request Jun 1, 2022
* Revert "(PC-15161) build(deps): bump react-native to 0.68.2 (#2948)"

This reverts commit 5b82641.

* Revert "(PC-15161) fix snapshot (#3051)"

This reverts commit 89cf335.
@anoukhello
anoukhello restored the bump-RN branch June 1, 2022 07:38
@sonarqubecloud

sonarqubecloud Bot commented Jun 1, 2022

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

66.7% 66.7% Coverage
0.0% 0.0% Duplication

kopax-polyconseil pushed a commit that referenced this pull request Jun 2, 2022
* (PC-15161) build(deps): bump react-native to 0.68.2

* (PC-15161) build(deps): add .ruby-version file in order to install ios pods

* (PC-15161) build(deps): update Gemfile.lock/Podfile.lock/project.pbxproj after pods installation

* (PC-15161) build(deps): add babel plugin polyfills for tests

* (PC-15161) build(deps): remove unnecessary and unmaintained package

* (PC-15161) build(deps): update ios/PassCulture/AppDelegate.m to make ios build work

* (PC-15161) remove user-profiling from phone validation

* (PC-15161) build(deps): remove react-native-user-profiling
kopax-polyconseil pushed a commit that referenced this pull request Jun 2, 2022
* Revert "(PC-15161) build(deps): bump react-native to 0.68.2 (#2948)"

This reverts commit 5b82641.

* Revert "(PC-15161) fix snapshot (#3051)"

This reverts commit 89cf335.
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.

4 participants