Browse Source

Downgrade react-native-keychain to improve startup speed

Due to a bug, token retrieving was taking several seconds on recent Android versions.
Reference: https://github.com/oblador/react-native-keychain/issues/337
Arnaud Vergnet 3 years ago
parent
commit
8dae8adfbe
3 changed files with 14 additions and 8 deletions
  1. 6
    0
      doc/NOTES.md
  2. 7
    7
      package-lock.json
  3. 1
    1
      package.json

+ 6
- 0
doc/NOTES.md View File

@@ -4,6 +4,12 @@ Ce fichier permet de regrouper les différentes informations sur des décisions
4 4
 
5 5
 Ces notes pouvant évoluer dans le temps, leur date d'écriture est aussi indiquée.
6 6
 
7
+## _2020-10-07_ | react-native-keychain
8
+
9
+Bloquée en 4.0.5 à cause d'un problème de performances. Au dessus de cette version, la récupération du token prend plusieurs secondes, ce qui n'est pas acceptable.
10
+
11
+[Référence](https://github.com/oblador/react-native-keychain/issues/337)
12
+
7 13
 ## _2020-09-24_ | Flow
8 14
 
9 15
 Flow est un système d'annotation permettant de rendre JavaScript typé statique. Développée par Facebook, cette technologie à initialement été adoptée. En revanche, de nombreux problèmes sont apparus :

+ 7
- 7
package-lock.json View File

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "campus",
3
-  "version": "4.0.1",
3
+  "version": "4.1.0",
4 4
   "lockfileVersion": 1,
5 5
   "requires": true,
6 6
   "dependencies": {
@@ -9756,9 +9756,9 @@
9756 9756
       "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ=="
9757 9757
     },
9758 9758
     "node-fetch": {
9759
-      "version": "2.6.0",
9760
-      "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz",
9761
-      "integrity": "sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA=="
9759
+      "version": "2.6.1",
9760
+      "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz",
9761
+      "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw=="
9762 9762
     },
9763 9763
     "node-int64": {
9764 9764
       "version": "0.4.0",
@@ -10751,9 +10751,9 @@
10751 10751
       "integrity": "sha512-/VbpIEp8tSNNHIvstuA3Swx610whci1Zpc9mqNkqn14DkMbw+ORviln2u0XyHG1kPvvwTNGZY6QpeFwxYaSdbQ=="
10752 10752
     },
10753 10753
     "react-native-keychain": {
10754
-      "version": "6.2.0",
10755
-      "resolved": "https://registry.npmjs.org/react-native-keychain/-/react-native-keychain-6.2.0.tgz",
10756
-      "integrity": "sha512-U6fnOQRJPq+c0Abl+FoYy9v0H3kQU587tMamU/o+MoBSUScFLE3DQpkyT1PW4NF5IObgiGuqQdmjC2KgtBpjGA=="
10754
+      "version": "4.0.5",
10755
+      "resolved": "https://registry.npmjs.org/react-native-keychain/-/react-native-keychain-4.0.5.tgz",
10756
+      "integrity": "sha512-TbiO8AO055EPjaxIuKxrCEOB4r81uQCVDFbtcs+e4pEOHxf6z3JgDC0UU0poJElKfCh37b+TFRxQhg6DbsYJBA=="
10757 10757
     },
10758 10758
     "react-native-linear-gradient": {
10759 10759
       "version": "2.5.6",

+ 1
- 1
package.json View File

@@ -45,7 +45,7 @@
45 45
     "react-native-collapsible": "^1.5.3",
46 46
     "react-native-gesture-handler": "^1.8.0",
47 47
     "react-native-image-zoom-viewer": "^3.0.1",
48
-    "react-native-keychain": "^6.2.0",
48
+    "react-native-keychain": "4.0.5",
49 49
     "react-native-linear-gradient": "^2.5.6",
50 50
     "react-native-localize": "^1.4.1",
51 51
     "react-native-modalize": "^2.0.6",

Loading…
Cancel
Save