-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from hyperoslo/fix/demo
Update Demo
- Loading branch information
Showing
8 changed files
with
101 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
osx_image: xcode7.3 | ||
language: objective-c | ||
before_install: | ||
- gem install cocoapods | ||
|
||
# Use when you don't have third party dependencies | ||
script: xctool -project Pod/Pod.xcodeproj -scheme Tests -sdk iphonesimulator build test | ||
|
||
# Use when you have third party dependencies (CocoaPods generates a workspace) | ||
# podfile: Pod/Podfile | ||
# script: xctool -workspace Pod/Pod.xcworkspace -scheme Tests -sdk iphonesimulator build test | ||
script: | ||
- xcodebuild clean build -project Pages.xcodeproj -scheme "Pages-iOS" -sdk iphonesimulator | ||
- xcodebuild test -project Pages.xcodeproj -scheme "Pages-iOS" -sdk iphonesimulator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import UIKit | ||
|
||
public class ViewController: UIViewController { | ||
|
||
lazy var imageView = UIImageView() | ||
|
||
public override func viewDidLoad() { | ||
super.viewDidLoad() | ||
|
||
view.addSubview(imageView) | ||
|
||
imageView.contentMode = .ScaleAspectFill | ||
|
||
imageView.translatesAutoresizingMaskIntoConstraints = false | ||
imageView.topAnchor.constraintEqualToAnchor(view.topAnchor).active = true | ||
imageView.leftAnchor.constraintEqualToAnchor(view.leftAnchor).active = true | ||
imageView.rightAnchor.constraintEqualToAnchor(view.rightAnchor).active = true | ||
imageView.bottomAnchor.constraintEqualToAnchor(view.bottomAnchor).active = true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
use_frameworks! | ||
|
||
platform :ios, '8.0' | ||
platform :ios, '9.0' | ||
|
||
target 'PagesDemo' do | ||
pod 'Pages', path: '../../' | ||
pod 'Imaginary', git: 'https://github.com/hyperoslo/Imaginary' | ||
end | ||
|
||
pod 'Pages', path: '../../' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,32 @@ | ||
PODS: | ||
- Pages (0.6.2) | ||
- Cache (1.4.0): | ||
- CryptoSwift | ||
- CryptoSwift (0.5.1) | ||
- Imaginary (0.1.0): | ||
- Cache | ||
- Pages (0.6.3) | ||
|
||
DEPENDENCIES: | ||
- Imaginary (from `https://github.com/hyperoslo/Imaginary`) | ||
- Pages (from `../../`) | ||
|
||
EXTERNAL SOURCES: | ||
Imaginary: | ||
:git: https://github.com/hyperoslo/Imaginary | ||
Pages: | ||
:path: ../../ | ||
:path: "../../" | ||
|
||
CHECKOUT OPTIONS: | ||
Imaginary: | ||
:commit: 4ab2007614aa2397a9ce82c69771f21df3d37cdc | ||
:git: https://github.com/hyperoslo/Imaginary | ||
|
||
SPEC CHECKSUMS: | ||
Pages: 6c042132f8c63c34d242789b7763d4c64e9681a0 | ||
Cache: 059cf0e10e6c3aec2c402eea19bd6b3aacb3fe9d | ||
CryptoSwift: df42dda18baf6c76347a94e227dbcc0a341304bd | ||
Imaginary: 62a9ce1e6d7831ede429c8221a183f03ec2a90bc | ||
Pages: 71e80bc64040f1176297c327d080d80b7e74b38c | ||
|
||
PODFILE CHECKSUM: 651e7c1534e217a37653348ac0245c09a990e37f | ||
|
||
COCOAPODS: 0.39.0 | ||
COCOAPODS: 1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.