@webority/mobile-core 0.19.1 → 0.88.1
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/userClient.js +1 -1
- package/lib/commonjs/auth/authStore.js +1 -1
- package/lib/commonjs/download/index.js +1 -1
- package/lib/commonjs/geolocation/index.js +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/network/networkStatus.js +1 -1
- package/lib/commonjs/sqlite/index.js +1 -1
- package/lib/commonjs/versionCheck/appBuild.js +1 -1
- package/lib/typescript/commonjs/api/baseUrl.d.ts +1 -1
- package/lib/typescript/commonjs/api/clientHeaders.d.ts +2 -2
- package/lib/typescript/commonjs/api/curl.d.ts +1 -1
- package/lib/typescript/commonjs/api/minAppVersion.d.ts +1 -1
- package/lib/typescript/commonjs/api/multipart.d.ts +1 -1
- package/lib/typescript/commonjs/api/publicClient.d.ts +2 -2
- package/lib/typescript/commonjs/api/requestDefaults.d.ts +1 -1
- package/lib/typescript/commonjs/api/retry.d.ts +2 -2
- package/lib/typescript/commonjs/api/tokenRefresh.d.ts +2 -2
- package/lib/typescript/commonjs/api/userClient.d.ts +4 -4
- package/lib/typescript/commonjs/api/workspace.d.ts +1 -1
- package/lib/typescript/commonjs/auth/authStore.d.ts +1 -1
- package/lib/typescript/commonjs/auth/index.d.ts +4 -4
- package/lib/typescript/commonjs/config/index.d.ts +2 -2
- package/lib/typescript/commonjs/download/adapters/expoFs.d.ts +1 -1
- package/lib/typescript/commonjs/download/index.d.ts +3 -3
- package/lib/typescript/commonjs/errors/extractApiError.d.ts +1 -1
- package/lib/typescript/commonjs/errors/index.d.ts +2 -2
- package/lib/typescript/commonjs/formatters/currency.d.ts +1 -1
- package/lib/typescript/commonjs/formatters/date.d.ts +3 -3
- package/lib/typescript/commonjs/formatters/dateMath.d.ts +3 -3
- package/lib/typescript/commonjs/formatters/formatConfig.d.ts +4 -4
- package/lib/typescript/commonjs/formatters/house.d.ts +3 -3
- package/lib/typescript/commonjs/formatters/index.d.ts +13 -13
- package/lib/typescript/commonjs/formatters/number.d.ts +1 -1
- package/lib/typescript/commonjs/formatters/phone.d.ts +4 -4
- package/lib/typescript/commonjs/geolocation/adapters/expoLocation.d.ts +1 -1
- package/lib/typescript/commonjs/geolocation/index.d.ts +3 -3
- package/lib/typescript/commonjs/index.d.ts +44 -44
- package/lib/typescript/commonjs/initSDK.d.ts +5 -5
- package/lib/typescript/commonjs/initUserAuth.d.ts +2 -2
- package/lib/typescript/commonjs/logger/crashlytics.d.ts +1 -1
- package/lib/typescript/commonjs/logger/index.d.ts +1 -1
- package/lib/typescript/commonjs/network/index.d.ts +2 -2
- package/lib/typescript/commonjs/network/networkStatus.d.ts +1 -1
- package/lib/typescript/commonjs/permissions/index.d.ts +4 -4
- package/lib/typescript/commonjs/push/index.d.ts +4 -4
- package/lib/typescript/commonjs/push/push.d.ts +6 -6
- package/lib/typescript/commonjs/push/task.d.ts +2 -2
- package/lib/typescript/commonjs/query/apiBaseQuery.d.ts +5 -5
- package/lib/typescript/commonjs/query/createAppApi.d.ts +3 -3
- package/lib/typescript/commonjs/query/index.d.ts +10 -10
- package/lib/typescript/commonjs/query/listeners.d.ts +1 -1
- package/lib/typescript/commonjs/query/paging.d.ts +2 -2
- package/lib/typescript/commonjs/query/persistedQueries.d.ts +2 -2
- package/lib/typescript/commonjs/query/tags.d.ts +2 -2
- package/lib/typescript/commonjs/redux/errorToastMiddleware.d.ts +3 -3
- package/lib/typescript/commonjs/redux/index.d.ts +5 -5
- package/lib/typescript/commonjs/redux/rootReducer.d.ts +1 -1
- package/lib/typescript/commonjs/review/index.d.ts +3 -3
- package/lib/typescript/commonjs/share/index.d.ts +1 -1
- package/lib/typescript/commonjs/smsRetriever/index.d.ts +1 -1
- package/lib/typescript/commonjs/specs/NativeSmsRetriever.d.ts +1 -1
- package/lib/typescript/commonjs/sqlite/adapters/expo.d.ts +1 -1
- package/lib/typescript/commonjs/sqlite/index.d.ts +4 -5
- package/lib/typescript/commonjs/storage/index.d.ts +2 -2
- package/lib/typescript/commonjs/types/axios.d.ts +2 -2
- package/lib/typescript/commonjs/updates/index.d.ts +2 -2
- package/lib/typescript/commonjs/updates/updates.d.ts +1 -1
- package/lib/typescript/commonjs/utils/imageCompression.d.ts +4 -4
- package/lib/typescript/commonjs/utils/index.d.ts +2 -2
- package/lib/typescript/commonjs/versionCheck/index.d.ts +6 -6
- package/lib/typescript/module/api/baseUrl.d.ts +1 -1
- package/lib/typescript/module/api/clientHeaders.d.ts +2 -2
- package/lib/typescript/module/api/curl.d.ts +1 -1
- package/lib/typescript/module/api/minAppVersion.d.ts +1 -1
- package/lib/typescript/module/api/multipart.d.ts +1 -1
- package/lib/typescript/module/api/publicClient.d.ts +2 -2
- package/lib/typescript/module/api/requestDefaults.d.ts +1 -1
- package/lib/typescript/module/api/retry.d.ts +2 -2
- package/lib/typescript/module/api/tokenRefresh.d.ts +2 -2
- package/lib/typescript/module/api/userClient.d.ts +4 -4
- package/lib/typescript/module/api/workspace.d.ts +1 -1
- package/lib/typescript/module/auth/authStore.d.ts +1 -1
- package/lib/typescript/module/auth/index.d.ts +4 -4
- package/lib/typescript/module/config/index.d.ts +2 -2
- package/lib/typescript/module/download/adapters/expoFs.d.ts +1 -1
- package/lib/typescript/module/download/index.d.ts +3 -3
- package/lib/typescript/module/errors/extractApiError.d.ts +1 -1
- package/lib/typescript/module/errors/index.d.ts +2 -2
- package/lib/typescript/module/formatters/currency.d.ts +1 -1
- package/lib/typescript/module/formatters/date.d.ts +3 -3
- package/lib/typescript/module/formatters/dateMath.d.ts +3 -3
- package/lib/typescript/module/formatters/formatConfig.d.ts +4 -4
- package/lib/typescript/module/formatters/house.d.ts +3 -3
- package/lib/typescript/module/formatters/index.d.ts +13 -13
- package/lib/typescript/module/formatters/number.d.ts +1 -1
- package/lib/typescript/module/formatters/phone.d.ts +4 -4
- package/lib/typescript/module/geolocation/adapters/expoLocation.d.ts +1 -1
- package/lib/typescript/module/geolocation/index.d.ts +3 -3
- package/lib/typescript/module/index.d.ts +44 -44
- package/lib/typescript/module/initSDK.d.ts +5 -5
- package/lib/typescript/module/initUserAuth.d.ts +2 -2
- package/lib/typescript/module/logger/crashlytics.d.ts +1 -1
- package/lib/typescript/module/logger/index.d.ts +1 -1
- package/lib/typescript/module/network/index.d.ts +2 -2
- package/lib/typescript/module/network/networkStatus.d.ts +1 -1
- package/lib/typescript/module/permissions/index.d.ts +4 -4
- package/lib/typescript/module/push/index.d.ts +4 -4
- package/lib/typescript/module/push/push.d.ts +6 -6
- package/lib/typescript/module/push/task.d.ts +2 -2
- package/lib/typescript/module/query/apiBaseQuery.d.ts +5 -5
- package/lib/typescript/module/query/createAppApi.d.ts +3 -3
- package/lib/typescript/module/query/index.d.ts +10 -10
- package/lib/typescript/module/query/listeners.d.ts +1 -1
- package/lib/typescript/module/query/paging.d.ts +2 -2
- package/lib/typescript/module/query/persistedQueries.d.ts +2 -2
- package/lib/typescript/module/query/tags.d.ts +2 -2
- package/lib/typescript/module/redux/errorToastMiddleware.d.ts +3 -3
- package/lib/typescript/module/redux/index.d.ts +5 -5
- package/lib/typescript/module/redux/rootReducer.d.ts +1 -1
- package/lib/typescript/module/review/index.d.ts +3 -3
- package/lib/typescript/module/share/index.d.ts +1 -1
- package/lib/typescript/module/smsRetriever/index.d.ts +1 -1
- package/lib/typescript/module/specs/NativeSmsRetriever.d.ts +1 -1
- package/lib/typescript/module/sqlite/adapters/expo.d.ts +1 -1
- package/lib/typescript/module/sqlite/index.d.ts +4 -5
- package/lib/typescript/module/storage/index.d.ts +2 -2
- package/lib/typescript/module/types/axios.d.ts +2 -2
- package/lib/typescript/module/updates/index.d.ts +2 -2
- package/lib/typescript/module/updates/updates.d.ts +1 -1
- package/lib/typescript/module/utils/imageCompression.d.ts +4 -4
- package/lib/typescript/module/utils/index.d.ts +2 -2
- package/lib/typescript/module/versionCheck/index.d.ts +6 -6
- package/package.json +28 -2
- package/src/specs/NativeSmsRetriever.ts +6 -6
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { type Environment } from
|
|
2
|
-
import { type DeviceInfoLike } from
|
|
1
|
+
import { type Environment } from "../config/index.js";
|
|
2
|
+
import { type DeviceInfoLike } from "./appBuild.js";
|
|
3
3
|
/**
|
|
4
4
|
* Supply the app identity from a native module instead of config.
|
|
5
5
|
* Prefer `setConfig({ appId, appBuild })` — it needs no native dependency.
|
|
6
6
|
* Pass `null` to clear.
|
|
7
7
|
*/
|
|
8
8
|
export declare const setDeviceInfoImplementation: (impl: DeviceInfoLike | null) => void;
|
|
9
|
-
export type Platform =
|
|
9
|
+
export type Platform = "ios" | "android" | string;
|
|
10
10
|
/**
|
|
11
11
|
* A required update always reports `'major'`: the server states a minimum
|
|
12
12
|
* build, not the size of the change, and `'major'` is the value consumers
|
|
13
13
|
* already treat as "must update".
|
|
14
14
|
*/
|
|
15
|
-
export type UpdateType =
|
|
15
|
+
export type UpdateType = "major" | "minor" | "patch" | "prerelease" | null;
|
|
16
16
|
/** @deprecated Store versions are no longer parsed; the minimum is a build number. */
|
|
17
17
|
export interface ParsedVersion {
|
|
18
18
|
major: number;
|
|
@@ -72,7 +72,7 @@ export declare const VersionCheck: VersionCheckType;
|
|
|
72
72
|
*/
|
|
73
73
|
export declare const useVersionCheck: (isAppReady: boolean, environment?: Environment) => UpdateInfo;
|
|
74
74
|
export default VersionCheck;
|
|
75
|
-
export { readAppBuild } from
|
|
76
|
-
export { isBuildBelowMinimum, parseBuildNumber } from
|
|
75
|
+
export { readAppBuild } from "./appBuild.js";
|
|
76
|
+
export { isBuildBelowMinimum, parseBuildNumber } from "./buildNumber.js";
|
|
77
77
|
export type { DeviceInfoLike };
|
|
78
78
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/mobile-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.88.1",
|
|
4
4
|
"description": "Platform layer for Webority React Native apps: HTTP clients, auth/token storage, config, logging, formatters, validators, network status, permissions, storage, version checks and over-the-air updates. No UI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -387,8 +387,34 @@
|
|
|
387
387
|
]
|
|
388
388
|
]
|
|
389
389
|
},
|
|
390
|
+
"devDependencies": {
|
|
391
|
+
"@react-native/metro-config": "0.86.3",
|
|
392
|
+
"@reduxjs/toolkit": "2.12.0",
|
|
393
|
+
"@testing-library/react-native": "12.9.0",
|
|
394
|
+
"@types/node": "25.6.0",
|
|
395
|
+
"@types/react": "19.2.18",
|
|
396
|
+
"expo": "57.0.17",
|
|
397
|
+
"expo-application": "57.0.2",
|
|
398
|
+
"expo-file-system": "57.0.6",
|
|
399
|
+
"expo-image-manipulator": "57.0.14",
|
|
400
|
+
"expo-location": "57.0.14",
|
|
401
|
+
"expo-network": "57.0.1",
|
|
402
|
+
"expo-screen-capture": "57.0.2",
|
|
403
|
+
"expo-secure-store": "57.0.2",
|
|
404
|
+
"expo-sqlite": "57.0.2",
|
|
405
|
+
"expo-store-review": "57.0.2",
|
|
406
|
+
"jest": "29.7.0",
|
|
407
|
+
"react": "19.2.8",
|
|
408
|
+
"react-native": "0.86.3",
|
|
409
|
+
"react-native-builder-bob": "0.43.0",
|
|
410
|
+
"react-redux": "9.3.0",
|
|
411
|
+
"react-test-renderer": "19.2.8",
|
|
412
|
+
"rimraf": "6.1.3",
|
|
413
|
+
"typescript": "5.9.3",
|
|
414
|
+
"@webority/mobile-dev": "0.0.0"
|
|
415
|
+
},
|
|
390
416
|
"scripts": {
|
|
391
|
-
"build": "bob build && node
|
|
417
|
+
"build": "bob build && node ../mobile-dev/scripts/minify-lib.mjs",
|
|
392
418
|
"clean": "rimraf lib",
|
|
393
419
|
"lint": "biome lint ./src",
|
|
394
420
|
"lint:fix": "biome lint --write ./src",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TurboModule } from
|
|
2
|
-
import { TurboModuleRegistry } from
|
|
1
|
+
import type { TurboModule } from "react-native";
|
|
2
|
+
import { TurboModuleRegistry } from "react-native";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Android-only — the Play Services SMS Retriever API has no iOS equivalent.
|
|
@@ -8,9 +8,9 @@ import { TurboModuleRegistry } from 'react-native';
|
|
|
8
8
|
* registered `SmsRetrieverPackage`.
|
|
9
9
|
*/
|
|
10
10
|
export interface Spec extends TurboModule {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
startSMSListener(): void;
|
|
12
|
+
stopSMSListener(): void;
|
|
13
|
+
getAppHash(): Promise<string>;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export default TurboModuleRegistry.getEnforcing<Spec>(
|
|
16
|
+
export default TurboModuleRegistry.getEnforcing<Spec>("WeborityMobileCoreSmsRetriever") as Spec;
|