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

refactor: platform lib file #5144

Merged
merged 5 commits into from Nov 7, 2022

Conversation

maxwellmattryan
Copy link
Contributor

@maxwellmattryan maxwellmattryan commented Nov 4, 2022

Summary

Please summarize your changes, describing what they are and why they were made.

This code is old and should be touched up in accordance to our coding conventions.

Changelog

- Remove platform lib file (move code to core app module)

Relevant Issues

Please list any related issues using development keywords.

Closes #5095

Testing

Platforms

Please select any platforms where your changes have been tested.

  • Desktop
    • MacOS
    • Linux
    • Windows
  • Mobile
    • iOS
    • Android

Instructions

Please describe the specific instructions, configurations, and/or test cases necessary to test and verify that your changes work as intended.

Test general app functionality, specifically things involving platform operations like importing / exporting Stronghold files.

Checklist

Please tick all of the following boxes that are relevant to your changes.

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or modified tests that prove my changes work as intended
  • I have verified that new and existing unit tests pass locally with my changes
  • I have verified that my latest changes pass CI workflows for testing and linting
  • I have made corresponding changes to the documentation

@maxwellmattryan maxwellmattryan added type:refactor Refactor code stardust Related to the Stardust Protocol labels Nov 4, 2022
@maxwellmattryan maxwellmattryan self-assigned this Nov 4, 2022
@maxwellmattryan maxwellmattryan linked an issue Nov 4, 2022 that may be closed by this pull request
@maxwellmattryan maxwellmattryan marked this pull request as ready for review November 4, 2022 19:36
import { IAppVersionDetails } from './app-version-details.interface'

export interface IPlatformEventMap {
'menu-logout': void
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just as a comment, these are very desktop events, we might want to improve this in the future

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, this is true. Are some / any of these relevant for mobile?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that I can see, but we will have to check when we have the bindings working, just something to consider for the future

Copy link
Member

@begonaalvarezd begonaalvarezd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm and works smooth on mobile👌🏼 plus the mobile crash is gone 💪🏼
@MarkNerdi could you please review that everything also works as expected on desktop 🙏🏼 ?

Copy link
Contributor

@MarkNerdi996 MarkNerdi996 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works perfectly

@maxwellmattryan maxwellmattryan merged commit 82b2e9b into stardust-develop Nov 7, 2022
@maxwellmattryan maxwellmattryan deleted the refactor/platform-lib-file branch November 7, 2022 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stardust Related to the Stardust Protocol type:refactor Refactor code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Refactor platform.ts lib file
3 participants