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

Commit

Permalink
Remove pop from Today extension. Trying to fix the archive problem -_-
Browse files Browse the repository at this point in the history
  • Loading branch information
andreamazz committed May 7, 2015
1 parent c9c107c commit 9aca101
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 91 deletions.
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
source 'https://rubygems.org'

gem 'cocoapods', '0.37'
gem 'cocoapods-keys'
gem 'cocoapods', '~> 0.37'
gem 'xcpretty'
gem 'plist'
20 changes: 6 additions & 14 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,42 +1,37 @@
GEM
remote: https://rubygems.org/
specs:
RubyInline (3.12.4)
ZenTest (~> 4.3)
ZenTest (4.11.0)
activesupport (4.2.1)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
claide (0.8.1)
cocoapods (0.37.0)
cocoapods (0.37.1)
activesupport (>= 3.2.15)
claide (~> 0.8.1)
cocoapods-core (= 0.37.0)
cocoapods-core (= 0.37.1)
cocoapods-downloader (~> 0.9.0)
cocoapods-plugins (~> 0.4.2)
cocoapods-trunk (~> 0.6.0)
cocoapods-try (~> 0.4.3)
cocoapods-try (~> 0.4.4)
colored (~> 1.2)
escape (~> 0.0.4)
molinillo (~> 0.2.3)
nap (~> 0.8)
xcodeproj (~> 0.24.1)
cocoapods-core (0.37.0)
cocoapods-core (0.37.1)
activesupport (>= 3.2.15)
fuzzy_match (~> 2.0.4)
nap (~> 0.8.0)
cocoapods-downloader (0.9.0)
cocoapods-keys (1.1.0)
osx_keychain
cocoapods-plugins (0.4.2)
nap
cocoapods-trunk (0.6.0)
nap (>= 0.8)
netrc (= 0.7.8)
cocoapods-try (0.4.3)
cocoapods-try (0.4.4)
colored (1.2)
escape (0.0.4)
fuzzy_match (2.0.4)
Expand All @@ -46,8 +41,6 @@ GEM
molinillo (0.2.3)
nap (0.8.0)
netrc (0.7.8)
osx_keychain (1.0.0)
RubyInline (~> 3)
plist (3.1.0)
thread_safe (0.3.5)
tzinfo (1.2.2)
Expand All @@ -61,7 +54,6 @@ PLATFORMS
ruby

