Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
2e9c30b
update drafts implementation
sosnovsky Sep 2, 2022
d79b829
update swiftlint config
sosnovsky Sep 5, 2022
b879bd5
add missing passphrase button
sosnovsky Sep 6, 2022
0eaf357
Merge branch 'master' into feature/issue-1813-drafts
sosnovsky Sep 6, 2022
8752c9e
update drafts subtitle format
sosnovsky Sep 6, 2022
a6d1894
save and use existing drafts
sosnovsky Sep 7, 2022
f3ffa87
use existing draft for new messages, add delete draft button
sosnovsky Sep 9, 2022
8562389
delete drafts from thread screen
sosnovsky Sep 12, 2022
90e4290
improve draft deletion
sosnovsky Sep 12, 2022
61d1014
fix semaphore build
sosnovsky Sep 12, 2022
b492cf2
delete drafts from compose screen
sosnovsky Sep 13, 2022
a844a82
Merge branch 'master' into feature/issue-1813-drafts
sosnovsky Sep 13, 2022
95672a4
fill draft data on compose screen
sosnovsky Sep 14, 2022
9eca198
improve draft id fetch
sosnovsky Sep 15, 2022
8667f41
update drafts in thread view
sosnovsky Sep 16, 2022
2aa1c15
reload threads view after message sending
sosnovsky Sep 19, 2022
3e829dd
code cleanup
sosnovsky Sep 20, 2022
fa1a07a
update thread view on draft update
sosnovsky Sep 20, 2022
46c3a37
fixes for draft updates
sosnovsky Sep 21, 2022
7defde6
Merge branch 'master' into feature/issue-1813-drafts
sosnovsky Sep 21, 2022
f59bc51
fix draft ids inconsistency
sosnovsky Sep 21, 2022
be8b4e0
fix threads ordering in different folders
sosnovsky Sep 21, 2022
a2bb142
refresh inbox on thread update
sosnovsky Sep 22, 2022
3a9f938
temporary disable mock draft endpoint
sosnovsky Sep 22, 2022
1a6a3b9
fix ui tests
sosnovsky Sep 23, 2022
235c24a
replace InboxRenderable with InboxItem
sosnovsky Sep 26, 2022
ff00269
fix drafts list reload
sosnovsky Sep 26, 2022
47fb96c
add ui test for drafts
sosnovsky Sep 28, 2022
cd2aea7
Merge branch 'master' into feature/issue-1813-drafts
sosnovsky Sep 28, 2022
5c59026
update drafts ui test
sosnovsky Sep 29, 2022
835c084
only encrypt drafts, without signing
sosnovsky Sep 29, 2022
c33dccc
Merge branch 'master' into feature/issue-1813-drafts
sosnovsky Sep 29, 2022
8370b84
code cleanup
sosnovsky Sep 30, 2022
dd922f4
code cleanup
sosnovsky Sep 30, 2022
cfc3103
fix drafts test
sosnovsky Sep 30, 2022
4c4beb2
Merge branch 'master' into feature/issue-1813-drafts
sosnovsky Oct 3, 2022
852d672
drafts test update
sosnovsky Oct 3, 2022
7e0b20a
code cleanup
sosnovsky Oct 4, 2022
7c45a48
Merge branch 'master' into feature/issue-1813-drafts
sosnovsky Oct 4, 2022
6773d1e
code cleanup
sosnovsky Oct 5, 2022
34ce1d6
update ui test
sosnovsky Oct 5, 2022
2fa34bc
add toasts for draft actions
sosnovsky Oct 5, 2022
48f068d
fix draft encrypting
sosnovsky Oct 5, 2022
d69a79b
update draft toasts
sosnovsky Oct 5, 2022
0cf01ad
code cleanup
sosnovsky Oct 5, 2022
4f3405c
pr fixes
sosnovsky Oct 6, 2022
aeede8c
pr fixes
sosnovsky Oct 7, 2022
2bc394e
fix compose screen leak
sosnovsky Oct 7, 2022
2115e06
save drafts in background
sosnovsky Oct 7, 2022
1f09182
Merge branch 'master' into feature/issue-1813-drafts
sosnovsky Oct 10, 2022
1816352
Merge branch 'master' into feature/issue-1813-drafts
sosnovsky Oct 10, 2022
eaf6b1d
save drafts in background
sosnovsky Oct 10, 2022
6f44ca4
fix tests
sosnovsky Oct 10, 2022
b706815
fix ui tests
sosnovsky Oct 11, 2022
a74b172
fix duplicated drafts
sosnovsky Oct 11, 2022
b946bfd
Merge branch 'master' into feature/issue-1813-drafts
sosnovsky Oct 11, 2022
17e95b2
fix message decrypt
sosnovsky Oct 11, 2022
b8723f8
fix compose crash
sosnovsky Oct 12, 2022
d5997a7
Merge branch 'master' into feature/issue-1813-drafts
sosnovsky Oct 12, 2022
f6e9fc9
update drafts ui test
sosnovsky Oct 12, 2022
67b5969
Merge branch 'master' into feature/issue-1813-drafts
sosnovsky Oct 12, 2022
adfc15b
fix inReplyTo value for compose
sosnovsky Oct 13, 2022
acedebc
pr fix
sosnovsky Oct 13, 2022
339e228
pr fixes
sosnovsky Oct 14, 2022
12944c1
fix thread table separators
sosnovsky Oct 14, 2022
2e31f06
pr fixes
sosnovsky Oct 15, 2022
f1a4426
Merge branch 'master' into feature/issue-1813-drafts
Oct 16, 2022
b956a63
fix ui test
sosnovsky Oct 17, 2022
8a116b9
Merge branch 'master' into feature/issue-1813-drafts
sosnovsky Oct 17, 2022
c6c0cfa
Merge branch 'master' into feature/issue-1813-drafts
sosnovsky Oct 18, 2022
ed69154
fix duplicated drafts
sosnovsky Oct 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
npx git-format-staged --formatter "swiftformat stdin --stdinpath '{}'" "*.swift" "!Pods/*"
2 changes: 1 addition & 1 deletion .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ after_pipeline:
jobs:
- name: Publish Results
commands:
- test-results gen-pipeline-report
- test-results gen-pipeline-report
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.6
5.7
89 changes: 86 additions & 3 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,102 @@ disabled_rules:
# - class_delegate_protocol #disabled this rule since it cannot track inheritance of protocol if protocols declared in different files
# - operator_whitespace

