Skip to content

Commit cb3bb8a

Browse files
committed
feat: Add react-native-mail plugin
1 parent 74db5fb commit cb3bb8a

File tree

4 files changed

+48
-1
lines changed

4 files changed

+48
-1
lines changed

__tests__/jestSetupFile.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,11 @@ jest.mock('cozy-pouch-link', () => {
140140
return new mockPouchLink()
141141
})
142142
})
143+
144+
jest.mock('react-native-mail', () => ({
145+
mail: jest.fn()
146+
}))
147+
148+
jest.mock('rn-fetch-blob', () => ({
149+
mail: jest.fn()
150+
}))

ios/Podfile.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,8 @@ PODS:
509509
- React
510510
- react-native-idle-timer (2.2.1):
511511
- React-Core
512+
- react-native-mail (6.1.1):
513+
- React-Core
512514
- react-native-mlkit-ocr (0.3.0):
513515
- GoogleMLKit/TextRecognition (= 2.6.0)
514516
- React
@@ -647,6 +649,8 @@ PODS:
647649
- React-jsi (= 0.72.12)
648650
- React-logger (= 0.72.12)
649651
- React-perflogger (= 0.72.12)
652+
- rn-fetch-blob (0.12.0):
653+
- React-Core
650654
- RNBackgroundFetch (4.2.5):
651655
- React-Core
652656
- RNBackgroundGeolocation (4.16.4):
@@ -775,6 +779,7 @@ DEPENDENCIES:
775779
- react-native-get-random-values (from `../node_modules/react-native-get-random-values`)
776780
- "react-native-gzip (from `../node_modules/@fengweichong/react-native-gzip`)"
777781
- react-native-idle-timer (from `../node_modules/react-native-idle-timer`)
782+
- react-native-mail (from `../node_modules/react-native-mail`)
778783
- react-native-mlkit-ocr (from `../node_modules/react-native-mlkit-ocr`)
779784
- "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)"
780785
- react-native-print (from `../node_modules/react-native-print`)
@@ -802,6 +807,7 @@ DEPENDENCIES:
802807
- React-runtimescheduler (from `../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`)
803808
- React-utils (from `../node_modules/react-native/ReactCommon/react/utils`)
804809
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
810+
- rn-fetch-blob (from `../node_modules/rn-fetch-blob`)
805811
- RNBackgroundFetch (from `../node_modules/react-native-background-fetch`)
806812
- RNBackgroundGeolocation (from `../node_modules/react-native-background-geolocation`)
807813
- RNBootSplash (from `../node_modules/react-native-bootsplash`)
@@ -936,6 +942,8 @@ EXTERNAL SOURCES:
936942
:path: "../node_modules/@fengweichong/react-native-gzip"
937943
react-native-idle-timer:
938944
:path: "../node_modules/react-native-idle-timer"
945+
react-native-mail:
946+
:path: "../node_modules/react-native-mail"
939947
react-native-mlkit-ocr:
940948
:path: "../node_modules/react-native-mlkit-ocr"
941949
react-native-netinfo:
@@ -990,6 +998,8 @@ EXTERNAL SOURCES:
990998
:path: "../node_modules/react-native/ReactCommon/react/utils"
991999
ReactCommon:
9921000
:path: "../node_modules/react-native/ReactCommon"
1001+
rn-fetch-blob:
1002+
:path: "../node_modules/rn-fetch-blob"
9931003
RNBackgroundFetch:
9941004
:path: "../node_modules/react-native-background-fetch"
9951005
RNBackgroundGeolocation:
@@ -1109,6 +1119,7 @@ SPEC CHECKSUMS:
11091119
react-native-get-random-values: 21325b2244dfa6b58878f51f9aa42821e7ba3d06
11101120
react-native-gzip: 5ffb84bf191c7cd135338eca748317bc466d41a1
11111121
react-native-idle-timer: f1920a59fe776340d004ff9de13c4a6eedcc8807
1122+
react-native-mail: 8fdcd3aef007c33a6877a18eb4cf7447a1d4ce4a
11121123
react-native-mlkit-ocr: 72cdbde86f8d29cba26cf9fa0a1865fe45c8f8d6
11131124
react-native-netinfo: 48c5f79a84fbc3ba1d28a8b0d04adeda72885fa8
11141125
react-native-print: f704aef52d931bfce6d1d84351dbb5232d7ecb89
@@ -1136,6 +1147,7 @@ SPEC CHECKSUMS:
11361147
React-runtimescheduler: 8aea338c561b2175f47018124c076d89d3808d30
11371148
React-utils: 9a24cb88f950d1020ee55bddacbc8c16a611e2dc
11381149
ReactCommon: 76843a9bb140596351ac2786257ac9fe60cafabb
1150+
rn-fetch-blob: f065bb7ab7fb48dd002629f8bdcb0336602d3cba
11391151
RNBackgroundFetch: 2f800a04434620db15ede2e8f21886608a2d1743
11401152
RNBackgroundGeolocation: 7df16548756b443aac809663cba8a4e03f0b8732
11411153
RNBootSplash: 4844706cbb56a3270556c9b94e59dedadccd47e4

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
"react-native-ios11-devicecheck": "https://github.com/cozy/react-native-devicecheck#app-attest-v0.1",
109109
"react-native-keychain": "^8.0.0",
110110
"react-native-localize": "2.2.6",
111+
"react-native-mail": "^6.1.1",
111112
"react-native-mask-input": "1.2.1",
112113
"react-native-mlkit-ocr": "^0.3.0",
113114
"react-native-permissions": "^3.9.3",
@@ -128,6 +129,7 @@
128129
"react-scripts": "4.0.3",
129130
"redux-logger": "3.0.6",
130131
"redux-persist": "^6.0.0",
132+
"rn-fetch-blob": "^0.12.0",
131133
"rn-flipper-async-storage-advanced": "^1.0.4",
132134
"semver": "^7.3.2"
133135
},

