Skip to content

Commit

Permalink
Merge branch 'release/0.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Santos committed Aug 17, 2016
2 parents 83ac3f4 + 10de028 commit e7aa19d
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 14 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,12 @@ script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
- xcodebuild test -workspace Example/FazeKit.xcworkspace -scheme FazeKit-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint
- xcodebuild build test -workspace Example/FazeKit.xcworkspace -scheme FazeKit-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint
notifications:
slack:
rooms:
secure: nDp6bSL+badH5BpZQYEw+wMEi0R2WcWIxVRm6XtCBPfQG/NGnG+Ty9eUi2DOP/xBVx80+hlSnYjhKEtaWBFkapMW8iDjMx2qTKYFlPXeAjk+lvpcSopKU3el7achNIcspkFIQ21f7A4svmjesJDvXtIu1fx+Wj3P1qfJulo6xK5fDhHER54bMEDknm+suKVl+4/kBoqfoubBQ80BuCZSbLaS1z3PrqRsH8aibQelgsHaXMXG7VAv+f3zyQB7Rt4BekC7s3QxWOh3tFDjE7+Ucvr0ZG6mIhhJ++00/Uaa2Cf22F6yTWhZzoR5NcyHXWd/WD2go72dA1gS9Un1gCshAeZ5S7cpPwKvcP2EiR80UMGVfTlBToCO59y/Crbrc9uIy36P0h0FjbdE9sdu98y82eg4gXAuWQbwi8lDd8ex1KPT0CN+NmQ2dRTCPpDa/Zivx10sib0AAclEkhxCaajw+mH11ctmXS+Badhxdzgxmny2VXKMbzmEnpgv6Rl49+p+A9oXDl+xPrnDDg10xtSq62iuI7o2PJH1V1Cw660Lymt+OhN31+2LzXJa+MK9pvwqURK1VUbob1MB3vpYBIA9/UcFv40OGea3Uujh5T9JGLejVGJB0Q8DOKD0B1isgYYK/QuTkj5LXlzhajkSMsGFGsU3zOxcl9pLPZVJZbCRao4=
on_success: never
on_failure: always

21 changes: 17 additions & 4 deletions Example/FazeKit/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
//
// AppDelegate.swift
// FazeKit
// Copyright 2016 NextFaze
//
// Created by Ricardo Santos on 08/12/2016.
// Copyright (c) 2016 Ricardo Santos. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
// of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations
// under the License.
//
// AppDelegate.swift
// FazeKit
//
// Created by rsantos on 12/08/2016.
//

import UIKit
Expand Down
21 changes: 17 additions & 4 deletions Example/FazeKit/ViewController.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
//
// ViewController.swift
// FazeKit
// Copyright 2016 NextFaze
//
// Created by Ricardo Santos on 08/12/2016.
// Copyright (c) 2016 Ricardo Santos. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
// of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations
// under the License.
//
// ViewController.swift
// FazeKit
//
// Created by rsantos on 12/08/2016.
//

import UIKit
Expand Down
5 changes: 3 additions & 2 deletions FazeKit.podspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
Pod::Spec.new do |s|
s.name = 'FazeKit'
s.version = '0.1.0'
s.version = '0.1.1'
s.summary = 'A collection of helper functions and extensions for Swift iOS apps'
s.description = 'A collection of extensions and convenience functions on Foundation, UIKit and other Cocoa Frameworks, built in Swift for iOS development'
s.homepage = 'https://github.com/NextFaze/FazeKit'
s.license = { :type => 'APACHE', :file => 'LICENSE' }
s.author = { 'NextFaze' => '[email protected]' }
s.authors = { 'Ric Santos' => '[email protected]',
'Shane Woolcock' => '[email protected]' }
s.source = { :git => 'https://github.com/NextFaze/FazeKit.git', :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/NextFaze'
s.platform = :ios
Expand Down
2 changes: 1 addition & 1 deletion FazeKit/Classes/UIScreenAdditions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public extension UIScreen {
@nonobjc public static let maxLength4_7Inch: CGFloat = 667.0
@nonobjc public static let maxLength5_5Inch: CGFloat = 736.0
@nonobjc public static let screenWidth: CGFloat = { UIScreen.mainScreen().bounds.size.width }()
@nonobjc public static let screenHeight: CGFloat = { UIScreen.mainScreen().bounds.size.width }()
@nonobjc public static let screenHeight: CGFloat = { UIScreen.mainScreen().bounds.size.height }()
@nonobjc public static let screenMaxLength: CGFloat = { max(screenWidth, screenHeight) }()
@nonobjc public static let screenMinLength: CGFloat = { min(screenWidth, screenHeight) }()
}
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,40 @@
# FazeKit

[![CI Status](http://img.shields.io/travis/Ricardo Santos/FazeKit.svg?style=flat)](https://travis-ci.org/Ricardo Santos/FazeKit)
[![CI Status](http://img.shields.io/travis/NextFaze/FazeKit.svg?style=flat)](https://travis-ci.org/NextFaze/FazeKit)
[![Version](https://img.shields.io/cocoapods/v/FazeKit.svg?style=flat)](http://cocoapods.org/pods/FazeKit)
[![License](https://img.shields.io/cocoapods/l/FazeKit.svg?style=flat)](http://cocoapods.org/pods/FazeKit)
[![Platform](https://img.shields.io/cocoapods/p/FazeKit.svg?style=flat)](http://cocoapods.org/pods/FazeKit)

A collection of extensions and convenience functions on Foundation, UIKit and other Cocoa Frameworks, built in Swift for iOS development. The spiritual successor to [NFAllocInit](https://github.com/NextFaze/NFAllocInit).

Included are little things, like shorthand mutation of views:

```swift
view.left = 40.0
```

device accessors:

```
UIDevice.is4Inch()
```

and operator overloads for `NSDate`:

```swift
if oneDate < anotherDate {
print("one date is earlier")
}
```

## Example

To run the example project, clone the repo, and run `pod install` from the Example directory first.

## Requirements

iOS 9.0

## Installation

FazeKit is available through [CocoaPods](http://cocoapods.org). To install
Expand Down

0 comments on commit e7aa19d

Please sign in to comment.