Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(live-updates): add getCurrentBundle() and getNextBundle() method #252

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions packages/live-update/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export interface LiveUpdatePlugin {
* Only available on Android and iOS.
*
* @since 5.0.0
* @deprecated Use `getCurrentBundle()` instead.
*/
getBundle(): Promise<GetBundleResult>;
/**
Expand All @@ -110,6 +111,14 @@ export interface LiveUpdatePlugin {
* @since 5.0.0
*/
getChannel(): Promise<GetChannelResult>;
/**
* Get the current bundle identifier.
*
* Only available on Android and iOS.
*
* @since 6.3.0
*/
getCurrentBundle(): Promise<GetCurrentBundleResult>;
/**
* Get the custom identifier of the app.
*
Expand All @@ -126,6 +135,14 @@ export interface LiveUpdatePlugin {
* @since 5.0.0
*/
getDeviceId(): Promise<GetDeviceIdResult>;
/**
* Get the next bundle identifier.
*
* Only available on Android and iOS.
*
* @since 6.3.0
*/
getNextBundle(): Promise<GetNextBundleResult>;
/**
* Get the version code of the app.
*
Expand Down
Loading