forked from mcrollin/Drivecast
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Defined application flow and added assets - Added first API data point and Model for Imports
- Loading branch information
Showing
65 changed files
with
1,983 additions
and
296 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
115 changes: 115 additions & 0 deletions
115
Drivecast.xcodeproj/xcshareddata/xcschemes/Drivecast Production.xcscheme
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,115 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "0700" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "49FC9A1D1BCFB5D4006FA40E" | ||
BuildableName = "Drivecast.app" | ||
BlueprintName = "Drivecast" | ||
ReferencedContainer = "container:Drivecast.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
<BuildActionEntry | ||
buildForTesting = "NO" | ||
buildForRunning = "NO" | ||
buildForProfiling = "NO" | ||
buildForArchiving = "NO" | ||
buildForAnalyzing = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "49FC9A3C1BCFB5D4006FA40E" | ||
BuildableName = "DrivecastUITests.xctest" | ||
BlueprintName = "DrivecastUITests" | ||
ReferencedContainer = "container:Drivecast.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Production Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
<TestableReference | ||
skipped = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "49FC9A311BCFB5D4006FA40E" | ||
BuildableName = "DrivecastTests.xctest" | ||
BlueprintName = "DrivecastTests" | ||
ReferencedContainer = "container:Drivecast.xcodeproj"> | ||
</BuildableReference> | ||
</TestableReference> | ||
</Testables> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "49FC9A1D1BCFB5D4006FA40E" | ||
BuildableName = "Drivecast.app" | ||
BlueprintName = "Drivecast" | ||
ReferencedContainer = "container:Drivecast.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Production Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "49FC9A1D1BCFB5D4006FA40E" | ||
BuildableName = "Drivecast.app" | ||
BlueprintName = "Drivecast" | ||
ReferencedContainer = "container:Drivecast.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Production Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "49FC9A1D1BCFB5D4006FA40E" | ||
BuildableName = "Drivecast.app" | ||
BlueprintName = "Drivecast" | ||
ReferencedContainer = "container:Drivecast.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Production Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Production Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
119 changes: 119 additions & 0 deletions
119
Drivecast.xcodeproj/xcshareddata/xcschemes/Drivecast Staging.xcscheme
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,119 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "0700" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "49FC9A1D1BCFB5D4006FA40E" | ||
BuildableName = "Drivecast.app" | ||
BlueprintName = "Drivecast" | ||
ReferencedContainer = "container:Drivecast.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "NO" | ||
buildForProfiling = "NO" | ||
buildForArchiving = "NO" | ||
buildForAnalyzing = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "49FC9A311BCFB5D4006FA40E" | ||
BuildableName = "DrivecastTests.xctest" | ||
BlueprintName = "DrivecastTests" | ||
ReferencedContainer = "container:Drivecast.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
<BuildActionEntry | ||
buildForTesting = "NO" | ||
buildForRunning = "NO" | ||
buildForProfiling = "NO" | ||
buildForArchiving = "NO" | ||
buildForAnalyzing = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "49FC9A3C1BCFB5D4006FA40E" | ||
BuildableName = "DrivecastUITests.xctest" | ||
BlueprintName = "DrivecastUITests" | ||
ReferencedContainer = "container:Drivecast.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Staging Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
</Testables> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "49FC9A1D1BCFB5D4006FA40E" | ||
BuildableName = "Drivecast.app" | ||
BlueprintName = "Drivecast" | ||
ReferencedContainer = "container:Drivecast.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Staging Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "49FC9A1D1BCFB5D4006FA40E" | ||
BuildableName = "Drivecast.app" | ||
BlueprintName = "Drivecast" | ||
ReferencedContainer = "container:Drivecast.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Staging Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "49FC9A1D1BCFB5D4006FA40E" | ||
BuildableName = "Drivecast.app" | ||
BlueprintName = "Drivecast" | ||
ReferencedContainer = "container:Drivecast.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Staging Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Staging Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
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,22 @@ | ||
// | ||
// JSON.swift | ||
// Drivecast | ||
// | ||
// Created by Marc Rollin on 10/15/15. | ||
// Copyright © 2015 Safecast. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import SwiftyJSON | ||
|
||
extension JSON: JSONCollectionDecodable { | ||
static func collection<T: JSONDecodable>(json: Array<JSON>) throws -> [T] { | ||
var collection = [T]() | ||
|
||
for element in json { | ||
collection.append(try T(json: element)!) | ||
} | ||
|
||
return collection | ||
} | ||
} |
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,26 @@ | ||
// Generated using SwiftGen, by O.Halligon — https://github.com/AliSoftware/SwiftGen | ||
|
||
import UIKit | ||
|
||
extension UIColor { | ||
convenience init(rgbaValue: UInt32) { | ||
let red = CGFloat((rgbaValue >> 24) & 0xff) / 255.0 | ||
let green = CGFloat((rgbaValue >> 16) & 0xff) / 255.0 | ||
let blue = CGFloat((rgbaValue >> 8) & 0xff) / 255.0 | ||
let alpha = CGFloat((rgbaValue ) & 0xff) / 255.0 | ||
|
||
self.init(red: red, green: green, blue: blue, alpha: alpha) | ||
} | ||
} | ||
|
||
extension UIColor { | ||
enum Name : UInt32 { | ||
case Background = 0xf4f8f8ff | ||
case Main = 0x2ecc71ff | ||
} | ||
|
||
convenience init(named name: Name) { | ||
self.init(rgbaValue: name.rawValue) | ||
} | ||
} | ||
|
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,24 @@ | ||
// Generated using SwiftGen, by O.Halligon — https://github.com/AliSoftware/SwiftGen | ||
|
||
import Foundation | ||
import UIKit | ||
|
||
extension UIImage { | ||
enum Asset : String { | ||
case Home = "Home" | ||
case More = "More" | ||
case Record = "Record" | ||
case Upload = "Upload" | ||
case SafecastLettersBig = "SafecastLettersBig" | ||
case SafecastLettersSmall = "SafecastLettersSmall" | ||
|
||
var image: UIImage { | ||
return UIImage(asset: self) | ||
} | ||
} | ||
|
||
convenience init(asset: Asset) { | ||
self.init(named: asset.rawValue)! | ||
} | ||
} | ||
|
Oops, something went wrong.