diff --git a/WatchKit/GettingStarted/GettingStarted.sln b/WatchKit/GettingStarted/GettingStarted.sln new file mode 100644 index 00000000..5d2948d7 --- /dev/null +++ b/WatchKit/GettingStarted/GettingStarted.sln @@ -0,0 +1,57 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WatchContainer", "WatchKitCatalog\WatchContainer.csproj", "{BA547202-7B4E-4C29-B3F2-6C6155DC9F3D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WatchExtension", "WatchkitExtension\WatchExtension.csproj", "{79CEF537-4C5B-497C-9F9B-E32AAC4227BC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WatchApp", "WatchApp\WatchApp.csproj", "{5B20EB20-E020-467C-9FC6-F1AE95CDC4E6}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|iPhoneSimulator = Debug|iPhoneSimulator + Release|iPhoneSimulator = Release|iPhoneSimulator + Debug|iPhone = Debug|iPhone + Release|iPhone = Release|iPhone + Ad-Hoc|iPhone = Ad-Hoc|iPhone + AppStore|iPhone = AppStore|iPhone + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5B20EB20-E020-467C-9FC6-F1AE95CDC4E6}.Ad-Hoc|iPhone.ActiveCfg = Release|iPhone + {5B20EB20-E020-467C-9FC6-F1AE95CDC4E6}.Ad-Hoc|iPhone.Build.0 = Release|iPhone + {5B20EB20-E020-467C-9FC6-F1AE95CDC4E6}.AppStore|iPhone.ActiveCfg = Release|iPhone + {5B20EB20-E020-467C-9FC6-F1AE95CDC4E6}.AppStore|iPhone.Build.0 = Release|iPhone + {5B20EB20-E020-467C-9FC6-F1AE95CDC4E6}.Debug|iPhone.ActiveCfg = Debug|iPhone + {5B20EB20-E020-467C-9FC6-F1AE95CDC4E6}.Debug|iPhone.Build.0 = Debug|iPhone + {5B20EB20-E020-467C-9FC6-F1AE95CDC4E6}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator + {5B20EB20-E020-467C-9FC6-F1AE95CDC4E6}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator + {5B20EB20-E020-467C-9FC6-F1AE95CDC4E6}.Release|iPhone.ActiveCfg = Release|iPhone + {5B20EB20-E020-467C-9FC6-F1AE95CDC4E6}.Release|iPhone.Build.0 = Release|iPhone + {5B20EB20-E020-467C-9FC6-F1AE95CDC4E6}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator + {5B20EB20-E020-467C-9FC6-F1AE95CDC4E6}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator + {79CEF537-4C5B-497C-9F9B-E32AAC4227BC}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone + {79CEF537-4C5B-497C-9F9B-E32AAC4227BC}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone + {79CEF537-4C5B-497C-9F9B-E32AAC4227BC}.AppStore|iPhone.ActiveCfg = AppStore|iPhone + {79CEF537-4C5B-497C-9F9B-E32AAC4227BC}.AppStore|iPhone.Build.0 = AppStore|iPhone + {79CEF537-4C5B-497C-9F9B-E32AAC4227BC}.Debug|iPhone.ActiveCfg = Debug|iPhone + {79CEF537-4C5B-497C-9F9B-E32AAC4227BC}.Debug|iPhone.Build.0 = Debug|iPhone + {79CEF537-4C5B-497C-9F9B-E32AAC4227BC}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator + {79CEF537-4C5B-497C-9F9B-E32AAC4227BC}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator + {79CEF537-4C5B-497C-9F9B-E32AAC4227BC}.Release|iPhone.ActiveCfg = Release|iPhone + {79CEF537-4C5B-497C-9F9B-E32AAC4227BC}.Release|iPhone.Build.0 = Release|iPhone + {79CEF537-4C5B-497C-9F9B-E32AAC4227BC}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator + {79CEF537-4C5B-497C-9F9B-E32AAC4227BC}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator + {BA547202-7B4E-4C29-B3F2-6C6155DC9F3D}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone + {BA547202-7B4E-4C29-B3F2-6C6155DC9F3D}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone + {BA547202-7B4E-4C29-B3F2-6C6155DC9F3D}.AppStore|iPhone.ActiveCfg = AppStore|iPhone + {BA547202-7B4E-4C29-B3F2-6C6155DC9F3D}.AppStore|iPhone.Build.0 = AppStore|iPhone + {BA547202-7B4E-4C29-B3F2-6C6155DC9F3D}.Debug|iPhone.ActiveCfg = Debug|iPhone + {BA547202-7B4E-4C29-B3F2-6C6155DC9F3D}.Debug|iPhone.Build.0 = Debug|iPhone + {BA547202-7B4E-4C29-B3F2-6C6155DC9F3D}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator + {BA547202-7B4E-4C29-B3F2-6C6155DC9F3D}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator + {BA547202-7B4E-4C29-B3F2-6C6155DC9F3D}.Release|iPhone.ActiveCfg = Release|iPhone + {BA547202-7B4E-4C29-B3F2-6C6155DC9F3D}.Release|iPhone.Build.0 = Release|iPhone + {BA547202-7B4E-4C29-B3F2-6C6155DC9F3D}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator + {BA547202-7B4E-4C29-B3F2-6C6155DC9F3D}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator + EndGlobalSection +EndGlobal diff --git a/WatchKit/GettingStarted/Metadata.xml b/WatchKit/GettingStarted/Metadata.xml new file mode 100644 index 00000000..f74f9daa --- /dev/null +++ b/WatchKit/GettingStarted/Metadata.xml @@ -0,0 +1,11 @@ + + + 683edee9-56c7-48a3-a151-7c7583fea187 + The sample shows a simple "hello world" Watch Kit app that responds to touches on the watch screen. + false + Beginning + iOS8, Watch, User Interface, Getting Started + iOS + false + Starter + diff --git a/WatchKit/GettingStarted/README.md b/WatchKit/GettingStarted/README.md new file mode 100644 index 00000000..43de46ec --- /dev/null +++ b/WatchKit/GettingStarted/README.md @@ -0,0 +1,4 @@ +Getting Started with Watch Kit +============================== + +Sample for [getting started with Watch Kit](http://developer.xamarin.com/guides/ios/watch/getting-started/). \ No newline at end of file diff --git a/WatchKit/GettingStarted/WatchApp/Entitlements.plist b/WatchKit/GettingStarted/WatchApp/Entitlements.plist new file mode 100644 index 00000000..9ae59937 --- /dev/null +++ b/WatchKit/GettingStarted/WatchApp/Entitlements.plist @@ -0,0 +1,6 @@ + + + + + + diff --git a/WatchKit/GettingStarted/WatchApp/Images.xcassets/AppIcon.appiconset/Contents.json b/WatchKit/GettingStarted/WatchApp/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..7ac31ed2 --- /dev/null +++ b/WatchKit/GettingStarted/WatchApp/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,162 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "57x57", + "scale" : "1x" + }, + { + "idiom" : "iphone", + "size" : "57x57", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "50x50", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "50x50", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "72x72", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "72x72", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "car", + "size" : "120x120", + "scale" : "1x" + }, + { + "size" : "14.5x14.5", + "idiom" : "watch", + "scale" : "2x", + "role" : "notificationCenter", + "subtype" : "38mm" + }, + { + "size" : "18x18", + "idiom" : "watch", + "scale" : "2x", + "role" : "notificationCenter", + "subtype" : "42mm" + }, + { + "size" : "29x29", + "idiom" : "watch", + "role" : "companionSettings", + "scale" : "2x" + }, + { + "size" : "29.3x29.3", + "idiom" : "watch", + "role" : "companionSettings", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "watch", + "scale" : "2x", + "role" : "appLauncher", + "subtype" : "38mm" + }, + { + "size" : "44x44", + "idiom" : "watch", + "scale" : "2x", + "role" : "appLauncher", + "subtype" : "42mm" + }, + { + "size" : "86x86", + "idiom" : "watch", + "scale" : "2x", + "role" : "quickLook", + "subtype" : "38mm" + }, + { + "size" : "98x98", + "idiom" : "watch", + "scale" : "2x", + "role" : "quickLook", + "subtype" : "42mm" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/WatchKit/GettingStarted/WatchApp/Info.plist b/WatchKit/GettingStarted/WatchApp/Info.plist new file mode 100644 index 00000000..48fe2d83 --- /dev/null +++ b/WatchKit/GettingStarted/WatchApp/Info.plist @@ -0,0 +1,35 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + WatchApp + CFBundleIdentifier + com.xamarin.WK2.watchkitapp + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + Watch App + CFBundlePackageType + XPC! + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + + WKCompanionAppBundleIdentifier + com.xamarin.WK2 + WKWatchKitApp + + MinimumOSVersion + 8.2 + + diff --git a/WatchKit/GettingStarted/WatchApp/Interface.storyboard b/WatchKit/GettingStarted/WatchApp/Interface.storyboard new file mode 100644 index 00000000..99f5be85 --- /dev/null +++ b/WatchKit/GettingStarted/WatchApp/Interface.storyboard @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/WatchKit/GettingStarted/WatchApp/WatchApp.csproj b/WatchKit/GettingStarted/WatchApp/WatchApp.csproj new file mode 100644 index 00000000..1016120d --- /dev/null +++ b/WatchKit/GettingStarted/WatchApp/WatchApp.csproj @@ -0,0 +1,95 @@ + + + + Debug + iPhoneSimulator + {FEACFBD2-3405-455C-9665-78FE426C6842};{D73F8E79-B4DD-4AB0-A767-D9FA3E2FE740};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {5B20EB20-E020-467C-9FC6-F1AE95CDC4E6} + Library + WatchApp + Resources + WatchApp + + + true + full + false + bin\iPhoneSimulator\Debug + DEBUG; + prompt + 4 + false + i386 + None + true + iPhone Developer + true + + + full + true + bin\iPhoneSimulator\Release + prompt + 4 + false + i386 + None + iPhone Developer + Entitlements.plist + + + true + full + false + bin\iPhone\Debug + DEBUG; + prompt + 4 + false + ARMv7, ARM64 + Entitlements.plist + true + iPhone Developer + true + + + full + true + bin\iPhone\Release + prompt + 4 + Entitlements.plist + ARMv7, ARM64 + false + iPhone Developer + + + + + + + + + + + + + + + + + + + + + + + + InterfaceController.cs + + + InterfaceController.designer.cs + InterfaceController.cs + + + diff --git a/WatchKit/GettingStarted/WatchKitCatalog/AppDelegate.cs b/WatchKit/GettingStarted/WatchKitCatalog/AppDelegate.cs new file mode 100644 index 00000000..ae4bcf23 --- /dev/null +++ b/WatchKit/GettingStarted/WatchKitCatalog/AppDelegate.cs @@ -0,0 +1,18 @@ +using System; + +using UIKit; +using Foundation; + +namespace WK2 +{ + //Minimal app delegate + [Register ("AppDelegate")] + public class AppDelegate : UIApplicationDelegate + { + public override UIWindow Window { + get; + set; + } + } +} + diff --git a/WatchKit/GettingStarted/WatchKitCatalog/Entitlements.plist b/WatchKit/GettingStarted/WatchKitCatalog/Entitlements.plist new file mode 100644 index 00000000..9ae59937 --- /dev/null +++ b/WatchKit/GettingStarted/WatchKitCatalog/Entitlements.plist @@ -0,0 +1,6 @@ + + + + + + diff --git a/WatchKit/GettingStarted/WatchKitCatalog/Info.plist b/WatchKit/GettingStarted/WatchKitCatalog/Info.plist new file mode 100644 index 00000000..c353fae6 --- /dev/null +++ b/WatchKit/GettingStarted/WatchKitCatalog/Info.plist @@ -0,0 +1,48 @@ + + + + + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + MinimumOSVersion + 8.2 + UIDeviceFamily + + 1 + 2 + + UILaunchStoryboardName + MainStoryboard_iPhone + UIMainStoryboardFile + MainStoryboard + UIMainStoryboardFile~ipad + MainStoryboard + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + XSAppIconAssets + Resources/Images.xcassets/AppIcons.appiconset + CFBundleDisplayName + WK2 + CFBundleIdentifier + com.xamarin.WK2 + + diff --git a/WatchKit/GettingStarted/WatchKitCatalog/Main.cs b/WatchKit/GettingStarted/WatchKitCatalog/Main.cs new file mode 100644 index 00000000..fb59e45b --- /dev/null +++ b/WatchKit/GettingStarted/WatchKitCatalog/Main.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +using Foundation; +using UIKit; + +namespace WK2 +{ + public class Application + { + // This is the main entry point of the application. + static void Main (string[] args) + { + // if you want to use a different Application Delegate class from "AppDelegate" + // you can specify it here. + UIApplication.Main (args, null, "AppDelegate"); + } + } +} diff --git a/WatchKit/GettingStarted/WatchKitCatalog/MainStoryboard.storyboard b/WatchKit/GettingStarted/WatchKitCatalog/MainStoryboard.storyboard new file mode 100644 index 00000000..9d1446fc --- /dev/null +++ b/WatchKit/GettingStarted/WatchKitCatalog/MainStoryboard.storyboard @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Contents.json b/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Contents.json new file mode 100644 index 00000000..79328e04 --- /dev/null +++ b/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Contents.json @@ -0,0 +1,168 @@ +{ + "images": [ + { + "size": "29x29", + "scale": "1x", + "idiom": "iphone" + }, + { + "filename": "Icon-29@2x.png", + "size": "29x29", + "scale": "2x", + "idiom": "iphone" + }, + { + "filename": "Icon-29@3x.png", + "size": "29x29", + "scale": "3x", + "idiom": "iphone" + }, + { + "filename": "Icon-40@2x.png", + "size": "40x40", + "scale": "2x", + "idiom": "iphone" + }, + { + "filename": "Icon-40@3x.png", + "size": "40x40", + "scale": "3x", + "idiom": "iphone" + }, + { + "size": "57x57", + "scale": "1x", + "idiom": "iphone" + }, + { + "size": "57x57", + "scale": "2x", + "idiom": "iphone" + }, + { + "filename": "Icon-60@2x.png", + "size": "60x60", + "scale": "2x", + "idiom": "iphone" + }, + { + "filename": "Icon-60@3x.png", + "size": "60x60", + "scale": "3x", + "idiom": "iphone" + }, + { + "size": "29x29", + "scale": "1x", + "idiom": "ipad" + }, + { + "size": "29x29", + "scale": "2x", + "idiom": "ipad" + }, + { + "size": "40x40", + "scale": "1x", + "idiom": "ipad" + }, + { + "size": "40x40", + "scale": "2x", + "idiom": "ipad" + }, + { + "size": "50x50", + "scale": "1x", + "idiom": "ipad" + }, + { + "size": "50x50", + "scale": "2x", + "idiom": "ipad" + }, + { + "size": "72x72", + "scale": "1x", + "idiom": "ipad" + }, + { + "size": "72x72", + "scale": "2x", + "idiom": "ipad" + }, + { + "size": "76x76", + "scale": "1x", + "idiom": "ipad" + }, + { + "size": "76x76", + "scale": "2x", + "idiom": "ipad" + }, + { + "role": "notificationCenter", + "size": "14.5x14.5", + "subtype": "38mm", + "scale": "2x", + "idiom": "watch" + }, + { + "role": "notificationCenter", + "size": "18x18", + "subtype": "42mm", + "scale": "2x", + "idiom": "watch" + }, + { + "role": "companionSettings", + "size": "29x29", + "scale": "2x", + "idiom": "watch" + }, + { + "role": "companionSettings", + "size": "29.3x29.3", + "scale": "3x", + "idiom": "watch" + }, + { + "role": "appLauncher", + "size": "40x40", + "subtype": "38mm", + "scale": "2x", + "idiom": "watch" + }, + { + "role": "appLauncher", + "size": "44x44", + "subtype": "42mm", + "scale": "2x", + "idiom": "watch" + }, + { + "role": "quickLook", + "size": "86x86", + "subtype": "38mm", + "scale": "2x", + "idiom": "watch" + }, + { + "role": "quickLook", + "size": "98x98", + "subtype": "42mm", + "scale": "2x", + "idiom": "watch" + }, + { + "size": "120x120", + "scale": "1x", + "idiom": "car" + } + ], + "info": { + "version": 1, + "author": "xcode" + } +} \ No newline at end of file diff --git a/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-29@2x.png b/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-29@2x.png new file mode 100644 index 00000000..fafb316c Binary files /dev/null and b/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-29@2x.png differ diff --git a/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-29@3x.png b/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-29@3x.png new file mode 100644 index 00000000..9488e3bc Binary files /dev/null and b/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-29@3x.png differ diff --git a/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-40@2x.png b/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-40@2x.png new file mode 100644 index 00000000..11199b3c Binary files /dev/null and b/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-40@2x.png differ diff --git a/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-40@3x.png b/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-40@3x.png new file mode 100644 index 00000000..43a72c9b Binary files /dev/null and b/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-40@3x.png differ diff --git a/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-60@2x.png b/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-60@2x.png new file mode 100644 index 00000000..e49e73ac Binary files /dev/null and b/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-60@2x.png differ diff --git a/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-60@3x.png b/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-60@3x.png new file mode 100644 index 00000000..ed15f8a0 Binary files /dev/null and b/WatchKit/GettingStarted/WatchKitCatalog/Resources/Images.xcassets/AppIcons.appiconset/Icon-60@3x.png differ diff --git a/WatchKit/GettingStarted/WatchKitCatalog/Resources/LaunchScreen.xib b/WatchKit/GettingStarted/WatchKitCatalog/Resources/LaunchScreen.xib new file mode 100644 index 00000000..4b11b52f --- /dev/null +++ b/WatchKit/GettingStarted/WatchKitCatalog/Resources/LaunchScreen.xib @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/WatchKit/GettingStarted/WatchKitCatalog/WatchContainer.csproj b/WatchKit/GettingStarted/WatchKitCatalog/WatchContainer.csproj new file mode 100644 index 00000000..3f670d7c --- /dev/null +++ b/WatchKit/GettingStarted/WatchKitCatalog/WatchContainer.csproj @@ -0,0 +1,134 @@ + + + + Debug + iPhoneSimulator + {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {BA547202-7B4E-4C29-B3F2-6C6155DC9F3D} + Exe + WatchKitCatalog + Resources + WatchKitCatalog + + + true + full + false + bin\iPhoneSimulator\Debug + DEBUG; + prompt + 4 + false + i386 + None + true + iPhone Developer + true + true + + + + + full + true + bin\iPhoneSimulator\Release + prompt + 4 + false + i386 + None + iPhone Developer + Entitlements.plist + + + true + full + false + bin\iPhone\Debug + DEBUG; + prompt + 4 + false + ARMv7, ARM64 + Entitlements.plist + true + iPhone Developer + true + + + full + true + bin\iPhone\Release + prompt + 4 + Entitlements.plist + ARMv7, ARM64 + false + iPhone Developer + + + full + true + bin\iPhone\Ad-Hoc + prompt + 4 + false + ARMv7, ARM64 + Entitlements.plist + true + iPhone Distribution + Automatic:AdHoc + true + + + full + true + bin\iPhone\AppStore + prompt + 4 + false + ARMv7, ARM64 + Entitlements.plist + Automatic:AppStore + iPhone Distribution + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + WatchKitCatalogViewController.cs + + + + + + {79CEF537-4C5B-497C-9F9B-E32AAC4227BC} + WatchExtension + True + + + diff --git a/WatchKit/GettingStarted/WatchKitCatalog/WatchKitCatalogViewController.cs b/WatchKit/GettingStarted/WatchKitCatalog/WatchKitCatalogViewController.cs new file mode 100644 index 00000000..41dc390b --- /dev/null +++ b/WatchKit/GettingStarted/WatchKitCatalog/WatchKitCatalogViewController.cs @@ -0,0 +1,18 @@ +using System; +using System.Drawing; + +using Foundation; +using UIKit; + +namespace WK2 +{ + //Minimal custom controller + public partial class WatchKitCatalogViewController : UIViewController + { + public WatchKitCatalogViewController (IntPtr handle) : base (handle) + { + } + + } +} + diff --git a/WatchKit/GettingStarted/WatchKitCatalog/WatchKitCatalogViewController.designer.cs b/WatchKit/GettingStarted/WatchKitCatalog/WatchKitCatalogViewController.designer.cs new file mode 100644 index 00000000..cce56f14 --- /dev/null +++ b/WatchKit/GettingStarted/WatchKitCatalog/WatchKitCatalogViewController.designer.cs @@ -0,0 +1,17 @@ +// +// This file has been generated automatically by MonoDevelop to store outlets and +// actions made in the Xcode designer. If it is removed, they will be lost. +// Manual changes to this file may not be handled correctly. +// +using Foundation; + +namespace WK2 +{ + [Register ("WatchKitCatalogViewController")] + partial class WatchKitCatalogViewController + { + void ReleaseDesignerOutlets () + { + } + } +} diff --git a/WatchKit/GettingStarted/WatchkitExtension/Entitlements.plist b/WatchKit/GettingStarted/WatchkitExtension/Entitlements.plist new file mode 100644 index 00000000..9ae59937 --- /dev/null +++ b/WatchKit/GettingStarted/WatchkitExtension/Entitlements.plist @@ -0,0 +1,6 @@ + + + + + + diff --git a/WatchKit/GettingStarted/WatchkitExtension/Info.plist b/WatchKit/GettingStarted/WatchkitExtension/Info.plist new file mode 100644 index 00000000..f4a82760 --- /dev/null +++ b/WatchKit/GettingStarted/WatchkitExtension/Info.plist @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + WatchkitExtension + CFBundleIdentifier + com.xamarin.WK2.watchkitextension + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + WatchKit Catalog Extension + CFBundlePackageType + XPC! + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + NSExtension + + NSExtensionAttributes + + WKAppBundleIdentifier + com.xamarin.WK2.watchkitapp + + NSExtensionPointIdentifier + com.apple.watchkit + + RemoteInterfacePrincipleClass + InterfaceController + MinimumOSVersion + 8.2 + + diff --git a/WatchKit/GettingStarted/WatchkitExtension/InterfaceController.cs b/WatchKit/GettingStarted/WatchkitExtension/InterfaceController.cs new file mode 100644 index 00000000..d8679770 --- /dev/null +++ b/WatchKit/GettingStarted/WatchkitExtension/InterfaceController.cs @@ -0,0 +1,40 @@ +using System; + +using WatchKit; +using Foundation; + +namespace WK2X +{ + public partial class InterfaceController : WKInterfaceController + { + public InterfaceController (IntPtr handle) : base (handle) + { + } + + public override void Awake (NSObject context) + { + base.Awake (context); + } + + int clickCount = 0; + + partial void OnButtonPress () + { + var msg = String.Format("Clicked {0} times", ++clickCount); + myLabel.SetText(msg); + } + + public override void WillActivate () + { + // This method is called when the watch view controller is about to be visible to the user. + Console.WriteLine ("{0} will activate", this); + } + + public override void DidDeactivate () + { + // This method is called when the watch view controller is no longer visible to the user. + Console.WriteLine ("{0} did deactivate", this); + } + } +} + diff --git a/WatchKit/GettingStarted/WatchkitExtension/InterfaceController.designer.cs b/WatchKit/GettingStarted/WatchkitExtension/InterfaceController.designer.cs new file mode 100644 index 00000000..7572f6ef --- /dev/null +++ b/WatchKit/GettingStarted/WatchkitExtension/InterfaceController.designer.cs @@ -0,0 +1,37 @@ +// WARNING +// +// This file has been generated automatically by Xamarin Studio to store outlets and +// actions made in the UI designer. If it is removed, they will be lost. +// Manual changes to this file may not be handled correctly. +// +using Foundation; +using System.CodeDom.Compiler; + +namespace WK2X +{ + [Register ("InterfaceController")] + partial class InterfaceController + { + [Outlet] + WatchKit.WKInterfaceButton myButton { get; set; } + + [Outlet] + WatchKit.WKInterfaceLabel myLabel { get; set; } + + [Action ("OnButtonPress")] + partial void OnButtonPress (); + + void ReleaseDesignerOutlets () + { + if (myButton != null) { + myButton.Dispose (); + myButton = null; + } + + if (myLabel != null) { + myLabel.Dispose (); + myLabel = null; + } + } + } +} diff --git a/WatchKit/GettingStarted/WatchkitExtension/WatchExtension.csproj b/WatchKit/GettingStarted/WatchkitExtension/WatchExtension.csproj new file mode 100644 index 00000000..6eb381fd --- /dev/null +++ b/WatchKit/GettingStarted/WatchkitExtension/WatchExtension.csproj @@ -0,0 +1,122 @@ + + + + Debug + iPhoneSimulator + {FEACFBD2-3405-455C-9665-78FE426C6842};{EE2C853D-36AF-4FDB-B1AD-8E90477E2198};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {79CEF537-4C5B-497C-9F9B-E32AAC4227BC} + Library + WatchkitExtension + Resources + WatchkitExtension + + + true + full + false + bin\iPhoneSimulator\Debug + DEBUG; + prompt + 4 + false + i386 + None + true + iPhone Developer + true + true + + + + + full + true + bin\iPhoneSimulator\Release + prompt + 4 + false + i386 + None + iPhone Developer + Entitlements.plist + + + true + full + false + bin\iPhone\Debug + DEBUG; + prompt + 4 + false + ARMv7, ARM64 + Entitlements.plist + true + iPhone Developer + true + + + full + true + bin\iPhone\Release + prompt + 4 + Entitlements.plist + ARMv7, ARM64 + false + iPhone Developer + + + full + true + bin\iPhone\Ad-Hoc + prompt + 4 + false + ARMv7, ARM64 + Entitlements.plist + true + iPhone Distribution + Automatic:AdHoc + true + + + full + true + bin\iPhone\AppStore + prompt + 4 + false + ARMv7, ARM64 + Entitlements.plist + Automatic:AppStore + iPhone Distribution + + + + + + + + + + + + + + + + + + InterfaceController.cs + + + + + + {5B20EB20-E020-467C-9FC6-F1AE95CDC4E6} + WatchApp + True + + +