From c67821c78617edabda0ddea1d97b1597470e656f Mon Sep 17 00:00:00 2001 From: Olivier Halligon Date: Thu, 18 Apr 2024 14:41:54 +0200 Subject: [PATCH] Declare `class var supportsSecureCoding` as `open` --- Aztec/Classes/Libxml2/DOM/Data/Attribute.swift | 2 +- .../NSAttributedString/Attributes/HTMLRepresentation.swift | 4 ++-- .../NSAttributedString/Attributes/UnsupportedHTML.swift | 2 +- Aztec/Classes/TextKit/CommentAttachment.swift | 2 +- Aztec/Classes/TextKit/HTMLAttachment.swift | 2 +- Aztec/Classes/TextKit/ImageAttachment.swift | 2 +- Aztec/Classes/TextKit/MediaAttachment.swift | 2 +- Aztec/Classes/TextKit/ParagraphProperty/Blockquote.swift | 2 +- Aztec/Classes/TextKit/ParagraphProperty/Figcaption.swift | 2 +- Aztec/Classes/TextKit/ParagraphProperty/Figure.swift | 2 +- Aztec/Classes/TextKit/ParagraphProperty/HTMLDiv.swift | 2 +- Aztec/Classes/TextKit/ParagraphProperty/HTMLLi.swift | 2 +- Aztec/Classes/TextKit/ParagraphProperty/HTMLParagraph.swift | 2 +- Aztec/Classes/TextKit/ParagraphProperty/HTMLPre.swift | 2 +- Aztec/Classes/TextKit/ParagraphProperty/Header.swift | 2 +- .../Classes/TextKit/ParagraphProperty/ParagraphProperty.swift | 2 +- Aztec/Classes/TextKit/ParagraphProperty/TextList.swift | 2 +- Aztec/Classes/TextKit/ParagraphStyle.swift | 2 +- Aztec/Classes/TextKit/VideoAttachment.swift | 2 +- .../Plugins/WordPressPlugin/Gutenberg/Gutenblock.swift | 2 +- 20 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Aztec/Classes/Libxml2/DOM/Data/Attribute.swift b/Aztec/Classes/Libxml2/DOM/Data/Attribute.swift index ef50ef97f..bbcf7fafd 100644 --- a/Aztec/Classes/Libxml2/DOM/Data/Attribute.swift +++ b/Aztec/Classes/Libxml2/DOM/Data/Attribute.swift @@ -72,7 +72,7 @@ public class Attribute: NSObject, CustomReflectable, NSSecureCoding { } } - public class var supportsSecureCoding: Bool { true } + open class var supportsSecureCoding: Bool { true } // MARK: - Equatable diff --git a/Aztec/Classes/NSAttributedString/Attributes/HTMLRepresentation.swift b/Aztec/Classes/NSAttributedString/Attributes/HTMLRepresentation.swift index 6c859b88e..1552e567c 100644 --- a/Aztec/Classes/NSAttributedString/Attributes/HTMLRepresentation.swift +++ b/Aztec/Classes/NSAttributedString/Attributes/HTMLRepresentation.swift @@ -54,7 +54,7 @@ public class HTMLRepresentation: NSObject, NSSecureCoding { } } - public class var supportsSecureCoding: Bool { true } + open class var supportsSecureCoding: Bool { true } } @@ -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 diff --git a/Aztec/Classes/NSAttributedString/Attributes/UnsupportedHTML.swift b/Aztec/Classes/NSAttributedString/Attributes/UnsupportedHTML.swift index ace5b5556..cd5abed3d 100644 --- a/Aztec/Classes/NSAttributedString/Attributes/UnsupportedHTML.swift +++ b/Aztec/Classes/NSAttributedString/Attributes/UnsupportedHTML.swift @@ -31,7 +31,7 @@ class UnsupportedHTML: NSObject, NSSecureCoding { self.representations = representations } - class var supportsSecureCoding: Bool { true } + open class var supportsSecureCoding: Bool { true } } diff --git a/Aztec/Classes/TextKit/CommentAttachment.swift b/Aztec/Classes/TextKit/CommentAttachment.swift index a2aeb3093..b53c4d758 100644 --- a/Aztec/Classes/TextKit/CommentAttachment.swift +++ b/Aztec/Classes/TextKit/CommentAttachment.swift @@ -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 diff --git a/Aztec/Classes/TextKit/HTMLAttachment.swift b/Aztec/Classes/TextKit/HTMLAttachment.swift index 464601f25..95ad8e98b 100644 --- a/Aztec/Classes/TextKit/HTMLAttachment.swift +++ b/Aztec/Classes/TextKit/HTMLAttachment.swift @@ -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 /// diff --git a/Aztec/Classes/TextKit/ImageAttachment.swift b/Aztec/Classes/TextKit/ImageAttachment.swift index f60f170f0..30d175aa4 100644 --- a/Aztec/Classes/TextKit/ImageAttachment.swift +++ b/Aztec/Classes/TextKit/ImageAttachment.swift @@ -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 diff --git a/Aztec/Classes/TextKit/MediaAttachment.swift b/Aztec/Classes/TextKit/MediaAttachment.swift index 53faa52ab..52213c12a 100644 --- a/Aztec/Classes/TextKit/MediaAttachment.swift +++ b/Aztec/Classes/TextKit/MediaAttachment.swift @@ -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 /// diff --git a/Aztec/Classes/TextKit/ParagraphProperty/Blockquote.swift b/Aztec/Classes/TextKit/ParagraphProperty/Blockquote.swift index 477b533a2..836736103 100644 --- a/Aztec/Classes/TextKit/ParagraphProperty/Blockquote.swift +++ b/Aztec/Classes/TextKit/ParagraphProperty/Blockquote.swift @@ -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) diff --git a/Aztec/Classes/TextKit/ParagraphProperty/Figcaption.swift b/Aztec/Classes/TextKit/ParagraphProperty/Figcaption.swift index 9c23bed4e..0b7410136 100644 --- a/Aztec/Classes/TextKit/ParagraphProperty/Figcaption.swift +++ b/Aztec/Classes/TextKit/ParagraphProperty/Figcaption.swift @@ -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 { diff --git a/Aztec/Classes/TextKit/ParagraphProperty/Figure.swift b/Aztec/Classes/TextKit/ParagraphProperty/Figure.swift index beffb410e..c9ae130af 100644 --- a/Aztec/Classes/TextKit/ParagraphProperty/Figure.swift +++ b/Aztec/Classes/TextKit/ParagraphProperty/Figure.swift @@ -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) diff --git a/Aztec/Classes/TextKit/ParagraphProperty/HTMLDiv.swift b/Aztec/Classes/TextKit/ParagraphProperty/HTMLDiv.swift index 15947898d..7465e9e53 100644 --- a/Aztec/Classes/TextKit/ParagraphProperty/HTMLDiv.swift +++ b/Aztec/Classes/TextKit/ParagraphProperty/HTMLDiv.swift @@ -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) diff --git a/Aztec/Classes/TextKit/ParagraphProperty/HTMLLi.swift b/Aztec/Classes/TextKit/ParagraphProperty/HTMLLi.swift index 0485360b3..ad4cb8617 100644 --- a/Aztec/Classes/TextKit/ParagraphProperty/HTMLLi.swift +++ b/Aztec/Classes/TextKit/ParagraphProperty/HTMLLi.swift @@ -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) diff --git a/Aztec/Classes/TextKit/ParagraphProperty/HTMLParagraph.swift b/Aztec/Classes/TextKit/ParagraphProperty/HTMLParagraph.swift index 9432886f7..ea04ec83a 100644 --- a/Aztec/Classes/TextKit/ParagraphProperty/HTMLParagraph.swift +++ b/Aztec/Classes/TextKit/ParagraphProperty/HTMLParagraph.swift @@ -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) diff --git a/Aztec/Classes/TextKit/ParagraphProperty/HTMLPre.swift b/Aztec/Classes/TextKit/ParagraphProperty/HTMLPre.swift index ca043a51c..47d8a72c7 100644 --- a/Aztec/Classes/TextKit/ParagraphProperty/HTMLPre.swift +++ b/Aztec/Classes/TextKit/ParagraphProperty/HTMLPre.swift @@ -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) diff --git a/Aztec/Classes/TextKit/ParagraphProperty/Header.swift b/Aztec/Classes/TextKit/ParagraphProperty/Header.swift index d5120720a..95ffe5cce 100644 --- a/Aztec/Classes/TextKit/ParagraphProperty/Header.swift +++ b/Aztec/Classes/TextKit/ParagraphProperty/Header.swift @@ -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 diff --git a/Aztec/Classes/TextKit/ParagraphProperty/ParagraphProperty.swift b/Aztec/Classes/TextKit/ParagraphProperty/ParagraphProperty.swift index 79ad14b59..b4ad01a97 100644 --- a/Aztec/Classes/TextKit/ParagraphProperty/ParagraphProperty.swift +++ b/Aztec/Classes/TextKit/ParagraphProperty/ParagraphProperty.swift @@ -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 diff --git a/Aztec/Classes/TextKit/ParagraphProperty/TextList.swift b/Aztec/Classes/TextKit/ParagraphProperty/TextList.swift index 904118e4e..84f9f4bac 100644 --- a/Aztec/Classes/TextKit/ParagraphProperty/TextList.swift +++ b/Aztec/Classes/TextKit/ParagraphProperty/TextList.swift @@ -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 diff --git a/Aztec/Classes/TextKit/ParagraphStyle.swift b/Aztec/Classes/TextKit/ParagraphStyle.swift index 87d72ece9..ad20d5838 100644 --- a/Aztec/Classes/TextKit/ParagraphStyle.swift +++ b/Aztec/Classes/TextKit/ParagraphStyle.swift @@ -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) { diff --git a/Aztec/Classes/TextKit/VideoAttachment.swift b/Aztec/Classes/TextKit/VideoAttachment.swift index 89e82c994..b3e0dd3c9 100644 --- a/Aztec/Classes/TextKit/VideoAttachment.swift +++ b/Aztec/Classes/TextKit/VideoAttachment.swift @@ -43,7 +43,7 @@ open class VideoAttachment: MediaAttachment { } } - override public class var supportsSecureCoding: Bool { true } + override open class var supportsSecureCoding: Bool { true } /// Required Initializer /// diff --git a/WordPressEditor/WordPressEditor/Classes/Plugins/WordPressPlugin/Gutenberg/Gutenblock.swift b/WordPressEditor/WordPressEditor/Classes/Plugins/WordPressPlugin/Gutenberg/Gutenblock.swift index 655d2887c..606571b4f 100644 --- a/WordPressEditor/WordPressEditor/Classes/Plugins/WordPressPlugin/Gutenberg/Gutenblock.swift +++ b/WordPressEditor/WordPressEditor/Classes/Plugins/WordPressPlugin/Gutenberg/Gutenblock.swift @@ -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 } }