Skip to content

Commit

Permalink
Declare class var supportsSecureCoding as open
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSoftware committed Apr 18, 2024
1 parent e21dbff commit c67821c
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Aztec/Classes/Libxml2/DOM/Data/Attribute.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class Attribute: NSObject, CustomReflectable, NSSecureCoding {
}
}

public class var supportsSecureCoding: Bool { true }
open class var supportsSecureCoding: Bool { true }

// MARK: - Equatable

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class HTMLRepresentation: NSObject, NSSecureCoding {
}
}

public class var supportsSecureCoding: Bool { true }
open class var supportsSecureCoding: Bool { true }
}


Expand Down Expand Up @@ -102,7 +102,7 @@ public class HTMLElementRepresentation: NSObject, CustomReflectable, NSSecureCod
aCoder.encode(attributes, forKey: #keyPath(attributes))
}

public class var supportsSecureCoding: Bool { true }
open class var supportsSecureCoding: Bool { true }

// MARK: - CustomReflectable

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class UnsupportedHTML: NSObject, NSSecureCoding {
self.representations = representations
}

class var supportsSecureCoding: Bool { true }
open class var supportsSecureCoding: Bool { true }
}


Expand Down
2 changes: 1 addition & 1 deletion Aztec/Classes/TextKit/CommentAttachment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ open class CommentAttachment: NSTextAttachment, RenderableAttachment {
aCoder.encode(text, forKey: Keys.text)
}

override public class var supportsSecureCoding: Bool { true }
override open class var supportsSecureCoding: Bool { true }

// MARK: - NSTextAttachmentContainer

Expand Down
2 changes: 1 addition & 1 deletion Aztec/Classes/TextKit/HTMLAttachment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ open class HTMLAttachment: NSTextAttachment, RenderableAttachment {
self.rawHTML = rawHTML as String
}

override public class var supportsSecureCoding: Bool { true }
override open class var supportsSecureCoding: Bool { true }

/// Extracts the root tag name from a given HTML string
///
Expand Down
2 changes: 1 addition & 1 deletion Aztec/Classes/TextKit/ImageAttachment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ open class ImageAttachment: MediaAttachment {
aCoder.encode(size.rawValue, forKey: EncodeKeys.size.rawValue)
}

override public class var supportsSecureCoding: Bool { true }
override open class var supportsSecureCoding: Bool { true }

