Merge pull request #12 from dingwilson/lib
Added SPM, CocoaPods, Carthage Integrations
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
.DS_Store
|
||||
/.build
|
||||
/Packages
|
||||
*.xcodeproj
|
||||
@@ -0,0 +1 @@
|
||||
4.0
|
||||
@@ -0,0 +1,28 @@
|
||||
// swift-tools-version:4.0
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "XMLParsing",
|
||||
products: [
|
||||
// Products define the executables and libraries produced by a package, and make them visible to other packages.
|
||||
.library(
|
||||
name: "XMLParsing",
|
||||
targets: ["XMLParsing"]),
|
||||
],
|
||||
dependencies: [
|
||||
// Dependencies declare other packages that this package depends on.
|
||||
// .package(url: /* package url */, from: "1.0.0"),
|
||||
],
|
||||
targets: [
|
||||
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
|
||||
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
|
||||
.target(
|
||||
name: "XMLParsing",
|
||||
dependencies: []),
|
||||
.testTarget(
|
||||
name: "XMLParsingTests",
|
||||
dependencies: ["XMLParsing"]),
|
||||
]
|
||||
)
|
||||
+5
-1
@@ -896,7 +896,11 @@ extension _XMLEncoder {
|
||||
case .millisecondsSince1970:
|
||||
return NSNumber(value: value.timeIntervalSince1970 * 1000.0)
|
||||
case .iso8601:
|
||||
return _iso8601Formatter.string(from: value) as NSObject
|
||||
if #available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *) {
|
||||
return _iso8601Formatter.string(from: value) as NSObject
|
||||
} else {
|
||||
fatalError("ISO8601DateFormatter is unavailable on this platform.")
|
||||
}
|
||||
case .formatted(let formatter):
|
||||
return formatter.string(from: value) as NSObject
|
||||
case .custom(let closure):
|
||||
@@ -0,0 +1,6 @@
|
||||
import XCTest
|
||||
@testable import XMLParsingTests
|
||||
|
||||
XCTMain([
|
||||
testCase(XMLParsingTests.allTests),
|
||||
])
|
||||
@@ -0,0 +1,16 @@
|
||||
import XCTest
|
||||
@testable import XMLParsing
|
||||
|
||||
class XMLParsingTests: XCTestCase {
|
||||
func testExample() {
|
||||
// This is an example of a functional test case.
|
||||
// Use XCTAssert and related functions to verify your tests produce the correct
|
||||
// results.
|
||||
XCTAssertEqual(XMLParsing().text, "Hello, World!")
|
||||
}
|
||||
|
||||
|
||||
static var allTests = [
|
||||
("testExample", testExample),
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = "XMLParsing"
|
||||
s.version = "0.0.1"
|
||||
s.summary = "XMLEncoder & XMLDecoder using the Codable protocol in Swift 4"
|
||||
s.description = "XMLParsing allows Swift 4 Codable-conforming objects to be translated to and from XML"
|
||||
s.homepage = "https://github.com/ShawnMoore/XMLParsing"
|
||||
s.license = { :type => "MIT", :file => "LICENSE" }
|
||||
s.author = { "Shawn Moore" => "sm5@me.com" }
|
||||
s.ios.deployment_target = "10.0"
|
||||
s.osx.deployment_target = "10.12"
|
||||
s.source = { :git => "https://github.com/ShawnMoore/XMLParsing.git", :tag => s.version.to_s }
|
||||
s.source_files = "Sources/XMLParsing/**/*.swift"
|
||||
s.requires_arc = true
|
||||
end
|
||||
@@ -1,535 +0,0 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 48;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
585926461FCA638100D72B34 /* XMLReferencingEncoder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 585926451FCA638100D72B34 /* XMLReferencingEncoder.swift */; };
|
||||
5882B9D61FCBCEFE0045F93B /* DataExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5882B9D51FCBCEFE0045F93B /* DataExtension.swift */; };
|
||||
5898816B1FBCB5C8003154DE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5898816A1FBCB5C8003154DE /* AppDelegate.swift */; };
|
||||
5898816D1FBCB5C8003154DE /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5898816C1FBCB5C8003154DE /* ViewController.swift */; };
|
||||
589881701FBCB5C8003154DE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5898816E1FBCB5C8003154DE /* Main.storyboard */; };
|
||||
589881721FBCB5C8003154DE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 589881711FBCB5C8003154DE /* Assets.xcassets */; };
|
||||
589881751FBCB5C8003154DE /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 589881731FBCB5C8003154DE /* LaunchScreen.storyboard */; };
|
||||
5898817D1FBCB60E003154DE /* RJI_RSS_Sample.xml in Resources */ = {isa = PBXBuildFile; fileRef = 5898817C1FBCB60D003154DE /* RJI_RSS_Sample.xml */; };
|
||||
589881801FBCB690003154DE /* books.xml in Resources */ = {isa = PBXBuildFile; fileRef = 5898817F1FBCB690003154DE /* books.xml */; };
|
||||
589881821FBCB6E7003154DE /* note.xml in Resources */ = {isa = PBXBuildFile; fileRef = 589881811FBCB6E7003154DE /* note.xml */; };
|
||||
589881841FBCD0F2003154DE /* note_error.xml in Resources */ = {isa = PBXBuildFile; fileRef = 589881831FBCD0F2003154DE /* note_error.xml */; };
|
||||
589881881FBCD142003154DE /* cd_catalog.xml in Resources */ = {isa = PBXBuildFile; fileRef = 589881851FBCD142003154DE /* cd_catalog.xml */; };
|
||||
589881891FBCD142003154DE /* plant_catalog.xml in Resources */ = {isa = PBXBuildFile; fileRef = 589881861FBCD142003154DE /* plant_catalog.xml */; };
|
||||
5898818A1FBCD142003154DE /* breakfast.xml in Resources */ = {isa = PBXBuildFile; fileRef = 589881871FBCD142003154DE /* breakfast.xml */; };
|
||||
5898818C1FBCD514003154DE /* XMLStackParser.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5898818B1FBCD514003154DE /* XMLStackParser.swift */; };
|
||||
589881971FBCDC23003154DE /* Books.swift in Sources */ = {isa = PBXBuildFile; fileRef = 589881961FBCDC23003154DE /* Books.swift */; };
|
||||
589D29FC1FBCF7240050E664 /* Notes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 589D29FB1FBCF7240050E664 /* Notes.swift */; };
|
||||
589D29FE1FBCF8160050E664 /* CDCatalog.swift in Sources */ = {isa = PBXBuildFile; fileRef = 589D29FD1FBCF8160050E664 /* CDCatalog.swift */; };
|
||||
589D2A001FBCF93E0050E664 /* PlantCatalog.swift in Sources */ = {isa = PBXBuildFile; fileRef = 589D29FF1FBCF93E0050E664 /* PlantCatalog.swift */; };
|
||||
589D2A021FBCF9D50050E664 /* breakfast.swift in Sources */ = {isa = PBXBuildFile; fileRef = 589D2A011FBCF9D50050E664 /* breakfast.swift */; };
|
||||
58AD27291FC394C70072AD90 /* XMLDecodingStorage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58AD27281FC394C70072AD90 /* XMLDecodingStorage.swift */; };
|
||||
58AD272B1FC46B190072AD90 /* DecodingErrorExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58AD272A1FC46B190072AD90 /* DecodingErrorExtension.swift */; };
|
||||
58AD272D1FC46B8A0072AD90 /* ISO8601DateFormatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58AD272C1FC46B8A0072AD90 /* ISO8601DateFormatter.swift */; };
|
||||
58AD272F1FC46BCD0072AD90 /* XMLKey.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58AD272E1FC46BCD0072AD90 /* XMLKey.swift */; };
|
||||
58AD27311FC46D9A0072AD90 /* XMLUnkeyedDecodingContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58AD27301FC46D9A0072AD90 /* XMLUnkeyedDecodingContainer.swift */; };
|
||||
58AD27331FC4728F0072AD90 /* XMLKeyedDecodingContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58AD27321FC4728F0072AD90 /* XMLKeyedDecodingContainer.swift */; };
|
||||
58AD27361FC63DAB0072AD90 /* EncodingErrorExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58AD27351FC63DAB0072AD90 /* EncodingErrorExtension.swift */; };
|
||||
58AD27391FC6416E0072AD90 /* XMLEncoder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58AD27381FC6416E0072AD90 /* XMLEncoder.swift */; };
|
||||
58AD273B1FC67DBA0072AD90 /* XMLEncodingStorage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58AD273A1FC67DBA0072AD90 /* XMLEncodingStorage.swift */; };
|
||||
58D005851FC08DDA0048711F /* XMLDecoderV1.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58D005841FC08DD90048711F /* XMLDecoderV1.swift */; };
|
||||
58D005871FC37AE10048711F /* book.xml in Resources */ = {isa = PBXBuildFile; fileRef = 58D005861FC37AE10048711F /* book.xml */; };
|
||||
58D005891FC3839D0048711F /* RJI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58D005881FC3839D0048711F /* RJI.swift */; };
|
||||
58D0058D1FC390200048711F /* XMLDecoder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58D0058C1FC390200048711F /* XMLDecoder.swift */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
585926451FCA638100D72B34 /* XMLReferencingEncoder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XMLReferencingEncoder.swift; sourceTree = "<group>"; };
|
||||
5882B9D51FCBCEFE0045F93B /* DataExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataExtension.swift; sourceTree = "<group>"; };
|
||||
589881671FBCB5C8003154DE /* XMLParsing.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = XMLParsing.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
5898816A1FBCB5C8003154DE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||
5898816C1FBCB5C8003154DE /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
|
||||
5898816F1FBCB5C8003154DE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
||||
589881711FBCB5C8003154DE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
589881741FBCB5C8003154DE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||
589881761FBCB5C8003154DE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
5898817C1FBCB60D003154DE /* RJI_RSS_Sample.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = RJI_RSS_Sample.xml; sourceTree = "<group>"; };
|
||||
5898817F1FBCB690003154DE /* books.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = books.xml; sourceTree = "<group>"; };
|
||||
589881811FBCB6E7003154DE /* note.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = note.xml; sourceTree = "<group>"; };
|
||||
589881831FBCD0F2003154DE /* note_error.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = note_error.xml; sourceTree = "<group>"; };
|
||||
589881851FBCD142003154DE /* cd_catalog.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = cd_catalog.xml; sourceTree = "<group>"; };
|
||||
589881861FBCD142003154DE /* plant_catalog.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = plant_catalog.xml; sourceTree = "<group>"; };
|
||||
589881871FBCD142003154DE /* breakfast.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = breakfast.xml; sourceTree = "<group>"; };
|
||||
5898818B1FBCD514003154DE /* XMLStackParser.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = XMLStackParser.swift; sourceTree = "<group>"; };
|
||||
589881961FBCDC23003154DE /* Books.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Books.swift; sourceTree = "<group>"; };
|
||||
589D29FB1FBCF7240050E664 /* Notes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Notes.swift; sourceTree = "<group>"; };
|
||||
589D29FD1FBCF8160050E664 /* CDCatalog.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CDCatalog.swift; sourceTree = "<group>"; };
|
||||
589D29FF1FBCF93E0050E664 /* PlantCatalog.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlantCatalog.swift; sourceTree = "<group>"; };
|
||||
589D2A011FBCF9D50050E664 /* breakfast.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = breakfast.swift; sourceTree = "<group>"; };
|
||||
58AD27281FC394C70072AD90 /* XMLDecodingStorage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XMLDecodingStorage.swift; sourceTree = "<group>"; };
|
||||
58AD272A1FC46B190072AD90 /* DecodingErrorExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DecodingErrorExtension.swift; sourceTree = "<group>"; };
|
||||
58AD272C1FC46B8A0072AD90 /* ISO8601DateFormatter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ISO8601DateFormatter.swift; sourceTree = "<group>"; };
|
||||
58AD272E1FC46BCD0072AD90 /* XMLKey.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XMLKey.swift; sourceTree = "<group>"; };
|
||||
58AD27301FC46D9A0072AD90 /* XMLUnkeyedDecodingContainer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XMLUnkeyedDecodingContainer.swift; sourceTree = "<group>"; };
|
||||
58AD27321FC4728F0072AD90 /* XMLKeyedDecodingContainer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XMLKeyedDecodingContainer.swift; sourceTree = "<group>"; };
|
||||
58AD27351FC63DAB0072AD90 /* EncodingErrorExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EncodingErrorExtension.swift; sourceTree = "<group>"; };
|
||||
58AD27381FC6416E0072AD90 /* XMLEncoder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XMLEncoder.swift; sourceTree = "<group>"; };
|
||||
58AD273A1FC67DBA0072AD90 /* XMLEncodingStorage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XMLEncodingStorage.swift; sourceTree = "<group>"; };
|
||||
58D005841FC08DD90048711F /* XMLDecoderV1.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = XMLDecoderV1.swift; sourceTree = "<group>"; };
|
||||
58D005861FC37AE10048711F /* book.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = book.xml; sourceTree = "<group>"; };
|
||||
58D005881FC3839D0048711F /* RJI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RJI.swift; sourceTree = "<group>"; };
|
||||
58D0058C1FC390200048711F /* XMLDecoder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XMLDecoder.swift; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
589881641FBCB5C8003154DE /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
5898815E1FBCB5C8003154DE = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
589881691FBCB5C8003154DE /* XMLParsing */,
|
||||
589881681FBCB5C8003154DE /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
589881681FBCB5C8003154DE /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
589881671FBCB5C8003154DE /* XMLParsing.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
589881691FBCB5C8003154DE /* XMLParsing */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
5898816C1FBCB5C8003154DE /* ViewController.swift */,
|
||||
5898817E1FBCB611003154DE /* Sample XML */,
|
||||
58AD27371FC63DFF0072AD90 /* XML */,
|
||||
58D0058A1FC38FF30048711F /* Previous XML Attempts */,
|
||||
5898818D1FBCD518003154DE /* Support */,
|
||||
);
|
||||
path = XMLParsing;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
5898817E1FBCB611003154DE /* Sample XML */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
5898818F1FBCDBC6003154DE /* RJI */,
|
||||
589881901FBCDBCD003154DE /* Books */,
|
||||
589881911FBCDBD9003154DE /* Notes */,
|
||||
589881921FBCDBE0003154DE /* CDs */,
|
||||
589881941FBCDBF6003154DE /* Plants */,
|
||||
589881951FBCDBFC003154DE /* BreakfastMenu */,
|
||||
);
|
||||
path = "Sample XML";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
5898818D1FBCD518003154DE /* Support */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
5898816A1FBCB5C8003154DE /* AppDelegate.swift */,
|
||||
5898816E1FBCB5C8003154DE /* Main.storyboard */,
|
||||
589881711FBCB5C8003154DE /* Assets.xcassets */,
|
||||
589881731FBCB5C8003154DE /* LaunchScreen.storyboard */,
|
||||
589881761FBCB5C8003154DE /* Info.plist */,
|
||||
5882B9D51FCBCEFE0045F93B /* DataExtension.swift */,
|
||||
);
|
||||
name = Support;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
5898818F1FBCDBC6003154DE /* RJI */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
5898817C1FBCB60D003154DE /* RJI_RSS_Sample.xml */,
|
||||
58D005881FC3839D0048711F /* RJI.swift */,
|
||||
);
|
||||
path = RJI;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
589881901FBCDBCD003154DE /* Books */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
58D005861FC37AE10048711F /* book.xml */,
|
||||
5898817F1FBCB690003154DE /* books.xml */,
|
||||
589881961FBCDC23003154DE /* Books.swift */,
|
||||
);
|
||||
path = Books;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
589881911FBCDBD9003154DE /* Notes */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
589881811FBCB6E7003154DE /* note.xml */,
|
||||
589881831FBCD0F2003154DE /* note_error.xml */,
|
||||
589D29FB1FBCF7240050E664 /* Notes.swift */,
|
||||
);
|
||||
path = Notes;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
589881921FBCDBE0003154DE /* CDs */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
589881851FBCD142003154DE /* cd_catalog.xml */,
|
||||
589D29FD1FBCF8160050E664 /* CDCatalog.swift */,
|
||||
);
|
||||
path = CDs;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
589881941FBCDBF6003154DE /* Plants */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
589881861FBCD142003154DE /* plant_catalog.xml */,
|
||||
589D29FF1FBCF93E0050E664 /* PlantCatalog.swift */,
|
||||
);
|
||||
path = Plants;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
589881951FBCDBFC003154DE /* BreakfastMenu */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
589881871FBCD142003154DE /* breakfast.xml */,
|
||||
589D2A011FBCF9D50050E664 /* breakfast.swift */,
|
||||
);
|
||||
path = BreakfastMenu;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
58AD27341FC637CC0072AD90 /* Encoder */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
58AD27351FC63DAB0072AD90 /* EncodingErrorExtension.swift */,
|
||||
58AD27381FC6416E0072AD90 /* XMLEncoder.swift */,
|
||||
585926451FCA638100D72B34 /* XMLReferencingEncoder.swift */,
|
||||
58AD273A1FC67DBA0072AD90 /* XMLEncodingStorage.swift */,
|
||||
);
|
||||
path = Encoder;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
58AD27371FC63DFF0072AD90 /* XML */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
58AD272C1FC46B8A0072AD90 /* ISO8601DateFormatter.swift */,
|
||||
5898818B1FBCD514003154DE /* XMLStackParser.swift */,
|
||||
58AD272E1FC46BCD0072AD90 /* XMLKey.swift */,
|
||||
58AD27341FC637CC0072AD90 /* Encoder */,
|
||||
58D0058B1FC3900F0048711F /* Decoder */,
|
||||
);
|
||||
path = XML;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
58D0058A1FC38FF30048711F /* Previous XML Attempts */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
58D005841FC08DD90048711F /* XMLDecoderV1.swift */,
|
||||
);
|
||||
path = "Previous XML Attempts";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
58D0058B1FC3900F0048711F /* Decoder */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
58D0058C1FC390200048711F /* XMLDecoder.swift */,
|
||||
58AD27281FC394C70072AD90 /* XMLDecodingStorage.swift */,
|
||||
58AD27321FC4728F0072AD90 /* XMLKeyedDecodingContainer.swift */,
|
||||
58AD27301FC46D9A0072AD90 /* XMLUnkeyedDecodingContainer.swift */,
|
||||
58AD272A1FC46B190072AD90 /* DecodingErrorExtension.swift */,
|
||||
);
|
||||
path = Decoder;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
589881661FBCB5C8003154DE /* XMLParsing */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 589881791FBCB5C8003154DE /* Build configuration list for PBXNativeTarget "XMLParsing" */;
|
||||
buildPhases = (
|
||||
589881631FBCB5C8003154DE /* Sources */,
|
||||
589881641FBCB5C8003154DE /* Frameworks */,
|
||||
589881651FBCB5C8003154DE /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = XMLParsing;
|
||||
productName = XMLParsing;
|
||||
productReference = 589881671FBCB5C8003154DE /* XMLParsing.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
5898815F1FBCB5C8003154DE /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastSwiftUpdateCheck = 0910;
|
||||
LastUpgradeCheck = 0910;
|
||||
ORGANIZATIONNAME = "Shawn Moore";
|
||||
TargetAttributes = {
|
||||
589881661FBCB5C8003154DE = {
|
||||
CreatedOnToolsVersion = 9.1;
|
||||
ProvisioningStyle = Automatic;
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = 589881621FBCB5C8003154DE /* Build configuration list for PBXProject "XMLParsing" */;
|
||||
compatibilityVersion = "Xcode 8.0";
|
||||
developmentRegion = en;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
Base,
|
||||
);
|
||||
mainGroup = 5898815E1FBCB5C8003154DE;
|
||||
productRefGroup = 589881681FBCB5C8003154DE /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
589881661FBCB5C8003154DE /* XMLParsing */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
589881651FBCB5C8003154DE /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
589881751FBCB5C8003154DE /* LaunchScreen.storyboard in Resources */,
|
||||
589881721FBCB5C8003154DE /* Assets.xcassets in Resources */,
|
||||
5898817D1FBCB60E003154DE /* RJI_RSS_Sample.xml in Resources */,
|
||||
5898818A1FBCD142003154DE /* breakfast.xml in Resources */,
|
||||
589881891FBCD142003154DE /* plant_catalog.xml in Resources */,
|
||||
589881821FBCB6E7003154DE /* note.xml in Resources */,
|
||||
589881841FBCD0F2003154DE /* note_error.xml in Resources */,
|
||||
58D005871FC37AE10048711F /* book.xml in Resources */,
|
||||
589881801FBCB690003154DE /* books.xml in Resources */,
|
||||
589881881FBCD142003154DE /* cd_catalog.xml in Resources */,
|
||||
589881701FBCB5C8003154DE /* Main.storyboard in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
589881631FBCB5C8003154DE /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
589D29FE1FBCF8160050E664 /* CDCatalog.swift in Sources */,
|
||||
58D005851FC08DDA0048711F /* XMLDecoderV1.swift in Sources */,
|
||||
58AD272B1FC46B190072AD90 /* DecodingErrorExtension.swift in Sources */,
|
||||
5882B9D61FCBCEFE0045F93B /* DataExtension.swift in Sources */,
|
||||
589881971FBCDC23003154DE /* Books.swift in Sources */,
|
||||
58AD273B1FC67DBA0072AD90 /* XMLEncodingStorage.swift in Sources */,
|
||||
589D29FC1FBCF7240050E664 /* Notes.swift in Sources */,
|
||||
585926461FCA638100D72B34 /* XMLReferencingEncoder.swift in Sources */,
|
||||
5898816D1FBCB5C8003154DE /* ViewController.swift in Sources */,
|
||||
58AD27311FC46D9A0072AD90 /* XMLUnkeyedDecodingContainer.swift in Sources */,
|
||||
589D2A001FBCF93E0050E664 /* PlantCatalog.swift in Sources */,
|
||||
58AD27331FC4728F0072AD90 /* XMLKeyedDecodingContainer.swift in Sources */,
|
||||
589D2A021FBCF9D50050E664 /* breakfast.swift in Sources */,
|
||||
5898818C1FBCD514003154DE /* XMLStackParser.swift in Sources */,
|
||||
58AD27391FC6416E0072AD90 /* XMLEncoder.swift in Sources */,
|
||||
58AD272D1FC46B8A0072AD90 /* ISO8601DateFormatter.swift in Sources */,
|
||||
5898816B1FBCB5C8003154DE /* AppDelegate.swift in Sources */,
|
||||
58D005891FC3839D0048711F /* RJI.swift in Sources */,
|
||||
58AD272F1FC46BCD0072AD90 /* XMLKey.swift in Sources */,
|
||||
58AD27291FC394C70072AD90 /* XMLDecodingStorage.swift in Sources */,
|
||||
58D0058D1FC390200048711F /* XMLDecoder.swift in Sources */,
|
||||
58AD27361FC63DAB0072AD90 /* EncodingErrorExtension.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
5898816E1FBCB5C8003154DE /* Main.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
5898816F1FBCB5C8003154DE /* Base */,
|
||||
);
|
||||
name = Main.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
589881731FBCB5C8003154DE /* LaunchScreen.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
589881741FBCB5C8003154DE /* Base */,
|
||||
);
|
||||
name = LaunchScreen.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
589881771FBCB5C8003154DE /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
"$(inherited)",
|
||||
);
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 11.1;
|
||||
MTL_ENABLE_DEBUG_INFO = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
589881781FBCB5C8003154DE /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 11.1;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = iphoneos;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
5898817A1FBCB5C8003154DE /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
DEVELOPMENT_TEAM = 59B8VY99KD;
|
||||
INFOPLIST_FILE = XMLParsing/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = edu.missouri.XMLParsing;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_VERSION = 4.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
5898817B1FBCB5C8003154DE /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
DEVELOPMENT_TEAM = 59B8VY99KD;
|
||||
INFOPLIST_FILE = XMLParsing/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = edu.missouri.XMLParsing;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_VERSION = 4.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
589881621FBCB5C8003154DE /* Build configuration list for PBXProject "XMLParsing" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
589881771FBCB5C8003154DE /* Debug */,
|
||||
589881781FBCB5C8003154DE /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
589881791FBCB5C8003154DE /* Build configuration list for PBXNativeTarget "XMLParsing" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
5898817A1FBCB5C8003154DE /* Debug */,
|
||||
5898817B1FBCB5C8003154DE /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 5898815F1FBCB5C8003154DE /* Project object */;
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:XMLParsing.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
@@ -1,5 +0,0 @@
|
||||
<?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/>
|
||||
</plist>
|
||||
@@ -1,46 +0,0 @@
|
||||
//
|
||||
// AppDelegate.swift
|
||||
// XMLParsing
|
||||
//
|
||||
// Created by Shawn Moore on 11/15/17.
|
||||
// Copyright © 2017 Shawn Moore. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
@UIApplicationMain
|
||||
class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
|
||||
var window: UIWindow?
|
||||
|
||||
|
||||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
|
||||
// Override point for customization after application launch.
|
||||
return true
|
||||
}
|
||||
|
||||
func applicationWillResignActive(_ application: UIApplication) {
|
||||
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
|
||||
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
|
||||
}
|
||||
|
||||
func applicationDidEnterBackground(_ application: UIApplication) {
|
||||
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
|
||||
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
||||
}
|
||||
|
||||
func applicationWillEnterForeground(_ application: UIApplication) {
|
||||
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
|
||||
}
|
||||
|
||||
func applicationDidBecomeActive(_ application: UIApplication) {
|
||||
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
|
||||
}
|
||||
|
||||
func applicationWillTerminate(_ application: UIApplication) {
|
||||
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "20x20",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "20x20",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "29x29",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "29x29",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "40x40",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "40x40",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "60x60",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "60x60",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "20x20",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "20x20",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "29x29",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "29x29",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "40x40",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "40x40",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "76x76",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "76x76",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "83.5x83.5",
|
||||
"scale" : "2x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" systemVersion="17A277" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
|
||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||
<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">
|
||||
<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"/>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
|
||||
</view>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="53" y="375"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
</document>
|
||||
@@ -1,24 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" systemVersion="17A277" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
|
||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--View Controller-->
|
||||
<scene sceneID="tne-QT-ifu">
|
||||
<objects>
|
||||
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
|
||||
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
|
||||
</view>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
</scene>
|
||||
</scenes>
|
||||
</document>
|
||||
@@ -1,21 +0,0 @@
|
||||
//
|
||||
// DataExtension.swift
|
||||
// XMLParsing
|
||||
//
|
||||
// Created by Shawn Moore on 11/26/17.
|
||||
// Copyright © 2017 Shawn Moore. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
extension Data {
|
||||
init?(forResource name: String?, withExtension ext: String?) {
|
||||
guard let fileURL = Bundle.main.url(forResource: name, withExtension: ext) else { return nil }
|
||||
|
||||
do {
|
||||
try self.init(contentsOf: fileURL)
|
||||
} catch {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
<?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>$(DEVELOPMENT_LANGUAGE)</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</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UILaunchStoryboardName</key>
|
||||
<string>LaunchScreen</string>
|
||||
<key>UIMainStoryboardFile</key>
|
||||
<string>Main</string>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>armv7</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,63 +0,0 @@
|
||||
//
|
||||
// ViewController.swift
|
||||
// XMLParsing
|
||||
//
|
||||
// Created by Shawn Moore on 11/15/17.
|
||||
// Copyright © 2017 Shawn Moore. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class ViewController: UIViewController {
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
// Do any additional setup after loading the view, typically from a nib.
|
||||
|
||||
let person = Person(Name: "Shawn Moore", social: [])
|
||||
|
||||
let encoder = XMLEncoder()
|
||||
|
||||
var result: Data?
|
||||
|
||||
do {
|
||||
result = try encoder.encode(person, withRootKey: "person")
|
||||
|
||||
print("XML: \(String(data: result!, encoding: .utf8))")
|
||||
} catch {
|
||||
print(error)
|
||||
}
|
||||
|
||||
guard let data = result else { return }
|
||||
|
||||
var newPerson: Person?
|
||||
|
||||
let decoder = XMLDecoder()
|
||||
|
||||
do {
|
||||
newPerson = try decoder.decode(Person.self, from: data)
|
||||
|
||||
print("Success")
|
||||
} catch {
|
||||
print(error)
|
||||
}
|
||||
}
|
||||
|
||||
override func didReceiveMemoryWarning() {
|
||||
super.didReceiveMemoryWarning()
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
struct Person: Codable {
|
||||
var Name: String
|
||||
var social: [SocialSecurity]?
|
||||
}
|
||||
|
||||
struct SocialSecurity: Codable {
|
||||
var number: String
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user