Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control CryptoSDK via feature flag #1719

Merged
merged 1 commit into from
Feb 22, 2023
Merged

Control CryptoSDK via feature flag #1719

merged 1 commit into from
Feb 22, 2023

Conversation

Anderas
Copy link
Contributor

@Anderas Anderas commented Feb 15, 2023

Create MXCryptoV2Feature protocol, implemented in the main app, which controls whether rust-based crypto sdk is enabled or not.

This allows more nuanced approach to enabling the feature (incl. at runtime), for instance by combining manual opt-in and remote feature flags.

@Anderas Anderas force-pushed the andy/crypto_feature branch from 85cf540 to 87f739f Compare February 15, 2023 13:23
@Anderas Anderas requested review from a team and nimau and removed request for a team February 15, 2023 13:23
@Anderas Anderas force-pushed the andy/crypto_feature branch from 87f739f to 56f12fe Compare February 15, 2023 13:25
@codecov
Copy link

codecov bot commented Feb 15, 2023

Codecov Report

Base: 37.36% // Head: 17.62% // Decreases project coverage by -19.74% ⚠️

Coverage data is based on head (56f12fe) compared to base (a58ad16).
Patch coverage: 30.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##           develop    #1719       +/-   ##
============================================
- Coverage    37.36%   17.62%   -19.74%     
============================================
  Files          612      612               
  Lines        96120    96130       +10     
  Branches     41542    40355     -1187     
============================================
- Hits         35915    16945    -18970     
- Misses       59154    78675    +19521     
+ Partials      1051      510      -541     
Impacted Files Coverage Δ
MatrixSDK/Background/MXBackgroundSyncService.swift 0.00% <0.00%> (ø)
MatrixSDK/Crypto/MXCryptoV2Factory.swift 0.00% <ø> (-79.52%) ⬇️
MatrixSDK/Crypto/MXCrypto.m 2.12% <9.09%> (-62.04%) ⬇️
MatrixSDK/MXSDKOptions.m 93.18% <72.72%> (-6.82%) ⬇️
MatrixSDKTests/MatrixSDKTestsData.h 0.00% <0.00%> (-100.00%) ⬇️
MatrixSDK/Utils/MXDateProvider.swift 0.00% <0.00%> (-100.00%) ⬇️
MatrixSDK/Crypto/Utils/MXCryptoTools.m 0.00% <0.00%> (-100.00%) ⬇️
MatrixSDK/Crypto/Devices/MXDeviceList.h 0.00% <0.00%> (-100.00%) ⬇️
MatrixSDK/Crypto/Data/MXOlmSessionResult.m 0.00% <0.00%> (-100.00%) ⬇️
MatrixSDK/Crypto/Migration/MXCryptoVersion.h 0.00% <0.00%> (-100.00%) ⬇️
... and 189 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@nimau nimau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Anderas Anderas merged commit 4e7813c into develop Feb 22, 2023
@Anderas Anderas deleted the andy/crypto_feature branch February 22, 2023 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants