From e17c4e52714e2b1c36321750dbcbde6891e7f31e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Mon, 3 Apr 2017 13:10:24 +0200 Subject: [PATCH] GRDBDemoWatchOS --- .../Circular.imageset/Contents.json | 18 ++ .../Contents.json | 28 ++ .../Extra Large.imageset/Contents.json | 18 ++ .../Modular.imageset/Contents.json | 18 ++ .../Utilitarian.imageset/Contents.json | 18 ++ .../ExtensionDelegate.swift | 50 ++++ .../GRDBDemoWatchOS Extension/Info.plist | 36 +++ .../InterfaceController.swift | 31 +++ .../AppIcon.appiconset/Contents.json | 55 ++++ .../Base.lproj/Interface.storyboard | 15 + .../GRDBDemoiOS/GRDBDemoWatchOS/Info.plist | 33 +++ .../GRDBDemoiOS.xcodeproj/project.pbxproj | 263 ++++++++++++++++++ .../xcschemes/GRDBDemoWatchOS.xcscheme | 141 ++++++++++ 13 files changed, 724 insertions(+) create mode 100644 DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json create mode 100644 DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Contents.json create mode 100644 DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json create mode 100644 DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json create mode 100644 DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json create mode 100644 DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/ExtensionDelegate.swift create mode 100644 DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Info.plist create mode 100644 DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/InterfaceController.swift create mode 100644 DemoApps/GRDBDemoiOS/GRDBDemoWatchOS/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 DemoApps/GRDBDemoiOS/GRDBDemoWatchOS/Base.lproj/Interface.storyboard create mode 100644 DemoApps/GRDBDemoiOS/GRDBDemoWatchOS/Info.plist create mode 100644 DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/xcshareddata/xcschemes/GRDBDemoWatchOS.xcscheme diff --git a/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json new file mode 100644 index 000000000..9be9adbf7 --- /dev/null +++ b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json @@ -0,0 +1,18 @@ +{ + "images" : [ + { + "idiom" : "watch", + "screenWidth" : "{130,145}", + "scale" : "2x" + }, + { + "idiom" : "watch", + "screenWidth" : "{146,165}", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Contents.json b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Contents.json new file mode 100644 index 000000000..2eca9a1f4 --- /dev/null +++ b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Contents.json @@ -0,0 +1,28 @@ +{ + "assets" : [ + { + "idiom" : "watch", + "filename" : "Circular.imageset", + "role" : "circular" + }, + { + "idiom" : "watch", + "filename" : "Extra Large.imageset", + "role" : "extra-large" + }, + { + "idiom" : "watch", + "filename" : "Modular.imageset", + "role" : "modular" + }, + { + "idiom" : "watch", + "filename" : "Utilitarian.imageset", + "role" : "utilitarian" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json new file mode 100644 index 000000000..9be9adbf7 --- /dev/null +++ b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json @@ -0,0 +1,18 @@ +{ + "images" : [ + { + "idiom" : "watch", + "screenWidth" : "{130,145}", + "scale" : "2x" + }, + { + "idiom" : "watch", + "screenWidth" : "{146,165}", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json new file mode 100644 index 000000000..9be9adbf7 --- /dev/null +++ b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json @@ -0,0 +1,18 @@ +{ + "images" : [ + { + "idiom" : "watch", + "screenWidth" : "{130,145}", + "scale" : "2x" + }, + { + "idiom" : "watch", + "screenWidth" : "{146,165}", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json new file mode 100644 index 000000000..9be9adbf7 --- /dev/null +++ b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json @@ -0,0 +1,18 @@ +{ + "images" : [ + { + "idiom" : "watch", + "screenWidth" : "{130,145}", + "scale" : "2x" + }, + { + "idiom" : "watch", + "screenWidth" : "{146,165}", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/ExtensionDelegate.swift b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/ExtensionDelegate.swift new file mode 100644 index 000000000..b6f6d2e2e --- /dev/null +++ b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/ExtensionDelegate.swift @@ -0,0 +1,50 @@ +// +// ExtensionDelegate.swift +// GRDBDemoWatchOS Extension +// +// Created by Gwendal Roué on 03/04/2017. +// Copyright © 2017 Gwendal Roué. All rights reserved. +// + +import WatchKit + +class ExtensionDelegate: NSObject, WKExtensionDelegate { + + func applicationDidFinishLaunching() { + // Perform any final initialization of your application. + } + + func applicationDidBecomeActive() { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillResignActive() { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, etc. + } + + func handle(_ backgroundTasks: Set) { + // Sent when the system needs to launch the application in the background to process tasks. Tasks arrive in a set, so loop through and process each one. + for task in backgroundTasks { + // Use a switch statement to check the task type + switch task { + case let backgroundTask as WKApplicationRefreshBackgroundTask: + // Be sure to complete the background task once you’re done. + backgroundTask.setTaskCompleted() + case let snapshotTask as WKSnapshotRefreshBackgroundTask: + // Snapshot tasks have a unique completion call, make sure to set your expiration date + snapshotTask.setTaskCompleted(restoredDefaultState: true, estimatedSnapshotExpiration: Date.distantFuture, userInfo: nil) + case let connectivityTask as WKWatchConnectivityRefreshBackgroundTask: + // Be sure to complete the connectivity task once you’re done. + connectivityTask.setTaskCompleted() + case let urlSessionTask as WKURLSessionRefreshBackgroundTask: + // Be sure to complete the URL session task once you’re done. + urlSessionTask.setTaskCompleted() + default: + // make sure to complete unhandled task types + task.setTaskCompleted() + } + } + } + +} diff --git a/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Info.plist b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Info.plist new file mode 100644 index 000000000..831251030 --- /dev/null +++ b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/Info.plist @@ -0,0 +1,36 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + GRDBDemoWatchOS Extension + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + XPC! + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + NSExtension + + NSExtensionAttributes + + WKAppBundleIdentifier + com.github.groue.GRDBDemoiOS.watchkitapp + + NSExtensionPointIdentifier + com.apple.watchkit + + WKExtensionDelegateClassName + $(PRODUCT_MODULE_NAME).ExtensionDelegate + + diff --git a/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/InterfaceController.swift b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/InterfaceController.swift new file mode 100644 index 000000000..666e38027 --- /dev/null +++ b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS Extension/InterfaceController.swift @@ -0,0 +1,31 @@ +// +// InterfaceController.swift +// GRDBDemoWatchOS Extension +// +// Created by Gwendal Roué on 03/04/2017. +// Copyright © 2017 Gwendal Roué. All rights reserved. +// + +import WatchKit +import Foundation + + +class InterfaceController: WKInterfaceController { + + override func awake(withContext context: Any?) { + super.awake(withContext: context) + + // Configure interface objects here. + } + + override func willActivate() { + // This method is called when watch view controller is about to be visible to user + super.willActivate() + } + + override func didDeactivate() { + // This method is called when watch view controller is no longer visible + super.didDeactivate() + } + +} diff --git a/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..dd221ba54 --- /dev/null +++ b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,55 @@ +{ + "images" : [ + { + "size" : "24x24", + "idiom" : "watch", + "scale" : "2x", + "role" : "notificationCenter", + "subtype" : "38mm" + }, + { + "size" : "27.5x27.5", + "idiom" : "watch", + "scale" : "2x", + "role" : "notificationCenter", + "subtype" : "42mm" + }, + { + "size" : "29x29", + "idiom" : "watch", + "role" : "companionSettings", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "watch", + "role" : "companionSettings", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "watch", + "scale" : "2x", + "role" : "appLauncher", + "subtype" : "38mm" + }, + { + "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" + } +} diff --git a/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS/Base.lproj/Interface.storyboard b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS/Base.lproj/Interface.storyboard new file mode 100644 index 000000000..bf1e56fe0 --- /dev/null +++ b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS/Base.lproj/Interface.storyboard @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS/Info.plist b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS/Info.plist new file mode 100644 index 000000000..34395e2ee --- /dev/null +++ b/DemoApps/GRDBDemoiOS/GRDBDemoWatchOS/Info.plist @@ -0,0 +1,33 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + GRDBDemoiOS + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + + WKCompanionAppBundleIdentifier + com.github.groue.GRDBDemoiOS + WKWatchKitApp + + + diff --git a/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/project.pbxproj b/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/project.pbxproj index fdbe56fc8..39aa56cc5 100644 --- a/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/project.pbxproj +++ b/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/project.pbxproj @@ -7,6 +7,13 @@ objects = { /* Begin PBXBuildFile section */ + 568E5FC31E926430002582E0 /* Interface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 568E5FC11E926430002582E0 /* Interface.storyboard */; }; + 568E5FC51E926430002582E0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 568E5FC41E926430002582E0 /* Assets.xcassets */; }; + 568E5FCC1E926430002582E0 /* GRDBDemoWatchOS Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 568E5FCB1E926430002582E0 /* GRDBDemoWatchOS Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + 568E5FD11E926430002582E0 /* InterfaceController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 568E5FD01E926430002582E0 /* InterfaceController.swift */; }; + 568E5FD31E926430002582E0 /* ExtensionDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 568E5FD21E926430002582E0 /* ExtensionDelegate.swift */; }; + 568E5FD51E926430002582E0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 568E5FD41E926430002582E0 /* Assets.xcassets */; }; + 568E5FD91E926430002582E0 /* GRDBDemoWatchOS.app in Embed Watch Content */ = {isa = PBXBuildFile; fileRef = 568E5FBF1E926430002582E0 /* GRDBDemoWatchOS.app */; }; 56B036071E8D9EBE003B6DA4 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56B036061E8D9EBE003B6DA4 /* AppDelegate.swift */; }; 56B0360C1E8D9EBE003B6DA4 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 56B0360A1E8D9EBE003B6DA4 /* Main.storyboard */; }; 56B0360E1E8D9EBE003B6DA4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 56B0360D1E8D9EBE003B6DA4 /* Assets.xcassets */; }; @@ -22,6 +29,20 @@ /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ + 568E5FCD1E926430002582E0 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 56B035FB1E8D9EBE003B6DA4 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 568E5FCA1E926430002582E0; + remoteInfo = "GRDBDemoWatchOS Extension"; + }; + 568E5FD71E926430002582E0 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 56B035FB1E8D9EBE003B6DA4 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 568E5FBE1E926430002582E0; + remoteInfo = GRDBDemoWatchOS; + }; 56B0363A1E8D9F79003B6DA4 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 56B036261E8D9F79003B6DA4 /* GRDB.xcodeproj */; @@ -158,6 +179,28 @@ /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ + 568E5FDD1E926430002582E0 /* Embed App Extensions */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 13; + files = ( + 568E5FCC1E926430002582E0 /* GRDBDemoWatchOS Extension.appex in Embed App Extensions */, + ); + name = "Embed App Extensions"; + runOnlyForDeploymentPostprocessing = 0; + }; + 568E5FE11E926430002582E0 /* Embed Watch Content */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = "$(CONTENTS_FOLDER_PATH)/Watch"; + dstSubfolderSpec = 16; + files = ( + 568E5FD91E926430002582E0 /* GRDBDemoWatchOS.app in Embed Watch Content */, + ); + name = "Embed Watch Content"; + runOnlyForDeploymentPostprocessing = 0; + }; 56B036621E8D9FB1003B6DA4 /* Embed Frameworks */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; @@ -172,6 +215,15 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 568E5FBF1E926430002582E0 /* GRDBDemoWatchOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GRDBDemoWatchOS.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 568E5FC21E926430002582E0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Interface.storyboard; sourceTree = ""; }; + 568E5FC41E926430002582E0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 568E5FC61E926430002582E0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 568E5FCB1E926430002582E0 /* GRDBDemoWatchOS Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "GRDBDemoWatchOS Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; + 568E5FD01E926430002582E0 /* InterfaceController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InterfaceController.swift; sourceTree = ""; }; + 568E5FD21E926430002582E0 /* ExtensionDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExtensionDelegate.swift; sourceTree = ""; }; + 568E5FD41E926430002582E0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 568E5FD61E926430002582E0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56B036031E8D9EBE003B6DA4 /* GRDBDemoiOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GRDBDemoiOS.app; sourceTree = BUILT_PRODUCTS_DIR; }; 56B036061E8D9EBE003B6DA4 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 56B0360B1E8D9EBE003B6DA4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; @@ -188,6 +240,13 @@ /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 568E5FC81E926430002582E0 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; 56B036001E8D9EBE003B6DA4 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -199,11 +258,34 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 568E5FC01E926430002582E0 /* GRDBDemoWatchOS */ = { + isa = PBXGroup; + children = ( + 568E5FC11E926430002582E0 /* Interface.storyboard */, + 568E5FC41E926430002582E0 /* Assets.xcassets */, + 568E5FC61E926430002582E0 /* Info.plist */, + ); + path = GRDBDemoWatchOS; + sourceTree = ""; + }; + 568E5FCF1E926430002582E0 /* GRDBDemoWatchOS Extension */ = { + isa = PBXGroup; + children = ( + 568E5FD01E926430002582E0 /* InterfaceController.swift */, + 568E5FD21E926430002582E0 /* ExtensionDelegate.swift */, + 568E5FD41E926430002582E0 /* Assets.xcassets */, + 568E5FD61E926430002582E0 /* Info.plist */, + ); + path = "GRDBDemoWatchOS Extension"; + sourceTree = ""; + }; 56B035FA1E8D9EBE003B6DA4 = { isa = PBXGroup; children = ( 56B036261E8D9F79003B6DA4 /* GRDB.xcodeproj */, 56B036051E8D9EBE003B6DA4 /* GRDBDemoiOS */, + 568E5FC01E926430002582E0 /* GRDBDemoWatchOS */, + 568E5FCF1E926430002582E0 /* GRDBDemoWatchOS Extension */, 56B036041E8D9EBE003B6DA4 /* Products */, ); sourceTree = ""; @@ -212,6 +294,8 @@ isa = PBXGroup; children = ( 56B036031E8D9EBE003B6DA4 /* GRDBDemoiOS.app */, + 568E5FBF1E926430002582E0 /* GRDBDemoWatchOS.app */, + 568E5FCB1E926430002582E0 /* GRDBDemoWatchOS Extension.appex */, ); name = Products; sourceTree = ""; @@ -269,6 +353,40 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ + 568E5FBE1E926430002582E0 /* GRDBDemoWatchOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = 568E5FDE1E926430002582E0 /* Build configuration list for PBXNativeTarget "GRDBDemoWatchOS" */; + buildPhases = ( + 568E5FBD1E926430002582E0 /* Resources */, + 568E5FDD1E926430002582E0 /* Embed App Extensions */, + ); + buildRules = ( + ); + dependencies = ( + 568E5FCE1E926430002582E0 /* PBXTargetDependency */, + ); + name = GRDBDemoWatchOS; + productName = GRDBDemoWatchOS; + productReference = 568E5FBF1E926430002582E0 /* GRDBDemoWatchOS.app */; + productType = "com.apple.product-type.application.watchapp2"; + }; + 568E5FCA1E926430002582E0 /* GRDBDemoWatchOS Extension */ = { + isa = PBXNativeTarget; + buildConfigurationList = 568E5FDA1E926430002582E0 /* Build configuration list for PBXNativeTarget "GRDBDemoWatchOS Extension" */; + buildPhases = ( + 568E5FC71E926430002582E0 /* Sources */, + 568E5FC81E926430002582E0 /* Frameworks */, + 568E5FC91E926430002582E0 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "GRDBDemoWatchOS Extension"; + productName = "GRDBDemoWatchOS Extension"; + productReference = 568E5FCB1E926430002582E0 /* GRDBDemoWatchOS Extension.appex */; + productType = "com.apple.product-type.watchkit2-extension"; + }; 56B036021E8D9EBE003B6DA4 /* GRDBDemoiOS */ = { isa = PBXNativeTarget; buildConfigurationList = 56B036151E8D9EBE003B6DA4 /* Build configuration list for PBXNativeTarget "GRDBDemoiOS" */; @@ -277,12 +395,14 @@ 56B036001E8D9EBE003B6DA4 /* Frameworks */, 56B036011E8D9EBE003B6DA4 /* Resources */, 56B036621E8D9FB1003B6DA4 /* Embed Frameworks */, + 568E5FE11E926430002582E0 /* Embed Watch Content */, ); buildRules = ( ); dependencies = ( 56B0365D1E8D9F8F003B6DA4 /* PBXTargetDependency */, 56B036611E8D9FB1003B6DA4 /* PBXTargetDependency */, + 568E5FD81E926430002582E0 /* PBXTargetDependency */, ); name = GRDBDemoiOS; productName = GRDBDemoiOS; @@ -299,6 +419,16 @@ LastUpgradeCheck = 0830; ORGANIZATIONNAME = "Gwendal Roué"; TargetAttributes = { + 568E5FBE1E926430002582E0 = { + CreatedOnToolsVersion = 8.3; + DevelopmentTeam = AMD8W895CT; + ProvisioningStyle = Automatic; + }; + 568E5FCA1E926430002582E0 = { + CreatedOnToolsVersion = 8.3; + DevelopmentTeam = AMD8W895CT; + ProvisioningStyle = Automatic; + }; 56B036021E8D9EBE003B6DA4 = { CreatedOnToolsVersion = 8.3; DevelopmentTeam = AMD8W895CT; @@ -326,6 +456,8 @@ projectRoot = ""; targets = ( 56B036021E8D9EBE003B6DA4 /* GRDBDemoiOS */, + 568E5FBE1E926430002582E0 /* GRDBDemoWatchOS */, + 568E5FCA1E926430002582E0 /* GRDBDemoWatchOS Extension */, ); }; /* End PBXProject section */ @@ -453,6 +585,23 @@ /* End PBXReferenceProxy section */ /* Begin PBXResourcesBuildPhase section */ + 568E5FBD1E926430002582E0 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 568E5FC51E926430002582E0 /* Assets.xcassets in Resources */, + 568E5FC31E926430002582E0 /* Interface.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 568E5FC91E926430002582E0 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 568E5FD51E926430002582E0 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 56B036011E8D9EBE003B6DA4 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -466,6 +615,15 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ + 568E5FC71E926430002582E0 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 568E5FD31E926430002582E0 /* ExtensionDelegate.swift in Sources */, + 568E5FD11E926430002582E0 /* InterfaceController.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 56B035FF1E8D9EBE003B6DA4 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -483,6 +641,16 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ + 568E5FCE1E926430002582E0 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 568E5FCA1E926430002582E0 /* GRDBDemoWatchOS Extension */; + targetProxy = 568E5FCD1E926430002582E0 /* PBXContainerItemProxy */; + }; + 568E5FD81E926430002582E0 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 568E5FBE1E926430002582E0 /* GRDBDemoWatchOS */; + targetProxy = 568E5FD71E926430002582E0 /* PBXContainerItemProxy */; + }; 56B0365D1E8D9F8F003B6DA4 /* PBXTargetDependency */ = { isa = PBXTargetDependency; name = GRDBiOS; @@ -496,6 +664,14 @@ /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ + 568E5FC11E926430002582E0 /* Interface.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 568E5FC21E926430002582E0 /* Base */, + ); + name = Interface.storyboard; + sourceTree = ""; + }; 56B0360A1E8D9EBE003B6DA4 /* Main.storyboard */ = { isa = PBXVariantGroup; children = ( @@ -515,6 +691,76 @@ /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ + 568E5FDB1E926430002582E0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_COMPLICATION_NAME = Complication; + DEVELOPMENT_TEAM = AMD8W895CT; + INFOPLIST_FILE = "GRDBDemoWatchOS Extension/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBDemoiOS.watchkitapp.watchkitextension; + PRODUCT_NAME = "${TARGET_NAME}"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SWIFT_VERSION = 3.0; + TARGETED_DEVICE_FAMILY = 4; + WATCHOS_DEPLOYMENT_TARGET = 3.2; + }; + name = Debug; + }; + 568E5FDC1E926430002582E0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_COMPLICATION_NAME = Complication; + DEVELOPMENT_TEAM = AMD8W895CT; + INFOPLIST_FILE = "GRDBDemoWatchOS Extension/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBDemoiOS.watchkitapp.watchkitextension; + PRODUCT_NAME = "${TARGET_NAME}"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SWIFT_VERSION = 3.0; + TARGETED_DEVICE_FAMILY = 4; + WATCHOS_DEPLOYMENT_TARGET = 3.2; + }; + name = Release; + }; + 568E5FDF1E926430002582E0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = AMD8W895CT; + IBSC_MODULE = GRDBDemoWatchOS_Extension; + INFOPLIST_FILE = GRDBDemoWatchOS/Info.plist; + PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBDemoiOS.watchkitapp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SWIFT_VERSION = 3.0; + TARGETED_DEVICE_FAMILY = 4; + WATCHOS_DEPLOYMENT_TARGET = 3.2; + }; + name = Debug; + }; + 568E5FE01E926430002582E0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = AMD8W895CT; + IBSC_MODULE = GRDBDemoWatchOS_Extension; + INFOPLIST_FILE = GRDBDemoWatchOS/Info.plist; + PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBDemoiOS.watchkitapp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SWIFT_VERSION = 3.0; + TARGETED_DEVICE_FAMILY = 4; + WATCHOS_DEPLOYMENT_TARGET = 3.2; + }; + name = Release; + }; 56B036131E8D9EBE003B6DA4 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -639,6 +885,22 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + 568E5FDA1E926430002582E0 /* Build configuration list for PBXNativeTarget "GRDBDemoWatchOS Extension" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 568E5FDB1E926430002582E0 /* Debug */, + 568E5FDC1E926430002582E0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + 568E5FDE1E926430002582E0 /* Build configuration list for PBXNativeTarget "GRDBDemoWatchOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 568E5FDF1E926430002582E0 /* Debug */, + 568E5FE01E926430002582E0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; 56B035FE1E8D9EBE003B6DA4 /* Build configuration list for PBXProject "GRDBDemoiOS" */ = { isa = XCConfigurationList; buildConfigurations = ( @@ -655,6 +917,7 @@ 56B036171E8D9EBE003B6DA4 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; diff --git a/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/xcshareddata/xcschemes/GRDBDemoWatchOS.xcscheme b/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/xcshareddata/xcschemes/GRDBDemoWatchOS.xcscheme new file mode 100644 index 000000000..05fa67b5e --- /dev/null +++ b/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/xcshareddata/xcschemes/GRDBDemoWatchOS.xcscheme @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +