Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added StockWatchlist/Assets/.gitkeep
Empty file.
26 changes: 26 additions & 0 deletions StockWatchlist/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
platform :ios, '9.0'

target 'StockWatchlist' do
use_frameworks!

pod 'Alamofire', '4.5.0'
pod 'AlamofireObjectMapper', '4.1.0'
pod 'Dollar', '6.2.0'
pod 'Material', '2.6.3'
pod 'PromiseKit', '4.2.2'
pod 'RealmSwift', '2.8.3'
pod 'Reveal-SDK', '8', :configurations => ['Debug']
pod 'SnapKit', '3.2.0'
pod 'SwiftyTimer', '2.0.0'
pod 'SwiftyUserDefaults', '3.0.0'
pod 'ZAlertView', '0.3.4'

target 'StockWatchlistTests' do
inherit! :search_paths
end

target 'StockWatchlistUITests' do
inherit! :search_paths
end

end
63 changes: 63 additions & 0 deletions StockWatchlist/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
PODS:
- Alamofire (4.5.0)
- AlamofireObjectMapper (4.1.0):
- Alamofire (~> 4.1)
- ObjectMapper (~> 2.0)
- Dollar (6.2.0)
- Material (2.6.3):
- Material/Core (= 2.6.3)
- Material/Core (2.6.3)
- ObjectMapper (2.2.5)
- PromiseKit (4.2.2):
- PromiseKit/Foundation (= 4.2.2)
- PromiseKit/QuartzCore (= 4.2.2)
- PromiseKit/UIKit (= 4.2.2)
- PromiseKit/CorePromise (4.2.2)
- PromiseKit/Foundation (4.2.2):
- PromiseKit/CorePromise
- PromiseKit/QuartzCore (4.2.2):
- PromiseKit/CorePromise
- PromiseKit/UIKit (4.2.2):
- PromiseKit/CorePromise
- Realm (2.8.3):
- Realm/Headers (= 2.8.3)
- Realm/Headers (2.8.3)
- RealmSwift (2.8.3):
- Realm (= 2.8.3)
- Reveal-SDK (8)
- SnapKit (3.2.0)
- SwiftyTimer (2.0.0)
- SwiftyUserDefaults (3.0.0)
- ZAlertView (0.3.4)

DEPENDENCIES:
- Alamofire (= 4.5.0)
- AlamofireObjectMapper (= 4.1.0)
- Dollar (= 6.2.0)
- Material (= 2.6.3)
- PromiseKit (= 4.2.2)
- RealmSwift (= 2.8.3)
- Reveal-SDK (= 8)
- SnapKit (= 3.2.0)
- SwiftyTimer (= 2.0.0)
- SwiftyUserDefaults (= 3.0.0)
- ZAlertView (= 0.3.4)

SPEC CHECKSUMS:
Alamofire: f28cdffd29de33a7bfa022cbd63ae95a27fae140
AlamofireObjectMapper: 435adc82f5b367679bd9e71c4974a54efd0b2521
Dollar: da81aacae30cf7dd059bfdfec709e97f2f0ae2f8
Material: af607a7ec0e9978ef85cf189a3d8ceeeb650400f
ObjectMapper: fb30f71e08470d1e5a20b199fafe1246281db898
PromiseKit: 00e8886881f151c7e573d06b437915b0bb2970ec
Realm: 3601ef091c8c499a31101d8563b991e75546cdce
RealmSwift: 8183818515471b01a99abdd2970f8e4fd52b6f4a
Reveal-SDK: 43be4e662864e937960d0d04d005135e29c4e53b
SnapKit: 1ca44df72cfa543218d177cb8aab029d10d86ea7
SwiftyTimer: 2efd74b060d69ad4f1496baf5bbedbe132125fcf
SwiftyUserDefaults: 0f1d45fc3aafb9064dac661e367f8f83fe21a4b4
ZAlertView: d0e399f75e65eb1272e69777dc4a584f7edd6ea7

PODFILE CHECKSUM: aa95cc9986713096e422d82045177a4aba2b2653

COCOAPODS: 1.3.0.beta.2
831 changes: 831 additions & 0 deletions StockWatchlist/StockWatchlist.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions StockWatchlist/StockWatchlist.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions StockWatchlist/StockWatchlist/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow? = UIWindow(frame: UIScreen.main.bounds)
let rootViewController = ViewController()

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
setRootViewController()
return true
}

func applicationWillResignActive(_ application: UIApplication) {}

func applicationDidEnterBackground(_ application: UIApplication) {}

func applicationWillEnterForeground(_ application: UIApplication) {}

func applicationDidBecomeActive(_ application: UIApplication) {}

func applicationWillTerminate(_ application: UIApplication) {}

func setRootViewController() {
window?.rootViewController = rootViewController
window?.makeKeyAndVisible()
}

func setRootViewController(view: UIViewController) {
window?.rootViewController = view
}

func restoreRootViewController() {
window?.rootViewController = rootViewController
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
{
"images" : [
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@3x.png",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@3x.png",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@3x.png",
"scale" : "3x"
},
{
"size" : "57x57",
"idiom" : "iphone",
"filename" : "Icon-App-57x57@1x.png",
"scale" : "1x"
},
{
"size" : "57x57",
"idiom" : "iphone",
"filename" : "Icon-App-57x57@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@3x.png",
"scale" : "3x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@1x.png",
"scale" : "1x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@1x.png",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@1x.png",
"scale" : "1x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@2x.png",
"scale" : "2x"
},
{
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "Icon-App-83.5x83.5@2x.png",
"scale" : "2x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions StockWatchlist/StockWatchlist/Base.lproj/LaunchScreen.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11201" systemVersion="16B2553a" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11161"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="launch.png" translatesAutoresizingMaskIntoConstraints="NO" id="gsD-5b-DnK"/>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="gsD-5b-DnK" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="TZF-4O-aCi"/>
<constraint firstItem="xb3-aO-Qok" firstAttribute="top" secondItem="gsD-5b-DnK" secondAttribute="bottom" id="YEK-py-BZC"/>
<constraint firstAttribute="trailing" secondItem="gsD-5b-DnK" secondAttribute="trailing" id="gfw-Tv-aqj"/>
<constraint firstItem="gsD-5b-DnK" firstAttribute="top" secondItem="Llm-lL-Icb" secondAttribute="bottom" id="neK-ue-02W"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
<resources>
<image name="launch.png" width="2049" height="2732"/>
</resources>
</document>
54 changes: 54 additions & 0 deletions StockWatchlist/StockWatchlist/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>twitter</string>
</array>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UIRequiresFullScreen</key>
<true/>
<key>UIStatusBarHidden</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions StockWatchlist/StockWatchlist/Sources/BaseViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import UIKit

class BaseViewController: UIViewController {

var app: AppDelegate {
return UIApplication.shared.delegate as! AppDelegate
}

override var prefersStatusBarHidden: Bool {
return true
}

}
Loading