-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #654 from SUI-Components/feat/sui-app-minor-ajustm…
…ents feat(components/tool/app): Add capgo live updates to the wrapped API
- Loading branch information
Showing
3 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import * as biometric from './biometric.js' | ||
import * as core from './core.js' | ||
import * as liveUpdates from './liveUpdates.js' | ||
import * as localNotifications from './localNotifications.js' | ||
|
||
export default function SuiApp() { | ||
throw new Error('sui-app is a set of tools and is not intended to be renderized as a React component') | ||
} | ||
|
||
export {biometric, core, localNotifications} | ||
export {biometric, core, liveUpdates, localNotifications} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {CapacitorUpdater} from '@capgo/capacitor-updater' | ||
|
||
export const notifyAppReady = () => CapacitorUpdater.notifyAppReady() | ||
|
||
export const download = async ({url, version}) => { | ||
return CapacitorUpdater.download({url, version}) | ||
} | ||
|
||
export const set = async version => { | ||
return CapacitorUpdater.set(version) | ||
} |