Skip to content

Commit cbd1bb5

Browse files
authored
Merge pull request #1176 from wordpress-mobile/release/1.6.0
Release version 1.6.0
2 parents 491b5cb + d571c0e commit cbd1bb5

32 files changed

Lines changed: 224 additions & 97 deletions

.bundle/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
BUNDLE_PATH: "vendor/bundle"

.circleci/config.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,31 @@ version: 2.1
22

33
orbs:
44
# This uses the iOS Orb located at https://github.com/wordpress-mobile/circleci-orbs
5-
ios: wordpress-mobile/ios@0.0.22
5+
ios: wordpress-mobile/ios@0.0.25
66

77
workflows:
88
test_and_validate:
99
jobs:
1010
- ios/test:
1111
name: Test
12+
xcode-version: "10.2.0"
1213
carthage-update: true
1314
carthage-working-directory: Example
1415
bundle-install: false
1516
pod-install: false
1617
workspace: Aztec.xcworkspace
1718
scheme: AztecExample
1819
device: iPhone XS
19-
ios-version: "12.1"
20+
ios-version: "12.2"
2021

2122
- ios/validate-podspec:
2223
name: Validate WordPress-Aztec-iOS.podspec
24+
xcode-version: "10.2.0"
2325
podspec-path: WordPress-Aztec-iOS.podspec
24-
bundle-install: false
2526

2627
- ios/validate-podspec:
2728
name: Validate WordPress-Editor-iOS.podspec
29+
xcode-version: "10.2.0"
2830
podspec-path: WordPress-Editor-iOS.podspec
29-
bundle-install: false
3031
# Updating specs is needed since WordPress-Editor-iOS depends on WordPress-Aztec-iOS
3132
update-specs-repo: true

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,6 @@ fastlane/report.xml
6565
fastlane/Preview.html
6666
fastlane/screenshots
6767
fastlane/test_output
68+
69+
# Bundler
70+
vendor/

