app-monorepo
app-monorepo copied to clipboard
refactor: replace app update api.
trafficstars
PR Summary
- Updating of URL imports: The URLs
ONEKEY_API_URLandONEKEY_TEST_API_URLwere now being imported from a new configuration. - Modification of Endpoint variables: The variables referencing the application programming interfaces (APIs) have been updated to correctly reflect their source.
- Changes in methods for app updates: The methods used for fetching update configurations and information about the latest app updates have been changed for efficiency.
- Alteration in component hooks: Changes were made to the
getLocalVariantChangeLogfunction and the return value ofuseAppChangeLog. - Condition removal for platform detection: Removed specific condition to check if the platform is Android, thus allowing a function to install packages universally.
- File deletion: Several files associated with app updates were deleted, pointing towards a restructuring of how the application handles updates.
- Removal of exports in shared index file: Export items related to handling release information, various utilities, and types have been removed, signifying a change in module organization and export strategy.
- Type removal: The data type
IAppUpdateInfoDataappears to have been deprecated and therefore has been removed. - Removal of a utility function: The utility method
getChangeLogwas deleted, potentially shifting how change logs are accessed or displayed. - Configuration changes: Made updates to software configuration, deleted the variable
ONEKEY_APP_TEST_UPDATE_URL, and made updates to the variablesONEKY_API_URLandONEKY_TEST_API_URL. - Addition to platform environments: Added
macosStoreandlinuxSnapto platform environments, indicating expanded support for these platforms.