-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
10 changed files
with
397 additions
and
48 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
Binary file added
BIN
14.3 KB
...j/project.xcworkspace/xcuserdata/muhammadafroz.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
FAParser.xcodeproj/xcuserdata/muhammadafroz.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Bucket | ||
type = "1" | ||
version = "2.0"> | ||
</Bucket> |
111 changes: 111 additions & 0 deletions
111
FAParser.xcodeproj/xcuserdata/muhammadafroz.xcuserdatad/xcschemes/FAParser.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,111 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "0830" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "29E26CA41F09203F00A39D25" | ||
BuildableName = "FAParser.app" | ||
BlueprintName = "FAParser" | ||
ReferencedContainer = "container:FAParser.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
<TestableReference | ||
skipped = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "29E26CB81F09204000A39D25" | ||
BuildableName = "FAParserTests.xctest" | ||
BlueprintName = "FAParserTests" | ||
ReferencedContainer = "container:FAParser.xcodeproj"> | ||
</BuildableReference> | ||
</TestableReference> | ||
<TestableReference | ||
skipped = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "29E26CC31F09204000A39D25" | ||
BuildableName = "FAParserUITests.xctest" | ||
BlueprintName = "FAParserUITests" | ||
ReferencedContainer = "container:FAParser.xcodeproj"> | ||
</BuildableReference> | ||
</TestableReference> | ||
</Testables> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "29E26CA41F09203F00A39D25" | ||
BuildableName = "FAParser.app" | ||
BlueprintName = "FAParser" | ||
ReferencedContainer = "container:FAParser.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "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 = "29E26CA41F09203F00A39D25" | ||
BuildableName = "FAParser.app" | ||
BlueprintName = "FAParser" | ||
ReferencedContainer = "container:FAParser.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "29E26CA41F09203F00A39D25" | ||
BuildableName = "FAParser.app" | ||
BlueprintName = "FAParser" | ||
ReferencedContainer = "container:FAParser.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
32 changes: 32 additions & 0 deletions
32
FAParser.xcodeproj/xcuserdata/muhammadafroz.xcuserdatad/xcschemes/xcschememanagement.plist
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,32 @@ | ||
<?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>SchemeUserState</key> | ||
<dict> | ||
<key>FAParser.xcscheme</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>0</integer> | ||
</dict> | ||
</dict> | ||
<key>SuppressBuildableAutocreation</key> | ||
<dict> | ||
<key>29E26CA41F09203F00A39D25</key> | ||
<dict> | ||
<key>primary</key> | ||
<true/> | ||
</dict> | ||
<key>29E26CB81F09204000A39D25</key> | ||
<dict> | ||
<key>primary</key> | ||
<true/> | ||
</dict> | ||
<key>29E26CC31F09204000A39D25</key> | ||
<dict> | ||
<key>primary</key> | ||
<true/> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
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,55 @@ | ||
// | ||
// Dictionary Additions.swift | ||
// Pods | ||
// | ||
// Created by Muhammad Afroz on 5/8/17. | ||
// | ||
// | ||
|
||
import Foundation | ||
import UIKit | ||
|
||
extension Dictionary { | ||
|
||
mutating func merge(with dictionary: Dictionary) { | ||
dictionary.forEach { updateValue($1, forKey: $0) } | ||
} | ||
|
||
func merged(with dictionary: Dictionary) -> Dictionary { | ||
var dict = self | ||
dict.merge(with: dictionary) | ||
return dict | ||
} | ||
public func has(key: Key) -> Bool { | ||
return index(forKey: key) != nil | ||
} | ||
|
||
public mutating func removeAll(keys: [Key]) { | ||
keys.forEach({ removeValue(forKey: $0)}) | ||
} | ||
|
||
public func jsonData(prettify: Bool = false) -> Data? { | ||
guard JSONSerialization.isValidJSONObject(self) else { | ||
return nil | ||
} | ||
let options = (prettify == true) ? JSONSerialization.WritingOptions.prettyPrinted : JSONSerialization.WritingOptions() | ||
return try? JSONSerialization.data(withJSONObject: self, options: options) | ||
} | ||
public func jsonString(prettify: Bool = false) -> String? { | ||
guard JSONSerialization.isValidJSONObject(self) else { | ||
return nil | ||
} | ||
let options = (prettify == true) ? JSONSerialization.WritingOptions.prettyPrinted : JSONSerialization.WritingOptions() | ||
let jsonData = try? JSONSerialization.data(withJSONObject: self, options: options) | ||
return jsonData?.string(encoding: .utf8) | ||
} | ||
|
||
} | ||
// MARK: - Methods | ||
public extension Data { | ||
|
||
public func string(encoding: String.Encoding) -> String? { | ||
return String(data: self, encoding: encoding) | ||
} | ||
|
||
} |
Oops, something went wrong.