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

Fix/app harness #1447

Merged
5 commits merged into from Mar 15, 2024
Merged

Fix/app harness #1447

5 commits merged into from Mar 15, 2024

Conversation

ElenaDiachenko
Copy link
Contributor

@ElenaDiachenko ElenaDiachenko commented Mar 7, 2024

Description

  • Added logging functionality to display console.logs within the app interface

Related issues

  • GH issues

Npm releases

n/a

NOTE:
test this PR following following:

@ElenaDiachenko ElenaDiachenko self-assigned this Mar 7, 2024
@ElenaDiachenko ElenaDiachenko added this to the 1.0 milestone Mar 7, 2024
@mihaiblaga89 mihaiblaga89 self-assigned this Mar 7, 2024
@mihaiblaga89 mihaiblaga89 marked this pull request as draft March 7, 2024 08:48
@ElenaDiachenko ElenaDiachenko marked this pull request as ready for review March 7, 2024 08:55
if (typeof SplashScreen === 'function') {
SplashScreen(logDebug).hide();
} else {
(SplashScreen as any)?.hide();
Copy link
Member

Choose a reason for hiding this comment

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

@ElenaDiachenko this needs to redone as casting to any is a red flag

export const addNotificationListeners = () => {
console.log('addNotificationListeners not supported on this platform');
export const addNotificationListeners = (logDebug: (message: string) => void) => {
logDebug('addNotificationListeners not supported on this platform');
Copy link
Member

Choose a reason for hiding this comment

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

instead of treating param as logDebug treat it as callback and add reusable type

export const addNotificationListeners = (callback: NotificationCallback) => {

type NotificationCallback = {
   ({ message: string }) => void
}

} else {
(SplashScreen as any)?.hide();
}
addNotificationListeners(logDebug);
Copy link
Member

Choose a reason for hiding this comment

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

with NotificationCallback (check comms below) you can make this generic:

addNotificationListeners(({message}) => logDebug(message));

Copy link
Collaborator

@GabrieleKaceviciute GabrieleKaceviciute left a comment

Choose a reason for hiding this comment

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

  • no info on androidwear (Wear OS Square API 30)

a_waer

  • ios -> text doesn't fit and is cut off
    ios

@pavjacko pavjacko mentioned this pull request Mar 11, 2024
@pauliusguzas pauliusguzas self-requested a review March 15, 2024 11:55
@pavjacko pavjacko closed this pull request by merging all changes into release/1.0 in 268eec1 Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants