diff --git a/Gulps.xcodeproj/project.pbxproj b/Gulps.xcodeproj/project.pbxproj index 96ae927..71744b6 100644 --- a/Gulps.xcodeproj/project.pbxproj +++ b/Gulps.xcodeproj/project.pbxproj @@ -53,9 +53,9 @@ 65A234FF1AF253D1002A35F3 /* TodayViewController+Animation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65A234FE1AF253D1002A35F3 /* TodayViewController+Animation.swift */; }; 65C6AA5C1BF4AD3200BB80CF /* WatchConnectivityHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65C6AA5B1BF4AD3200BB80CF /* WatchConnectivityHelper.swift */; }; 65C92DA51BB1648C00E2DFE7 /* HealthKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 65C92DA41BB1648C00E2DFE7 /* HealthKit.framework */; }; - 65C92DA71BB164D100E2DFE7 /* HealthKitHealper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65C92DA61BB164D100E2DFE7 /* HealthKitHealper.swift */; }; - 65C92DA81BB184DB00E2DFE7 /* HealthKitHealper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65C92DA61BB164D100E2DFE7 /* HealthKitHealper.swift */; }; - 65C92DA91BB184DC00E2DFE7 /* HealthKitHealper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65C92DA61BB164D100E2DFE7 /* HealthKitHealper.swift */; }; + 65C92DA71BB164D100E2DFE7 /* HealthKitHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65C92DA61BB164D100E2DFE7 /* HealthKitHelper.swift */; }; + 65C92DA81BB184DB00E2DFE7 /* HealthKitHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65C92DA61BB164D100E2DFE7 /* HealthKitHelper.swift */; }; + 65C92DA91BB184DC00E2DFE7 /* HealthKitHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65C92DA61BB164D100E2DFE7 /* HealthKitHelper.swift */; }; 65E94C6C1BBC13B400A65B30 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 65E94C6A1BBC13B400A65B30 /* InfoPlist.strings */; }; 65E94C6E1BBC13BF00A65B30 /* Gulps.entitlements in Resources */ = {isa = PBXBuildFile; fileRef = 6537A8481AF24D2000EC16E9 /* Gulps.entitlements */; }; 65F44C211AF24B440093A3E9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65F44C201AF24B440093A3E9 /* AppDelegate.swift */; }; @@ -208,7 +208,7 @@ 65A235021AF2543B002A35F3 /* Gulps WatchKit Extension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = "Gulps WatchKit Extension.entitlements"; sourceTree = ""; }; 65C6AA5B1BF4AD3200BB80CF /* WatchConnectivityHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WatchConnectivityHelper.swift; sourceTree = ""; }; 65C92DA41BB1648C00E2DFE7 /* HealthKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = HealthKit.framework; path = System/Library/Frameworks/HealthKit.framework; sourceTree = SDKROOT; }; - 65C92DA61BB164D100E2DFE7 /* HealthKitHealper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HealthKitHealper.swift; sourceTree = ""; }; + 65C92DA61BB164D100E2DFE7 /* HealthKitHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HealthKitHelper.swift; sourceTree = ""; }; 65E94C6B1BBC13B400A65B30 /* Base */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = Base; path = Base.lproj/InfoPlist.strings; sourceTree = ""; }; 65E94C6D1BBC13BF00A65B30 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/InfoPlist.strings; sourceTree = ""; }; 65F44C1B1AF24B440093A3E9 /* Gulps.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Gulps.app; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -341,7 +341,7 @@ 6537A81D1AF24CC800EC16E9 /* Settings.swift */, 650DCE641AF3CD4100E12764 /* Constants.swift */, 6555BB671B0CAE1700CE436A /* AnimatedShareButton.swift */, - 65C92DA61BB164D100E2DFE7 /* HealthKitHealper.swift */, + 65C92DA61BB164D100E2DFE7 /* HealthKitHelper.swift */, 65C6AA5B1BF4AD3200BB80CF /* WatchConnectivityHelper.swift */, 655BE8C71BF6558E003232A8 /* UINavigationController-StatusBar.swift */, ); @@ -668,7 +668,6 @@ }; 65F44C1A1AF24B440093A3E9 = { CreatedOnToolsVersion = 6.3.1; - DevelopmentTeam = H72GR44F4M; LastSwiftMigration = 0800; ProvisioningStyle = Automatic; SystemCapabilities = { @@ -1005,7 +1004,7 @@ 6537A82A1AF24CC800EC16E9 /* EntryHandler.swift in Sources */, 65F44C211AF24B440093A3E9 /* AppDelegate.swift in Sources */, 6537A83A1AF24CC800EC16E9 /* NotificationViewController.swift in Sources */, - 65C92DA71BB164D100E2DFE7 /* HealthKitHealper.swift in Sources */, + 65C92DA71BB164D100E2DFE7 /* HealthKitHelper.swift in Sources */, 650DCE651AF3CD4100E12764 /* Constants.swift in Sources */, 6537A8311AF24CC800EC16E9 /* Extensions.swift in Sources */, 6537A8361AF24CC800EC16E9 /* DrinkViewController.swift in Sources */, @@ -1023,7 +1022,7 @@ 65A234FF1AF253D1002A35F3 /* TodayViewController+Animation.swift in Sources */, 6537A8431AF24CFD00EC16E9 /* Entry.swift in Sources */, 6537A8441AF24CFF00EC16E9 /* EntryHandler.swift in Sources */, - 65C92DA81BB184DB00E2DFE7 /* HealthKitHealper.swift in Sources */, + 65C92DA81BB184DB00E2DFE7 /* HealthKitHelper.swift in Sources */, 6537A83E1AF24CE800EC16E9 /* Settings.swift in Sources */, 65F44C4C1AF24B780093A3E9 /* TodayViewController.swift in Sources */, 6537A8411AF24CEF00EC16E9 /* Extensions.swift in Sources */, @@ -1040,7 +1039,7 @@ 653039D71BE0CE5E00263D77 /* Colors.swift in Sources */, 65F44C621AF24B8A0093A3E9 /* NotificationController.swift in Sources */, 653039891BDF703200263D77 /* ExtensionDelegate.swift in Sources */, - 65C92DA91BB184DC00E2DFE7 /* HealthKitHealper.swift in Sources */, + 65C92DA91BB184DC00E2DFE7 /* HealthKitHelper.swift in Sources */, 65F44C601AF24B8A0093A3E9 /* InterfaceController.swift in Sources */, 6537A83F1AF24CE900EC16E9 /* Settings.swift in Sources */, 653039921BDFE5FC00263D77 /* ComplicationController.swift in Sources */, @@ -1303,7 +1302,7 @@ CODE_SIGN_ENTITLEMENTS = Gulps/Gulps.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - DEVELOPMENT_TEAM = H72GR44F4M; + DEVELOPMENT_TEAM = ""; ENABLE_BITCODE = YES; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", @@ -1329,7 +1328,7 @@ CODE_SIGN_ENTITLEMENTS = Gulps/Gulps.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - DEVELOPMENT_TEAM = H72GR44F4M; + DEVELOPMENT_TEAM = ""; ENABLE_BITCODE = YES; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", diff --git a/Gulps/AppDelegate.swift b/Gulps/AppDelegate.swift old mode 100644 new mode 100755 index 7f0a007..b197441 --- a/Gulps/AppDelegate.swift +++ b/Gulps/AppDelegate.swift @@ -100,6 +100,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WCSessionDelegate { enum ShortcutType: String { case Big = "it.fancypixel.gulps.big" + case Medium = "it.fancypixel.gulps.medium" case Small = "it.fancypixel.gulps.small" } @@ -112,6 +113,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WCSessionDelegate { if let type = ShortcutType(rawValue: item.type) { if (type == .Small) { EntryHandler.sharedHandler.addGulp(UserDefaults.groupUserDefaults().double(forKey: Constants.Gulp.small.key())) + } else if (type == .Medium){ + EntryHandler.sharedHandler.addGulp(UserDefaults.groupUserDefaults().double(forKey: Constants.Gulp.medium.key())) } else if (type == .Big) { EntryHandler.sharedHandler.addGulp(UserDefaults.groupUserDefaults().double(forKey: Constants.Gulp.big.key())) } diff --git a/Gulps/Base.lproj/InfoPlist.strings b/Gulps/Base.lproj/InfoPlist.strings old mode 100644 new mode 100755 diff --git a/Gulps/Base.lproj/LaunchScreen.xib b/Gulps/Base.lproj/LaunchScreen.xib old mode 100644 new mode 100755 diff --git a/Gulps/Base.lproj/Main.storyboard b/Gulps/Base.lproj/Main.storyboard old mode 100644 new mode 100755 index 49510e3..ad39047 --- a/Gulps/Base.lproj/Main.storyboard +++ b/Gulps/Base.lproj/Main.storyboard @@ -94,6 +94,25 @@ + - + @@ -65,7 +73,7 @@ - + @@ -100,30 +108,30 @@ - + - + - + @@ -165,12 +173,12 @@ what measurement system do you prefer? - + @@ -181,9 +189,9 @@ what measurement system do you prefer? - + @@ -345,12 +353,12 @@ what measurement system do you prefer? - + @@ -361,11 +369,11 @@ what measurement system do you prefer? - + - + @@ -373,9 +381,9 @@ what measurement system do you prefer? @@ -392,8 +400,56 @@ what measurement system do you prefer? + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -405,21 +461,21 @@ what measurement system do you prefer? - + - + @@ -441,20 +497,24 @@ what measurement system do you prefer? - + + - + + + + @@ -464,18 +524,22 @@ what measurement system do you prefer? + + + - - + + + - + @@ -486,28 +550,28 @@ what measurement system do you prefer? - + - + - + @@ -549,20 +613,20 @@ what measurement system do you prefer? - + - + - + @@ -570,9 +634,9 @@ what measurement system do you prefer? @@ -588,7 +652,7 @@ what measurement system do you prefer? - + @@ -626,28 +690,28 @@ what measurement system do you prefer? - + - + - + @@ -689,17 +753,17 @@ what measurement system do you prefer? - + - - + + @@ -714,24 +778,24 @@ what measurement system do you prefer? - +