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

crypto: Add configuration flag to enable invisible crypto #3247

Merged
merged 4 commits into from
Sep 18, 2024

Conversation

BillCarsonFr
Copy link
Member

Fixes #2932

Adds a configuration flag (via AppSettings to enabled invisible crypto mode). The setting is Off by default.
Also adds a toggle to the dev tool screen for testing:
image

Pull Request Checklist

UI changes have been tested with:

  • iPhone and iPad simulators in portrait and landscape orientations.
  • Dark mode enabled and disabled.
  • Various sizes of dynamic type.
  • Voiceover enabled.

Copy link

github-actions bot commented Sep 10, 2024

Fails
🚫

danger-swift failed.

Log

/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/danger/286840A8-BB80-4B4A-8695-C3EB085F2460/_tmp_dangerfile.swift:4:11: error: ambiguous use of 'lint'
SwiftLint.lint(inline: true)
          ^
Danger.SwiftLint:13:24: note: found this candidate
    public static func lint(inline: Bool = false, directory: String? = nil, configFile: String? = nil, strict: Bool = false, quiet: Bool = true, lintAllFiles: Bool = false, swiftlintPath: String? = nil) -> [Danger.SwiftLintViolation]
                       ^
Danger.SwiftLint:18:24: note: found this candidate
    public static func lint(_ lintStyle: Danger.SwiftLint.LintStyle = .modifiedAndCreatedFiles(directory: nil), inline: Bool = false, configFile: String? = nil, strict: Bool = false, quiet: Bool = true, swiftlintPath: Danger.SwiftLint.SwiftlintPath? = nil, markdownAction: (String) -> Void = markdown) -> [Danger.SwiftLintViolation]
                       ^
�[31mERROR: Dangerfile eval failed at Dangerfile.swift
�[0;0m�[31mERROR: Could not get the results JSON file at /var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/danger/286840A8-BB80-4B4A-8695-C3EB085F2460/danger-response.json
�[0;0m

Generated by 🚫 dangerJS against 331ccbc

@BillCarsonFr BillCarsonFr force-pushed the valere/config_flag_invisible_crypto_2 branch from 2690af5 to 127c261 Compare September 10, 2024 08:37
@BillCarsonFr BillCarsonFr added the pr-feature for a new feature label Sep 10, 2024
Copy link

codecov bot commented Sep 10, 2024

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
824 1 823 0
View the top 1 failed tests by shortest run time
PreviewTests test_joinRoomScreen()
Stack Traces | 18.2s run time
failed - Snapshot "Unknown" does not match reference.

@−
"file:.../__Snapshots__/PreviewTests/test_joinRoomScreen-iPhone-15-pseudo.Unknown.png"
@+
"file:.../tmp/PreviewTests/test_joinRoomScreen-iPhone-15-pseudo.Unknown.png"

To configure output for a custom diff tool, use 'withSnapshotTesting'. For example:

    withSnapshotTesting(diffTool: .ksdiff) {
      // ...
    }

The percentage of pixels that match 0.9593811 is less than required 1.0
The lowest perceptual color precision 0.39937502 is less than required 0.98 (.../PreviewTests/Sources/PreviewTests.swift:1021)

To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard

@pixlwave
Copy link
Member

pixlwave commented Sep 10, 2024

Heads up that I just merged #3215 which also calls roomKeyRecipientStrategy(strategy:) on the ClientBuilder. I don't think it should conflict with your PR given it is called earlier, but feel free to move it around to make it clearer if you want :)

@BillCarsonFr
Copy link
Member Author

Heads up that I just merged #3215 which also calls roomKeyRecipientStrategy(strategy:) on the ClientBuilder. I don't think it should conflict with your PR given it is called earlier, but feel free to move it around to make it clearer if you want :)

Ok, I'll rebase. I will move your call to roomKeyRecipientStrategy around the same place to set it as default unless the lab flag is set

@BillCarsonFr BillCarsonFr force-pushed the valere/config_flag_invisible_crypto_2 branch from 127c261 to a1e5739 Compare September 10, 2024 09:29
@BillCarsonFr
Copy link
Member Author

Ok, I'll rebase. I will move your call to roomKeyRecipientStrategy around the same place to set it as default unless the lab flag is set

@pixlwave a1e5739

@pixlwave
Copy link
Member

Nice, thanks 👍

@BillCarsonFr BillCarsonFr marked this pull request as ready for review September 10, 2024 11:32
@BillCarsonFr BillCarsonFr requested a review from a team as a code owner September 10, 2024 11:32
@BillCarsonFr BillCarsonFr requested review from pixlwave and removed request for a team September 10, 2024 11:32
Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

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

Nice, its exciting to see invisible crypto being added.

@BillCarsonFr BillCarsonFr force-pushed the valere/config_flag_invisible_crypto_2 branch 2 times, most recently from 1821d12 to 49ac60f Compare September 18, 2024 11:58
@BillCarsonFr BillCarsonFr force-pushed the valere/config_flag_invisible_crypto_2 branch from 49ac60f to 331ccbc Compare September 18, 2024 12:54
Copy link

sonarcloud bot commented Sep 18, 2024

@pixlwave pixlwave merged commit f7d878b into develop Sep 18, 2024
5 of 7 checks passed
@pixlwave pixlwave deleted the valere/config_flag_invisible_crypto_2 branch September 18, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-feature for a new feature
Projects
None yet
2 participants