private enum EncodeKeys: String {
case alignment
Expand Down
2 changes: 1 addition & 1 deletion Aztec/Classes/TextKit/MediaAttachment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ open class MediaAttachment: NSTextAttachment {
url = aDecoder.decodeObject(of: NSURL.self, forKey: EncodeKeys.url.rawValue) as? URL
}

override public class var supportsSecureCoding: Bool { true }
override open class var supportsSecureCoding: Bool { true }

/// Required Initializer
///
Expand Down
2 changes: 1 addition & 1 deletion Aztec/Classes/TextKit/ParagraphProperty/Blockquote.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Blockquote: ParagraphProperty {
super.encode(with: aCoder)
}

override public class var supportsSecureCoding: Bool { true }
override open class var supportsSecureCoding: Bool { true }

override public init(with representation: HTMLRepresentation? = nil) {
super.init(with: representation)
Expand Down
2 changes: 1 addition & 1 deletion Aztec/Classes/TextKit/ParagraphProperty/Figcaption.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Figcaption: ParagraphProperty {
aCoder.encode(defaultFont, forKey: CodingKeys.defaultFont)
}

override public class var supportsSecureCoding: Bool { true }
override open class var supportsSecureCoding: Bool { true }
}

private extension Figcaption {
Expand Down
2 changes: 1 addition & 1 deletion Aztec/Classes/TextKit/ParagraphProperty/Figure.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Figure: ParagraphProperty {
super.encode(with: aCoder)
}

override public class var supportsSecureCoding: Bool { true }
override open class var supportsSecureCoding: Bool { true }

override public init(with representation: HTMLRepresentation? = nil) {
super.init(with: representation)
Expand Down
2 changes: 1 addition & 1 deletion Aztec/Classes/TextKit/ParagraphProperty/HTMLDiv.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class HTMLDiv: ParagraphProperty {
super.encode(with: aCoder)
}

override public class var supportsSecureCoding: Bool { true }
override open class var supportsSecureCoding: Bool { true }

override public init(with representation: HTMLRepresentation? = nil) {
super.init(with: representation)
Expand Down
2 changes: 1 addition & 1 deletion Aztec/Classes/TextKit/ParagraphProperty/HTMLLi.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class HTMLLi: ParagraphProperty {
super.encode(with: aCoder)
}

override public class var supportsSecureCoding: Bool { true }
override open class var supportsSecureCoding: Bool { true }

override public init(with representation: HTMLRepresentation? = nil) {
super.init(with: representation)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class HTMLParagraph: ParagraphProperty {
super.encode(with: aCoder)
}

override public class var supportsSecureCoding: Bool { true }
override open class var supportsSecureCoding: Bool { true }

override public init(with representation: HTMLRepresentation? = nil) {
super.init(with: representation)
Expand Down
2 changes: 1 addition & 1 deletion Aztec/Classes/TextKit/ParagraphProperty/HTMLPre.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class HTMLPre: ParagraphProperty {
super.encode(with: aCoder)
}

override public class var supportsSecureCoding: Bool { true }
override open class var supportsSecureCoding: Bool { true }

override public init(with representation: HTMLRepresentation? = nil) {
super.init(with: representation)
Expand Down
2 changes: 1 addition & 1 deletion Aztec/Classes/TextKit/ParagraphProperty/Header.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ open class Header: ParagraphProperty {
aCoder.encode(level.rawValue, forKey: Keys.level)
}

override public class var supportsSecureCoding: Bool { true }
override open class var supportsSecureCoding: Bool { true }

static func ==(lhs: Header, rhs: Header) -> Bool {
return lhs.level == rhs.level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ open class ParagraphProperty: NSObject, NSSecureCoding {
public func encode(with aCoder: NSCoder) {
}

public class var supportsSecureCoding: Bool { true }
open class var supportsSecureCoding: Bool { true }

static func ==(lhs: ParagraphProperty, rhs: ParagraphProperty) -> Bool {
return lhs === rhs
Expand Down
2 changes: 1 addition & 1 deletion Aztec/Classes/TextKit/ParagraphProperty/TextList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ open class TextList: ParagraphProperty {
aCoder.encode(reversed, forKey: AttributeType.reversed.rawValue)
}

override public class var supportsSecureCoding: Bool { true }
override open class var supportsSecureCoding: Bool { true }

public static func ==(lhs: TextList, rhs: TextList) -> Bool {
return lhs.style == rhs.style && lhs.start == rhs.start && lhs.reversed == rhs.reversed
Expand Down
2 changes: 1 addition & 1 deletion Aztec/Classes/TextKit/ParagraphStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ open class ParagraphStyle: NSMutableParagraphStyle, CustomReflectable {
aCoder.encode(headerLevel, forKey: EncodingKeys.headerLevel.rawValue)
}

override public class var supportsSecureCoding: Bool { true }
override open class var supportsSecureCoding: Bool { true }

override open func setParagraphStyle(_ baseParagraphStyle: NSParagraphStyle) {

Expand Down
2 changes: 1 addition & 1 deletion Aztec/Classes/TextKit/VideoAttachment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ open class VideoAttachment: MediaAttachment {
}
}

override public class var supportsSecureCoding: Bool { true }
override open class var supportsSecureCoding: Bool { true }

/// Required Initializer
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ class Gutenblock: ParagraphProperty {
super.init(coder: aDecoder)
}

override public class var supportsSecureCoding: Bool { true }
override open class var supportsSecureCoding: Bool { true }

}

0 comments on commit c67821c

Please sign in to comment.