Skip to content

feat(preview-api): expose public api for getting device's warnings #4132

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

Merged
merged 3 commits into from
Nov 16, 2018

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Nov 14, 2018

PR Checklist

What is the current behavior?

No api for getting warnings from device

What is the new behavior?

const deviceWarnings = tns.previewDevicesService.getDeviceWarnings({ previewAppVersion: "19.0.0" });
console.log(deviceWarnings);

@Fatme Fatme force-pushed the fatme/preview-api-device-warnings branch from 25d3c6f to 2cb69c9 Compare November 14, 2018 07:17
private $logger: ILogger,
private $pluginsService: IPluginsService) { }

public getDeviceWarnings(device: Device): string[] {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't expect getDeviceWarnings in PreviewAppPluginsService. It doesn't look like a plugins related logic.

@Fatme Fatme force-pushed the fatme/preview-api-device-warnings branch from 82de7a6 to b3bc007 Compare November 16, 2018 06:33
@Fatme Fatme merged commit 986673d into release Nov 16, 2018
@Fatme Fatme deleted the fatme/preview-api-device-warnings branch November 16, 2018 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants