commit e41ba3b8e0a2c5214536d9ba095951a0adf30884 Author: Jordan Koch Date: Sat Mar 2 19:26:02 2019 -0500 initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..76f2d08 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# Simple-Battery + +Seems to work? I'm new to Apple Watch dev and made this in a few minutes. + +Basically when I got my Watch Series 4 I was disgusted at the circular battery on the Utility face and thought it should be more like how everything else gets displayed. + +Feel free to improve if I did something horribly wrong. + +## Before: +![Before](https://i.arxius.io/80bed78f) + +## After: +![After](https://i.arxius.io/b6bf771e) diff --git a/SimpleBattery WatchKit App/Assets.xcassets/AppIcon.appiconset/Contents.json b/SimpleBattery WatchKit App/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..6c0f2b4 --- /dev/null +++ b/SimpleBattery WatchKit App/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,81 @@ +{ + "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" : "44x44", + "idiom" : "watch", + "scale" : "2x", + "role" : "appLauncher", + "subtype" : "40mm" + }, + { + "size" : "50x50", + "idiom" : "watch", + "scale" : "2x", + "role" : "appLauncher", + "subtype" : "44mm" + }, + { + "size" : "86x86", + "idiom" : "watch", + "scale" : "2x", + "role" : "quickLook", + "subtype" : "38mm" + }, + { + "size" : "98x98", + "idiom" : "watch", + "scale" : "2x", + "role" : "quickLook", + "subtype" : "42mm" + }, + { + "size" : "108x108", + "idiom" : "watch", + "scale" : "2x", + "role" : "quickLook", + "subtype" : "44mm" + }, + { + "idiom" : "watch-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SimpleBattery WatchKit App/Assets.xcassets/Contents.json b/SimpleBattery WatchKit App/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/SimpleBattery WatchKit App/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SimpleBattery WatchKit App/Base.lproj/Interface.storyboard b/SimpleBattery WatchKit App/Base.lproj/Interface.storyboard new file mode 100644 index 0000000..cf05d24 --- /dev/null +++ b/SimpleBattery WatchKit App/Base.lproj/Interface.storyboard @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/SimpleBattery WatchKit App/Info.plist b/SimpleBattery WatchKit App/Info.plist new file mode 100644 index 0000000..625a2f2 --- /dev/null +++ b/SimpleBattery WatchKit App/Info.plist @@ -0,0 +1,33 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + SimpleBattery WatchKit App + 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.jordankoch.SimpleBattery + WKWatchKitApp + + + diff --git a/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json new file mode 100644 index 0000000..aefef29 --- /dev/null +++ b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json @@ -0,0 +1,28 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">161" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">183" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Contents.json b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Contents.json new file mode 100644 index 0000000..1571c7e --- /dev/null +++ b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Contents.json @@ -0,0 +1,48 @@ +{ + "assets" : [ + { + "idiom" : "watch", + "filename" : "Circular.imageset", + "role" : "circular" + }, + { + "idiom" : "watch", + "filename" : "Extra Large.imageset", + "role" : "extra-large" + }, + { + "idiom" : "watch", + "filename" : "Graphic Bezel.imageset", + "role" : "graphic-bezel" + }, + { + "idiom" : "watch", + "filename" : "Graphic Circular.imageset", + "role" : "graphic-circular" + }, + { + "idiom" : "watch", + "filename" : "Graphic Corner.imageset", + "role" : "graphic-corner" + }, + { + "idiom" : "watch", + "filename" : "Graphic Large Rectangular.imageset", + "role" : "graphic-large-rectangular" + }, + { + "idiom" : "watch", + "filename" : "Modular.imageset", + "role" : "modular" + }, + { + "idiom" : "watch", + "filename" : "Utilitarian.imageset", + "role" : "utilitarian" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json new file mode 100644 index 0000000..aefef29 --- /dev/null +++ b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json @@ -0,0 +1,28 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">161" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">183" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Bezel.imageset/Contents.json b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Bezel.imageset/Contents.json new file mode 100644 index 0000000..aefef29 --- /dev/null +++ b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Bezel.imageset/Contents.json @@ -0,0 +1,28 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">161" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">183" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Circular.imageset/Contents.json b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Circular.imageset/Contents.json new file mode 100644 index 0000000..aefef29 --- /dev/null +++ b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Circular.imageset/Contents.json @@ -0,0 +1,28 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">161" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">183" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Corner.imageset/Contents.json b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Corner.imageset/Contents.json new file mode 100644 index 0000000..aefef29 --- /dev/null +++ b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Corner.imageset/Contents.json @@ -0,0 +1,28 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">161" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">183" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Large Rectangular.imageset/Contents.json b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Large Rectangular.imageset/Contents.json new file mode 100644 index 0000000..aefef29 --- /dev/null +++ b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Large Rectangular.imageset/Contents.json @@ -0,0 +1,28 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">161" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">183" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json new file mode 100644 index 0000000..aefef29 --- /dev/null +++ b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json @@ -0,0 +1,28 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">161" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">183" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json new file mode 100644 index 0000000..aefef29 --- /dev/null +++ b/SimpleBattery WatchKit Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json @@ -0,0 +1,28 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">161" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">183" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SimpleBattery WatchKit Extension/Assets.xcassets/Contents.json b/SimpleBattery WatchKit Extension/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/SimpleBattery WatchKit Extension/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SimpleBattery WatchKit Extension/ComplicationController.swift b/SimpleBattery WatchKit Extension/ComplicationController.swift new file mode 100644 index 0000000..51d4e95 --- /dev/null +++ b/SimpleBattery WatchKit Extension/ComplicationController.swift @@ -0,0 +1,77 @@ +// +// ComplicationController.swift +// SimpleBattery WatchKit Extension +// +// Created by Jordan Koch on 3/2/19. +// Copyright © 2019 Jordan Koch. All rights reserved. +// + +import WatchKit +import ClockKit + + +class ComplicationController: NSObject, CLKComplicationDataSource { + + // MARK: - Timeline Configuration + + func getSupportedTimeTravelDirections(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationTimeTravelDirections) -> Void) { + //handler([.forward, .backward]) + handler([]) + } + + func getTimelineStartDate(for complication: CLKComplication, withHandler handler: @escaping (Date?) -> Void) { + handler(nil) + } + + func getTimelineEndDate(for complication: CLKComplication, withHandler handler: @escaping (Date?) -> Void) { + handler(nil) + } + + func getPrivacyBehavior(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationPrivacyBehavior) -> Void) { + handler(.showOnLockScreen) + } + + // MARK: - Timeline Population + + func getCurrentTimelineEntry(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationTimelineEntry?) -> Void) { + // Call the handler with the current timeline entry + + let device = WKInterfaceDevice.current() + device.isBatteryMonitoringEnabled = true + let battery = device.batteryLevel + let theTemplate = CLKComplicationTemplateUtilitarianSmallFlat() + theTemplate.textProvider = CLKSimpleTextProvider(text: String(format: "%.0f", (battery * 100))+"%") + + let entry = CLKComplicationTimelineEntry(date: Date(), complicationTemplate: theTemplate) + + handler(entry) + } + + func getTimelineEntries(for complication: CLKComplication, before date: Date, limit: Int, withHandler handler: @escaping ([CLKComplicationTimelineEntry]?) -> Void) { + // Call the handler with the timeline entries prior to the given date + handler(nil) + } + + func getTimelineEntries(for complication: CLKComplication, after date: Date, limit: Int, withHandler handler: @escaping ([CLKComplicationTimelineEntry]?) -> Void) { + // Call the handler with the timeline entries after to the given date + handler(nil) + } + + // MARK: - Placeholder Templates + + func getLocalizableSampleTemplate(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationTemplate?) -> Void) { + // This method will be called once per supported complication, and the results will be cached + + switch complication.family { + case .utilitarianSmall: + let theTemplate = CLKComplicationTemplateUtilitarianSmallFlat() + theTemplate.textProvider = CLKSimpleTextProvider(text: "50%") + + handler(theTemplate) + + default: + handler(nil) + } + } + +} diff --git a/SimpleBattery WatchKit Extension/ExtensionDelegate.swift b/SimpleBattery WatchKit Extension/ExtensionDelegate.swift new file mode 100644 index 0000000..2c3ee83 --- /dev/null +++ b/SimpleBattery WatchKit Extension/ExtensionDelegate.swift @@ -0,0 +1,74 @@ +// +// ExtensionDelegate.swift +// SimpleBattery WatchKit Extension +// +// Created by Jordan Koch on 3/2/19. +// Copyright © 2019 Jordan Koch. All rights reserved. +// + +import WatchKit + +class ExtensionDelegate: NSObject, WKExtensionDelegate { + + func scheduleTask() { + let next = Date(timeIntervalSinceNow: 5) + WKExtension.shared().scheduleBackgroundRefresh(withPreferredDate: next, userInfo: nil) { (error) in + if (error != nil) { + print("error") + } + } + } + + func applicationDidFinishLaunching() { + // Perform any final initialization of your application. + + scheduleTask() + } + + 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. + + let server = CLKComplicationServer.sharedInstance() + server.activeComplications?.forEach(server.extendTimeline) + server.activeComplications?.forEach(server.reloadTimeline) + + scheduleTask() + + backgroundTask.setTaskCompletedWithSnapshot(false) + 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.setTaskCompletedWithSnapshot(false) + case let urlSessionTask as WKURLSessionRefreshBackgroundTask: + // Be sure to complete the URL session task once you’re done. + urlSessionTask.setTaskCompletedWithSnapshot(false) + case let relevantShortcutTask as WKRelevantShortcutRefreshBackgroundTask: + // Be sure to complete the relevant-shortcut task once you're done. + relevantShortcutTask.setTaskCompletedWithSnapshot(false) + case let intentDidRunTask as WKIntentDidRunRefreshBackgroundTask: + // Be sure to complete the intent-did-run task once you're done. + intentDidRunTask.setTaskCompletedWithSnapshot(false) + default: + // make sure to complete unhandled task types + task.setTaskCompletedWithSnapshot(false) + } + } + } + +} diff --git a/SimpleBattery WatchKit Extension/Info.plist b/SimpleBattery WatchKit Extension/Info.plist new file mode 100644 index 0000000..482a1f1 --- /dev/null +++ b/SimpleBattery WatchKit Extension/Info.plist @@ -0,0 +1,43 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + SimpleBattery WatchKit Extension + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + XPC! + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + CLKComplicationPrincipalClass + $(PRODUCT_MODULE_NAME).ComplicationController + CLKComplicationSupportedFamilies + + CLKComplicationFamilyUtilitarianSmall + CLKComplicationFamilyUtilitarianSmallFlat + + NSExtension + + NSExtensionAttributes + + WKAppBundleIdentifier + com.jordankoch.SimpleBattery.watchkitapp + + NSExtensionPointIdentifier + com.apple.watchkit + + WKExtensionDelegateClassName + $(PRODUCT_MODULE_NAME).ExtensionDelegate + + diff --git a/SimpleBattery WatchKit Extension/InterfaceController.swift b/SimpleBattery WatchKit Extension/InterfaceController.swift new file mode 100644 index 0000000..24b9421 --- /dev/null +++ b/SimpleBattery WatchKit Extension/InterfaceController.swift @@ -0,0 +1,31 @@ +// +// InterfaceController.swift +// SimpleBattery WatchKit Extension +// +// Created by Jordan Koch on 3/2/19. +// Copyright © 2019 Jordan Koch. 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/SimpleBattery.xcodeproj/project.pbxproj b/SimpleBattery.xcodeproj/project.pbxproj new file mode 100644 index 0000000..ce1d5e4 --- /dev/null +++ b/SimpleBattery.xcodeproj/project.pbxproj @@ -0,0 +1,626 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 8CB25D2F222B52FB00E76BE0 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8CB25D2E222B52FB00E76BE0 /* AppDelegate.swift */; }; + 8CB25D31222B52FB00E76BE0 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8CB25D30222B52FB00E76BE0 /* ViewController.swift */; }; + 8CB25D34222B52FB00E76BE0 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8CB25D32222B52FB00E76BE0 /* Main.storyboard */; }; + 8CB25D36222B52FB00E76BE0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8CB25D35222B52FB00E76BE0 /* Assets.xcassets */; }; + 8CB25D39222B52FB00E76BE0 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8CB25D37222B52FB00E76BE0 /* LaunchScreen.storyboard */; }; + 8CB25D3E222B52FB00E76BE0 /* SimpleBattery WatchKit App.app in Embed Watch Content */ = {isa = PBXBuildFile; fileRef = 8CB25D3D222B52FB00E76BE0 /* SimpleBattery WatchKit App.app */; }; + 8CB25D44222B52FB00E76BE0 /* Interface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8CB25D42222B52FB00E76BE0 /* Interface.storyboard */; }; + 8CB25D46222B52FC00E76BE0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8CB25D45222B52FC00E76BE0 /* Assets.xcassets */; }; + 8CB25D4D222B52FC00E76BE0 /* SimpleBattery WatchKit Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 8CB25D4C222B52FC00E76BE0 /* SimpleBattery WatchKit Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + 8CB25D52222B52FC00E76BE0 /* InterfaceController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8CB25D51222B52FC00E76BE0 /* InterfaceController.swift */; }; + 8CB25D54222B52FC00E76BE0 /* ExtensionDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8CB25D53222B52FC00E76BE0 /* ExtensionDelegate.swift */; }; + 8CB25D56222B52FC00E76BE0 /* ComplicationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8CB25D55222B52FC00E76BE0 /* ComplicationController.swift */; }; + 8CB25D58222B52FC00E76BE0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8CB25D57222B52FC00E76BE0 /* Assets.xcassets */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 8CB25D3F222B52FB00E76BE0 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 8CB25D23222B52FB00E76BE0 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 8CB25D3C222B52FB00E76BE0; + remoteInfo = "SimpleBattery WatchKit App"; + }; + 8CB25D4E222B52FC00E76BE0 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 8CB25D23222B52FB00E76BE0 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 8CB25D4B222B52FC00E76BE0; + remoteInfo = "SimpleBattery WatchKit Extension"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 8CB25D5F222B52FC00E76BE0 /* Embed App Extensions */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 13; + files = ( + 8CB25D4D222B52FC00E76BE0 /* SimpleBattery WatchKit Extension.appex in Embed App Extensions */, + ); + name = "Embed App Extensions"; + runOnlyForDeploymentPostprocessing = 0; + }; + 8CB25D63222B52FC00E76BE0 /* Embed Watch Content */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = "$(CONTENTS_FOLDER_PATH)/Watch"; + dstSubfolderSpec = 16; + files = ( + 8CB25D3E222B52FB00E76BE0 /* SimpleBattery WatchKit App.app in Embed Watch Content */, + ); + name = "Embed Watch Content"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 8CB25D2B222B52FB00E76BE0 /* SimpleBattery.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SimpleBattery.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 8CB25D2E222B52FB00E76BE0 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 8CB25D30222B52FB00E76BE0 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 8CB25D33222B52FB00E76BE0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 8CB25D35222B52FB00E76BE0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 8CB25D38222B52FB00E76BE0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 8CB25D3A222B52FB00E76BE0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 8CB25D3D222B52FB00E76BE0 /* SimpleBattery WatchKit App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "SimpleBattery WatchKit App.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 8CB25D43222B52FB00E76BE0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Interface.storyboard; sourceTree = ""; }; + 8CB25D45222B52FC00E76BE0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 8CB25D47222B52FC00E76BE0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 8CB25D4C222B52FC00E76BE0 /* SimpleBattery WatchKit Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "SimpleBattery WatchKit Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; + 8CB25D51222B52FC00E76BE0 /* InterfaceController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InterfaceController.swift; sourceTree = ""; }; + 8CB25D53222B52FC00E76BE0 /* ExtensionDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExtensionDelegate.swift; sourceTree = ""; }; + 8CB25D55222B52FC00E76BE0 /* ComplicationController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ComplicationController.swift; sourceTree = ""; }; + 8CB25D57222B52FC00E76BE0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 8CB25D59222B52FC00E76BE0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 8CB25D28222B52FB00E76BE0 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8CB25D49222B52FC00E76BE0 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 8CB25D22222B52FB00E76BE0 = { + isa = PBXGroup; + children = ( + 8CB25D2D222B52FB00E76BE0 /* SimpleBattery */, + 8CB25D41222B52FB00E76BE0 /* SimpleBattery WatchKit App */, + 8CB25D50222B52FC00E76BE0 /* SimpleBattery WatchKit Extension */, + 8CB25D2C222B52FB00E76BE0 /* Products */, + ); + sourceTree = ""; + }; + 8CB25D2C222B52FB00E76BE0 /* Products */ = { + isa = PBXGroup; + children = ( + 8CB25D2B222B52FB00E76BE0 /* SimpleBattery.app */, + 8CB25D3D222B52FB00E76BE0 /* SimpleBattery WatchKit App.app */, + 8CB25D4C222B52FC00E76BE0 /* SimpleBattery WatchKit Extension.appex */, + ); + name = Products; + sourceTree = ""; + }; + 8CB25D2D222B52FB00E76BE0 /* SimpleBattery */ = { + isa = PBXGroup; + children = ( + 8CB25D2E222B52FB00E76BE0 /* AppDelegate.swift */, + 8CB25D30222B52FB00E76BE0 /* ViewController.swift */, + 8CB25D32222B52FB00E76BE0 /* Main.storyboard */, + 8CB25D35222B52FB00E76BE0 /* Assets.xcassets */, + 8CB25D37222B52FB00E76BE0 /* LaunchScreen.storyboard */, + 8CB25D3A222B52FB00E76BE0 /* Info.plist */, + ); + path = SimpleBattery; + sourceTree = ""; + }; + 8CB25D41222B52FB00E76BE0 /* SimpleBattery WatchKit App */ = { + isa = PBXGroup; + children = ( + 8CB25D42222B52FB00E76BE0 /* Interface.storyboard */, + 8CB25D45222B52FC00E76BE0 /* Assets.xcassets */, + 8CB25D47222B52FC00E76BE0 /* Info.plist */, + ); + path = "SimpleBattery WatchKit App"; + sourceTree = ""; + }; + 8CB25D50222B52FC00E76BE0 /* SimpleBattery WatchKit Extension */ = { + isa = PBXGroup; + children = ( + 8CB25D51222B52FC00E76BE0 /* InterfaceController.swift */, + 8CB25D53222B52FC00E76BE0 /* ExtensionDelegate.swift */, + 8CB25D55222B52FC00E76BE0 /* ComplicationController.swift */, + 8CB25D57222B52FC00E76BE0 /* Assets.xcassets */, + 8CB25D59222B52FC00E76BE0 /* Info.plist */, + ); + path = "SimpleBattery WatchKit Extension"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 8CB25D2A222B52FB00E76BE0 /* SimpleBattery */ = { + isa = PBXNativeTarget; + buildConfigurationList = 8CB25D64222B52FC00E76BE0 /* Build configuration list for PBXNativeTarget "SimpleBattery" */; + buildPhases = ( + 8CB25D27222B52FB00E76BE0 /* Sources */, + 8CB25D28222B52FB00E76BE0 /* Frameworks */, + 8CB25D29222B52FB00E76BE0 /* Resources */, + 8CB25D63222B52FC00E76BE0 /* Embed Watch Content */, + ); + buildRules = ( + ); + dependencies = ( + 8CB25D40222B52FB00E76BE0 /* PBXTargetDependency */, + ); + name = SimpleBattery; + productName = SimpleBattery; + productReference = 8CB25D2B222B52FB00E76BE0 /* SimpleBattery.app */; + productType = "com.apple.product-type.application"; + }; + 8CB25D3C222B52FB00E76BE0 /* SimpleBattery WatchKit App */ = { + isa = PBXNativeTarget; + buildConfigurationList = 8CB25D60222B52FC00E76BE0 /* Build configuration list for PBXNativeTarget "SimpleBattery WatchKit App" */; + buildPhases = ( + 8CB25D3B222B52FB00E76BE0 /* Resources */, + 8CB25D5F222B52FC00E76BE0 /* Embed App Extensions */, + ); + buildRules = ( + ); + dependencies = ( + 8CB25D4F222B52FC00E76BE0 /* PBXTargetDependency */, + ); + name = "SimpleBattery WatchKit App"; + productName = "SimpleBattery WatchKit App"; + productReference = 8CB25D3D222B52FB00E76BE0 /* SimpleBattery WatchKit App.app */; + productType = "com.apple.product-type.application.watchapp2"; + }; + 8CB25D4B222B52FC00E76BE0 /* SimpleBattery WatchKit Extension */ = { + isa = PBXNativeTarget; + buildConfigurationList = 8CB25D5C222B52FC00E76BE0 /* Build configuration list for PBXNativeTarget "SimpleBattery WatchKit Extension" */; + buildPhases = ( + 8CB25D48222B52FC00E76BE0 /* Sources */, + 8CB25D49222B52FC00E76BE0 /* Frameworks */, + 8CB25D4A222B52FC00E76BE0 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "SimpleBattery WatchKit Extension"; + productName = "SimpleBattery WatchKit Extension"; + productReference = 8CB25D4C222B52FC00E76BE0 /* SimpleBattery WatchKit Extension.appex */; + productType = "com.apple.product-type.watchkit2-extension"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 8CB25D23222B52FB00E76BE0 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1020; + LastUpgradeCheck = 1020; + ORGANIZATIONNAME = "Jordan Koch"; + TargetAttributes = { + 8CB25D2A222B52FB00E76BE0 = { + CreatedOnToolsVersion = 10.2; + }; + 8CB25D3C222B52FB00E76BE0 = { + CreatedOnToolsVersion = 10.2; + }; + 8CB25D4B222B52FC00E76BE0 = { + CreatedOnToolsVersion = 10.2; + }; + }; + }; + buildConfigurationList = 8CB25D26222B52FB00E76BE0 /* Build configuration list for PBXProject "SimpleBattery" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 8CB25D22222B52FB00E76BE0; + productRefGroup = 8CB25D2C222B52FB00E76BE0 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 8CB25D2A222B52FB00E76BE0 /* SimpleBattery */, + 8CB25D3C222B52FB00E76BE0 /* SimpleBattery WatchKit App */, + 8CB25D4B222B52FC00E76BE0 /* SimpleBattery WatchKit Extension */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 8CB25D29222B52FB00E76BE0 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8CB25D39222B52FB00E76BE0 /* LaunchScreen.storyboard in Resources */, + 8CB25D36222B52FB00E76BE0 /* Assets.xcassets in Resources */, + 8CB25D34222B52FB00E76BE0 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8CB25D3B222B52FB00E76BE0 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8CB25D46222B52FC00E76BE0 /* Assets.xcassets in Resources */, + 8CB25D44222B52FB00E76BE0 /* Interface.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8CB25D4A222B52FC00E76BE0 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8CB25D58222B52FC00E76BE0 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 8CB25D27222B52FB00E76BE0 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8CB25D31222B52FB00E76BE0 /* ViewController.swift in Sources */, + 8CB25D2F222B52FB00E76BE0 /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8CB25D48222B52FC00E76BE0 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8CB25D54222B52FC00E76BE0 /* ExtensionDelegate.swift in Sources */, + 8CB25D52222B52FC00E76BE0 /* InterfaceController.swift in Sources */, + 8CB25D56222B52FC00E76BE0 /* ComplicationController.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 8CB25D40222B52FB00E76BE0 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 8CB25D3C222B52FB00E76BE0 /* SimpleBattery WatchKit App */; + targetProxy = 8CB25D3F222B52FB00E76BE0 /* PBXContainerItemProxy */; + }; + 8CB25D4F222B52FC00E76BE0 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 8CB25D4B222B52FC00E76BE0 /* SimpleBattery WatchKit Extension */; + targetProxy = 8CB25D4E222B52FC00E76BE0 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 8CB25D32222B52FB00E76BE0 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 8CB25D33222B52FB00E76BE0 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 8CB25D37222B52FB00E76BE0 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 8CB25D38222B52FB00E76BE0 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; + 8CB25D42222B52FB00E76BE0 /* Interface.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 8CB25D43222B52FB00E76BE0 /* Base */, + ); + name = Interface.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 8CB25D5A222B52FC00E76BE0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.2; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 8CB25D5B222B52FC00E76BE0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.2; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 8CB25D5D222B52FC00E76BE0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_COMPLICATION_NAME = Complication; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 5JAGPKCDD7; + INFOPLIST_FILE = "SimpleBattery WatchKit Extension/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.jordankoch.SimpleBattery.watchkitapp.watchkitextension; + PRODUCT_NAME = "${TARGET_NAME}"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 4; + WATCHOS_DEPLOYMENT_TARGET = 5.2; + }; + name = Debug; + }; + 8CB25D5E222B52FC00E76BE0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_COMPLICATION_NAME = Complication; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 5JAGPKCDD7; + INFOPLIST_FILE = "SimpleBattery WatchKit Extension/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.jordankoch.SimpleBattery.watchkitapp.watchkitextension; + PRODUCT_NAME = "${TARGET_NAME}"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 4; + WATCHOS_DEPLOYMENT_TARGET = 5.2; + }; + name = Release; + }; + 8CB25D61222B52FC00E76BE0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 5JAGPKCDD7; + IBSC_MODULE = SimpleBattery_WatchKit_Extension; + INFOPLIST_FILE = "SimpleBattery WatchKit App/Info.plist"; + PRODUCT_BUNDLE_IDENTIFIER = com.jordankoch.SimpleBattery.watchkitapp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 4; + WATCHOS_DEPLOYMENT_TARGET = 5.2; + }; + name = Debug; + }; + 8CB25D62222B52FC00E76BE0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 5JAGPKCDD7; + IBSC_MODULE = SimpleBattery_WatchKit_Extension; + INFOPLIST_FILE = "SimpleBattery WatchKit App/Info.plist"; + PRODUCT_BUNDLE_IDENTIFIER = com.jordankoch.SimpleBattery.watchkitapp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 4; + WATCHOS_DEPLOYMENT_TARGET = 5.2; + }; + name = Release; + }; + 8CB25D65222B52FC00E76BE0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 5JAGPKCDD7; + INFOPLIST_FILE = SimpleBattery/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.jordankoch.SimpleBattery; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 8CB25D66222B52FC00E76BE0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 5JAGPKCDD7; + INFOPLIST_FILE = SimpleBattery/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.jordankoch.SimpleBattery; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 8CB25D26222B52FB00E76BE0 /* Build configuration list for PBXProject "SimpleBattery" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8CB25D5A222B52FC00E76BE0 /* Debug */, + 8CB25D5B222B52FC00E76BE0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 8CB25D5C222B52FC00E76BE0 /* Build configuration list for PBXNativeTarget "SimpleBattery WatchKit Extension" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8CB25D5D222B52FC00E76BE0 /* Debug */, + 8CB25D5E222B52FC00E76BE0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 8CB25D60222B52FC00E76BE0 /* Build configuration list for PBXNativeTarget "SimpleBattery WatchKit App" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8CB25D61222B52FC00E76BE0 /* Debug */, + 8CB25D62222B52FC00E76BE0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 8CB25D64222B52FC00E76BE0 /* Build configuration list for PBXNativeTarget "SimpleBattery" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8CB25D65222B52FC00E76BE0 /* Debug */, + 8CB25D66222B52FC00E76BE0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 8CB25D23222B52FB00E76BE0 /* Project object */; +} diff --git a/SimpleBattery.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/SimpleBattery.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..3a12b99 --- /dev/null +++ b/SimpleBattery.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/SimpleBattery.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/SimpleBattery.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/SimpleBattery.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/SimpleBattery.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate b/SimpleBattery.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..e743990 Binary files /dev/null and b/SimpleBattery.xcodeproj/project.xcworkspace/xcuserdata/me.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/SimpleBattery.xcodeproj/xcuserdata/me.xcuserdatad/xcschemes/xcschememanagement.plist b/SimpleBattery.xcodeproj/xcuserdata/me.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..c735c3c --- /dev/null +++ b/SimpleBattery.xcodeproj/xcuserdata/me.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,24 @@ + + + + + SchemeUserState + + SimpleBattery WatchKit App (Complication).xcscheme_^#shared#^_ + + orderHint + 2 + + SimpleBattery WatchKit App.xcscheme_^#shared#^_ + + orderHint + 1 + + SimpleBattery.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/SimpleBattery/AppDelegate.swift b/SimpleBattery/AppDelegate.swift new file mode 100644 index 0000000..fb60c5a --- /dev/null +++ b/SimpleBattery/AppDelegate.swift @@ -0,0 +1,46 @@ +// +// AppDelegate.swift +// SimpleBattery +// +// Created by Jordan Koch on 3/2/19. +// Copyright © 2019 Jordan Koch. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // 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, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // 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 applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + +} + diff --git a/SimpleBattery/Assets.xcassets/AppIcon.appiconset/Contents.json b/SimpleBattery/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ b/SimpleBattery/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "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" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "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" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SimpleBattery/Assets.xcassets/Contents.json b/SimpleBattery/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/SimpleBattery/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SimpleBattery/Base.lproj/LaunchScreen.storyboard b/SimpleBattery/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..bfa3612 --- /dev/null +++ b/SimpleBattery/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SimpleBattery/Base.lproj/Main.storyboard b/SimpleBattery/Base.lproj/Main.storyboard new file mode 100644 index 0000000..2f037a6 --- /dev/null +++ b/SimpleBattery/Base.lproj/Main.storyboard @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SimpleBattery/Info.plist b/SimpleBattery/Info.plist new file mode 100644 index 0000000..16be3b6 --- /dev/null +++ b/SimpleBattery/Info.plist @@ -0,0 +1,45 @@ + + + + + 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/SimpleBattery/ViewController.swift b/SimpleBattery/ViewController.swift new file mode 100644 index 0000000..8062b1f --- /dev/null +++ b/SimpleBattery/ViewController.swift @@ -0,0 +1,20 @@ +// +// ViewController.swift +// SimpleBattery +// +// Created by Jordan Koch on 3/2/19. +// Copyright © 2019 Jordan Koch. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + + +} +