File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 15
15
//
16
16
17
17
import Foundation
18
+ import MatrixSDKCrypto
18
19
19
20
/// An implementation of `MXCryptoV2Feature` which uses `UserDefaults` to persist the enabled status
20
21
/// of `CryptoSDK`, and which uses feature flags to control rollout availability.
@@ -30,6 +31,11 @@ import Foundation
30
31
@objc class CryptoSDKFeature : NSObject , MXCryptoV2Feature {
31
32
@objc static let shared = CryptoSDKFeature ( )
32
33
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
+
33
39
var isEnabled : Bool {
34
40
RiotSettings . shared. enableCryptoSDK
35
41
}
@@ -45,7 +51,7 @@ import Foundation
45
51
// Local feature is currently set to 0% target, and all availability is fully controlled
46
52
// by the remote feature. Once the remote is fully rolled out, target for local feature will
47
53
// be gradually increased.
48
- targetPercentage: 0.0
54
+ targetPercentage: 0.2
49
55
)
50
56
}
51
57
Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ struct SentryMonitoringClient {
46
46
if let message = event. message? . formatted {
47
47
event. fingerprint = [ message]
48
48
}
49
+ event. tags = [
50
+ " crypto_module " : MXSDKOptions . sharedInstance ( ) . cryptoModuleId
51
+ ]
49
52
MXLog . debug ( " [SentryMonitoringClient] Issue detected: \( event) " )
50
53
return event
51
54
}
Original file line number Diff line number Diff line change
1
+ Crypto: Increase local rust crypto rollout to 20% of all users
You can’t perform that action at this time.
0 commit comments