Skip to content

Commit

Permalink
Merge branch 'release/1.5.4/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
manuroe committed Sep 16, 2021
2 parents 094b05f + b3c4f6b commit bdb607c
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 21 deletions.
11 changes: 11 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## Changes in 1.5.4 (2021-09-16)

🙌 Improvements

- Upgrade MatrixKit version ([v0.16.1](https://github.com/matrix-org/matrix-ios-kit/releases/tag/v0.16.1)).

🐛 Bugfixes

- RoomBubbleCellData: Fix crash when creating a URL preview when the link didn't end up in the last bubble component. ([#4823](https://github.com/vector-im/element-ios/issues/4823))


## Changes in 1.5.3 (2021-09-09)

✨ Features
Expand Down
4 changes: 2 additions & 2 deletions Config/AppVersion.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
//

// Version
MARKETING_VERSION = 1.5.3
CURRENT_PROJECT_VERSION = 1.5.3
MARKETING_VERSION = 1.5.4
CURRENT_PROJECT_VERSION = 1.5.4
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use_frameworks!
# - `{ {kit spec hash} => {sdk spec hash}` to depend on specific pod options (:git => …, :podspec => …) for each repo. Used by Fastfile during CI
#
# Warning: our internal tooling depends on the name of this variable name, so be sure not to change it
$matrixKitVersion = '= 0.16.0'
$matrixKitVersion = '= 0.16.1'
# $matrixKitVersion = :local
# $matrixKitVersion = {'develop' => 'develop'}

Expand Down
26 changes: 13 additions & 13 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -58,29 +58,29 @@ PODS:
- MatomoTracker (7.4.1):
- MatomoTracker/Core (= 7.4.1)
- MatomoTracker/Core (7.4.1)
- MatrixKit (0.16.0):
- MatrixKit (0.16.1):
- Down (~> 0.11.0)
- DTCoreText (~> 1.6.25)
- HPGrowingTextView (~> 1.1)
- libPhoneNumber-iOS (~> 0.9.13)
- MatrixKit/Core (= 0.16.0)
- MatrixSDK (= 0.20.0)
- MatrixKit/Core (0.16.0):
- MatrixKit/Core (= 0.16.1)
- MatrixSDK (= 0.20.1)
- MatrixKit/Core (0.16.1):
- Down (~> 0.11.0)
- DTCoreText (~> 1.6.25)
- HPGrowingTextView (~> 1.1)
- libPhoneNumber-iOS (~> 0.9.13)
- MatrixSDK (= 0.20.0)
- MatrixSDK (0.20.0):
- MatrixSDK/Core (= 0.20.0)
- MatrixSDK/Core (0.20.0):
- MatrixSDK (= 0.20.1)
- MatrixSDK (0.20.1):
- MatrixSDK/Core (= 0.20.1)
- MatrixSDK/Core (0.20.1):
- AFNetworking (~> 4.0.0)
- GZIP (~> 1.3.0)
- libbase58 (~> 0.1.4)
- OLMKit (~> 3.2.4)
- Realm (= 10.7.6)
- SwiftyBeaver (= 1.9.5)
- MatrixSDK/JingleCallStack (0.20.0):
- MatrixSDK/JingleCallStack (0.20.1):
- JitsiMeetSDK (= 3.5.0)
- MatrixSDK/Core
- OLMKit (3.2.4):
Expand Down Expand Up @@ -124,7 +124,7 @@ DEPENDENCIES:
- KeychainAccess (~> 4.2.2)
- KTCenterFlowLayout (~> 1.3.1)
- MatomoTracker (~> 7.4.1)
- MatrixKit (= 0.16.0)
- MatrixKit (= 0.16.1)
- MatrixSDK
- MatrixSDK/JingleCallStack
- OLMKit
Expand Down Expand Up @@ -204,8 +204,8 @@ SPEC CHECKSUMS:
LoggerAPI: ad9c4a6f1e32f518fdb43a1347ac14d765ab5e3d
Logging: beeb016c9c80cf77042d62e83495816847ef108b
MatomoTracker: 24a846c9d3aa76933183fe9d47fd62c9efa863fb
MatrixKit: ee31a0ef0304c1c4ff4477f977772efed44f2b49
MatrixSDK: 07bbc083632799e9ef7f3b14139cb1ab72f1610e
MatrixKit: 7033539085bc94b6b8755fdab68ba6f7e6e79d56
MatrixSDK: 37fbb6a650095387e908937b7411c4370599c90b
OLMKit: 2d73cd67d149b5c3e3a8eb8ecae93d0b429d8a02
ReadMoreTextView: 19147adf93abce6d7271e14031a00303fe28720d
Realm: ed860452717c8db8f4bf832b6807f7f2ce708839
Expand All @@ -219,6 +219,6 @@ SPEC CHECKSUMS:
zxcvbn-ios: fef98b7c80f1512ff0eec47ac1fa399fc00f7e3c
ZXingObjC: fdbb269f25dd2032da343e06f10224d62f537bdb

PODFILE CHECKSUM: 1f5ce3d0f93688632aaf046398de5a2c6347ffc4
PODFILE CHECKSUM: 1a36889466e39ecec11851d9aa0baa82f4500581

COCOAPODS: 1.10.1
10 changes: 9 additions & 1 deletion Riot/Modules/Room/CellData/RoomBubbleCellData.m
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,14 @@ - (NSAttributedString*)attributedTextMessage
return attributedTextMessage;
}

- (BOOL)hasLink
{
// Only check the last bubble component as -addEvent:andRoomState: will break up
// the data that way, to always show a URL preview at the bottom of the cell.
MXKRoomBubbleComponent *lastComponent = bubbleComponents.lastObject;
return (lastComponent && lastComponent.link);
}

- (BOOL)hasNoDisplay
{
if (self.tag == RoomBubbleCellDataTagKeyVerificationNoDisplay)
Expand Down Expand Up @@ -1076,7 +1084,7 @@ - (void)loadURLPreview
{
// Get the last bubble component as that contains the link.
MXKRoomBubbleComponent *lastComponent = bubbleComponents.lastObject;
if (!lastComponent)
if (!lastComponent || !lastComponent.link)
{
return;
}
Expand Down
9 changes: 5 additions & 4 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ platform :ios do
end
end

desc "Point MatrixKit and MatrixSDK to their respective release/*/release branch if they exist, develop otherwise"
desc "Point MatrixKit and MatrixSDK to their respective release/*/release branch if they exist, master otherwise"
lane :point_dependencies_to_pending_releases do
edit_podfile(branch_pattern: "release/*/release")
edit_podfile(branch_pattern: "release/*/release", default_branch: "master")
end

desc "Point MatrixKit and MatrixSDK to the branch with the same name as the current branch if such one exist, develop otherwise"
Expand Down Expand Up @@ -391,8 +391,9 @@ platform :ios do
kit_slug = "matrix-org/matrix-ios-kit"
sdk_slug = "matrix-org/matrix-ios-sdk"

kit_branch = find_branch(kit_slug, branch_pattern) || 'develop'
sdk_branch = find_branch(sdk_slug, branch_pattern) || 'develop'
default_branch = options[:default_branch] || 'develop'
kit_branch = find_branch(kit_slug, branch_pattern) || default_branch
sdk_branch = find_branch(sdk_slug, branch_pattern) || default_branch

kit_spec = { git: 'https://github.com/matrix-org/matrix-ios-kit.git', branch: kit_branch }
kit_podspec = { podspec: 'MatrixKit.edited.podspec' }
Expand Down

0 comments on commit bdb607c

Please sign in to comment.