Skip to content

Kddimitrov/watch app #4568

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 10 commits into from
May 7, 2019
Merged

Kddimitrov/watch app #4568

merged 10 commits into from
May 7, 2019

Conversation

KristianDD
Copy link
Contributor

@KristianDD KristianDD commented Apr 25, 2019

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #4541

@ghost ghost assigned KristianDD Apr 25, 2019
@ghost ghost added the new PR label Apr 25, 2019
@cla-bot cla-bot bot added the cla: yes label Apr 25, 2019
@KristianDD KristianDD force-pushed the kddimitrov/watch-app branch from f1d48d8 to 5b34894 Compare April 25, 2019 15:32
@KristianDD KristianDD force-pushed the kddimitrov/watch-app branch from 5b34894 to be2ee2a Compare April 25, 2019 15:39
@KristianDD
Copy link
Contributor Author

test cli-smoke

@KristianDD
Copy link
Contributor Author

test cli-smoke

const addedWatchApp = await this.$iOSWatchAppService.addWatchAppFromPath({ watchAppFolderPath: path.join(resourcesDirectoryPath, platformData.normalizedPlatformName), projectData, platformData, pbxProjPath });

if (addedWatchApp) {
this.$logger.warn("The support for Apple Watch App is currently in Beta. For more information about the current development state and any known issues, please check the relevant GitHub issue: ISSUE LINK");
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't forget to add the link here

{name: "PRODUCT_BUNDLE_IDENTIFIER", value: identifier},
{name: "SDKROOT", value: "watchos"},
{name: "TARGETED_DEVICE_FAMILY", value: IOSDeviceTargets.watchos},
{name: "WATCHOS_DEPLOYMENT_TARGET", value: 5.2},
Copy link
Contributor

Choose a reason for hiding this comment

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

should we hardcode this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree that its not obvious, but I left a way for the user to override this setting in the watchapp.json and extension.json. The method call here will read the JSON file and set all target build configuration properties listed in the property - the code is here.

For an example how the JSON file will look like you can check point 7 in the related issue description here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the great explanation and please excuse me for not checking the related issue.

@KristianDD KristianDD merged commit 1ad9786 into master May 7, 2019
@KristianDD KristianDD deleted the kddimitrov/watch-app branch May 7, 2019 10:01
@ghost ghost removed the new PR label May 7, 2019
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.

[Beta] Research and implement embedding Apple Watch App inside NativeScript App.
2 participants