@webority/mobile-core 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +39 -0
- package/android/build.gradle +65 -0
- package/android/src/newarch/java/com/webority/mobilecore/smsretriever/AppSignatureHelper.kt +57 -0
- package/android/src/newarch/java/com/webority/mobilecore/smsretriever/SmsRetrieverModule.kt +20 -0
- package/android/src/newarch/java/com/webority/mobilecore/smsretriever/SmsRetrieverModuleImpl.kt +146 -0
- package/android/src/newarch/java/com/webority/mobilecore/smsretriever/SmsRetrieverPackage.kt +33 -0
- package/lib/commonjs/api/baseUrl.js +34 -0
- package/lib/commonjs/api/curl.js +109 -0
- package/lib/commonjs/api/publicClient.js +73 -0
- package/lib/commonjs/api/retry.js +75 -0
- package/lib/commonjs/api/tokenRefresh.js +205 -0
- package/lib/commonjs/api/userClient.js +255 -0
- package/lib/commonjs/auth/authStore.js +232 -0
- package/lib/commonjs/auth/index.js +44 -0
- package/lib/commonjs/auth/jwt.js +112 -0
- package/lib/commonjs/config/index.js +66 -0
- package/lib/commonjs/deepLink/index.js +286 -0
- package/lib/commonjs/download/adapters/expoFs.js +69 -0
- package/lib/commonjs/download/adapters/shared.js +13 -0
- package/lib/commonjs/download/index.js +250 -0
- package/lib/commonjs/formatters/currency.js +69 -0
- package/lib/commonjs/formatters/date.js +168 -0
- package/lib/commonjs/formatters/dateMath.js +310 -0
- package/lib/commonjs/formatters/index.js +246 -0
- package/lib/commonjs/formatters/initials.js +32 -0
- package/lib/commonjs/formatters/number.js +88 -0
- package/lib/commonjs/formatters/phone.js +369 -0
- package/lib/commonjs/formatters/windowsToIanaTable.js +164 -0
- package/lib/commonjs/geolocation/adapters/expoLocation.js +126 -0
- package/lib/commonjs/geolocation/index.js +355 -0
- package/lib/commonjs/index.js +630 -0
- package/lib/commonjs/initSDK.js +66 -0
- package/lib/commonjs/initUserAuth.js +37 -0
- package/lib/commonjs/logger/index.js +291 -0
- package/lib/commonjs/network/index.js +31 -0
- package/lib/commonjs/network/networkStatus.js +133 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/permissions/calendar.js +14 -0
- package/lib/commonjs/permissions/camera.js +14 -0
- package/lib/commonjs/permissions/contacts.js +10 -0
- package/lib/commonjs/permissions/index.js +133 -0
- package/lib/commonjs/permissions/location.js +14 -0
- package/lib/commonjs/permissions/mediaLibrary.js +10 -0
- package/lib/commonjs/permissions/notifications.js +10 -0
- package/lib/commonjs/permissions/photos.js +14 -0
- package/lib/commonjs/phone/countries.js +265 -0
- package/lib/commonjs/share/index.js +70 -0
- package/lib/commonjs/smsRetriever/index.js +91 -0
- package/lib/commonjs/specs/NativeSmsRetriever.js +15 -0
- package/lib/commonjs/sqlite/adapters/expo.js +53 -0
- package/lib/commonjs/sqlite/index.js +604 -0
- package/lib/commonjs/storage/index.js +214 -0
- package/lib/commonjs/types/globals.d.js +6 -0
- package/lib/commonjs/utils/imageCompression.js +389 -0
- package/lib/commonjs/utils/index.js +19 -0
- package/lib/commonjs/validators/index.js +227 -0
- package/lib/commonjs/versionCheck/index.js +419 -0
- package/lib/module/api/baseUrl.js +30 -0
- package/lib/module/api/curl.js +104 -0
- package/lib/module/api/publicClient.js +69 -0
- package/lib/module/api/retry.js +69 -0
- package/lib/module/api/tokenRefresh.js +192 -0
- package/lib/module/api/userClient.js +233 -0
- package/lib/module/auth/authStore.js +224 -0
- package/lib/module/auth/index.js +5 -0
- package/lib/module/auth/jwt.js +106 -0
- package/lib/module/config/index.js +58 -0
- package/lib/module/deepLink/index.js +280 -0
- package/lib/module/download/adapters/expoFs.js +64 -0
- package/lib/module/download/adapters/shared.js +8 -0
- package/lib/module/download/index.js +242 -0
- package/lib/module/formatters/currency.js +64 -0
- package/lib/module/formatters/date.js +160 -0
- package/lib/module/formatters/dateMath.js +294 -0
- package/lib/module/formatters/index.js +9 -0
- package/lib/module/formatters/initials.js +27 -0
- package/lib/module/formatters/number.js +81 -0
- package/lib/module/formatters/phone.js +302 -0
- package/lib/module/formatters/windowsToIanaTable.js +160 -0
- package/lib/module/geolocation/adapters/expoLocation.js +121 -0
- package/lib/module/geolocation/index.js +347 -0
- package/lib/module/index.js +54 -0
- package/lib/module/initSDK.js +61 -0
- package/lib/module/initUserAuth.js +33 -0
- package/lib/module/logger/index.js +285 -0
- package/lib/module/network/index.js +4 -0
- package/lib/module/network/networkStatus.js +124 -0
- package/lib/module/package.json +1 -0
- package/lib/module/permissions/calendar.js +15 -0
- package/lib/module/permissions/camera.js +15 -0
- package/lib/module/permissions/contacts.js +11 -0
- package/lib/module/permissions/index.js +128 -0
- package/lib/module/permissions/location.js +15 -0
- package/lib/module/permissions/mediaLibrary.js +11 -0
- package/lib/module/permissions/notifications.js +11 -0
- package/lib/module/permissions/photos.js +15 -0
- package/lib/module/phone/countries.js +261 -0
- package/lib/module/share/index.js +64 -0
- package/lib/module/smsRetriever/index.js +86 -0
- package/lib/module/specs/NativeSmsRetriever.js +13 -0
- package/lib/module/sqlite/adapters/expo.js +48 -0
- package/lib/module/sqlite/index.js +594 -0
- package/lib/module/storage/index.js +208 -0
- package/lib/module/types/globals.d.js +10 -0
- package/lib/module/utils/imageCompression.js +383 -0
- package/lib/module/utils/index.js +4 -0
- package/lib/module/validators/index.js +205 -0
- package/lib/module/versionCheck/index.js +413 -0
- package/lib/typescript/commonjs/api/baseUrl.d.ts +20 -0
- package/lib/typescript/commonjs/api/curl.d.ts +18 -0
- package/lib/typescript/commonjs/api/publicClient.d.ts +11 -0
- package/lib/typescript/commonjs/api/retry.d.ts +27 -0
- package/lib/typescript/commonjs/api/tokenRefresh.d.ts +43 -0
- package/lib/typescript/commonjs/api/userClient.d.ts +37 -0
- package/lib/typescript/commonjs/auth/authStore.d.ts +79 -0
- package/lib/typescript/commonjs/auth/index.d.ts +5 -0
- package/lib/typescript/commonjs/auth/jwt.d.ts +31 -0
- package/lib/typescript/commonjs/config/index.d.ts +55 -0
- package/lib/typescript/commonjs/deepLink/index.d.ts +54 -0
- package/lib/typescript/commonjs/download/adapters/expoFs.d.ts +38 -0
- package/lib/typescript/commonjs/download/adapters/shared.d.ts +3 -0
- package/lib/typescript/commonjs/download/index.d.ts +86 -0
- package/lib/typescript/commonjs/formatters/currency.d.ts +24 -0
- package/lib/typescript/commonjs/formatters/date.d.ts +22 -0
- package/lib/typescript/commonjs/formatters/dateMath.d.ts +88 -0
- package/lib/typescript/commonjs/formatters/index.d.ts +10 -0
- package/lib/typescript/commonjs/formatters/initials.d.ts +11 -0
- package/lib/typescript/commonjs/formatters/number.d.ts +15 -0
- package/lib/typescript/commonjs/formatters/phone.d.ts +133 -0
- package/lib/typescript/commonjs/formatters/windowsToIanaTable.d.ts +18 -0
- package/lib/typescript/commonjs/geolocation/adapters/expoLocation.d.ts +42 -0
- package/lib/typescript/commonjs/geolocation/index.d.ts +90 -0
- package/lib/typescript/commonjs/index.d.ts +54 -0
- package/lib/typescript/commonjs/initSDK.d.ts +72 -0
- package/lib/typescript/commonjs/initUserAuth.d.ts +41 -0
- package/lib/typescript/commonjs/logger/index.d.ts +81 -0
- package/lib/typescript/commonjs/network/index.d.ts +3 -0
- package/lib/typescript/commonjs/network/networkStatus.d.ts +43 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/permissions/calendar.d.ts +2 -0
- package/lib/typescript/commonjs/permissions/camera.d.ts +2 -0
- package/lib/typescript/commonjs/permissions/contacts.d.ts +2 -0
- package/lib/typescript/commonjs/permissions/index.d.ts +48 -0
- package/lib/typescript/commonjs/permissions/location.d.ts +2 -0
- package/lib/typescript/commonjs/permissions/mediaLibrary.d.ts +2 -0
- package/lib/typescript/commonjs/permissions/notifications.d.ts +2 -0
- package/lib/typescript/commonjs/permissions/photos.d.ts +2 -0
- package/lib/typescript/commonjs/phone/countries.d.ts +13 -0
- package/lib/typescript/commonjs/share/index.d.ts +29 -0
- package/lib/typescript/commonjs/smsRetriever/index.d.ts +30 -0
- package/lib/typescript/commonjs/specs/NativeSmsRetriever.d.ts +15 -0
- package/lib/typescript/commonjs/sqlite/adapters/expo.d.ts +30 -0
- package/lib/typescript/commonjs/sqlite/index.d.ts +113 -0
- package/lib/typescript/commonjs/storage/index.d.ts +64 -0
- package/lib/typescript/commonjs/utils/imageCompression.d.ts +152 -0
- package/lib/typescript/commonjs/utils/index.d.ts +3 -0
- package/lib/typescript/commonjs/validators/index.d.ts +51 -0
- package/lib/typescript/commonjs/versionCheck/index.d.ts +80 -0
- package/lib/typescript/module/api/baseUrl.d.ts +20 -0
- package/lib/typescript/module/api/curl.d.ts +18 -0
- package/lib/typescript/module/api/publicClient.d.ts +11 -0
- package/lib/typescript/module/api/retry.d.ts +27 -0
- package/lib/typescript/module/api/tokenRefresh.d.ts +43 -0
- package/lib/typescript/module/api/userClient.d.ts +37 -0
- package/lib/typescript/module/auth/authStore.d.ts +79 -0
- package/lib/typescript/module/auth/index.d.ts +5 -0
- package/lib/typescript/module/auth/jwt.d.ts +31 -0
- package/lib/typescript/module/config/index.d.ts +55 -0
- package/lib/typescript/module/deepLink/index.d.ts +54 -0
- package/lib/typescript/module/download/adapters/expoFs.d.ts +38 -0
- package/lib/typescript/module/download/adapters/shared.d.ts +3 -0
- package/lib/typescript/module/download/index.d.ts +86 -0
- package/lib/typescript/module/formatters/currency.d.ts +24 -0
- package/lib/typescript/module/formatters/date.d.ts +22 -0
- package/lib/typescript/module/formatters/dateMath.d.ts +88 -0
- package/lib/typescript/module/formatters/index.d.ts +10 -0
- package/lib/typescript/module/formatters/initials.d.ts +11 -0
- package/lib/typescript/module/formatters/number.d.ts +15 -0
- package/lib/typescript/module/formatters/phone.d.ts +133 -0
- package/lib/typescript/module/formatters/windowsToIanaTable.d.ts +18 -0
- package/lib/typescript/module/geolocation/adapters/expoLocation.d.ts +42 -0
- package/lib/typescript/module/geolocation/index.d.ts +90 -0
- package/lib/typescript/module/index.d.ts +54 -0
- package/lib/typescript/module/initSDK.d.ts +72 -0
- package/lib/typescript/module/initUserAuth.d.ts +41 -0
- package/lib/typescript/module/logger/index.d.ts +81 -0
- package/lib/typescript/module/network/index.d.ts +3 -0
- package/lib/typescript/module/network/networkStatus.d.ts +43 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/permissions/calendar.d.ts +2 -0
- package/lib/typescript/module/permissions/camera.d.ts +2 -0
- package/lib/typescript/module/permissions/contacts.d.ts +2 -0
- package/lib/typescript/module/permissions/index.d.ts +48 -0
- package/lib/typescript/module/permissions/location.d.ts +2 -0
- package/lib/typescript/module/permissions/mediaLibrary.d.ts +2 -0
- package/lib/typescript/module/permissions/notifications.d.ts +2 -0
- package/lib/typescript/module/permissions/photos.d.ts +2 -0
- package/lib/typescript/module/phone/countries.d.ts +13 -0
- package/lib/typescript/module/share/index.d.ts +29 -0
- package/lib/typescript/module/smsRetriever/index.d.ts +30 -0
- package/lib/typescript/module/specs/NativeSmsRetriever.d.ts +15 -0
- package/lib/typescript/module/sqlite/adapters/expo.d.ts +30 -0
- package/lib/typescript/module/sqlite/index.d.ts +113 -0
- package/lib/typescript/module/storage/index.d.ts +64 -0
- package/lib/typescript/module/utils/imageCompression.d.ts +152 -0
- package/lib/typescript/module/utils/index.d.ts +3 -0
- package/lib/typescript/module/validators/index.d.ts +51 -0
- package/lib/typescript/module/versionCheck/index.d.ts +80 -0
- package/package.json +298 -0
- package/src/specs/NativeSmsRetriever.ts +16 -0
package/package.json
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@webority/mobile-core",
|
|
3
|
+
"version": "0.0.23",
|
|
4
|
+
"description": "Platform layer for Webority React Native apps: HTTP clients, auth/token storage, config, logging, formatters, validators, network status, permissions, storage and version checks. No UI.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react-native",
|
|
7
|
+
"auth",
|
|
8
|
+
"axios",
|
|
9
|
+
"formatters",
|
|
10
|
+
"validators",
|
|
11
|
+
"network",
|
|
12
|
+
"permissions",
|
|
13
|
+
"storage",
|
|
14
|
+
"webority"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https://www.webority.com",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"author": {
|
|
19
|
+
"name": "Webority Technologies",
|
|
20
|
+
"email": "contact@webority.com",
|
|
21
|
+
"url": "https://www.webority.com"
|
|
22
|
+
},
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./lib/typescript/module/index.d.ts",
|
|
27
|
+
"default": "./lib/module/index.js"
|
|
28
|
+
},
|
|
29
|
+
"require": {
|
|
30
|
+
"types": "./lib/typescript/commonjs/index.d.ts",
|
|
31
|
+
"default": "./lib/commonjs/index.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"./permissions": {
|
|
35
|
+
"import": {
|
|
36
|
+
"types": "./lib/typescript/module/permissions/index.d.ts",
|
|
37
|
+
"default": "./lib/module/permissions/index.js"
|
|
38
|
+
},
|
|
39
|
+
"require": {
|
|
40
|
+
"types": "./lib/typescript/commonjs/permissions/index.d.ts",
|
|
41
|
+
"default": "./lib/commonjs/permissions/index.js"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"./permissions/camera": {
|
|
45
|
+
"import": {
|
|
46
|
+
"types": "./lib/typescript/module/permissions/camera.d.ts",
|
|
47
|
+
"default": "./lib/module/permissions/camera.js"
|
|
48
|
+
},
|
|
49
|
+
"require": {
|
|
50
|
+
"types": "./lib/typescript/commonjs/permissions/camera.d.ts",
|
|
51
|
+
"default": "./lib/commonjs/permissions/camera.js"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"./permissions/photos": {
|
|
55
|
+
"import": {
|
|
56
|
+
"types": "./lib/typescript/module/permissions/photos.d.ts",
|
|
57
|
+
"default": "./lib/module/permissions/photos.js"
|
|
58
|
+
},
|
|
59
|
+
"require": {
|
|
60
|
+
"types": "./lib/typescript/commonjs/permissions/photos.d.ts",
|
|
61
|
+
"default": "./lib/commonjs/permissions/photos.js"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"./permissions/mediaLibrary": {
|
|
65
|
+
"import": {
|
|
66
|
+
"types": "./lib/typescript/module/permissions/mediaLibrary.d.ts",
|
|
67
|
+
"default": "./lib/module/permissions/mediaLibrary.js"
|
|
68
|
+
},
|
|
69
|
+
"require": {
|
|
70
|
+
"types": "./lib/typescript/commonjs/permissions/mediaLibrary.d.ts",
|
|
71
|
+
"default": "./lib/commonjs/permissions/mediaLibrary.js"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"./permissions/location": {
|
|
75
|
+
"import": {
|
|
76
|
+
"types": "./lib/typescript/module/permissions/location.d.ts",
|
|
77
|
+
"default": "./lib/module/permissions/location.js"
|
|
78
|
+
},
|
|
79
|
+
"require": {
|
|
80
|
+
"types": "./lib/typescript/commonjs/permissions/location.d.ts",
|
|
81
|
+
"default": "./lib/commonjs/permissions/location.js"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"./permissions/contacts": {
|
|
85
|
+
"import": {
|
|
86
|
+
"types": "./lib/typescript/module/permissions/contacts.d.ts",
|
|
87
|
+
"default": "./lib/module/permissions/contacts.js"
|
|
88
|
+
},
|
|
89
|
+
"require": {
|
|
90
|
+
"types": "./lib/typescript/commonjs/permissions/contacts.d.ts",
|
|
91
|
+
"default": "./lib/commonjs/permissions/contacts.js"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"./permissions/calendar": {
|
|
95
|
+
"import": {
|
|
96
|
+
"types": "./lib/typescript/module/permissions/calendar.d.ts",
|
|
97
|
+
"default": "./lib/module/permissions/calendar.js"
|
|
98
|
+
},
|
|
99
|
+
"require": {
|
|
100
|
+
"types": "./lib/typescript/commonjs/permissions/calendar.d.ts",
|
|
101
|
+
"default": "./lib/commonjs/permissions/calendar.js"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"./permissions/notifications": {
|
|
105
|
+
"import": {
|
|
106
|
+
"types": "./lib/typescript/module/permissions/notifications.d.ts",
|
|
107
|
+
"default": "./lib/module/permissions/notifications.js"
|
|
108
|
+
},
|
|
109
|
+
"require": {
|
|
110
|
+
"types": "./lib/typescript/commonjs/permissions/notifications.d.ts",
|
|
111
|
+
"default": "./lib/commonjs/permissions/notifications.js"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"./compressor": {
|
|
115
|
+
"import": {
|
|
116
|
+
"types": "./lib/typescript/module/utils/imageCompression.d.ts",
|
|
117
|
+
"default": "./lib/module/utils/imageCompression.js"
|
|
118
|
+
},
|
|
119
|
+
"require": {
|
|
120
|
+
"types": "./lib/typescript/commonjs/utils/imageCompression.d.ts",
|
|
121
|
+
"default": "./lib/commonjs/utils/imageCompression.js"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"./geolocation": {
|
|
125
|
+
"import": {
|
|
126
|
+
"types": "./lib/typescript/module/geolocation/index.d.ts",
|
|
127
|
+
"default": "./lib/module/geolocation/index.js"
|
|
128
|
+
},
|
|
129
|
+
"require": {
|
|
130
|
+
"types": "./lib/typescript/commonjs/geolocation/index.d.ts",
|
|
131
|
+
"default": "./lib/commonjs/geolocation/index.js"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"./sqlite": {
|
|
135
|
+
"import": {
|
|
136
|
+
"types": "./lib/typescript/module/sqlite/index.d.ts",
|
|
137
|
+
"default": "./lib/module/sqlite/index.js"
|
|
138
|
+
},
|
|
139
|
+
"require": {
|
|
140
|
+
"types": "./lib/typescript/commonjs/sqlite/index.d.ts",
|
|
141
|
+
"default": "./lib/commonjs/sqlite/index.js"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"./download": {
|
|
145
|
+
"import": {
|
|
146
|
+
"types": "./lib/typescript/module/download/index.d.ts",
|
|
147
|
+
"default": "./lib/module/download/index.js"
|
|
148
|
+
},
|
|
149
|
+
"require": {
|
|
150
|
+
"types": "./lib/typescript/commonjs/download/index.d.ts",
|
|
151
|
+
"default": "./lib/commonjs/download/index.js"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"./share": {
|
|
155
|
+
"import": {
|
|
156
|
+
"types": "./lib/typescript/module/share/index.d.ts",
|
|
157
|
+
"default": "./lib/module/share/index.js"
|
|
158
|
+
},
|
|
159
|
+
"require": {
|
|
160
|
+
"types": "./lib/typescript/commonjs/share/index.d.ts",
|
|
161
|
+
"default": "./lib/commonjs/share/index.js"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"./smsRetriever": {
|
|
165
|
+
"import": {
|
|
166
|
+
"types": "./lib/typescript/module/smsRetriever/index.d.ts",
|
|
167
|
+
"default": "./lib/module/smsRetriever/index.js"
|
|
168
|
+
},
|
|
169
|
+
"require": {
|
|
170
|
+
"types": "./lib/typescript/commonjs/smsRetriever/index.d.ts",
|
|
171
|
+
"default": "./lib/commonjs/smsRetriever/index.js"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"./phone/countries": {
|
|
175
|
+
"import": {
|
|
176
|
+
"types": "./lib/typescript/module/phone/countries.d.ts",
|
|
177
|
+
"default": "./lib/module/phone/countries.js"
|
|
178
|
+
},
|
|
179
|
+
"require": {
|
|
180
|
+
"types": "./lib/typescript/commonjs/phone/countries.d.ts",
|
|
181
|
+
"default": "./lib/commonjs/phone/countries.js"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"./package.json": "./package.json"
|
|
185
|
+
},
|
|
186
|
+
"main": "./lib/commonjs/index.js",
|
|
187
|
+
"module": "./lib/module/index.js",
|
|
188
|
+
"react-native": "./lib/module/index.js",
|
|
189
|
+
"types": "./lib/typescript/commonjs/index.d.ts",
|
|
190
|
+
"files": [
|
|
191
|
+
"lib",
|
|
192
|
+
"src/specs",
|
|
193
|
+
"android",
|
|
194
|
+
"!**/__tests__",
|
|
195
|
+
"!**/*.test.*",
|
|
196
|
+
"!**/*.spec.*",
|
|
197
|
+
"!**/*.map"
|
|
198
|
+
],
|
|
199
|
+
"codegenConfig": {
|
|
200
|
+
"name": "RNMobileCoreSmsRetrieverSpec",
|
|
201
|
+
"type": "modules",
|
|
202
|
+
"jsSrcsDir": "./src/specs",
|
|
203
|
+
"android": {
|
|
204
|
+
"javaPackageName": "com.webority.mobilecore.smsretriever"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"scripts": {
|
|
208
|
+
"build": "bob build",
|
|
209
|
+
"clean": "rimraf lib",
|
|
210
|
+
"lint": "biome lint ./src",
|
|
211
|
+
"lint:fix": "biome lint --write ./src",
|
|
212
|
+
"test": "jest",
|
|
213
|
+
"typecheck": "tsc --noEmit"
|
|
214
|
+
},
|
|
215
|
+
"dependencies": {
|
|
216
|
+
"axios": "^1.19.0",
|
|
217
|
+
"libphonenumber-js": "^1.12.41"
|
|
218
|
+
},
|
|
219
|
+
"peerDependencies": {
|
|
220
|
+
"expo": ">=57.0.0",
|
|
221
|
+
"expo-application": ">=57.0.0",
|
|
222
|
+
"expo-calendar": ">=57.0.0",
|
|
223
|
+
"expo-camera": ">=57.0.0",
|
|
224
|
+
"expo-contacts": ">=57.0.0",
|
|
225
|
+
"expo-file-system": ">=57.0.0",
|
|
226
|
+
"expo-image-manipulator": ">=57.0.0",
|
|
227
|
+
"expo-image-picker": ">=57.0.0",
|
|
228
|
+
"expo-location": ">=57.0.0",
|
|
229
|
+
"expo-media-library": ">=57.0.0",
|
|
230
|
+
"expo-network": ">=57.0.0",
|
|
231
|
+
"expo-notifications": ">=57.0.0",
|
|
232
|
+
"expo-secure-store": ">=57.0.0",
|
|
233
|
+
"expo-sharing": ">=57.0.0",
|
|
234
|
+
"expo-sqlite": ">=57.0.0",
|
|
235
|
+
"react": "^19.1.0",
|
|
236
|
+
"react-native": ">=0.81.0"
|
|
237
|
+
},
|
|
238
|
+
"peerDependenciesMeta": {
|
|
239
|
+
"expo-calendar": {
|
|
240
|
+
"optional": true
|
|
241
|
+
},
|
|
242
|
+
"expo-camera": {
|
|
243
|
+
"optional": true
|
|
244
|
+
},
|
|
245
|
+
"expo-contacts": {
|
|
246
|
+
"optional": true
|
|
247
|
+
},
|
|
248
|
+
"expo-file-system": {
|
|
249
|
+
"optional": true
|
|
250
|
+
},
|
|
251
|
+
"expo-image-manipulator": {
|
|
252
|
+
"optional": true
|
|
253
|
+
},
|
|
254
|
+
"expo-image-picker": {
|
|
255
|
+
"optional": true
|
|
256
|
+
},
|
|
257
|
+
"expo-location": {
|
|
258
|
+
"optional": true
|
|
259
|
+
},
|
|
260
|
+
"expo-media-library": {
|
|
261
|
+
"optional": true
|
|
262
|
+
},
|
|
263
|
+
"expo-notifications": {
|
|
264
|
+
"optional": true
|
|
265
|
+
},
|
|
266
|
+
"expo-sharing": {
|
|
267
|
+
"optional": true
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"publishConfig": {
|
|
271
|
+
"access": "public",
|
|
272
|
+
"registry": "https://registry.npmjs.org/"
|
|
273
|
+
},
|
|
274
|
+
"react-native-builder-bob": {
|
|
275
|
+
"source": "src",
|
|
276
|
+
"output": "lib",
|
|
277
|
+
"targets": [
|
|
278
|
+
[
|
|
279
|
+
"commonjs",
|
|
280
|
+
{
|
|
281
|
+
"esm": true
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
[
|
|
285
|
+
"module",
|
|
286
|
+
{
|
|
287
|
+
"esm": true
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
[
|
|
291
|
+
"typescript",
|
|
292
|
+
{
|
|
293
|
+
"project": "tsconfig.build.json"
|
|
294
|
+
}
|
|
295
|
+
]
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TurboModule } from 'react-native';
|
|
2
|
+
import { TurboModuleRegistry } from 'react-native';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Android-only — the Play Services SMS Retriever API has no iOS equivalent.
|
|
6
|
+
* The JS wrapper in `smsRetriever/index.ts` never touches this module on
|
|
7
|
+
* iOS, so `getEnforcing` only ever runs on Android, where autolinking has
|
|
8
|
+
* registered `SmsRetrieverPackage`.
|
|
9
|
+
*/
|
|
10
|
+
export interface Spec extends TurboModule {
|
|
11
|
+
startSMSListener(): void;
|
|
12
|
+
stopSMSListener(): void;
|
|
13
|
+
getAppHash(): Promise<string>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default TurboModuleRegistry.getEnforcing<Spec>('WeborityMobileCoreSmsRetriever') as Spec;
|