1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-08 15:15:15 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

parseTestPayload

This commit is contained in:
sunnylqm
2024-07-28 21:26:21 +08:00
parent a77c3c85f3
commit 4f80f96a8d
3 changed files with 40 additions and 11 deletions

View File

@@ -14,7 +14,7 @@ export const defaultContext = {
downloadUpdate: asyncNoop,
downloadAndInstallApk: asyncNoop,
getCurrentVersionInfo: () => Promise.resolve({}),
parseTestPayload: () => Promise.resolve(false),
parseTestQrCode: () => false,
currentHash: '',
packageVersion: '',
};
@@ -32,7 +32,7 @@ export const PushyContext = createContext<{
description?: string;
metaInfo?: string;
}>;
parseTestPayload: (code: string) => Promise<boolean>;
parseTestQrCode: (code: string) => boolean;
currentHash: string;
packageVersion: string;
client?: Pushy;