Aztec.xcodeproj/project.pbxproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@
14231423
isa = PBXProject;
14241424
attributes = {
14251425
LastSwiftUpdateCheck = 0800;
1426-
LastUpgradeCheck = 0930;
1426+
LastUpgradeCheck = 1020;
14271427
ORGANIZATIONNAME = "Automattic Inc.";
14281428
TargetAttributes = {
14291429
5951CB8D1D8BC93600E1866F = {
@@ -1445,10 +1445,11 @@
14451445
};
14461446
buildConfigurationList = 5951CB881D8BC93600E1866F /* Build configuration list for PBXProject "Aztec" */;
14471447
compatibilityVersion = "Xcode 3.2";
1448-
developmentRegion = English;
1448+
developmentRegion = en;
14491449
hasScannedForEncodings = 0;
14501450
knownRegions = (
14511451
en,
1452+
Base,
14521453
);
14531454
mainGroup = 5951CB841D8BC93600E1866F;
14541455
productRefGroup = 5951CB8F1D8BC93600E1866F /* Products */;
@@ -1744,6 +1745,7 @@
17441745
isa = XCBuildConfiguration;
17451746
buildSettings = {
17461747
ALWAYS_SEARCH_USER_PATHS = NO;
1748+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
17471749
CLANG_ANALYZER_NONNULL = YES;
17481750
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
17491751
CLANG_CXX_LIBRARY = "libc++";
@@ -1809,6 +1811,7 @@
18091811
isa = XCBuildConfiguration;
18101812
buildSettings = {
18111813
ALWAYS_SEARCH_USER_PATHS = NO;
1814+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
18121815
CLANG_ANALYZER_NONNULL = YES;
18131816
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
18141817
CLANG_CXX_LIBRARY = "libc++";
@@ -2009,6 +2012,7 @@
20092012
isa = XCBuildConfiguration;
20102013
buildSettings = {
20112014
ALWAYS_SEARCH_USER_PATHS = NO;
2015+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
20122016
CLANG_ANALYZER_NONNULL = YES;
20132017
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
20142018
CLANG_CXX_LIBRARY = "libc++";
@@ -2115,6 +2119,7 @@
21152119
isa = XCBuildConfiguration;
21162120
buildSettings = {
21172121
ALWAYS_SEARCH_USER_PATHS = NO;
2122+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
21182123
CLANG_ANALYZER_NONNULL = YES;
21192124
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
21202125
CLANG_CXX_LIBRARY = "libc++";

Aztec.xcodeproj/xcshareddata/xcschemes/Aztec.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0930"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Aztec.xcodeproj/xcshareddata/xcschemes/Carthage Update.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0930"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Aztec/Classes/Extensions/Array+Attribute.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ public extension Array where Element == Attribute {
1717
}
1818
}
1919

20-
public mutating func set(_ value: String, for name: String) {
20+
mutating func set(_ value: String, for name: String) {
2121
set(.string(value), for: name)
2222
}
2323

24-
public mutating func set(_ value: Attribute.Value, for name: String) {
24+
mutating func set(_ value: Attribute.Value, for name: String) {
2525
guard let attributeIndex = index(where: { $0.name == name }) else {
2626
let newAttribute = Attribute(name: name, value: value)
2727

@@ -32,7 +32,7 @@ public extension Array where Element == Attribute {
3232
self[attributeIndex].value = value
3333
}
3434

35-
public mutating func remove(named name: String) {
35+
mutating func remove(named name: String) {
3636
guard let attributeIndex = index(where: { $0.name == name }) else {
3737
return
3838
}

Aztec/Classes/Extensions/Array+ShortcodeAttribute.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ public extension Array where Element == ShortcodeAttribute {
88
}
99
}
1010

11-
public mutating func set(_ value: String, forKey key: String) {
11+
mutating func set(_ value: String, forKey key: String) {
1212
set(.string(value), forKey: key)
1313
}
1414

15-
public mutating func set(_ value: ShortcodeAttribute.Value, forKey key: String) {
15+
mutating func set(_ value: ShortcodeAttribute.Value, forKey key: String) {
1616
let newAttribute = ShortcodeAttribute(key: key, value: value)
1717

1818
guard let attributeIndex = index(where: { $0.key == key }) else {
@@ -23,7 +23,7 @@ public extension Array where Element == ShortcodeAttribute {
2323
self[attributeIndex] = newAttribute
2424
}
2525

26-
public mutating func remove(key: String) {
26+
mutating func remove(key: String) {
2727
guard let attributeIndex = index(where: { $0.key == key }) else {
2828
return
2929
}

Aztec/Classes/Extensions/Character+Name.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import UIKit
33

44
public extension Character {
55

6-
public enum Name: Character {
6+
enum Name: Character {
77
case lineFeed = "\u{000A}"
88
case carriageReturn = "\u{000D}"
99
case nonBreakingSpace = "\u{00A0}"
@@ -18,7 +18,7 @@ public extension Character {
1818
static let textAttachment = objectReplacement
1919
}
2020

21-
public static let paragraphBreakingCharacters: [Name] = [.lineFeed, .carriageReturn, .paragraphSeparator]
21+
static let paragraphBreakingCharacters: [Name] = [.lineFeed, .carriageReturn, .paragraphSeparator]
2222

2323
init(_ characterName: Name) {
2424
self.init(unicodeScalarLiteral: characterName.rawValue)

Aztec/Classes/Extensions/NSAttributedString+FontTraits.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public extension NSAttributedString {
1414
///
1515
/// - Returns: True if found.
1616
///
17-
public func fontTrait(_ traits: UIFontDescriptor.SymbolicTraits, existsAtIndex index: Int) -> Bool {
17+
func fontTrait(_ traits: UIFontDescriptor.SymbolicTraits, existsAtIndex index: Int) -> Bool {
1818
guard let attr = attribute(.font, at: index, effectiveRange: nil) else {
1919
return false
2020
}
@@ -33,7 +33,7 @@ public extension NSAttributedString {
3333
///
3434
/// - Returns: True if the trait spans the entire range.
3535
///
36-
public func fontTrait(_ traits: UIFontDescriptor.SymbolicTraits, spansRange range: NSRange) -> Bool {
36+
func fontTrait(_ traits: UIFontDescriptor.SymbolicTraits, spansRange range: NSRange) -> Bool {
3737
var spansRange = true
3838

3939
// Assume we're removing the trait. If the trait is missing anywhere in the range assign it.
@@ -62,7 +62,7 @@ public extension NSMutableAttributedString {
6262
/// - traits: Font traits.
6363
/// - range: The NSRange to inspect
6464
///
65-
public func toggle(_ fontTraits: UIFontDescriptor.SymbolicTraits, inRange range: NSRange) {
65+
func toggle(_ fontTraits: UIFontDescriptor.SymbolicTraits, inRange range: NSRange) {
6666
// Bail if nothing is selected
6767
if range.length == 0 {
6868
return

0 commit comments

Comments
 (0)