MCPcopy Index your code
hub / github.com/reactnativecn/react-native-update / Spec

Interface Spec

src/NativePushy.ts:3–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { TurboModule, TurboModuleRegistry } from 'react-native';
2
3export interface Spec extends TurboModule {
4 getConstants: () => {
5 downloadRootDir: string;
6 packageVersion: string;
7 currentVersion: string;
8 isFirstTime: boolean;
9 rolledBackVersion: string;
10 buildTime: string;
11 uuid: string;
12 isUsingBundleUrl: boolean;
13 currentVersionInfo: string;
14 };
15 setLocalHashInfo(hash: string, info: string): Promise<void>;
16 getLocalHashInfo(hash: string): Promise<string>;
17 setUuid(uuid: string): Promise<void>;
18 reloadUpdate(options: { hash: string }): Promise<void>;
19 restartApp(): Promise<void>;
20 setNeedUpdate(options: { hash: string }): Promise<void>;
21 markSuccess(): Promise<void>;
22 downloadPatchFromPpk(options: {
23 updateUrl: string;
24 hash: string;
25 originHash: string;
26 }): Promise<void>;
27 downloadPatchFromPackage(options: {
28 updateUrl: string;
29 hash: string;
30 }): Promise<void>;
31 downloadFullUpdate(options: {
32 updateUrl: string;
33 hash: string;
34 }): Promise<void>;
35 downloadAndInstallApk(options: {
36 url: string;
37 target: string;
38 hash: string;
39 }): Promise<void>;
40 addListener(eventName: string): void;
41 removeListeners(count: number): void;
42}
43
44export default TurboModuleRegistry.get<Spec>('Pushy') as Spec | null;

Callers 25

setLocalHashInfoFunction · 0.65
invokePushyMethodFunction · 0.65
getLocalHashInfoFunction · 0.65
core.tsFile · 0.65
PushyClass · 0.65
PushyClass · 0.65
UpdateProviderFunction · 0.65
client.test.tsFile · 0.65
restartAbilityMethod · 0.65
PushyClass · 0.65
markSuccessInternalMethod · 0.65
PushyClass · 0.65

Implementers 3

UpdateModuleandroid/src/newarch/cn/reactnative/mod
UpdateModuleandroid/src/oldarch/cn/reactnative/mod
PushyTurboModuleharmony/pushy/src/main/ets/PushyTurboM

Calls

no outgoing calls

Tested by

no test coverage detected