Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix generation of Jazy docs #18

Merged
merged 3 commits into from Dec 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -153,3 +153,6 @@ Temporary Items


# End of https://www.gitignore.io/api/macos

# Jazzy
docs
@@ -1,3 +1,11 @@
//
// RJISample.swift
// XMLCoderTests
//
// Created by Max Desiatov on 17/12/2018.
//

let rjiSampleXML = """
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
Expand Down Expand Up @@ -1557,3 +1565,4 @@
</item>
</channel>
</rss>
""".data(using: .utf8)!
6 changes: 1 addition & 5 deletions Tests/XMLCoderTests/RJITest.swift
Expand Up @@ -150,12 +150,8 @@ class RJITest: XCTestCase {
decoder.dateDecodingStrategy = .formatted(dateFormatter)

do {
let bundle = Bundle(for: type(of: self))
let fileURL = bundle.url(forResource: "RJITest", withExtension: "xml")!
let data = try Data(contentsOf: fileURL)

// let rss1
_ = try decoder.decode(RSS.self, from: data)
_ = try decoder.decode(RSS.self, from: rjiSampleXML)
// this is a very peculiar case of `XMLCoder` not being able to decode an XML
// that it itself encoded
// data = try encoder.encode(rss1, withRootKey: "note",
Expand Down
538 changes: 247 additions & 291 deletions XMLCoder.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.

@@ -0,0 +1,8 @@
<?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>IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded</key>
<false/>
</dict>
</plist>
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "9999"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "XMLCoder::XMLCoder"
BuildableName = "XMLCoder.framework"
BlueprintName = "XMLCoder"
ReferencedContainer = "container:XMLCoder.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 = "XMLCoder::XMLCoderTests"
BuildableName = "XMLCoderTests.xctest"
BlueprintName = "XMLCoderTests"
ReferencedContainer = "container:XMLCoder.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<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">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "XMLCoder::XMLCoder"
BuildableName = "XMLCoder.framework"
BlueprintName = "XMLCoder"
ReferencedContainer = "container:XMLCoder.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>