Skip to content

Commit

Permalink
Upgrade packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sallesma committed Dec 3, 2023
1 parent 51dbd8c commit 6252a7b
Show file tree
Hide file tree
Showing 9 changed files with 1,758 additions and 2,039 deletions.
13 changes: 13 additions & 0 deletions metro.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const { getDefaultConfig } = require('metro-config');

module.exports = (async () => {
const {
resolver: { assetExts, sourceExts },
} = await getDefaultConfig();

return {
resolver: {
sourceExts: [...sourceExts, 'mjs'],
},
};
})();
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,38 @@
},
"dependencies": {
"@react-native-async-storage/async-storage": "1.18.2",
"@react-navigation/native": "^6.0.13",
"@react-navigation/native-stack": "^6.9.1",
"expo": "^49.0.0",
"@react-navigation/native": "^6.1.9",
"@react-navigation/native-stack": "^6.9.17",
"expo": "^49.0.21",
"expo-clipboard": "~4.3.1",
"expo-localization": "~14.3.0",
"expo-mail-composer": "~12.3.0",
"expo-splash-screen": "~0.20.5",
"expo-status-bar": "~1.6.0",
"expo-updates": "~0.18.12",
"expo-updates": "~0.18.17",
"highlight-words-core": "^1.2.2",
"i18n-js": "^4.1.1",
"i18n-js": "^4.3.2",
"pdf.js-extract": "^0.2.1",
"react": "18.2.0",
"react-native": "0.72.4",
"react-native": "0.72.6",
"react-native-elements": "^3.4.2",
"react-native-safe-area-context": "4.6.3",
"react-native-screens": "~3.22.0",
"react-native-toast-message": "^2.1.5"
"react-native-toast-message": "^2.1.7"
},
"devDependencies": {
"@babel/core": "^7.19.3",
"@testing-library/react-native": "^11.4.0",
"eslint": "^8.27.0",
"eslint-config-universe": "^11.1.1",
"@babel/core": "^7.23.5",
"@testing-library/react-native": "^12.4.1",
"eslint": "^8.55.0",
"eslint-config-universe": "^12.0.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-native": "^4.0.0",
"eslint-plugin-react-native": "^4.1.0",
"husky": "^8.0.2",
"jest": "^29.2.1",
"jest": "^29.7.0",
"jest-expo": "^49.0.0",
"jest-junit": "^14.0.1",
"lint-staged": ">=13",
"prettier": "^2.7.1"
"jest-junit": "^16.0.0",
"lint-staged": ">=15.1.0",
"prettier": "^3.1.0"
},
"private": true,
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions src/screens/__tests__/QuizzScreen.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ describe('<QuizzScreen />', () => {

expect(toJSON()).toMatchSnapshot();

await fireEvent.press(getByText('Valider'));
await fireEvent.press(getByText('Check the answer'));

expect(toJSON()).toMatchSnapshot();

await fireEvent.press(getByText('Question suivante'));
await fireEvent.press(getByText('Next question'));

expect(toJSON()).toMatchSnapshot();
});
Expand Down
26 changes: 13 additions & 13 deletions src/screens/__tests__/__snapshots__/AboutScreen.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ exports[`<AboutScreen /> renders correctly 1`] = `
}
}
>
À propos
About
</Text>
<Text
style={
Expand All @@ -33,7 +33,7 @@ exports[`<AboutScreen /> renders correctly 1`] = `
}
}
>
Bonjour ! Je suis Martin Salles, le développeur derrière Timeout Ultimate. C'est une application conçue par des joueurs d'Ultimate pour aider d'autres joueurs à apprendre les règles de l'Ultimate. Elle est et restera gratuite.
Hello! I'm Martin Salles, the developer behind Timeout Ultimate. It's an application designed by ultimate players to help other players learn the rules of ultimate. It is and will remain free.
</Text>
<Text
style={
Expand All @@ -43,7 +43,7 @@ exports[`<AboutScreen /> renders correctly 1`] = `
}
}
>
Remerciements
Acknowledgements
</Text>
<Text
style={
Expand All @@ -53,9 +53,9 @@ exports[`<AboutScreen /> renders correctly 1`] = `
}
}
>
Je souhaite remercier tous ceux qui ont contribué au développement de Timeout Ultimate. Une grande partie des questions viennent du jeu Disque Tu Sais de Pablo. Certaines questions ont été rédigées par Pierre Gruau pour les Monkeys. L'application utilise aussi les Hand Signals dessinés par Raphaël Candelier pour le PUC et la WFDF.
I would like to thank everyone who contributed to the development of Timeout Ultimate. Many of the questions come from Pablo's Disque Tu Sais game. Some questions were written by Pierre Gruau for the Monkeys. The application also uses the Hand Signals designed by Raphaël Candelier for the PUC and the WFDF. Finally, the English version was set up by Brandon Sneider [email protected] creator of UltiApp and https://GotSpirit.games .
Le déploiement de Timeout Ultimate sur les stores est en partie financé par le PUC.
The deployment of Timeout Ultimate on the stores is partly funded by Paris Université Club.
</Text>
<Text
style={
Expand All @@ -65,7 +65,7 @@ Le déploiement de Timeout Ultimate sur les stores est en partie financé par le
}
}
>
Les règles de l'Ultimate sont tirés du document "WFDF Rules of Ultimate 2021-2024" produit par la World Flying Disc Federation, puis traduit par la FFDF.
The rules of Ultimate are taken from the "WFDF Rules of Ultimate 2021-2024" produced by the World Flying Disc Federation.
</Text>
<Text
style={
Expand All @@ -75,7 +75,7 @@ Le déploiement de Timeout Ultimate sur les stores est en partie financé par le
}
}
>
Contribuer
Contribute
</Text>
<Text
style={
Expand All @@ -85,7 +85,7 @@ Le déploiement de Timeout Ultimate sur les stores est en partie financé par le
}
}
>
Que ce soit pour ajouter, corriger des questions ou maintenir l'application, toute aide est la bienvenue !
Whether it's adding, correcting questions or maintaining the application, any kind of help is welcome!
</Text>
<Text
style={
Expand All @@ -105,7 +105,7 @@ Le déploiement de Timeout Ultimate sur les stores est en partie financé par le
}
}
>
L'application est en cours de création. J'ai plein d'idées pour la suite mais je serais ravi de connaître ton avis.
The application is in the process of being created. I have a lot of ideas for the next step but I'd love to hear your opinion.
</Text>
<View
accessibilityState={
Expand Down Expand Up @@ -147,7 +147,7 @@ Le déploiement de Timeout Ultimate sur les stores est en partie financé par le
}
}
>
Envoyer un message
Send a message
</Text>
</View>
<Text
Expand All @@ -158,7 +158,7 @@ Le déploiement de Timeout Ultimate sur les stores est en partie financé par le
}
}
>
Autres projets
Other projets
</Text>
<Text
style={
Expand All @@ -168,7 +168,7 @@ Le déploiement de Timeout Ultimate sur les stores est en partie financé par le
}
}
>
En plus de cette application, je travaille aussi sur l'application Disc In, qui permet de préparer des entraînements d'Ultimate.
In addition to this application, I am also working on the Disc In application, which allows you to prepare Ultimate practices.
</Text>
<View
accessibilityState={
Expand Down Expand Up @@ -228,7 +228,7 @@ Le déploiement de Timeout Ultimate sur les stores est en partie financé par le
}
}
>
Informations techniques
Technical information
</Text>
<Text
style={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ exports[`<HistoryScreen /> renders correctly 1`] = `
}
}
>
Questions : 0
Questions: 0
</Text>
<Text
style={
Expand All @@ -35,7 +35,7 @@ exports[`<HistoryScreen /> renders correctly 1`] = `
}
}
>
Bonnes réponses : 0
Correct answers: 0
</Text>
</View>
<Text
Expand All @@ -47,7 +47,7 @@ exports[`<HistoryScreen /> renders correctly 1`] = `
}
}
>
Il n'y a pas encore de résultats parce que tu n'as pas encore fait de quiz !
There are no results because you haven't taken the quiz yet!
</Text>
<RCTScrollView>
<View />
Expand Down
10 changes: 5 additions & 5 deletions src/screens/__tests__/__snapshots__/HomeScreen.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ exports[`<HomeScreen /> renders correctly 1`] = `
}
}
>
270
268
</Text>
questions t'attendent pour apprendre les règles de l'Ultimate !
questions are waiting for you to start learning the rules of Ultimate!
</Text>
<View
style={
Expand Down Expand Up @@ -157,7 +157,7 @@ exports[`<HomeScreen /> renders correctly 1`] = `
}
}
>
Jouer
Play
</Text>
</View>
</View>
Expand Down Expand Up @@ -239,7 +239,7 @@ exports[`<HomeScreen /> renders correctly 1`] = `
}
}
>
Historique
History
</Text>
</View>
</View>
Expand Down Expand Up @@ -321,7 +321,7 @@ exports[`<HomeScreen /> renders correctly 1`] = `
}
}
>
Règlement
Rules
</Text>
</View>
</View>
Expand Down
20 changes: 10 additions & 10 deletions src/screens/__tests__/__snapshots__/OptionsScreen.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports[`<OptionsScreen /> renders correctly 1`] = `
}
}
>
Nombre de questions
Number of questions
</Text>
<View
style={
Expand Down Expand Up @@ -287,7 +287,7 @@ exports[`<OptionsScreen /> renders correctly 1`] = `
}
}
>
Temps par question
Time per question
</Text>
<View
style={
Expand Down Expand Up @@ -542,7 +542,7 @@ exports[`<OptionsScreen /> renders correctly 1`] = `
}
}
>
Aucun
None
</Text>
</View>
</View>
Expand All @@ -556,7 +556,7 @@ exports[`<OptionsScreen /> renders correctly 1`] = `
}
}
>
Niveau
Level
</Text>
<View
style={
Expand Down Expand Up @@ -650,7 +650,7 @@ exports[`<OptionsScreen /> renders correctly 1`] = `
}
}
>
Facile
Easy
</Text>
</View>
</View>
Expand Down Expand Up @@ -738,7 +738,7 @@ exports[`<OptionsScreen /> renders correctly 1`] = `
}
}
>
Moyen
Medium
</Text>
</View>
</View>
Expand Down Expand Up @@ -826,7 +826,7 @@ exports[`<OptionsScreen /> renders correctly 1`] = `
}
}
>
Difficile
Hard
</Text>
</View>
</View>
Expand Down Expand Up @@ -914,7 +914,7 @@ exports[`<OptionsScreen /> renders correctly 1`] = `
}
}
>
Tous
All
</Text>
</View>
</View>
Expand Down Expand Up @@ -1009,7 +1009,7 @@ exports[`<OptionsScreen /> renders correctly 1`] = `
}
}
>
JOUER
PLAY
</Text>
</View>
</View>
Expand Down Expand Up @@ -1091,7 +1091,7 @@ exports[`<OptionsScreen /> renders correctly 1`] = `
}
}
>
+ d'options
+ options
</Text>
</View>
</View>
Expand Down
Loading

0 comments on commit 6252a7b

Please sign in to comment.