Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

Commit

Permalink
Merge pull request #114 from bignerdranch/zwaldowski/project-fixes
Browse files Browse the repository at this point in the history
Project fixups
  • Loading branch information
mdmathias committed Feb 1, 2016
2 parents 5ef8c74 + 82bdf0f commit 7f12f4c
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 50 deletions.
2 changes: 1 addition & 1 deletion Configurations/Framework.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ LD_RUNPATH_SEARCH_PATHS[sdk=watchsimulator*] = $(inherited) @executable_path/F

DEFINES_MODULE = YES
FRAMEWORK_VERSION = A
INFOPLIST_FILE = Freddy/Info.plist
INFOPLIST_FILE = Sources/Info.plist
PRODUCT_BUNDLE_IDENTIFIER = com.bignerdranch.$(TARGET_NAME)
PRODUCT_NAME = Freddy
2 changes: 1 addition & 1 deletion Configurations/Tests.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ LD_RUNPATH_SEARCH_PATHS[sdk=iphonesimulator*] = $(inherited) @executable_path/F
LD_RUNPATH_SEARCH_PATHS[sdk=appletvos*] = $(inherited) @executable_path/Frameworks @loader_path/Frameworks
LD_RUNPATH_SEARCH_PATHS[sdk=appletvsimulator*] = $(inherited) @executable_path/Frameworks @loader_path/Frameworks

INFOPLIST_FILE = FreddyTests/Info.plist
INFOPLIST_FILE = Tests/Info.plist
PRODUCT_BUNDLE_IDENTIFIER = com.bignerdranch.$(TARGET_NAME)
PRODUCT_NAME = $(TARGET_NAME)
8 changes: 4 additions & 4 deletions Freddy.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "Freddy"
s.version = "2.0.0b1"
s.version = "2.0.1"
s.summary = "A JSON parsing library written in Swift"

s.description = <<-DESC
Expand All @@ -17,14 +17,14 @@ Pod::Spec.new do |s|

s.authors = {"Matt Mathias" => "[email protected]",
"John Gallagher" => "[email protected]",
"Zachary Waldowski" => "[email protected]"}
"Zachary Waldowski" => "[email protected]" }

s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.10"
s.watchos.deployment_target = "2.0"

s.source = {:git => "https://github.com/bignerdranch/Freddy.git", :tag => "v#{s.version}"}
s.source_files = "Freddy/*.swift"
s.source = {:git => "https://github.com/bignerdranch/Freddy.git", :tag => "#{s.version}"}
s.source_files = "Sources/**/*.swift"

s.requires_arc = true

Expand Down
44 changes: 2 additions & 42 deletions Freddy.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,8 @@
isa = XCBuildConfiguration;
baseConfigurationReference = DB6ADF801C23617500D77BF1 /* Debug.xcconfig */;
buildSettings = {
ENABLE_TESTABILITY = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
};
name = Debug;
Expand All @@ -692,12 +694,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = DB6ADF811C23617500D77BF1 /* Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
DEFINES_MODULE = YES;
INFOPLIST_FILE = Sources/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -706,10 +703,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = DB6ADF811C23617500D77BF1 /* Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
DEFINES_MODULE = YES;
INFOPLIST_FILE = Sources/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand All @@ -719,7 +712,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = DB6ADF831C23617500D77BF1 /* Tests.xcconfig */;
buildSettings = {
INFOPLIST_FILE = Tests/Info.plist;
SDKROOT = iphoneos;
};
name = Debug;
Expand All @@ -728,7 +720,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = DB6ADF831C23617500D77BF1 /* Tests.xcconfig */;
buildSettings = {
INFOPLIST_FILE = Tests/Info.plist;
SDKROOT = iphoneos;
};
name = Release;
Expand All @@ -737,23 +728,14 @@
isa = XCBuildConfiguration;
baseConfigurationReference = DB6ADF811C23617500D77BF1 /* Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
DEFINES_MODULE = YES;
INFOPLIST_FILE = Sources/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
SDKROOT = macosx;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
DB6ADF511C23612000D77BF1 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = DB6ADF811C23617500D77BF1 /* Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
DEFINES_MODULE = YES;
INFOPLIST_FILE = Sources/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
SDKROOT = macosx;
};
name = Release;
Expand All @@ -762,7 +744,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = DB6ADF831C23617500D77BF1 /* Tests.xcconfig */;
buildSettings = {
INFOPLIST_FILE = Tests/Info.plist;
SDKROOT = macosx;
};
name = Debug;
Expand All @@ -771,7 +752,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = DB6ADF831C23617500D77BF1 /* Tests.xcconfig */;
buildSettings = {
INFOPLIST_FILE = Tests/Info.plist;
SDKROOT = macosx;
};
name = Release;
Expand All @@ -780,12 +760,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = DB6ADF811C23617500D77BF1 /* Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
DEFINES_MODULE = YES;
INFOPLIST_FILE = Sources/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
SDKROOT = appletvos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = 3;
};
name = Debug;
Expand All @@ -794,10 +769,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = DB6ADF811C23617500D77BF1 /* Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
DEFINES_MODULE = YES;
INFOPLIST_FILE = Sources/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
SDKROOT = appletvos;
TARGETED_DEVICE_FAMILY = 3;
};
Expand All @@ -807,7 +778,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = DB6ADF831C23617500D77BF1 /* Tests.xcconfig */;
buildSettings = {
INFOPLIST_FILE = Tests/Info.plist;
SDKROOT = appletvos;
};
name = Debug;
Expand All @@ -816,7 +786,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = DB6ADF831C23617500D77BF1 /* Tests.xcconfig */;
buildSettings = {
INFOPLIST_FILE = Tests/Info.plist;
SDKROOT = appletvos;
};
name = Release;
Expand All @@ -825,12 +794,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = DB6ADF811C23617500D77BF1 /* Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
DEFINES_MODULE = YES;
INFOPLIST_FILE = Sources/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
SDKROOT = watchos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = 4;
};
name = Debug;
Expand All @@ -839,10 +803,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = DB6ADF811C23617500D77BF1 /* Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
DEFINES_MODULE = YES;
INFOPLIST_FILE = Sources/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
SDKROOT = watchos;
TARGETED_DEVICE_FAMILY = 4;
};
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,18 @@ Then run `pod install`.

### Swift Package Manager

We've [not yet](https://github.com/bignerdranch/Freddy/issues/110) reorganized the project as a Swift module. [Pull requests](https://github.com/bignerdranch/Freddy/pulls) are welcome!
Add us to your `Package.swift`:

```
import PackageDescription
let package = Package(
name: "My Nerdy App",
dependencies: [
.Package(url: "https://github.com/bignerdranch/Freddy.git", majorVersion: 2),
]
)
```

## Setting Breakpoint Errors

Expand Down
2 changes: 1 addition & 1 deletion Sources/JSONEncodingDetector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public struct JSONEncodingDetector {
//// xx xx xx xx UTF-8
////
//// - parameter header: The front Slice of data being read and evaluated.
//// - returns: The a tuple containing the detected Unicode encoding and the lenght of the byte order mark.
//// - returns: A tuple containing the detected Unicode encoding and the lenght of the byte order mark.
static func detectEncoding(header: Slice<UnsafeBufferPointer<UInt8>>) -> ByteStreamPrefixInformation {

guard let prefix = prefixFromHeader(header) else {
Expand Down

0 comments on commit 7f12f4c

Please sign in to comment.