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

Integrate MatrixSDKCrypto #1501

Merged
merged 7 commits into from
Jun 16, 2022
Merged

Integrate MatrixSDKCrypto #1501

merged 7 commits into from
Jun 16, 2022

Conversation

Anderas
Copy link
Contributor

@Anderas Anderas commented Jun 15, 2022

Builds on top of experimental MXCryptoV2 and integrates independently published MatrixSDKCrypto CocoaPod, published as offical CocoaPod

To avoid bloating up the size of production builds as well as making them safer, the new pod will only be loaded in DEBUG builds and is currently compiled only for iOS, as some of the internal libraries in Rust Crypto cannot be compiled for macos at the moment. This will be resolved in the future but does not have to be a blocker at this point.

Finally note that the instantiation of OlmMachine in this PR means the integration of the pod works as expected.

@Anderas Anderas requested review from a team, MaximeEvrard42 and manuroe and removed request for a team June 15, 2022 08:24
@@ -22,12 +22,12 @@ Pod::Spec.new do |s|
s.requires_arc = true
s.swift_versions = ['5.1', '5.2']

s.ios.deployment_target = "10.0"
s.ios.deployment_target = "11.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need to increase deployment target everywhere to 11, because 10 still supports 32bit architectures, whereas Rust has already dropped support for these architectures so MatrixCryptoSDK would be incompatible.

private let machine: OlmMachine
public override init() {
do {
machine = try OlmMachine(userId: "", deviceId: "", path: "", passphrase: nil)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

OlmMachine is a symbol defined in MatrixSDKCrypto pod

Copy link
Contributor

@manuroe manuroe left a comment

Choose a reason for hiding this comment

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

We need an .api changelog file to communicate on the iOS 10 drop. Then, it will be all good for me.
Exciting time!

@Anderas
Copy link
Contributor Author

Anderas commented Jun 15, 2022

We need an .api changelog file to communicate on the iOS 10 drop. Then, it will be all good for me. Exciting time!

Is this in addition or instead of the existing pr-1501.misc?

@manuroe
Copy link
Contributor

manuroe commented Jun 15, 2022

We need an .api changelog file to communicate on the iOS 10 drop. Then, it will be all good for me. Exciting time!

Is this in addition or instead of the existing pr-1501.misc?

In addition, you can have several changelog files in a PR.

Base automatically changed from andy/rust_pt1_interface to develop June 15, 2022 16:56
@Anderas Anderas requested a review from manuroe June 15, 2022 16:58
@Anderas Anderas merged commit 6f9cac7 into develop Jun 16, 2022
@Anderas Anderas deleted the andy/rust_pt2_dependency branch June 16, 2022 07:33
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.

None yet

2 participants