analyzer_rules:
- unused_declaration
- unused_import
opt_in_rules:
- anyobject_protocol
- array_init
- attributes
- closure_end_indentation
- closure_spacing
- collection_alignment
- contains_over_filter_count
- contains_over_filter_is_empty
- contains_over_first_not_nil
- contains_over_range_nil_comparison
# - discouraged_none_name
- discouraged_object_literal
- empty_collection_literal
- empty_count
- empty_string
- empty_xctest_method
- enum_case_associated_values_count
- explicit_init
- extension_access_modifier
- fallthrough
- fatal_error_message
# - file_header
# - file_name
- first_where
- flatmap_over_map_reduce
- identical_operands
- joined_default_parameter
- last_where
- legacy_multiple
- literal_expression_end_indentation
- lower_acl_than_parent
- modifier_order
- nimble_operator
# - nslocalizedstring_key
- number_separator
# - object_literal
- operator_usage_whitespace
- overridden_super_call
- override_in_extension
- pattern_matching_keywords
- prefer_self_in_static_references
- prefer_self_type_over_type_of_self
- private_action
- private_outlet
- prohibited_interface_builder
- prohibited_super_call
- quick_discouraged_call
- quick_discouraged_focused_test
- quick_discouraged_pending_test
- reduce_into
- redundant_nil_coalescing
- redundant_type_annotation
- return_value_from_void_function
- single_test_class
- sorted_first_last
# - sorted_imports
- static_operator
- strong_iboutlet
- test_case_accessibility
- toggle_bool
- unavailable_function
- unneeded_parentheses_in_closure_argument
- unowned_variable_capture
- untyped_error_in_catch
- vertical_parameter_alignment_on_call
- vertical_whitespace_closing_braces
# - vertical_whitespace_opening_braces
- xct_specific_matcher
- yoda_condition

included:
- FlowCrypt
- FlowCryptUI
- FlowCryptCommon
excluded:
- FlowCrypt/Core
- FlowCrypt/Functionality/Imap


attributes:
always_on_same_line:
["@objc"]
line_length: 140
function_body_length: 50

# type_body_length:
# - 400 # Warning
# - 550 # Error
type_body_length:
- 500 # Warning
- 600 # Error

number_separator:
minimum_length: 5
minimum_fraction_length: 7

# warning_threshold: 1

Expand Down
2 changes: 1 addition & 1 deletion BuildTools/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let package = Package(
name: "BuildTools",
platforms: [.macOS(.v10_11)],
dependencies: [
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.49.18"),
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.50.0"),
],
targets: [.target(name: "BuildTools", path: "")]
)
Loading