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

Commit

Permalink
Refactor project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
andreamazz committed Apr 20, 2015
1 parent 0ad4314 commit 2c84a68
Show file tree
Hide file tree
Showing 21 changed files with 150 additions and 215 deletions.
1 change: 1 addition & 0 deletions BigGulp WatchKit Extension/ActionInterfaceController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import WatchKit
import Foundation
import MMWormhole

class ActionInterfaceController: WKInterfaceController {

Expand Down
2 changes: 1 addition & 1 deletion BigGulp WatchKit Extension/InterfaceController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import WatchKit
import Foundation

import MMWormhole

class InterfaceController: WKInterfaceController {

Expand Down
301 changes: 116 additions & 185 deletions BigGulp.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions BigGulp/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import UIKit
import MMWormhole
import DPMeterView

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
Expand All @@ -7,8 +9,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
let wormhole = MMWormhole(applicationGroupIdentifier: "group.it.fancypixel.BigGulp", optionalDirectory: "biggulp")

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
GAI.sharedInstance().trackerWithTrackingId("UA-XXXXXXXX-X")
GAI.sharedInstance().trackUncaughtExceptions = true

DPMeterView.appearance().trackTintColor = UIColor.lightGray()
DPMeterView.appearance().progressTintColor = UIColor.mainColor()
Expand Down
11 changes: 0 additions & 11 deletions BigGulp/BigGulp-Bridging-Header.h

This file was deleted.

1 change: 1 addition & 0 deletions BigGulp/Model/Entry.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Foundation
import Realm

class Entry: RLMObject {
dynamic var date = Entry.defaultDate()
Expand Down
1 change: 1 addition & 0 deletions BigGulp/Model/EntryHandler.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Foundation
import Realm

class EntryHandler: NSObject {
func currentEntry() -> Entry {
Expand Down
1 change: 1 addition & 0 deletions BigGulp/Model/Gulp.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Foundation
import Realm

class Gulp: RLMObject {
dynamic var date = NSDate()
Expand Down
1 change: 1 addition & 0 deletions BigGulp/Support/Globals.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import UIKit
import AHKActionSheet

class Globals {
class func numericToolbar(target: AnyObject, selector: Selector, barColor: UIColor = UIColor.whiteColor(), textColor: UIColor = UIColor.mainColor()) -> UIToolbar {
Expand Down
4 changes: 3 additions & 1 deletion BigGulp/Support/NotificationHelper.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import Foundation
import UIKit
import MMWormhole

class NotificationHelper {

Expand Down Expand Up @@ -73,6 +75,6 @@ class NotificationHelper {

class func addGulp(size: String) {
EntryHandler().addGulp(NSUserDefaults.groupUserDefaults().doubleForKey(size))
MMWormhole(applicationGroupIdentifier: "group.it.fancypixel.BigGulp", optionalDirectory: "biggulp").passMessageObject("todayUpdate", identifier: "mainUpdate")
MMWormhole(applicationGroupIdentifier: "group.it.fancypixel.BigGulp", optionalDirectory: "biggulp").passMessageObject("todayUpdate", identifier: "mainUpdate")
}
}
1 change: 1 addition & 0 deletions BigGulp/ViewControllers/CalendarViewController.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import UIKit
import JTCalendar

class CalendarViewController: UIViewController, JTCalendarDataSource {

Expand Down
2 changes: 2 additions & 0 deletions BigGulp/ViewControllers/DrinkViewController+Animations.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import pop

extension DrinkViewController {

func initAnimation() {
Expand Down
4 changes: 4 additions & 0 deletions BigGulp/ViewControllers/DrinkViewController.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import UIKit
import DPMeterView
import UICountingLabel
import MMWormhole
import AMPopTip

class DrinkViewController: UIViewController, UIAlertViewDelegate {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import UIKit
import pop

class GulpsViewController: OnboardingViewController, UITextFieldDelegate {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import UIKit
import pop

class MeasureViewController: OnboardingViewController {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import UIKit
import AHKActionSheet

class NotificationViewController: OnboardingViewController, UIActionSheetDelegate {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import UIKit
import AMWaveTransition

class OnboardingViewController: AMWaveViewController {

Expand Down
1 change: 1 addition & 0 deletions BigGulp/ViewControllers/SettingsViewController.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import UIKit
import AHKActionSheet

class SettingsViewController: UITableViewController, UIAlertViewDelegate, UITextFieldDelegate {

Expand Down
1 change: 1 addition & 0 deletions BigGulpToday/TodayViewController+Animation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import UIKit
import pop

extension TodayViewController {
func showConfirmButtons() {
Expand Down
1 change: 1 addition & 0 deletions BigGulpToday/TodayViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import UIKit
import NotificationCenter
import MMWormhole

class TodayViewController: UIViewController, NCWidgetProviding {

Expand Down
24 changes: 9 additions & 15 deletions Podfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

pod 'DPMeterView', git: 'https://github.com/andreamazz/DPMeterView'
pod 'pop', '~> 1.0'
pod 'AMPopTip', '~> 0.7'
pod 'UICountingLabel', '~> 1.2'
pod 'Realm', '~> 0.91'
pod 'JTCalendar', git: 'git@github.com:andreamazz/JTCalendar.git', branch: 'develop'
pod 'AMWaveTransition', '~> 0.5'
pod 'AHKActionSheet', '~> 0.5'
pod 'MMWormhole', '~> 1.1'
pod 'GoogleAnalytics-iOS-SDK', '~> 3.10'
pod 'AHKActionSheet', '~> 0.5'
pod 'JTCalendar', git: 'git@github.com:andreamazz/JTCalendar.git', branch: 'develop'
pod 'DPMeterView', git: 'https://github.com/andreamazz/DPMeterView'

#target 'BigGulpTests', exclusive: true do
# pod 'Quick', git: 'https://github.com/Quick/Quick.git'
# pod 'Nimble', '~> 0.4'
#
## Had to duplicate these, check https://github.com/CocoaPods/CocoaPods/issues/2695
# pod 'DPMeterView', git: 'https://github.com/andreamazz/DPMeterView'
# pod 'pop', '~> 1.0'
# pod 'AMPopTip', '~> 0.7'
# pod 'UICountingLabel', '~> 1.2'
# pod 'JTCalendar', git: 'git@github.com:andreamazz/JTCalendar.git', branch: 'develop'
#end
target 'BigGulpTests', exclusive: true do
pod 'Quick'
pod 'Nimble'
end

inhibit_all_warnings!
use_frameworks!

0 comments on commit 2c84a68

Please sign in to comment.