Skip to content

Commit

Permalink
Add NodeEncodingStrategies typelias as deprecated (#9)
Browse files Browse the repository at this point in the history
This should prevent a source-breaking change and allows next XMLCoder release only with a minor version bump.

Also, tab width in the xcodeproj file has been set to 4 spaces for consistency.
  • Loading branch information
MaxDesiatov committed Nov 22, 2018
1 parent de98647 commit db8afae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Sources/XMLCoder/Encoder/XMLEncoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ open class XMLEncoder {
}
}

@available(*, deprecated, renamed: "NodeEncodingStrategy")
public typealias NodeEncodingStrategies = NodeEncodingStrategy

/// Set of strategies to use for encoding of nodes.
public enum NodeEncodingStrategy {
/// Defer to `Encoder` for choosing an encoding. This is the default strategy.
Expand Down
4 changes: 2 additions & 2 deletions XMLCoder.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@
OBJ_26 /* Sample XML */,
OBJ_27 /* Products */,
);
indentWidth = 2;
indentWidth = 4;
sourceTree = "<group>";
tabWidth = 2;
tabWidth = 4;
};
OBJ_7 /* Sources */ = {
isa = PBXGroup;
Expand Down

0 comments on commit db8afae

Please sign in to comment.