yarn.lock

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7167,7 +7167,7 @@ balanced-match@^1.0.0:
71677167
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
71687168
integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==
71697169

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

11079+
glob@7.0.6:
11080+
version "7.0.6"
11081+
resolved "https://registry.yarnpkg.com/glob/-/glob-7.0.6.tgz#211bafaf49e525b8cd93260d14ab136152b3f57a"
11082+
integrity sha512-f8c0rE8JiCxpa52kWPAOa3ZaYEnzofDzCQLCn3Vdk0Z5OVLq3BsRFJI4S4ykpeVW6QMGBUkMeUpoEgWnMTnw5Q==
11083+
dependencies:
11084+
fs.realpath "^1.0.0"
11085+
inflight "^1.0.4"
11086+
inherits "2"
11087+
minimatch "^3.0.2"
11088+
once "^1.3.0"
11089+
path-is-absolute "^1.0.0"
11090+
1107911091
glob@7.1.6:
1108011092
version "7.1.6"
1108111093
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6"
@@ -17395,6 +17407,11 @@ react-native-localize@2.2.6:
1739517407
resolved "https://registry.yarnpkg.com/react-native-localize/-/react-native-localize-2.2.6.tgz#484f8c700bc629f230066e819265f80f6dd3ef58"
1739617408
integrity sha512-EZETlC1ZlW/4g6xfsNCwAkAw5BDL2A6zk/08JjFR/GRGxYuKRD7iP1hHn1+h6DEu+xROjPpoNeXfMER2vkTVIQ==
1739717409

17410+
react-native-mail@^6.1.1:
17411+
version "6.1.1"
17412+
resolved "https://registry.yarnpkg.com/react-native-mail/-/react-native-mail-6.1.1.tgz#f1b1f8034c84d2510a93e4a2a795f0db5a13595e"
17413+
integrity sha512-pTs180wwyh7hN/iyTC9SfOX579U4YhDlHOLxi47IGvhPJENqO/QFdBq+wWKxyhNqdQuVSy+LoeIxLreWnIeYmg==
17414+
1739817415
react-native-mask-input@1.2.1:
1739917416
version "1.2.1"
1740017417
resolved "https://registry.yarnpkg.com/react-native-mask-input/-/react-native-mask-input-1.2.1.tgz#2f01683844ded3693d0d845bd1beeb2b8367f2e2"
@@ -18187,6 +18204,14 @@ ripemd160@^2.0.0, ripemd160@^2.0.1:
1818718204
hash-base "^3.0.0"
1818818205
inherits "^2.0.1"
1818918206

18207+
rn-fetch-blob@^0.12.0:
18208+
version "0.12.0"
18209+
resolved "https://registry.yarnpkg.com/rn-fetch-blob/-/rn-fetch-blob-0.12.0.tgz#ec610d2f9b3f1065556b58ab9c106eeb256f3cba"
18210+
integrity sha512-+QnR7AsJ14zqpVVUbzbtAjq0iI8c9tCg49tIoKO2ezjzRunN7YL6zFSFSWZm6d+mE/l9r+OeDM3jmb2tBb2WbA==
18211+
dependencies:
18212+
base-64 "0.1.0"
18213+
glob "7.0.6"
18214+
1819018215
rn-flipper-async-storage-advanced@^1.0.4:
1819118216
version "1.0.4"
1819218217
resolved "https://registry.yarnpkg.com/rn-flipper-async-storage-advanced/-/rn-flipper-async-storage-advanced-1.0.4.tgz#ca3d0c315a75f379fef3771cc6ee3bef2d774265"

0 commit comments

Comments
 (0)