Skip to content
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.

Added Medium Button #33

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions Gulps.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 */; };
Expand Down Expand Up @@ -208,7 +208,7 @@
65A235021AF2543B002A35F3 /* Gulps WatchKit Extension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = "Gulps WatchKit Extension.entitlements"; sourceTree = "<group>"; };
65C6AA5B1BF4AD3200BB80CF /* WatchConnectivityHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WatchConnectivityHelper.swift; sourceTree = "<group>"; };
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 = "<group>"; };
65C92DA61BB164D100E2DFE7 /* HealthKitHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HealthKitHelper.swift; sourceTree = "<group>"; };
65E94C6B1BBC13B400A65B30 /* Base */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = Base; path = Base.lproj/InfoPlist.strings; sourceTree = "<group>"; };
65E94C6D1BBC13BF00A65B30 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/InfoPlist.strings; sourceTree = "<group>"; };
65F44C1B1AF24B440093A3E9 /* Gulps.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Gulps.app; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -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 */,
);
Expand Down Expand Up @@ -668,7 +668,6 @@
};
65F44C1A1AF24B440093A3E9 = {
CreatedOnToolsVersion = 6.3.1;
DevelopmentTeam = H72GR44F4M;
LastSwiftMigration = 0800;
ProvisioningStyle = Automatic;
SystemCapabilities = {
Expand Down Expand Up @@ -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 */,
Expand All @@ -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 */,
Expand All @@ -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 */,
Expand Down Expand Up @@ -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)",
Expand All @@ -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)",
Expand Down
3 changes: 3 additions & 0 deletions Gulps/AppDelegate.swift
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand All @@ -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()))
}
Expand Down
Empty file modified Gulps/Base.lproj/InfoPlist.strings
100644 → 100755
Empty file.
Empty file modified Gulps/Base.lproj/LaunchScreen.xib
100644 → 100755
Empty file.
Loading