Skip to content

Commit

Permalink
Merge pull request #6 from mcdappdev/feature-addCocoapod
Browse files Browse the repository at this point in the history
Name Change
  • Loading branch information
jdmcd authored Jul 13, 2016
2 parents d03b407 + 1122d3b commit 3d4642b
Show file tree
Hide file tree
Showing 39 changed files with 930 additions and 780 deletions.
79 changes: 79 additions & 0 deletions Junction.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
#
# Be sure to run `pod spec lint Wave.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#

Pod::Spec.new do |s|

# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# These will help people to find your library, and whilst it
# can feel like a chore to fill in it's definitely to your advantage. The
# summary should be tweet-length, and the description more in depth.
#

s.name = "Junction"
s.version = "0.0.1"
s.summary = "A framework that lets you change variables at runtime, not compiletime"

# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
A framework that lets you change variables at runtime, not compiletime.
DESC

s.homepage = "https://github.com/bluelinelabs/Junction"
# s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"


# ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Licensing your code is important. See http://choosealicense.com for more info.
# CocoaPods will detect a license file if there is a named LICENSE*
# Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
#

s.license = { :type => "MIT", :file => "LICENSE.md" }
s.frameworks = 'UIKit'
s.ios.deployment_target = '8.0'

# ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Specify the authors of the library, with email addresses. Email addresses
# of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
# accepts just a name if you'd rather not provide an email address.
#
# Specify a social_media_url where others can refer to, for example a twitter
# profile URL.
#

s.author = { "Jimmy McDermott" => "[email protected]" }

# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Specify the location from where the source should be retrieved.
# Supports git, hg, bzr, svn and HTTP.
#

s.source = { :git => "https://github.com/bluelinelabs/Junction.git", :tag => s.version }


# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# CocoaPods is smart about how it includes source code. For source files
# giving a folder will include any swift, h, m, mm, c & cpp files.
# For header files it will include any header in the folder.
# Not including the public_header_files will make all headers public.
#

s.source_files = "Junction/Junction/*.swift"
s.exclude_files = "Junction/Junction Example/*"


end
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
//
// AppDelegate.swift
// WaveExample
// Junction Example
//
// Created by Jimmy McDermott on 6/28/16.
// Created by Jimmy McDermott on 7/13/16.
// Copyright © 2016 BlueLine Labs. All rights reserved.
//

import UIKit
import Wave
import Junction

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?


func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.

let stringSetting = StringSetting(placeholder: "", defaultValue: nil, key: "mainEndpoint", value: "https://www.google.com", title: "Main Endpoint:")
let intSetting = IntSetting(defaultValue: nil, value: 8080, key: "port", title: "Port")

let firstSection = Section(name: "Endpoints")
.addRow(stringSetting)
.addRow(intSetting)
.addRow(stringSetting)
.addRow(intSetting)

let secondSection = StringSingleSelectionSection(possibleValues: ["google.com", "yahoo.com"], enableCustom: true, name: "Single Selection String", key: "singleSelectionString")

window = WaveWindow(frame: UIScreen.mainScreen().bounds, style: .Shake, sections: [firstSection, secondSection], enabled: true)
window = JunctionWindow(frame: UIScreen.mainScreen().bounds, style: .Shake, sections: [firstSection, secondSection], enabled: true)
window!.rootViewController = UINavigationController(rootViewController: ViewController())
window!.makeKeyAndVisible()

return true
}
}

25 changes: 25 additions & 0 deletions Junction/Junction Example/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
</document>
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
Expand Down
18 changes: 18 additions & 0 deletions Junction/Junction Example/ViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// ViewController.swift
// Junction Example
//
// Created by Jimmy McDermott on 7/13/16.
// Copyright © 2016 BlueLine Labs. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

override func loadView() {
super.loadView()
view.backgroundColor = UIColor.whiteColor()
}
}

Loading

0 comments on commit 3d4642b

Please sign in to comment.