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 Profiles/Assets/.gitkeep
Empty file.
25 changes: 25 additions & 0 deletions Profiles/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
platform :ios, '9.0'

target 'Profiles' do
use_frameworks!

pod 'Alamofire', '4.4.0'
pod 'AlamofireObjectMapper', '4.1.0'
pod 'Dollar', '6.2.0'
pod 'Material', '2.6.3'
pod 'PromiseKit', '4.1.7'
pod 'RealmSwift', '2.5.1'
pod 'Reveal-SDK', '8', :configurations => ['Debug']
pod 'SnapKit', '3.2.0'
pod 'SwiftyTimer', '2.0.0'
pod 'SwiftyUserDefaults', '3.0.0'

target 'ProfilesTests' do
inherit! :search_paths
end

target 'ProfilesUITests' do
inherit! :search_paths
end

end
60 changes: 60 additions & 0 deletions Profiles/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
PODS:
- Alamofire (4.4.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.1.7):
- PromiseKit/Foundation (= 4.1.7)
- PromiseKit/QuartzCore (= 4.1.7)
- PromiseKit/UIKit (= 4.1.7)
- PromiseKit/CorePromise (4.1.7)
- PromiseKit/Foundation (4.1.7):
- PromiseKit/CorePromise
- PromiseKit/QuartzCore (4.1.7):
- PromiseKit/CorePromise
- PromiseKit/UIKit (4.1.7):
- PromiseKit/CorePromise
- Realm (2.5.1):
- Realm/Headers (= 2.5.1)
- Realm/Headers (2.5.1)
- RealmSwift (2.5.1):
- Realm (= 2.5.1)
- Reveal-SDK (8)
- SnapKit (3.2.0)
- SwiftyTimer (2.0.0)
- SwiftyUserDefaults (3.0.0)

DEPENDENCIES:
- Alamofire (= 4.4.0)
- AlamofireObjectMapper (= 4.1.0)
- Dollar (= 6.2.0)
- Material (= 2.6.3)
- PromiseKit (= 4.1.7)
- RealmSwift (= 2.5.1)
- Reveal-SDK (= 8)
- SnapKit (= 3.2.0)
- SwiftyTimer (= 2.0.0)
- SwiftyUserDefaults (= 3.0.0)

SPEC CHECKSUMS:
Alamofire: dc44b1600b800eb63da6a19039a0083d62a6a62d
AlamofireObjectMapper: 435adc82f5b367679bd9e71c4974a54efd0b2521
Dollar: da81aacae30cf7dd059bfdfec709e97f2f0ae2f8
Material: af607a7ec0e9978ef85cf189a3d8ceeeb650400f
ObjectMapper: fb30f71e08470d1e5a20b199fafe1246281db898
PromiseKit: 779f2e41faf62d854e7593026ddbcb0bb5c5002d
Realm: 32f86104d37c8521f864d4274050b38ba6190733
RealmSwift: f719e7511c902b8908593e8f143f59e47931bdb6
Reveal-SDK: 43be4e662864e937960d0d04d005135e29c4e53b
SnapKit: 1ca44df72cfa543218d177cb8aab029d10d86ea7
SwiftyTimer: 2efd74b060d69ad4f1496baf5bbedbe132125fcf
SwiftyUserDefaults: 0f1d45fc3aafb9064dac661e367f8f83fe21a4b4

PODFILE CHECKSUM: 7fbf602722025a36a3ba2b9ff411b243d1548e86

COCOAPODS: 1.2.0
787 changes: 787 additions & 0 deletions Profiles/Profiles.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 Profiles/Profiles.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 Profiles/Profiles/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
}

}
128 changes: 128 additions & 0 deletions Profiles/Profiles/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"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"
}
],
"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 Profiles/Profiles/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>
50 changes: 50 additions & 0 deletions Profiles/Profiles/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?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>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>
Binary file added Profiles/Profiles/Resources/Images/launch.png
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 Profiles/Profiles/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