Skip to content

Commit 51ee925

Browse files
committed
Increase local rust crypto rollout
1 parent 7f5d3b4 commit 51ee925

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Riot/Experiments/CryptoSDKFeature.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
//
1616

1717
import Foundation
18+
import MatrixSDKCrypto
1819

1920
/// An implementation of `MXCryptoV2Feature` which uses `UserDefaults` to persist the enabled status
2021
/// of `CryptoSDK`, and which uses feature flags to control rollout availability.
@@ -30,6 +31,11 @@ import Foundation
3031
@objc class CryptoSDKFeature: NSObject, MXCryptoV2Feature {
3132
@objc static let shared = CryptoSDKFeature()
3233

34+
var version: String {
35+
// Will be moved into the olm machine as API
36+
Bundle(for: OlmMachine.self).infoDictionary?["CFBundleShortVersionString"] as? String ?? ""
37+
}
38+
3339
var isEnabled: Bool {
3440
RiotSettings.shared.enableCryptoSDK
3541
}
@@ -45,7 +51,7 @@ import Foundation
4551
// Local feature is currently set to 0% target, and all availability is fully controlled
4652
// by the remote feature. Once the remote is fully rolled out, target for local feature will
4753
// be gradually increased.
48-
targetPercentage: 0.0
54+
targetPercentage: 0.2
4955
)
5056
}
5157

Riot/Modules/Analytics/SentryMonitoringClient.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ struct SentryMonitoringClient {
4646
if let message = event.message?.formatted {
4747
event.fingerprint = [message]
4848
}
49+
event.tags = [
50+
"crypto_module": MXSDKOptions.sharedInstance().cryptoModuleId
51+
]
4952
MXLog.debug("[SentryMonitoringClient] Issue detected: \(event)")
5053
return event
5154
}

changelog.d/pr-7434.change

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Crypto: Increase local rust crypto rollout to 20% of all users

0 commit comments

Comments
 (0)