@webority-technologies/mobile-core 0.0.8 → 0.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority-technologies/mobile-core",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
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",
@@ -159,6 +159,7 @@
159
159
  "types": "./lib/typescript/commonjs/index.d.ts",
160
160
  "files": [
161
161
  "lib",
162
+ "src/specs",
162
163
  "android",
163
164
  "!**/__tests__",
164
165
  "!**/*.test.*",
@@ -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;