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

add cresc

This commit is contained in:
sunnylqm
2025-02-18 13:16:37 +08:00
parent 0b52cf35d2
commit bbda7217ac
8 changed files with 91 additions and 66 deletions

View File

@@ -44,7 +44,7 @@ export type EventType =
export interface EventData {
currentVersion: string;
cInfo: {
pushy: string;
rnu: string;
rn: string;
os: string;
uuid: string;
@@ -65,15 +65,15 @@ export type UpdateEventsLogger = ({
data: EventData;
}) => void;
export interface PushyServerConfig {
export interface UpdateServerConfig {
main: string;
backups?: string[];
queryUrls?: string[];
}
export interface PushyOptions {
export interface ClientOptions {
appKey: string;
server?: PushyServerConfig;
server?: UpdateServerConfig;
logger?: UpdateEventsLogger;
updateStrategy?:
| 'alwaysAlert'
@@ -90,7 +90,7 @@ export interface PushyOptions {
beforeDownloadUpdate?: (info: CheckResult) => Promise<boolean>;
}
export interface PushyTestPayload {
export interface UpdateTestPayload {
type: '__rnPushyVersionHash' | string | null;
data: any;
}