app-monorepo icon indicating copy to clipboard operation
app-monorepo copied to clipboard

refactor: replace app update api.

Open huhuanming opened this issue 1 year ago • 2 comments
trafficstars

huhuanming avatar May 06 '24 16:05 huhuanming

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview

codesandbox[bot] avatar May 06 '24 16:05 codesandbox[bot]

PR Summary

  • Updating of URL imports: The URLs ONEKEY_API_URL and ONEKEY_TEST_API_URL were 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 getLocalVariantChangeLog function and the return value of useAppChangeLog.
  • 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 IAppUpdateInfoData appears to have been deprecated and therefore has been removed.
  • Removal of a utility function: The utility method getChangeLog was 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 variables ONEKY_API_URL and ONEKY_TEST_API_URL.
  • Addition to platform environments: Added macosStore and linuxSnap to platform environments, indicating expanded support for these platforms.

what-the-diff[bot] avatar May 06 '24 16:05 what-the-diff[bot]