Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

feat: get minimum supported versions of preview app based on data passed to preview-sdk #6

Merged
merged 6 commits into from
Sep 25, 2018

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Sep 20, 2018

Rel to: NativeScript/nativescript-cli#3813

Remove hardcoded msvVersions and add ability to get min supported versions based on key and env. Stores msvVersionsData on github and try to make a request to get them. In case request fails, fallbacks to default data.

@Fatme Fatme force-pushed the fatme/preview-app-versions branch from 24a78bc to 6553498 Compare September 25, 2018 11:33
@@ -0,0 +1,43 @@
import * as axios from "axios";
import { data } from "../preview-app-versions";
Copy link
Contributor

Choose a reason for hiding this comment

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

data -> sthg like fallbackPreviewVersions

return null;
}

private parseResponseCore(response: any): string {
Copy link
Contributor

Choose a reason for hiding this comment

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

parseResponseCore -> parseResponse
parseResponse -> parseResponseSafe

@Fatme Fatme merged commit 7b037f1 into master Sep 25, 2018
@Fatme Fatme deleted the fatme/preview-app-versions branch September 25, 2018 11:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants