@webority/mobile-core 0.0.28 → 0.1.0
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/lib/commonjs/api/baseUrl.js +1 -34
- package/lib/commonjs/api/curl.js +1 -109
- package/lib/commonjs/api/multipart.js +1 -21
- package/lib/commonjs/api/publicClient.js +1 -79
- package/lib/commonjs/api/responseBodyText.js +1 -0
- package/lib/commonjs/api/retry.js +1 -91
- package/lib/commonjs/api/tokenRefresh.js +1 -205
- package/lib/commonjs/api/userClient.js +1 -265
- package/lib/commonjs/auth/authStore.js +1 -265
- package/lib/commonjs/auth/index.js +1 -44
- package/lib/commonjs/auth/jwt.js +1 -112
- package/lib/commonjs/config/index.js +1 -72
- package/lib/commonjs/deepLink/index.js +1 -286
- package/lib/commonjs/download/adapters/expoFs.js +1 -69
- package/lib/commonjs/download/adapters/shared.js +1 -13
- package/lib/commonjs/download/index.js +1 -250
- package/lib/commonjs/formatters/currency.js +1 -70
- package/lib/commonjs/formatters/date.js +1 -167
- package/lib/commonjs/formatters/dateMath.js +1 -311
- package/lib/commonjs/formatters/index.js +1 -246
- package/lib/commonjs/formatters/initials.js +1 -32
- package/lib/commonjs/formatters/intlCache.js +1 -37
- package/lib/commonjs/formatters/number.js +1 -89
- package/lib/commonjs/formatters/phone.js +1 -369
- package/lib/commonjs/formatters/windowsToIanaTable.js +1 -164
- package/lib/commonjs/geolocation/adapters/expoLocation.js +1 -126
- package/lib/commonjs/geolocation/index.js +1 -355
- package/lib/commonjs/index.js +1 -644
- package/lib/commonjs/initSDK.js +1 -66
- package/lib/commonjs/initUserAuth.js +1 -37
- package/lib/commonjs/logger/crashlytics.js +1 -0
- package/lib/commonjs/logger/index.js +1 -301
- package/lib/commonjs/logger/redact.js +1 -50
- package/lib/commonjs/network/index.js +1 -31
- package/lib/commonjs/network/networkStatus.js +1 -171
- package/lib/commonjs/permissions/calendar.js +1 -14
- package/lib/commonjs/permissions/camera.js +1 -14
- package/lib/commonjs/permissions/contacts.js +1 -10
- package/lib/commonjs/permissions/index.js +1 -133
- package/lib/commonjs/permissions/location.js +1 -14
- package/lib/commonjs/permissions/mediaLibrary.js +1 -10
- package/lib/commonjs/permissions/notifications.js +1 -10
- package/lib/commonjs/permissions/photos.js +1 -14
- package/lib/commonjs/phone/countries.js +1 -265
- package/lib/commonjs/push/index.js +1 -61
- package/lib/commonjs/push/push.js +1 -443
- package/lib/commonjs/push/status.js +1 -0
- package/lib/commonjs/push/task.js +1 -43
- package/lib/commonjs/secureScreen/index.js +1 -0
- package/lib/commonjs/share/index.js +1 -70
- package/lib/commonjs/smsRetriever/index.js +1 -91
- package/lib/commonjs/specs/NativeSmsRetriever.js +1 -15
- package/lib/commonjs/sqlite/adapters/expo.js +1 -53
- package/lib/commonjs/sqlite/index.js +1 -604
- package/lib/commonjs/storage/index.js +1 -214
- package/lib/commonjs/types/axios.js +1 -4
- package/lib/commonjs/types/globals.d.js +1 -6
- package/lib/commonjs/utils/base64.js +1 -24
- package/lib/commonjs/utils/imageCompression.js +1 -389
- package/lib/commonjs/utils/index.js +1 -19
- package/lib/commonjs/validators/index.js +1 -227
- package/lib/commonjs/versionCheck/index.js +1 -419
- package/lib/module/api/baseUrl.js +1 -30
- package/lib/module/api/curl.js +1 -104
- package/lib/module/api/multipart.js +1 -16
- package/lib/module/api/publicClient.js +1 -75
- package/lib/module/api/responseBodyText.js +1 -0
- package/lib/module/api/retry.js +1 -85
- package/lib/module/api/tokenRefresh.js +1 -192
- package/lib/module/api/userClient.js +1 -243
- package/lib/module/auth/authStore.js +1 -257
- package/lib/module/auth/index.js +1 -5
- package/lib/module/auth/jwt.js +1 -106
- package/lib/module/config/index.js +1 -64
- package/lib/module/deepLink/index.js +1 -280
- package/lib/module/download/adapters/expoFs.js +1 -64
- package/lib/module/download/adapters/shared.js +1 -8
- package/lib/module/download/index.js +1 -242
- package/lib/module/formatters/currency.js +1 -65
- package/lib/module/formatters/date.js +1 -159
- package/lib/module/formatters/dateMath.js +1 -295
- package/lib/module/formatters/index.js +1 -9
- package/lib/module/formatters/initials.js +1 -27
- package/lib/module/formatters/intlCache.js +1 -30
- package/lib/module/formatters/number.js +1 -82
- package/lib/module/formatters/phone.js +1 -302
- package/lib/module/formatters/windowsToIanaTable.js +1 -160
- package/lib/module/geolocation/adapters/expoLocation.js +1 -121
- package/lib/module/geolocation/index.js +1 -347
- package/lib/module/index.js +1 -57
- package/lib/module/initSDK.js +1 -61
- package/lib/module/initUserAuth.js +1 -33
- package/lib/module/logger/crashlytics.js +1 -0
- package/lib/module/logger/index.js +1 -295
- package/lib/module/logger/redact.js +1 -44
- package/lib/module/network/index.js +1 -4
- package/lib/module/network/networkStatus.js +1 -161
- package/lib/module/permissions/calendar.js +1 -15
- package/lib/module/permissions/camera.js +1 -15
- package/lib/module/permissions/contacts.js +1 -11
- package/lib/module/permissions/index.js +1 -128
- package/lib/module/permissions/location.js +1 -15
- package/lib/module/permissions/mediaLibrary.js +1 -11
- package/lib/module/permissions/notifications.js +1 -11
- package/lib/module/permissions/photos.js +1 -15
- package/lib/module/phone/countries.js +1 -261
- package/lib/module/push/index.js +1 -4
- package/lib/module/push/push.js +1 -427
- package/lib/module/push/status.js +1 -0
- package/lib/module/push/task.js +1 -38
- package/lib/module/secureScreen/index.js +1 -0
- package/lib/module/share/index.js +1 -64
- package/lib/module/smsRetriever/index.js +1 -86
- package/lib/module/specs/NativeSmsRetriever.js +1 -13
- package/lib/module/sqlite/adapters/expo.js +1 -48
- package/lib/module/sqlite/index.js +1 -594
- package/lib/module/storage/index.js +1 -208
- package/lib/module/types/axios.js +1 -4
- package/lib/module/types/globals.d.js +1 -10
- package/lib/module/utils/base64.js +1 -19
- package/lib/module/utils/imageCompression.js +1 -383
- package/lib/module/utils/index.js +1 -4
- package/lib/module/validators/index.js +1 -205
- package/lib/module/versionCheck/index.js +1 -413
- package/lib/typescript/commonjs/api/responseBodyText.d.ts +6 -0
- package/lib/typescript/commonjs/index.d.ts +5 -0
- package/lib/typescript/commonjs/logger/crashlytics.d.ts +31 -0
- package/lib/typescript/commonjs/push/index.d.ts +3 -1
- package/lib/typescript/commonjs/push/push.d.ts +9 -1
- package/lib/typescript/commonjs/push/status.d.ts +9 -0
- package/lib/typescript/commonjs/secureScreen/index.d.ts +25 -0
- package/lib/typescript/module/api/responseBodyText.d.ts +6 -0
- package/lib/typescript/module/index.d.ts +5 -0
- package/lib/typescript/module/logger/crashlytics.d.ts +31 -0
- package/lib/typescript/module/push/index.d.ts +3 -1
- package/lib/typescript/module/push/push.d.ts +9 -1
- package/lib/typescript/module/push/status.d.ts +9 -0
- package/lib/typescript/module/secureScreen/index.d.ts +25 -0
- package/package.json +23 -4
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { RemoteLogger } from './index';
|
|
2
|
+
/**
|
|
3
|
+
* The part of `@react-native-firebase/crashlytics`'s modular API the adapter
|
|
4
|
+
* calls. Typed here, never imported, so the library carries no Firebase
|
|
5
|
+
* dependency: the app passes the module it already installs.
|
|
6
|
+
*/
|
|
7
|
+
export interface CrashlyticsModule<Instance = unknown> {
|
|
8
|
+
getCrashlytics: () => Instance;
|
|
9
|
+
log: (crashlytics: Instance, message: string) => void;
|
|
10
|
+
recordError: (crashlytics: Instance, error: Error, jsErrorName?: string) => void;
|
|
11
|
+
setUserId: (crashlytics: Instance, userId: string) => Promise<unknown>;
|
|
12
|
+
setAttribute: (crashlytics: Instance, name: string, value: string) => Promise<unknown>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Builds the `setRemoteLogger` adapter for Firebase Crashlytics:
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* import * as crashlytics from '@react-native-firebase/crashlytics';
|
|
19
|
+
* import { crashlyticsRemoteLogger, setRemoteLogger } from '@webority/mobile-core';
|
|
20
|
+
*
|
|
21
|
+
* setRemoteLogger(crashlyticsRemoteLogger(crashlytics));
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* Breadcrumbs and log lines become Crashlytics log lines, errors become
|
|
25
|
+
* non-fatals with their context logged just before, and the user id and
|
|
26
|
+
* attributes are set as given. Every call swallows its own failure, sync or
|
|
27
|
+
* async: the adapter runs inside `Logger.error`, so a throw would recurse, and
|
|
28
|
+
* a build without its Firebase config files has no Firebase app to report to.
|
|
29
|
+
*/
|
|
30
|
+
export declare const crashlyticsRemoteLogger: <Instance>(crashlytics: CrashlyticsModule<Instance>) => RemoteLogger;
|
|
31
|
+
//# sourceMappingURL=crashlytics.d.ts.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export type { PushAction, PushActionHandler, PushAndroidChannel, PushCategory, PushCategoryAction, PushConfig, PushDevice, PushLocalNotification, PushModules, PushNotificationsLike, PushPlatform, PushState
|
|
1
|
+
export type { PushAction, PushActionHandler, PushAndroidChannel, PushCategory, PushCategoryAction, PushConfig, PushDevice, PushLocalNotification, PushModules, PushNotificationsLike, PushPlatform, PushState } from './push';
|
|
2
2
|
export { disablePush, enablePush, initPush, notifyLocal, onAction, setBadgeCount, setCategories, setPushImplementation, usePush } from './push';
|
|
3
|
+
export type { PushStatus } from './status';
|
|
4
|
+
export { PUSH_STATUS } from './status';
|
|
3
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PushStatus } from './status';
|
|
1
2
|
export type PushPlatform = 'Fcm' | 'Apns';
|
|
2
3
|
export interface PushDevice {
|
|
3
4
|
installationId: string;
|
|
@@ -62,7 +63,6 @@ export interface PushLocalNotification {
|
|
|
62
63
|
body: string;
|
|
63
64
|
data?: Record<string, string>;
|
|
64
65
|
}
|
|
65
|
-
export type PushStatus = 'unknown' | 'granted' | 'denied' | 'unavailable';
|
|
66
66
|
export interface PushState {
|
|
67
67
|
status: PushStatus;
|
|
68
68
|
/** True once this process has registered the device, false after `disablePush`. */
|
|
@@ -86,6 +86,14 @@ interface NotificationResponseLike {
|
|
|
86
86
|
data?: Record<string, unknown> | null;
|
|
87
87
|
dataString?: string;
|
|
88
88
|
};
|
|
89
|
+
/** A remote push carries its raw payload: APNs `userInfo` on iOS, the FCM message on Android. */
|
|
90
|
+
trigger?: {
|
|
91
|
+
type?: string;
|
|
92
|
+
payload?: Record<string, unknown> | null;
|
|
93
|
+
remoteMessage?: {
|
|
94
|
+
data?: Record<string, unknown> | null;
|
|
95
|
+
} | null;
|
|
96
|
+
} | null;
|
|
89
97
|
};
|
|
90
98
|
};
|
|
91
99
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** The push permission values, as runtime constants an app can compare against. */
|
|
2
|
+
export declare const PUSH_STATUS: {
|
|
3
|
+
readonly unknown: "unknown";
|
|
4
|
+
readonly granted: "granted";
|
|
5
|
+
readonly denied: "denied";
|
|
6
|
+
readonly unavailable: "unavailable";
|
|
7
|
+
};
|
|
8
|
+
export type PushStatus = (typeof PUSH_STATUS)[keyof typeof PUSH_STATUS];
|
|
9
|
+
//# sourceMappingURL=status.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface SecureScreenOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Whether the screen is the one on show. Pass React Navigation's
|
|
4
|
+
* `useIsFocused()`, so a secure screen left underneath a pushed screen stops
|
|
5
|
+
* blocking. Default `true`: block for as long as the component is mounted.
|
|
6
|
+
*/
|
|
7
|
+
focused?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Blocks capture while the calling screen is focused and releases it on blur
|
|
11
|
+
* or unmount. Each call holds its own claim, so two secure screens on the stack
|
|
12
|
+
* never release each other's protection.
|
|
13
|
+
*
|
|
14
|
+
* ```tsx
|
|
15
|
+
* import { useIsFocused } from '@react-navigation/native';
|
|
16
|
+
* import { useSecureScreen } from '@webority/mobile-core/secureScreen';
|
|
17
|
+
*
|
|
18
|
+
* const SignInScreen = () => {
|
|
19
|
+
* useSecureScreen({ focused: useIsFocused() });
|
|
20
|
+
* // ...
|
|
21
|
+
* };
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare const useSecureScreen: (options?: SecureScreenOptions) => void;
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A failed response's body as log text. A JSON error body is an object, which a
|
|
3
|
+
* template string prints as "[object Object]"; binary bodies are named by size.
|
|
4
|
+
*/
|
|
5
|
+
export declare const responseBodyText: (body: unknown, fallback: string) => string;
|
|
6
|
+
//# sourceMappingURL=responseBodyText.d.ts.map
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* @webority/mobile-core/sqlite expo-sqlite
|
|
12
12
|
* @webority/mobile-core/download a filesystem module
|
|
13
13
|
* @webority/mobile-core/share expo-sharing
|
|
14
|
+
* @webority/mobile-core/secureScreen expo-screen-capture
|
|
14
15
|
* @webority/mobile-core/smsRetriever Android only, own TurboModule
|
|
15
16
|
*
|
|
16
17
|
* One more path is separate for size, not for a native package:
|
|
@@ -44,8 +45,12 @@ export type { TokenRefreshConfig, TokenRefreshResult, UserAuthOptions } from './
|
|
|
44
45
|
export { initUserAuth } from './initUserAuth.js';
|
|
45
46
|
export type { DeviceContext, LoggerOptions, LoggerType, RemoteLogger } from './logger/index.js';
|
|
46
47
|
export { configureLogger, getDeviceContext, Logger, setDeviceContext, setRemoteLogger } from './logger/index.js';
|
|
48
|
+
export type { CrashlyticsModule } from './logger/crashlytics.js';
|
|
49
|
+
export { crashlyticsRemoteLogger } from './logger/crashlytics.js';
|
|
47
50
|
export type { NetworkConnectionType, NetworkStatus, NetworkStatusLike, NetworkStatusListener } from './network/index.js';
|
|
48
51
|
export { addNetworkStatusListener, getNetworkStatus, setNetworkStatusImplementation, useNetworkStatus } from './network/index.js';
|
|
52
|
+
export type { PushStatus } from './push/status.js';
|
|
53
|
+
export { PUSH_STATUS } from './push/status.js';
|
|
49
54
|
export type { AsyncStorageLike, StorageApi } from './storage/index.js';
|
|
50
55
|
export { isStorageAvailable, Storage, setStorageImplementation } from './storage/index.js';
|
|
51
56
|
export { encodeBase64 } from './utils/base64.js';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { RemoteLogger } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* The part of `@react-native-firebase/crashlytics`'s modular API the adapter
|
|
4
|
+
* calls. Typed here, never imported, so the library carries no Firebase
|
|
5
|
+
* dependency: the app passes the module it already installs.
|
|
6
|
+
*/
|
|
7
|
+
export interface CrashlyticsModule<Instance = unknown> {
|
|
8
|
+
getCrashlytics: () => Instance;
|
|
9
|
+
log: (crashlytics: Instance, message: string) => void;
|
|
10
|
+
recordError: (crashlytics: Instance, error: Error, jsErrorName?: string) => void;
|
|
11
|
+
setUserId: (crashlytics: Instance, userId: string) => Promise<unknown>;
|
|
12
|
+
setAttribute: (crashlytics: Instance, name: string, value: string) => Promise<unknown>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Builds the `setRemoteLogger` adapter for Firebase Crashlytics:
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* import * as crashlytics from '@react-native-firebase/crashlytics';
|
|
19
|
+
* import { crashlyticsRemoteLogger, setRemoteLogger } from '@webority/mobile-core';
|
|
20
|
+
*
|
|
21
|
+
* setRemoteLogger(crashlyticsRemoteLogger(crashlytics));
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* Breadcrumbs and log lines become Crashlytics log lines, errors become
|
|
25
|
+
* non-fatals with their context logged just before, and the user id and
|
|
26
|
+
* attributes are set as given. Every call swallows its own failure, sync or
|
|
27
|
+
* async: the adapter runs inside `Logger.error`, so a throw would recurse, and
|
|
28
|
+
* a build without its Firebase config files has no Firebase app to report to.
|
|
29
|
+
*/
|
|
30
|
+
export declare const crashlyticsRemoteLogger: <Instance>(crashlytics: CrashlyticsModule<Instance>) => RemoteLogger;
|
|
31
|
+
//# sourceMappingURL=crashlytics.d.ts.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export type { PushAction, PushActionHandler, PushAndroidChannel, PushCategory, PushCategoryAction, PushConfig, PushDevice, PushLocalNotification, PushModules, PushNotificationsLike, PushPlatform, PushState
|
|
1
|
+
export type { PushAction, PushActionHandler, PushAndroidChannel, PushCategory, PushCategoryAction, PushConfig, PushDevice, PushLocalNotification, PushModules, PushNotificationsLike, PushPlatform, PushState } from './push.js';
|
|
2
2
|
export { disablePush, enablePush, initPush, notifyLocal, onAction, setBadgeCount, setCategories, setPushImplementation, usePush } from './push.js';
|
|
3
|
+
export type { PushStatus } from './status.js';
|
|
4
|
+
export { PUSH_STATUS } from './status.js';
|
|
3
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PushStatus } from './status.js';
|
|
1
2
|
export type PushPlatform = 'Fcm' | 'Apns';
|
|
2
3
|
export interface PushDevice {
|
|
3
4
|
installationId: string;
|
|
@@ -62,7 +63,6 @@ export interface PushLocalNotification {
|
|
|
62
63
|
body: string;
|
|
63
64
|
data?: Record<string, string>;
|
|
64
65
|
}
|
|
65
|
-
export type PushStatus = 'unknown' | 'granted' | 'denied' | 'unavailable';
|
|
66
66
|
export interface PushState {
|
|
67
67
|
status: PushStatus;
|
|
68
68
|
/** True once this process has registered the device, false after `disablePush`. */
|
|
@@ -86,6 +86,14 @@ interface NotificationResponseLike {
|
|
|
86
86
|
data?: Record<string, unknown> | null;
|
|
87
87
|
dataString?: string;
|
|
88
88
|
};
|
|
89
|
+
/** A remote push carries its raw payload: APNs `userInfo` on iOS, the FCM message on Android. */
|
|
90
|
+
trigger?: {
|
|
91
|
+
type?: string;
|
|
92
|
+
payload?: Record<string, unknown> | null;
|
|
93
|
+
remoteMessage?: {
|
|
94
|
+
data?: Record<string, unknown> | null;
|
|
95
|
+
} | null;
|
|
96
|
+
} | null;
|
|
89
97
|
};
|
|
90
98
|
};
|
|
91
99
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** The push permission values, as runtime constants an app can compare against. */
|
|
2
|
+
export declare const PUSH_STATUS: {
|
|
3
|
+
readonly unknown: "unknown";
|
|
4
|
+
readonly granted: "granted";
|
|
5
|
+
readonly denied: "denied";
|
|
6
|
+
readonly unavailable: "unavailable";
|
|
7
|
+
};
|
|
8
|
+
export type PushStatus = (typeof PUSH_STATUS)[keyof typeof PUSH_STATUS];
|
|
9
|
+
//# sourceMappingURL=status.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface SecureScreenOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Whether the screen is the one on show. Pass React Navigation's
|
|
4
|
+
* `useIsFocused()`, so a secure screen left underneath a pushed screen stops
|
|
5
|
+
* blocking. Default `true`: block for as long as the component is mounted.
|
|
6
|
+
*/
|
|
7
|
+
focused?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Blocks capture while the calling screen is focused and releases it on blur
|
|
11
|
+
* or unmount. Each call holds its own claim, so two secure screens on the stack
|
|
12
|
+
* never release each other's protection.
|
|
13
|
+
*
|
|
14
|
+
* ```tsx
|
|
15
|
+
* import { useIsFocused } from '@react-navigation/native';
|
|
16
|
+
* import { useSecureScreen } from '@webority/mobile-core/secureScreen';
|
|
17
|
+
*
|
|
18
|
+
* const SignInScreen = () => {
|
|
19
|
+
* useSecureScreen({ focused: useIsFocused() });
|
|
20
|
+
* // ...
|
|
21
|
+
* };
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare const useSecureScreen: (options?: SecureScreenOptions) => void;
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/mobile-core",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
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
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -161,6 +161,16 @@
|
|
|
161
161
|
"default": "./lib/commonjs/share/index.js"
|
|
162
162
|
}
|
|
163
163
|
},
|
|
164
|
+
"./secureScreen": {
|
|
165
|
+
"import": {
|
|
166
|
+
"types": "./lib/typescript/module/secureScreen/index.d.ts",
|
|
167
|
+
"default": "./lib/module/secureScreen/index.js"
|
|
168
|
+
},
|
|
169
|
+
"require": {
|
|
170
|
+
"types": "./lib/typescript/commonjs/secureScreen/index.d.ts",
|
|
171
|
+
"default": "./lib/commonjs/secureScreen/index.js"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
164
174
|
"./push": {
|
|
165
175
|
"import": {
|
|
166
176
|
"types": "./lib/typescript/module/push/index.d.ts",
|
|
@@ -211,6 +221,9 @@
|
|
|
211
221
|
"lib",
|
|
212
222
|
"src/specs",
|
|
213
223
|
"android",
|
|
224
|
+
"!android/build",
|
|
225
|
+
"!android/.gradle",
|
|
226
|
+
"!android/.cxx",
|
|
214
227
|
"!**/__tests__",
|
|
215
228
|
"!**/*.test.*",
|
|
216
229
|
"!**/*.spec.*",
|
|
@@ -225,7 +238,7 @@
|
|
|
225
238
|
}
|
|
226
239
|
},
|
|
227
240
|
"scripts": {
|
|
228
|
-
"build": "bob build",
|
|
241
|
+
"build": "bob build && node ../../scripts/minify-lib.mjs",
|
|
229
242
|
"clean": "rimraf lib",
|
|
230
243
|
"lint": "biome lint ./src",
|
|
231
244
|
"lint:fix": "biome lint --write ./src",
|
|
@@ -249,6 +262,7 @@
|
|
|
249
262
|
"expo-media-library": ">=57.0.0",
|
|
250
263
|
"expo-network": ">=57.0.0",
|
|
251
264
|
"expo-notifications": ">=57.0.0",
|
|
265
|
+
"expo-screen-capture": ">=57.0.0",
|
|
252
266
|
"expo-secure-store": ">=57.0.0",
|
|
253
267
|
"expo-sharing": ">=57.0.0",
|
|
254
268
|
"expo-sqlite": ">=57.0.0",
|
|
@@ -284,6 +298,9 @@
|
|
|
284
298
|
"expo-notifications": {
|
|
285
299
|
"optional": true
|
|
286
300
|
},
|
|
301
|
+
"expo-screen-capture": {
|
|
302
|
+
"optional": true
|
|
303
|
+
},
|
|
287
304
|
"expo-sharing": {
|
|
288
305
|
"optional": true
|
|
289
306
|
},
|
|
@@ -302,13 +319,15 @@
|
|
|
302
319
|
[
|
|
303
320
|
"commonjs",
|
|
304
321
|
{
|
|
305
|
-
"esm": true
|
|
322
|
+
"esm": true,
|
|
323
|
+
"sourceMaps": false
|
|
306
324
|
}
|
|
307
325
|
],
|
|
308
326
|
[
|
|
309
327
|
"module",
|
|
310
328
|
{
|
|
311
|
-
"esm": true
|
|
329
|
+
"esm": true,
|
|
330
|
+
"sourceMaps": false
|
|
312
331
|
}
|
|
313
332
|
],
|
|
314
333
|
[
|