Skip to content

Commit

Permalink
feat: Add react-native-mail plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Ldoppea committed Jul 26, 2024
1 parent 74db5fb commit cb3bb8a
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 1 deletion.
8 changes: 8 additions & 0 deletions __tests__/jestSetupFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,11 @@ jest.mock('cozy-pouch-link', () => {
return new mockPouchLink()
})
})

jest.mock('react-native-mail', () => ({
mail: jest.fn()
}))

jest.mock('rn-fetch-blob', () => ({
mail: jest.fn()
}))
12 changes: 12 additions & 0 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,8 @@ PODS:
- React
- react-native-idle-timer (2.2.1):
- React-Core
- react-native-mail (6.1.1):
- React-Core
- react-native-mlkit-ocr (0.3.0):
- GoogleMLKit/TextRecognition (= 2.6.0)
- React
Expand Down Expand Up @@ -647,6 +649,8 @@ PODS:
- React-jsi (= 0.72.12)
- React-logger (= 0.72.12)
- React-perflogger (= 0.72.12)
- rn-fetch-blob (0.12.0):
- React-Core
- RNBackgroundFetch (4.2.5):
- React-Core
- RNBackgroundGeolocation (4.16.4):
Expand Down Expand Up @@ -775,6 +779,7 @@ DEPENDENCIES:
- react-native-get-random-values (from `../node_modules/react-native-get-random-values`)
- "react-native-gzip (from `../node_modules/@fengweichong/react-native-gzip`)"
- react-native-idle-timer (from `../node_modules/react-native-idle-timer`)
- react-native-mail (from `../node_modules/react-native-mail`)
- react-native-mlkit-ocr (from `../node_modules/react-native-mlkit-ocr`)
- "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)"
- react-native-print (from `../node_modules/react-native-print`)
Expand Down Expand Up @@ -802,6 +807,7 @@ DEPENDENCIES:
- React-runtimescheduler (from `../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`)
- React-utils (from `../node_modules/react-native/ReactCommon/react/utils`)
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
- rn-fetch-blob (from `../node_modules/rn-fetch-blob`)
- RNBackgroundFetch (from `../node_modules/react-native-background-fetch`)
- RNBackgroundGeolocation (from `../node_modules/react-native-background-geolocation`)
- RNBootSplash (from `../node_modules/react-native-bootsplash`)
Expand Down Expand Up @@ -936,6 +942,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/@fengweichong/react-native-gzip"
react-native-idle-timer:
:path: "../node_modules/react-native-idle-timer"
react-native-mail:
:path: "../node_modules/react-native-mail"
react-native-mlkit-ocr:
:path: "../node_modules/react-native-mlkit-ocr"
react-native-netinfo:
Expand Down Expand Up @@ -990,6 +998,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/react/utils"
ReactCommon:
:path: "../node_modules/react-native/ReactCommon"
rn-fetch-blob:
:path: "../node_modules/rn-fetch-blob"
RNBackgroundFetch:
:path: "../node_modules/react-native-background-fetch"
RNBackgroundGeolocation:
Expand Down Expand Up @@ -1109,6 +1119,7 @@ SPEC CHECKSUMS:
react-native-get-random-values: 21325b2244dfa6b58878f51f9aa42821e7ba3d06
react-native-gzip: 5ffb84bf191c7cd135338eca748317bc466d41a1
react-native-idle-timer: f1920a59fe776340d004ff9de13c4a6eedcc8807
react-native-mail: 8fdcd3aef007c33a6877a18eb4cf7447a1d4ce4a
react-native-mlkit-ocr: 72cdbde86f8d29cba26cf9fa0a1865fe45c8f8d6
react-native-netinfo: 48c5f79a84fbc3ba1d28a8b0d04adeda72885fa8
react-native-print: f704aef52d931bfce6d1d84351dbb5232d7ecb89
Expand Down Expand Up @@ -1136,6 +1147,7 @@ SPEC CHECKSUMS:
React-runtimescheduler: 8aea338c561b2175f47018124c076d89d3808d30
React-utils: 9a24cb88f950d1020ee55bddacbc8c16a611e2dc
ReactCommon: 76843a9bb140596351ac2786257ac9fe60cafabb
rn-fetch-blob: f065bb7ab7fb48dd002629f8bdcb0336602d3cba
RNBackgroundFetch: 2f800a04434620db15ede2e8f21886608a2d1743
RNBackgroundGeolocation: 7df16548756b443aac809663cba8a4e03f0b8732
RNBootSplash: 4844706cbb56a3270556c9b94e59dedadccd47e4
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"react-native-ios11-devicecheck": "https://github.com/cozy/react-native-devicecheck#app-attest-v0.1",
"react-native-keychain": "^8.0.0",
"react-native-localize": "2.2.6",
"react-native-mail": "^6.1.1",
"react-native-mask-input": "1.2.1",
"react-native-mlkit-ocr": "^0.3.0",
"react-native-permissions": "^3.9.3",
Expand All @@ -128,6 +129,7 @@
"react-scripts": "4.0.3",
"redux-logger": "3.0.6",
"redux-persist": "^6.0.0",
"rn-fetch-blob": "^0.12.0",
"rn-flipper-async-storage-advanced": "^1.0.4",
"semver": "^7.3.2"
},
Expand Down
27 changes: 26 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7167,7 +7167,7 @@ balanced-match@^1.0.0:
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==

