Skip to content

Commit

Permalink
[TIMOB-24567] Rename template to watchos3-swift
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Apr 9, 2017
1 parent 359b11e commit 684a91e
Show file tree
Hide file tree
Showing 41 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apidoc/Titanium/WatchSession/WatchSession.yml
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,8 @@ examples:
The following example demonstrates how to create a new watch session, and call methods to transfer
data to the watch. Also include event listeners for receiving data from the watch.
It is important to note that this only works if there is a corresponding watchOS2 app written
in Objective-C in the Xcode project inside the extensions folder of the Titanium Project.
It is important to note that this only works if there is a corresponding watchOS app written
in Objective-C / Swift in the Xcode project inside the extensions folder of the Titanium Project.
#### app.js
Expand Down Expand Up @@ -575,7 +575,7 @@ examples:
statusBtn.addEventListener('click', function(e) {
eventsArea.value += '\nbtn pressed '
+ '\nwatchOS2 is supported: ' + Ti.WatchSession.isSupported
+ '\nwatchOS is supported: ' + Ti.WatchSession.isSupported
+ '\nwatch is paired: ' + Ti.WatchSession.isPaired
+ '\nwatchApp is installed: ' + Ti.WatchSession.isWatchAppInstalled
+ '\nwatchComplication is enabled: ' + Ti.WatchSession.isComplicationEnabled
Expand Down
2 changes: 1 addition & 1 deletion cli/lib/creators/applewatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ AppleWatchCreator.prototype.init = function init() {
options: {
'project-dir': this.configOptionProjectDir(130),
'name': this.configOptionAppName(140),
'template': this.configOptionTemplate(160, 'watchos2-swift')
'template': this.configOptionTemplate(160, 'watchos3-swift')
}
};
};
Expand Down

0 comments on commit 684a91e

Please sign in to comment.