DEPENDENCIES
cocoapods (= 0.37)
cocoapods-keys
cocoapods (~> 0.37)
plist
xcpretty
4 changes: 2 additions & 2 deletions Gulps/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="7702" systemVersion="14E7f" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="49e-Tb-3d3">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="7703" systemVersion="14E11f" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="49e-Tb-3d3">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7701"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6711"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion Gulps/ViewControllers/DrinkViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class DrinkViewController: UIViewController, UIAlertViewDelegate {

@IBAction public func selectionButtonAction(sender: UIButton) {
contractAddButton()
if (!userDefaults.boolForKey("UNDO_HINT")) {
if (userDefaults.boolForKey("UNDO_HINT")) {
userDefaults.setBool(true, forKey: "UNDO_HINT")
userDefaults.synchronize()
AMPopTip.appearance().popoverColor = .mainColor()
Expand Down
87 changes: 19 additions & 68 deletions GulpsToday/TodayViewController+Animation.swift
Original file line number Diff line number Diff line change
@@ -1,76 +1,27 @@
//
// TodayViewController+Animation.swift
// BigGulp
//
// Created by Andrea Mazzini on 21/03/15.
// Copyright (c) 2015 Fancy Pixel. All rights reserved.
//

import UIKit
import pop

extension TodayViewController {
func showConfirmButtons() {
let scaleDownBig = POPBasicAnimation(propertyNamed: kPOPViewScaleXY)
scaleDownBig.fromValue = NSValue(CGPoint: CGPointMake(1, 1))
scaleDownBig.toValue = NSValue(CGPoint: CGPointMake(0, 0))
scaleDownBig.removedOnCompletion = true
scaleDownBig.duration = 0.2
scaleDownBig.completionBlock = { (_, _) in
let scaleUpBig = POPBasicAnimation(propertyNamed: kPOPViewScaleXY)
scaleUpBig.fromValue = NSValue(CGPoint: CGPointMake(0, 0))
scaleUpBig.toValue = NSValue(CGPoint: CGPointMake(1, 1))
scaleUpBig.removedOnCompletion = true
scaleUpBig.duration = 0.2
self.bigConfirmButton.pop_addAnimation(scaleUpBig, forKey: "scaleUpBig")
};
self.bigGulpButton.pop_addAnimation(scaleDownBig, forKey: "scaleDownBig")

let scaleDownSmall = POPBasicAnimation(propertyNamed: kPOPViewScaleXY)
scaleDownSmall.fromValue = NSValue(CGPoint: CGPointMake(1, 1))
scaleDownSmall.toValue = NSValue(CGPoint: CGPointMake(0, 0))
scaleDownSmall.removedOnCompletion = true
scaleDownSmall.duration = 0.2
scaleDownSmall.completionBlock = { (_, _) in
let scaleUpSmall = POPBasicAnimation(propertyNamed: kPOPViewScaleXY)
scaleUpSmall.fromValue = NSValue(CGPoint: CGPointMake(0, 0))
scaleUpSmall.toValue = NSValue(CGPoint: CGPointMake(1, 1))
scaleUpSmall.removedOnCompletion = true
scaleUpSmall.duration = 0.2
self.smallConfirmButton.pop_addAnimation(scaleUpSmall, forKey: "scaleUpSmall")
};
self.smallGulpButton.pop_addAnimation(scaleDownSmall, forKey: "scaleDownSmall")
UIView.animateWithDuration(0.2, animations: { () -> Void in
self.bigGulpButton.transform = CGAffineTransformMakeScale(0.001, 0.001)
self.smallGulpButton.transform = CGAffineTransformMakeScale(0.001, 0.001)
}) { (_) -> Void in
UIView.animateWithDuration(0.2) {
self.bigConfirmButton.transform = CGAffineTransformMakeScale(1, 1)
self.smallConfirmButton.transform = CGAffineTransformMakeScale(1, 1)
};
}
}

func hideConfirmButtons() {
let scaleDownBig = POPBasicAnimation(propertyNamed: kPOPViewScaleXY)
scaleDownBig.fromValue = NSValue(CGPoint: CGPointMake(1, 1))
scaleDownBig.toValue = NSValue(CGPoint: CGPointMake(0, 0))
scaleDownBig.removedOnCompletion = true
scaleDownBig.duration = 0.2
scaleDownBig.completionBlock = { (_, _) in
let scaleUpBig = POPBasicAnimation(propertyNamed: kPOPViewScaleXY)
scaleUpBig.fromValue = NSValue(CGPoint: CGPointMake(0, 0))
scaleUpBig.toValue = NSValue(CGPoint: CGPointMake(1, 1))
scaleUpBig.removedOnCompletion = true
scaleUpBig.duration = 0.2
self.bigGulpButton.pop_addAnimation(scaleUpBig, forKey: "scaleUpBig")
};
self.bigConfirmButton.pop_addAnimation(scaleDownBig, forKey: "scaleDownBig")

let scaleDownSmall = POPBasicAnimation(propertyNamed: kPOPViewScaleXY)
scaleDownSmall.fromValue = NSValue(CGPoint: CGPointMake(1, 1))
scaleDownSmall.toValue = NSValue(CGPoint: CGPointMake(0, 0))
scaleDownSmall.removedOnCompletion = true
scaleDownSmall.duration = 0.2
scaleDownSmall.completionBlock = { (_, _) in
let scaleUpSmall = POPBasicAnimation(propertyNamed: kPOPViewScaleXY)
scaleUpSmall.fromValue = NSValue(CGPoint: CGPointMake(0, 0))
scaleUpSmall.toValue = NSValue(CGPoint: CGPointMake(1, 1))
scaleUpSmall.removedOnCompletion = true
scaleUpSmall.duration = 0.2
self.smallGulpButton.pop_addAnimation(scaleUpSmall, forKey: "scaleUpSmall")
};
self.smallConfirmButton.pop_addAnimation(scaleDownSmall, forKey: "scaleDownSmall")
UIView.animateWithDuration(0.2, animations: { () -> Void in
self.bigConfirmButton.transform = CGAffineTransformMakeScale(0.001, 0.001)
self.smallConfirmButton.transform = CGAffineTransformMakeScale(0.001, 0.001)
}) { (_) -> Void in
UIView.animateWithDuration(0.2) {
self.bigGulpButton.transform = CGAffineTransformMakeScale(1, 1)
self.smallGulpButton.transform = CGAffineTransformMakeScale(1, 1)
};
}
}
}
7 changes: 3 additions & 4 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

def common_pods
pod 'Realm', '~> 0.91'
pod 'Realm', '~> 0.92'
pod 'AMWaveTransition', '~> 0.5'
pod 'AHKActionSheet', '~> 0.5'
pod 'pop', '~> 1.0'
Expand All @@ -24,12 +24,11 @@ target 'GulpsTests' do
end

target 'GulpsToday' do
pod 'Realm', '~> 0.91'
pod 'pop', '~> 1.0'
pod 'Realm', '~> 0.92'
end

target 'Gulps WatchKit Extension' do
pod 'Realm', '~> 0.91'
pod 'Realm', '~> 0.92'
end

inhibit_all_warnings!
Expand Down

0 comments on commit 9aca101

Please sign in to comment.