base-64@^0.1.0:
base-64@0.1.0, base-64@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/base-64/-/base-64-0.1.0.tgz#780a99c84e7d600260361511c4877613bf24f6bb"
integrity sha1-eAqZyE59YAJgNhURxId2E78k9rs=
Expand Down Expand Up @@ -11076,6 +11076,18 @@ glob-to-regexp@^0.4.1:
resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e"
integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==

[email protected]:
version "7.0.6"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.0.6.tgz#211bafaf49e525b8cd93260d14ab136152b3f57a"
integrity sha512-f8c0rE8JiCxpa52kWPAOa3ZaYEnzofDzCQLCn3Vdk0Z5OVLq3BsRFJI4S4ykpeVW6QMGBUkMeUpoEgWnMTnw5Q==
dependencies:
fs.realpath "^1.0.0"
inflight "^1.0.4"
inherits "2"
minimatch "^3.0.2"
once "^1.3.0"
path-is-absolute "^1.0.0"

[email protected]:
version "7.1.6"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6"
Expand Down Expand Up @@ -17395,6 +17407,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/react-native-localize/-/react-native-localize-2.2.6.tgz#484f8c700bc629f230066e819265f80f6dd3ef58"
integrity sha512-EZETlC1ZlW/4g6xfsNCwAkAw5BDL2A6zk/08JjFR/GRGxYuKRD7iP1hHn1+h6DEu+xROjPpoNeXfMER2vkTVIQ==

react-native-mail@^6.1.1:
version "6.1.1"
resolved "https://registry.yarnpkg.com/react-native-mail/-/react-native-mail-6.1.1.tgz#f1b1f8034c84d2510a93e4a2a795f0db5a13595e"
integrity sha512-pTs180wwyh7hN/iyTC9SfOX579U4YhDlHOLxi47IGvhPJENqO/QFdBq+wWKxyhNqdQuVSy+LoeIxLreWnIeYmg==

[email protected]:
version "1.2.1"
resolved "https://registry.yarnpkg.com/react-native-mask-input/-/react-native-mask-input-1.2.1.tgz#2f01683844ded3693d0d845bd1beeb2b8367f2e2"
Expand Down Expand Up @@ -18187,6 +18204,14 @@ ripemd160@^2.0.0, ripemd160@^2.0.1:
hash-base "^3.0.0"
inherits "^2.0.1"

rn-fetch-blob@^0.12.0:
version "0.12.0"
resolved "https://registry.yarnpkg.com/rn-fetch-blob/-/rn-fetch-blob-0.12.0.tgz#ec610d2f9b3f1065556b58ab9c106eeb256f3cba"
integrity sha512-+QnR7AsJ14zqpVVUbzbtAjq0iI8c9tCg49tIoKO2ezjzRunN7YL6zFSFSWZm6d+mE/l9r+OeDM3jmb2tBb2WbA==
dependencies:
base-64 "0.1.0"
glob "7.0.6"

rn-flipper-async-storage-advanced@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/rn-flipper-async-storage-advanced/-/rn-flipper-async-storage-advanced-1.0.4.tgz#ca3d0c315a75f379fef3771cc6ee3bef2d774265"
Expand Down

0 comments on commit cb3bb8a

Please sign in to comment.