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

Implement download and install apk

This commit is contained in:
sunnylqm
2020-09-27 22:16:27 +08:00
parent 3c5792423e
commit 17ff366f51
10 changed files with 176 additions and 42 deletions

10
lib/index.d.ts vendored
View File

@@ -43,6 +43,14 @@ export function switchVersionLater(hash: string): void;
export function markSuccess(): void;
export async function downloadAndInstallApk({
url,
onDownloadProgress,
}: {
url: string;
onDownloadProgress?: (data: ProgressData) => void;
}): void;
/**
* @param {string} main - The main api endpoint
* @param {string[]} [backups] - The back up endpoints.
@@ -55,7 +63,7 @@ export function setCustomEndpoints({
backupQueryUrl,
}: {
main: string;
backUps?: string[];
backups?: string[];
backupQueryUrl?: string;
}): void;