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

feat: add getCurrentVersionInfo

This commit is contained in:
sunnylqm
2024-02-25 22:23:46 +08:00
parent ab9c40bf2e
commit 45bfa2560e
2 changed files with 15 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ export const defaultContext = {
dismissError: noop,
downloadUpdate: asyncNoop,
downloadAndInstallApk: asyncNoop,
getCurrentVersionInfo: () => Promise.resolve({}),
currentHash: '',
packageVersion: '',
};
@@ -25,6 +26,11 @@ export const PushyContext = createContext<{
dismissError: () => void;
downloadUpdate: () => Promise<void>;
downloadAndInstallApk: (url: string) => Promise<void>;
getCurrentVersionInfo: () => Promise<{
name?: string;
description?: string;
metaInfo?: string;
}>;
currentHash: string;
packageVersion: string;
client?: Pushy;