Skip to content

Commit

Permalink
Merge pull request #1335 from wordpress-mobile/release/1.19.5
Browse files Browse the repository at this point in the history
Release 1.19.5
  • Loading branch information
Gerardo Pacheco authored Oct 26, 2021
2 parents 918ef34 + 4642343 commit 15982d4
Show file tree
Hide file tree
Showing 11 changed files with 63 additions and 63 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ orbs:
git: wordpress-mobile/[email protected]

xcode_version: &xcode_version
xcode-version: "12.1.0"
xcode-version: "12.4.0"

iphone_test_device: &iphone_test_device
device: iPhone 11
ios-version: "14.1"
ios-version: "14.4"

workflows:
test_and_validate:
Expand Down
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.6.4
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class GenericElementConverter: ElementConverter {
/// At some point we should modify how the conversion works, so that any supported element never goes through this
/// converter at all, and this converter is turned into an `UnsupportedElementConverter()` exclusively.
///
private static let supportedElements: [Element] = [.a, .aztecRootNode, .b, .br, .blockquote, .del, .div, .em, .figure, .figcaption, .h1, .h2, .h3, .h4, .h5, .h6, .hr, .i, .img, .li, .ol, .p, .pre, .s, .span, .strike, .strong, .u, .ul, .video, .code, .sup, .sub]
private static let supportedElements: [Element] = [.a, .aztecRootNode, .b, .br, .blockquote, .del, .div, .em, .figure, .figcaption, .h1, .h2, .h3, .h4, .h5, .h6, .hr, .i, .img, .li, .ol, .p, .pre, .s, .span, .strike, .strong, .u, .ul, .video, .code, .sup, .sub, .mark]

// MARK: - Built-in formatter instances

Expand Down
4 changes: 2 additions & 2 deletions Aztec/Classes/EditorView/EditorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,11 @@ extension EditorView: UITextInput {
return activeView.characterRange(byExtending: position, in: direction)
}

public func baseWritingDirection(for position: UITextPosition, in direction: UITextStorageDirection) -> UITextWritingDirection {
public func baseWritingDirection(for position: UITextPosition, in direction: UITextStorageDirection) -> NSWritingDirection {
return activeView.baseWritingDirection(for: position, in: direction)
}

public func setBaseWritingDirection(_ writingDirection: UITextWritingDirection, for range: UITextRange) {
public func setBaseWritingDirection(_ writingDirection: NSWritingDirection, for range: UITextRange) {
activeView.setBaseWritingDirection(writingDirection, for: range)
}

Expand Down
3 changes: 2 additions & 1 deletion Aztec/Classes/Libxml2/DOM/Data/Element.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public struct Element: RawRepresentable, Hashable {
public static var mergeableBlockLevelElements = Set<Element>([.blockquote, .div, .figure, .figcaption, .h1, .h2, .h3, .h4, .h5, .h6, .hr, .li, .ol, .ul, .p, .pre])

/// List of style HTML elements that can be merged together when they are sibling to each other
public static var mergeableStyleElements = Set<Element>([.i, .em, .b, .strong, .strike, .u, .code, .cite, .a, .sup, .sub])
public static var mergeableStyleElements = Set<Element>([.i, .em, .b, .strong, .strike, .u, .code, .cite, .a, .sup, .sub, .mark])

/// List of block level elements that can be merged but only when they have a single children that is also mergeable
///
Expand Down Expand Up @@ -121,6 +121,7 @@ extension Element {
public static let video = Element("video")
public static let wbr = Element("wbr")
public static let body = Element("body")
public static let mark = Element("mark")

}

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.19.5
-------
* Addd support for the Mark HTML tag.

1.19.4
-------
* Fix Carthage build for Xcode 12
Expand Down
6 changes: 3 additions & 3 deletions Documentation/ReleaseProcess.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Open a PR on github where you target the `trunk` branch with the `release/x.y.z`

### Step 2: Testing the Integration ###

Before going any further, tt's normally good practice to test the Aztec integration into [WordPress-iOS project](https://github.com/wordpress-mobile/WordPress-iOS), to make sure we won’t have to do the release process twice.
Before going any further, it's normally good practice to test the Aztec integration into [WordPress-iOS project](https://github.com/wordpress-mobile/WordPress-iOS), to make sure we won’t have to do the release process twice.

Make sure WordPress-iOS’s podfile specifies the SAME (and latest) commit number for both of these:
```
Expand All @@ -59,13 +59,13 @@ Create a new release on Github targetting the trunk branch and name it `Release

Set a tag with the value `x.y.z` .

On the description field and the content of the changelog for this version
On the description field add the content of the changelog for this version

Press the `Publish release` button

At this moment the CI automation should notice your tag and after some minutes you should get the new pod publish on CocoaPods.

If this for some reason fails chech the manual process bellow
If this for some reason fails check the manual process below. Also note that the CI checks for a merged release PR can sometimes fail if the checks run prior to CocoaPods populating the new version through the CDN. Waiting a little while (e.g. 30-60 minutes) and rerunning the CI checks can sometimes repair the checks.

*Manual Process*

Expand Down
6 changes: 6 additions & 0 deletions Example/Example/SampleContent/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,9 @@ <h3>Unsupported HTML</h3>
</table>

<hr/>

<h3>Mark</h3>

<p>Donec ipsum dolor, <mark style="color:#ff0000">tempor sed</mark> bibendum <mark style="color:#1100ff">vita</mark>.</p>

<hr/>
8 changes: 8 additions & 0 deletions Example/Example/SampleContent/gutenberg.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,11 @@ <h2 style="text-align:center">The WordPress of tomorrow</h2>
<!-- /wp:separator -->

<!-- wp:latest-posts /-->

<!-- wp:separator -->
<hr class="wp-block-separator" />
<!-- /wp:separator -->

<!-- wp:paragraph -->
<p>Donec ipsum dolor, <mark style="color:#ff0000">tempor sed</mark> bibendum <mark style="color:#1100ff">vita</mark>.</p>
<!-- /wp:paragraph -->
43 changes: 16 additions & 27 deletions WordPress-Aztec-iOS.podspec
Original file line number Diff line number Diff line change
@@ -1,42 +1,31 @@
#
# Be sure to run `bundle exec pod lib lint WordPress-Aztec-iOS.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
s.name = 'WordPress-Aztec-iOS'
s.version = '1.19.4'
s.summary = 'The native HTML Editor.'
s.name = 'WordPress-Aztec-iOS'
s.version = '1.19.5'

s.summary = 'The native HTML Editor.'
s.description = <<-DESC
The native HTML Editor by Automattic Inc.
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
This library provides a UITextView subclass with HTML visual editing capabilities.
DESC

s.description = <<-DESC
The native HTML Editor by Automattic Inc.
DESC
s.homepage = 'https://github.com/wordpress-mobile/AztecEditor-iOS'
s.license = { :type => 'MPLv2', :file => 'LICENSE.md' }
s.author = { 'The WordPress Mobile Team' => '[email protected]' }

s.homepage = 'https://github.com/wordpress-mobile/WordPress-Aztec-iOS'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MPLv2', :file => 'LICENSE.md' }
s.author = { 'Automattic' => '[email protected]', 'Diego Rey Mendez' => '[email protected]', 'Sergio Estevao' => '[email protected]', 'Jorge Leandro Perez' => '[email protected]' }
s.source = { :git => 'https://github.com/wordpress-mobile/WordPress-Aztec-iOS.git', :tag => s.version.to_s }
s.ios.deployment_target = '11.0'
s.swift_version = '5.0'

s.source = { :git => 'https://github.com/wordpress-mobile/AztecEditor-iOS.git', :tag => s.version.to_s }
s.module_name = "Aztec"
s.source_files = 'Aztec/Classes/**/*'
s.resource_bundles = {
'WordPress-Aztec-iOS': [
"Aztec/Assets/**/*"
]
}

s.xcconfig = {'OTHER_LDFLAGS' => '-lxml2',
'HEADER_SEARCH_PATHS' => '/usr/include/libxml2'}
s.xcconfig = {
'OTHER_LDFLAGS' => '-lxml2',
'HEADER_SEARCH_PATHS' => '/usr/include/libxml2'
}
end
45 changes: 18 additions & 27 deletions WordPress-Editor-iOS.podspec
Original file line number Diff line number Diff line change
@@ -1,39 +1,30 @@
#
# Be sure to run `bundle exec pod lib lint WordPress-Editor-iOS.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
s.name = 'WordPress-Editor-iOS'
s.version = '1.19.4'
s.summary = 'The WordPress HTML Editor.'
s.name = 'WordPress-Editor-iOS'
s.version = '1.19.5'

s.summary = 'The WordPress HTML Editor.'
s.description = <<-DESC
The WordPress HTML Editor by Automattic Inc.
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
This library provides a UITextView subclass with HTML visual editing capabilities.
Use this library if you want to create an App that interacts with WordPress HTML content.
DESC

s.description = <<-DESC
The WordPress HTML Editor by Automattic Inc.
DESC
s.homepage = 'https://github.com/wordpress-mobile/AztecEditor-iOS'
s.license = { :type => 'MPLv2', :file => 'LICENSE.md' }
s.author = { 'The WordPress Mobile Team' => '[email protected]' }

s.homepage = 'https://github.com/wordpress-mobile/WordPress-Aztec-iOS'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MPLv2', :file => 'LICENSE.md' }
s.author = { 'Automattic' => '[email protected]', 'Diego Rey Mendez' => '[email protected]', 'Sergio Estevao' => '[email protected]', 'Jorge Leandro Perez' => '[email protected]' }
s.source = { :git => 'https://github.com/wordpress-mobile/WordPress-Aztec-iOS.git', :tag => s.version.to_s }
s.ios.deployment_target = '11.0'
s.swift_version = '5.0'

s.source = { :git => 'https://github.com/wordpress-mobile/AztecEditor-iOS.git', :tag => s.version.to_s }
s.module_name = "WordPressEditor"
s.source_files = 'WordPressEditor/WordPressEditor/Classes/**/*'
s.resources = 'WordPressEditor/WordPressEditor/Assets/**/*'

s.xcconfig = {'OTHER_LDFLAGS' => '-lxml2',
'HEADER_SEARCH_PATHS' => '/usr/include/libxml2'}
s.xcconfig = {
'OTHER_LDFLAGS' => '-lxml2',
'HEADER_SEARCH_PATHS' => '/usr/include/libxml2'
}

s.dependency "WordPress-Aztec-iOS", s.version.to_s
end

0 comments on commit 15982d4

Please sign in to comment.