From 5f9c2c6c12645bf0ecb0c2eb56cd44185872feaf Mon Sep 17 00:00:00 2001 From: Nick Romano Date: Wed, 26 Apr 2023 20:32:06 -0700 Subject: [PATCH] Remove example app --- .../AppIcon.appiconset/Contents.json | 55 -- .../Base.lproj/Interface.storyboard | 51 - .../WatchSync Example WatchKit App/Info.plist | 33 - .../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 | 28 - .../Info.plist | 36 - .../InterfaceController.swift | 44 - .../NotificationController.swift | 34 - .../PushNotificationPayload.apns | 19 - .../project.pbxproj | 873 ------------------ .../contents.xcworkspacedata | 7 - .../xcshareddata/IDEWorkspaceChecks.plist | 8 - .../WatchSync Example/AppDelegate.swift | 27 - .../AppIcon.appiconset/Contents.json | 93 -- .../Base.lproj/LaunchScreen.storyboard | 25 - .../Base.lproj/Main.storyboard | 41 - .../WatchSync Example/Info.plist | 45 - .../WatchSync Example/MyMessage.swift | 18 - .../WatchSync Example/ViewController.swift | 60 -- .../WatchSync ExampleTests/Info.plist | 22 - .../WatchSync_ExampleTests.swift | 34 - 25 files changed, 1653 deletions(-) delete mode 100644 Sources/WatchSync Example/WatchSync Example WatchKit App/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 Sources/WatchSync Example/WatchSync Example WatchKit App/Base.lproj/Interface.storyboard delete mode 100644 Sources/WatchSync Example/WatchSync Example WatchKit App/Info.plist delete mode 100644 Sources/WatchSync Example/WatchSync Example WatchKit Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json delete mode 100644 Sources/WatchSync Example/WatchSync Example WatchKit Extension/Assets.xcassets/Complication.complicationset/Contents.json delete mode 100644 Sources/WatchSync Example/WatchSync Example WatchKit Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json delete mode 100644 Sources/WatchSync Example/WatchSync Example WatchKit Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json delete mode 100644 Sources/WatchSync Example/WatchSync Example WatchKit Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json delete mode 100644 Sources/WatchSync Example/WatchSync Example WatchKit Extension/ExtensionDelegate.swift delete mode 100644 Sources/WatchSync Example/WatchSync Example WatchKit Extension/Info.plist delete mode 100644 Sources/WatchSync Example/WatchSync Example WatchKit Extension/InterfaceController.swift delete mode 100644 Sources/WatchSync Example/WatchSync Example WatchKit Extension/NotificationController.swift delete mode 100644 Sources/WatchSync Example/WatchSync Example WatchKit Extension/PushNotificationPayload.apns delete mode 100644 Sources/WatchSync Example/WatchSync Example.xcodeproj/project.pbxproj delete mode 100644 Sources/WatchSync Example/WatchSync Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 Sources/WatchSync Example/WatchSync Example.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 Sources/WatchSync Example/WatchSync Example/AppDelegate.swift delete mode 100644 Sources/WatchSync Example/WatchSync Example/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 Sources/WatchSync Example/WatchSync Example/Base.lproj/LaunchScreen.storyboard delete mode 100644 Sources/WatchSync Example/WatchSync Example/Base.lproj/Main.storyboard delete mode 100644 Sources/WatchSync Example/WatchSync Example/Info.plist delete mode 100644 Sources/WatchSync Example/WatchSync Example/MyMessage.swift delete mode 100644 Sources/WatchSync Example/WatchSync Example/ViewController.swift delete mode 100644 Sources/WatchSync Example/WatchSync ExampleTests/Info.plist delete mode 100644 Sources/WatchSync Example/WatchSync ExampleTests/WatchSync_ExampleTests.swift diff --git a/Sources/WatchSync Example/WatchSync Example WatchKit App/Assets.xcassets/AppIcon.appiconset/Contents.json b/Sources/WatchSync Example/WatchSync Example WatchKit App/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index dd221ba..0000000 --- a/Sources/WatchSync Example/WatchSync Example WatchKit App/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "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/Sources/WatchSync Example/WatchSync Example WatchKit App/Base.lproj/Interface.storyboard b/Sources/WatchSync Example/WatchSync Example WatchKit App/Base.lproj/Interface.storyboard deleted file mode 100644 index 48ca0b6..0000000 --- a/Sources/WatchSync Example/WatchSync Example WatchKit App/Base.lproj/Interface.storyboard +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sources/WatchSync Example/WatchSync Example/Info.plist b/Sources/WatchSync Example/WatchSync Example/Info.plist deleted file mode 100644 index 16be3b6..0000000 --- a/Sources/WatchSync Example/WatchSync Example/Info.plist +++ /dev/null @@ -1,45 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/Sources/WatchSync Example/WatchSync Example/MyMessage.swift b/Sources/WatchSync Example/WatchSync Example/MyMessage.swift deleted file mode 100644 index fe42093..0000000 --- a/Sources/WatchSync Example/WatchSync Example/MyMessage.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// MyMessage.swift -// WatchSync Example -// -// Created by Nicholas Romano on 3/15/18. -// Copyright © 2018 Ten Minute Wait. All rights reserved. -// - -import Foundation -import WatchSync - -/** - Example message - */ -struct MyMessage: SyncableMessage { - var myString: String? - var myDate: Date? -} diff --git a/Sources/WatchSync Example/WatchSync Example/ViewController.swift b/Sources/WatchSync Example/WatchSync Example/ViewController.swift deleted file mode 100644 index 6e6da55..0000000 --- a/Sources/WatchSync Example/WatchSync Example/ViewController.swift +++ /dev/null @@ -1,60 +0,0 @@ -// -// ViewController.swift -// WatchSync Example -// -// Created by Nicholas Romano on 3/15/18. -// Copyright © 2018 Ten Minute Wait. All rights reserved. -// - -import UIKit -import WatchSync - -class ViewController: UIViewController { - var subscriptionToken: SubscriptionToken? - - override func viewDidLoad() { - super.viewDidLoad() - - subscriptionToken = WatchSync.shared.subscribeToMessages(ofType: MyMessage.self) { myMessage in - print(String(describing: myMessage.myString), String(describing: myMessage.myDate)) - } - } - - @IBAction func sendMessageButtonPressed(_: Any) { - let myMessage = MyMessage(myString: "Test", myDate: Date()) - - WatchSync.shared.sendMessage(myMessage) { result in - switch result { - case let .failure(failure): - switch failure { - case .sessionNotActivated: - break - case .watchConnectivityNotAvailable: - break - case let .unableToSerializeMessageAsJSON(error), let .unableToCompressMessage(error): - print(error.localizedDescription) - case .watchAppNotPaired: - break - case .watchAppNotInstalled: - break - case let .unhandledError(error): - print(error.localizedDescription) - case let .badPayloadError(error): - print(error.localizedDescription) - case let .failedToDeliver(error): - let alertController = UIAlertController(title: "✅", message: "Failed to Deliver \(error.localizedDescription)", preferredStyle: .alert) - alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: nil)) - self.present(alertController, animated: true, completion: nil) - } - case .sent: - let alertController = UIAlertController(title: "✅", message: "Sent!", preferredStyle: .alert) - alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: nil)) - self.present(alertController, animated: true, completion: nil) - case .delivered: - let alertController = UIAlertController(title: "✅", message: "Delivery Confirmed", preferredStyle: .alert) - alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: nil)) - self.present(alertController, animated: true, completion: nil) - } - } - } -} diff --git a/Sources/WatchSync Example/WatchSync ExampleTests/Info.plist b/Sources/WatchSync Example/WatchSync ExampleTests/Info.plist deleted file mode 100644 index 6c40a6c..0000000 --- a/Sources/WatchSync Example/WatchSync ExampleTests/Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/Sources/WatchSync Example/WatchSync ExampleTests/WatchSync_ExampleTests.swift b/Sources/WatchSync Example/WatchSync ExampleTests/WatchSync_ExampleTests.swift deleted file mode 100644 index 802c3e4..0000000 --- a/Sources/WatchSync Example/WatchSync ExampleTests/WatchSync_ExampleTests.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// WatchSync_ExampleTests.swift -// WatchSync ExampleTests -// -// Created by Nicholas Romano on 3/15/18. -// Copyright © 2018 Ten Minute Wait. All rights reserved. -// - -@testable import WatchSync_Example -import XCTest - -class WatchSyncExampleTests: XCTestCase { - override func setUp() { - super.setUp() - // Put setup code here. This method is called before the invocation of each test method in the class. - } - - override func tearDown() { - // Put teardown code here. This method is called after the invocation of each test method in the class. - super.tearDown() - } - - func testExample() { - // This is an example of a functional test case. - // Use XCTAssert and related functions to verify your tests produce the correct results. - } - - func testPerformanceExample() { - // This is an example of a performance test case. - measure { - // Put the code you want to measure the time of here. - } - } -}