Skip to content

Commit

Permalink
Merge pull request #761 from tchapgouv/rebase/element-ios-1.10.2
Browse files Browse the repository at this point in the history
Rebase/element ios 1.10.2
  • Loading branch information
NicolasBuquet authored Feb 22, 2023
2 parents 282d11a + 84bb705 commit 56722cc
Show file tree
Hide file tree
Showing 147 changed files with 4,953 additions and 1,989 deletions.
47 changes: 47 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,50 @@
## Changes in 1.10.2 (2023-02-10)

🐛 Bugfixes

- Fixes #7350 - Fix green dot only to appear for marked action ([#7530](https://github.com/vector-im/element-ios/issues/7530))


## Changes in 1.10.1 (2023-02-07)

✨ Features

- Add mark as unread option for rooms ([#7253](https://github.com/vector-im/element-ios/issues/7253))

🙌 Improvements

- Polls: add logic for fetching poll histories in rooms. ([#7293](https://github.com/vector-im/element-ios/pull/7293))
- Poll: add a feature to load more polls in the poll history. ([#7303](https://github.com/vector-im/element-ios/pull/7303))
- CryptoV2: Generate Crypto SDK store key ([#7310](https://github.com/vector-im/element-ios/pull/7310))
- Poll: added poll detail in poll list hisotry with navigation to timeline ([#7314](https://github.com/vector-im/element-ios/pull/7314))
- Backup: Display backup import progress ([#7319](https://github.com/vector-im/element-ios/pull/7319))
- Polls: sync push rules with the one of normal messages. ([#7320](https://github.com/vector-im/element-ios/pull/7320))
- CryptoV2: Reset Crypto SDK on logout ([#7323](https://github.com/vector-im/element-ios/pull/7323))
- Polls: add error handling when syncing push rules with the ones of normal messages. ([#7324](https://github.com/vector-im/element-ios/pull/7324))
- CryptoV2: Refresh notification service on crypto change ([#7332](https://github.com/vector-im/element-ios/pull/7332))
- CryptoV2: Enable Crypto SDK for production ([#7333](https://github.com/vector-im/element-ios/pull/7333))
- Polls: add automatic synchronization logic for poll push rules. ([#7335](https://github.com/vector-im/element-ios/pull/7335))
- Polls: update poll history UI. ([#7341](https://github.com/vector-im/element-ios/pull/7341))
- Upgrade MatrixSDK version ([v0.25.1](https://github.com/matrix-org/matrix-ios-sdk/releases/tag/v0.25.1)).
- Hide the presence info if the presence status is unknown. ([#6597](https://github.com/vector-im/element-ios/issues/6597))
- Inform the user about decryption errors during a voice broadcast. ([#7189](https://github.com/vector-im/element-ios/issues/7189))
- App Layout: Removed the onboarding flow ([#7298](https://github.com/vector-im/element-ios/issues/7298))
- Improve error handling during a voice broadcast playback. ([#7311](https://github.com/vector-im/element-ios/issues/7311))
- Labs: Rich text editor: enable list items indentation ([#7316](https://github.com/vector-im/element-ios/issues/7316))


## Changes in 1.10.0 (2023-02-02)

🙌 Improvements

- CryptoV2: Generate Crypto SDK store key ([#7310](https://github.com/vector-im/element-ios/pull/7310))
- Backup: Display backup import progress ([#7319](https://github.com/vector-im/element-ios/pull/7319))
- CryptoV2: Reset Crypto SDK on logout ([#7323](https://github.com/vector-im/element-ios/pull/7323))
- CryptoV2: Refresh notification service on crypto change ([#7332](https://github.com/vector-im/element-ios/pull/7332))
- CryptoV2: Enable Crypto SDK for production ([#7333](https://github.com/vector-im/element-ios/pull/7333))
- Upgrade MatrixSDK version ([v0.25.0](https://github.com/matrix-org/matrix-ios-sdk/releases/tag/v0.25.0)).


## Changes in 1.9.17 (2023-01-26)

🙌 Improvements
Expand Down
2 changes: 1 addition & 1 deletion Config/BuildSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ final class BuildSettings: NSObject {

// MARK: - Polls

static let pollsEnabled = false // Currently disabled in Tchap.
static let pollsEnabled = false //true : Currently disabled in Tchap.
static var pollsHistoryEnabled: Bool = false

// MARK: - Location Sharing
Expand Down
9 changes: 6 additions & 3 deletions Config/CommonConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,14 @@ class CommonConfiguration: NSObject, Configurable {

sdkOptions.enableNewClientInformationFeature = RiotSettings.shared.enableClientInformationFeature

#if DEBUG
if sdkOptions.isCryptoSDKAvailable {
sdkOptions.enableCryptoSDK = RiotSettings.shared.enableCryptoSDK
let isEnabled = RiotSettings.shared.enableCryptoSDK
MXLog.debug("[CommonConfiguration] Crypto SDK is \(isEnabled ? "enabled" : "disabled")")
sdkOptions.enableCryptoSDK = isEnabled
sdkOptions.enableStartupProgress = isEnabled
} else {
MXLog.debug("[CommonConfiguration] Crypto SDK is not available)")
}
#endif
}

private func makeASCIIUserAgent() -> String? {
Expand Down
42 changes: 42 additions & 0 deletions Config/CryptoSDKConfiguration.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
//
// Copyright 2023 New Vector Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

import Foundation

/// Configuration for enabling / disabling Matrix Crypto SDK
@objcMembers class CryptoSDKConfiguration: NSObject {
static let shared = CryptoSDKConfiguration()

func enable() {
guard MXSDKOptions.sharedInstance().isCryptoSDKAvailable else {
return
}

RiotSettings.shared.enableCryptoSDK = true
MXSDKOptions.sharedInstance().enableCryptoSDK = true
MXSDKOptions.sharedInstance().enableStartupProgress = true

MXLog.debug("[CryptoSDKConfiguration] enabling Crypto SDK")
}

func disable() {
RiotSettings.shared.enableCryptoSDK = false
MXSDKOptions.sharedInstance().enableCryptoSDK = false
MXSDKOptions.sharedInstance().enableStartupProgress = false

MXLog.debug("[CryptoSDKConfiguration] disabling Crypto SDK")
}
}
8 changes: 3 additions & 5 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use_frameworks!
# - `{ :specHash => {sdk spec hash}` to depend on specific pod options (:git => …, :podspec => …) for MatrixSDK 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
$matrixSDKVersion = '= 0.24.8'
$matrixSDKVersion = '= 0.25.1'
# $matrixSDKVersion = :local
# $matrixSDKVersion = { :branch => 'develop'}
# $matrixSDKVersion = { :specHash => { git: 'https://git.io/fork123', branch: 'fix' } }
Expand Down Expand Up @@ -53,8 +53,6 @@ end

def import_MatrixKit_pods
pod 'libPhoneNumber-iOS', '~> 0.9.13'
pod 'DTCoreText', '1.6.26'
#pod 'DTCoreText/Extension', '~> 1.6.25'
pod 'Down', '~> 0.11.0'
end

Expand All @@ -80,7 +78,7 @@ end

abstract_target 'TchapPods' do

pod 'GBDeviceInfo', '~> 6.6.0'
pod 'GBDeviceInfo', '~> 7.1.0'
pod 'Reusable', '~> 4.1'
pod 'KeychainAccess', '~> 4.2.2'
pod 'WeakDictionary', '~> 2.0'
Expand All @@ -98,7 +96,7 @@ abstract_target 'TchapPods' do

# Tools
pod 'SwiftGen', '~> 6.3'
pod 'SwiftLint', '~> 0.44.0'
pod 'SwiftLint', '~> 0.49.1'

target "Tchap" do
import_MatrixSDK
Expand Down
62 changes: 19 additions & 43 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,11 @@ PODS:
- Down (0.11.0)
- DSBottomSheet (0.3.0)
- DSWaveformImage (6.1.1)
- DTCoreText (1.6.26):
- DTCoreText/Core (= 1.6.26)
- DTFoundation/Core (~> 1.7.5)
- DTFoundation/DTAnimatedGIF (~> 1.7.5)
- DTFoundation/DTHTMLParser (~> 1.7.5)
- DTFoundation/UIKit (~> 1.7.5)
- DTCoreText/Core (1.6.26):
- DTFoundation/Core (~> 1.7.5)
- DTFoundation/DTAnimatedGIF (~> 1.7.5)
- DTFoundation/DTHTMLParser (~> 1.7.5)
- DTFoundation/UIKit (~> 1.7.5)
- DTFoundation/Core (1.7.18)
- DTFoundation/DTAnimatedGIF (1.7.18)
- DTFoundation/DTHTMLParser (1.7.18):
- DTFoundation/Core
- DTFoundation/UIKit (1.7.18):
- DTFoundation/Core
- FLEX (4.5.0)
- FlowCommoniOS (1.12.2)
- GBDeviceInfo (6.6.0):
- GBDeviceInfo/Core (= 6.6.0)
- GBDeviceInfo/Core (6.6.0)
- GBDeviceInfo (7.1.0):
- GBDeviceInfo/Core (= 7.1.0)
- GBDeviceInfo/Core (7.1.0)
- GZIP (1.3.0)
- Introspect (0.1.4)
- JitsiMeetSDK (5.0.2)
Expand All @@ -55,22 +38,20 @@ PODS:
- LoggerAPI (1.9.200):
- Logging (~> 1.1)
- Logging (1.4.0)
- MatrixSDK (0.24.8):
- MatrixSDK/Core (= 0.24.8)
- MatrixSDK/Core (0.24.8):
- MatrixSDK (0.25.1):
- MatrixSDK/Core (= 0.25.1)
- MatrixSDK/Core (0.25.1):
- AFNetworking (~> 4.0.0)
- GZIP (~> 1.3.0)
- libbase58 (~> 0.1.4)
- MatrixSDK/CryptoSDK
- MatrixSDKCrypto (= 0.2.0)
- OLMKit (~> 3.2.5)
- Realm (= 10.27.0)
- SwiftyBeaver (= 1.9.5)
- MatrixSDK/CryptoSDK (0.24.8):
- MatrixSDKCrypto (= 0.1.8)
- MatrixSDK/JingleCallStack (0.24.8):
- MatrixSDK/JingleCallStack (0.25.1):
- JitsiMeetSDK (= 5.0.2)
- MatrixSDK/Core
- MatrixSDKCrypto (0.1.8)
- MatrixSDKCrypto (0.2.0)
- OLMKit (3.2.12):
- OLMKit/olmc (= 3.2.12)
- OLMKit/olmcpp (= 3.2.12)
Expand Down Expand Up @@ -99,7 +80,7 @@ PODS:
- BlueRSA (~> 1.0)
- KituraContracts (~> 1.2)
- LoggerAPI (~> 1.7)
- SwiftLint (0.44.0)
- SwiftLint (0.49.1)
- SwiftyBeaver (1.9.5)
- UICollectionViewLeftAlignedLayout (1.0.2)
- UICollectionViewRightAlignedLayout (0.0.3)
Expand All @@ -114,16 +95,15 @@ DEPENDENCIES:
- Down (~> 0.11.0)
- DSBottomSheet (~> 0.3)
- DSWaveformImage (~> 6.1.1)
- DTCoreText (= 1.6.26)
- FLEX (~> 4.5.0)
- FlowCommoniOS (~> 1.12.0)
- GBDeviceInfo (~> 6.6.0)
- GBDeviceInfo (~> 7.1.0)
- Introspect (~> 0.1)
- KeychainAccess (~> 4.2.2)
- KTCenterFlowLayout (~> 1.3.1)
- libPhoneNumber-iOS (~> 0.9.13)
- MatrixSDK (= 0.24.8)
- MatrixSDK/JingleCallStack (= 0.24.8)
- MatrixSDK (= 0.25.1)
- MatrixSDK/JingleCallStack (= 0.25.1)
- OLMKit
- PostHog (~> 1.4.4)
- ReadMoreTextView (~> 3.0.1)
Expand All @@ -134,7 +114,7 @@ DEPENDENCIES:
- SwiftBase32 (~> 0.9.0)
- SwiftGen (~> 6.3)
- SwiftJWT (~> 3.6.200)
- SwiftLint (~> 0.44.0)
- SwiftLint (~> 0.49.1)
- UICollectionViewLeftAlignedLayout (~> 1.0.2)
- UICollectionViewRightAlignedLayout (~> 0.0.3)
- WeakDictionary (~> 2.0)
Expand All @@ -150,8 +130,6 @@ SPEC REPOS:
- Down
- DSBottomSheet
- DSWaveformImage
- DTCoreText
- DTFoundation
- FLEX
- FlowCommoniOS
- GBDeviceInfo
Expand Down Expand Up @@ -205,11 +183,9 @@ SPEC CHECKSUMS:
Down: b6ba1bc985c9d2f4e15e3b293d2207766fa12612
DSBottomSheet: ca0ac37eb5af2dd54663f86b84382ed90a59be2a
DSWaveformImage: 3c718a0cf99291887ee70d1d0c18d80101d3d9ce
DTCoreText: ec749e013f2e1f76de5e7c7634642e600a7467ce
DTFoundation: a53f8cda2489208cbc71c648be177f902ee17536
FLEX: e51461dd6f0bfb00643c262acdfea5d5d12c596b
FlowCommoniOS: ca92071ab526dc89905495a37844fd7e78d1a7f2
GBDeviceInfo: ed0db16230d2fa280e1cbb39a5a7f60f6946aaec
GBDeviceInfo: 5d62fa85bdcce3ed288d83c28789adf1173e4376
GZIP: 416858efbe66b41b206895ac6dfd5493200d95b3
Introspect: b62c4dd2063072327c21d618ef2bedc3c87bc366
JitsiMeetSDK: edcac8e2b92ee0c7f3e75bd0aefefbe9faccfc93
Expand All @@ -220,8 +196,8 @@ SPEC CHECKSUMS:
libPhoneNumber-iOS: 0a32a9525cf8744fe02c5206eb30d571e38f7d75
LoggerAPI: ad9c4a6f1e32f518fdb43a1347ac14d765ab5e3d
Logging: beeb016c9c80cf77042d62e83495816847ef108b
MatrixSDK: cf1c1b2a9742f7f4fad21e94bd94cd8f13c47369
MatrixSDKCrypto: 862d9b4dbb6861da030943f5a18c39258ed7345b
MatrixSDK: 823c5c2ef8b8a769c30fa62e1be8ec801e6312e7
MatrixSDKCrypto: e1ef22aae76b5a6f030ace21a47be83864f4ff44
OLMKit: da115f16582e47626616874e20f7bb92222c7a51
PostHog: 4b6321b521569092d4ef3a02238d9435dbaeb99f
ReadMoreTextView: 19147adf93abce6d7271e14031a00303fe28720d
Expand All @@ -233,14 +209,14 @@ SPEC CHECKSUMS:
SwiftBase32: 9399c25a80666dc66b51e10076bf591e3bbb8f17
SwiftGen: 1366a7f71aeef49954ca5a63ba4bef6b0f24138c
SwiftJWT: 88c412708f58c169d431d344c87bc79a87c830ae
SwiftLint: e96c0a8c770c7ebbc4d36c55baf9096bb65c4584
SwiftLint: 32ee33ded0636d0905ef6911b2b67bbaeeedafa5
SwiftyBeaver: 84069991dd5dca07d7069100985badaca7f0ce82
UICollectionViewLeftAlignedLayout: 830bf6fa5bab9f9b464f62e3384f9d2e00b3c0f6
UICollectionViewRightAlignedLayout: 823eef8c567eba4a44c21bc2ffcb0d0d5f361e2d
WeakDictionary: 8cd038acd77e5d54ca4ebaec3d20853d732b45e0
zxcvbn-ios: fef98b7c80f1512ff0eec47ac1fa399fc00f7e3c
ZXingObjC: fdbb269f25dd2032da343e06f10224d62f537bdb

PODFILE CHECKSUM: 3c76918930e030ea0488d550923cceb09992573a
PODFILE CHECKSUM: 121cfa9efcd7fe9e78d7201f9153d8bad9f33f0c

COCOAPODS: 1.11.3
22 changes: 20 additions & 2 deletions Riot.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@
"version" : "4.7.0"
}
},
{
"identity" : "dtcoretext",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Cocoanetics/DTCoreText",
"state" : {
"revision" : "9d2d4d2296e5d2d852a7d3c592b817d913a5d020",
"version" : "1.6.27"
}
},
{
"identity" : "dtfoundation",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Cocoanetics/DTFoundation.git",
"state" : {
"revision" : "76062513434421cb6c8a1ae1d4f8368a7ebc2da3",
"version" : "1.7.18"
}
},
{
"identity" : "maplibre-gl-native-distribution",
"kind" : "remoteSourceControl",
Expand All @@ -23,8 +41,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/matrix-org/matrix-wysiwyg-composer-swift",
"state" : {
"revision" : "6927cb878376136c4a03d919b689af8dfbdad080",
"version" : "0.19.0"
"revision" : "3f72aeab7d7e04b52ff3f735ab79a75993f97ef2",
"version" : "0.22.0"
}
},
{
Expand Down
6 changes: 0 additions & 6 deletions Riot/Assets/Images.xcassets/AllChatsOnboarding/Contents.json

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 56722cc

Please sign in to comment.