-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: added warning for suspicious message * fix: machine type * fix: fastlane file * fix: fastlane file * fix: fastlane file * fix: semaphoreci * fix: use xcode 15 image * fix: pr reviews * fix: removed unused test
- Loading branch information
Showing
12 changed files
with
173 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// SecurityWarningNode.swift | ||
// FlowCrypt | ||
// | ||
// Created by Ioan Moldovan on 9/26/24 | ||
// Copyright © 2017-present FlowCrypt a. s. All rights reserved. | ||
// | ||
|
||
import AsyncDisplayKit | ||
|
||
public final class SecurityWarningNode: CellNode { | ||
|
||
private lazy var subjectNode: ASTextNode2 = { | ||
let textNode = ASTextNode2() | ||
textNode.attributedText = "message_security_warning_subject".localized.attributed(.bold(18), color: .black, alignment: .left) | ||
textNode.accessibilityIdentifier = "aid-security-warning-subject-node" | ||
return textNode | ||
}() | ||
|
||
private lazy var messageNode: ASTextNode2 = { | ||
let textNode = ASTextNode2() | ||
textNode.attributedText = "message_security_warning_message".localized.attributed(.regular(15), color: .black, alignment: .left) | ||
textNode.accessibilityIdentifier = "aid-security-warning-message-node" | ||
return textNode | ||
}() | ||
|
||
override public init() { | ||
super.init() | ||
|
||
backgroundColor = UIColor(hex: "FABD03") | ||
} | ||
|
||
override public func layoutSpecThatFits(_: ASSizeRange) -> ASLayoutSpec { | ||
let stack = ASStackLayoutSpec.vertical() | ||
stack.children = [subjectNode, messageNode] | ||
stack.spacing = 10 | ||
|
||
return ASInsetLayoutSpec( | ||
insets: .deviceSpecificTextInsets(top: 16, bottom: 16), | ||
child: stack | ||
) | ||
} | ||
} |
74 changes: 74 additions & 0 deletions
74
appium/api-mocks/apis/google/exported-messages/message-export-1922cd70bf323ea6.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"acctEmail": "[email protected]", | ||
"full": { | ||
"id": "1922cd70bf323ea6", | ||
"threadId": "1922cd70bf323ea6", | ||
"labelIds": ["CATEGORY_PERSONAL", "INBOX"], | ||
"snippet": "test -Mart at FlowCrypt", | ||
"payload": { | ||
"partId": "", | ||
"mimeType": "text/plain", | ||
"filename": "", | ||
"headers": [ | ||
{ | ||
"name": "To", | ||
"value": "[email protected]" | ||
}, | ||
{ | ||
"name": "Subject", | ||
"value": "Test Spoofed email by Mart" | ||
}, | ||
{ | ||
"name": "From", | ||
"value": "[email protected]" | ||
}, | ||
{ | ||
"name": "X-Priority", | ||
"value": "3 (Normal)" | ||
}, | ||
{ | ||
"name": "Importance", | ||
"value": "Normal" | ||
}, | ||
{ | ||
"name": "Received-SPF", | ||
"value": "softfail (google.com: domain of transitioning [email protected] does not designate 0.0.0.0 as permitted sender) client-ip=0.0.0.0;" | ||
}, | ||
{ | ||
"name": "Errors-To", | ||
"value": "[email protected]" | ||
}, | ||
{ | ||
"name": "Reply-To", | ||
"value": "[email protected]" | ||
}, | ||
{ | ||
"name": "Content-Type", | ||
"value": "text/plain; charset=utf-8" | ||
}, | ||
{ | ||
"name": "Date", | ||
"value": "Thu, 26 Sep 2024 07:39:02 +0200 (CEST)" | ||
} | ||
], | ||
"body": { | ||
"size": 28, | ||
"data": "dGVzdA0KDQotTWFydCBhdCBGbG93Q3J5cHQNCg==" | ||
} | ||
}, | ||
"sizeEstimate": 3183, | ||
"historyId": "298166", | ||
"internalDate": "1727329142000" | ||
}, | ||
"attachments": {}, | ||
"raw": { | ||
"id": "1922cd70bf323ea6", | ||
"threadId": "1922cd70bf323ea6", | ||
"labelIds": ["CATEGORY_PERSONAL", "SPAM"], | ||
"snippet": "test -Mart at FlowCrypt", | ||
"sizeEstimate": 3183, | ||
"raw": "RGVsaXZlcmVkLVRvOiBpb2FuQGZsb3djcnlwdC5jb20NClJlY2VpdmVkOiBieSAyMDAyOmEwNTo2MzU5OjQ1OWE6YjA6MWJlOmI4N2E6NDZhNCB3aXRoIFNNVFAgaWQgbm8yNmNzcDE1MDk5MXJ3YjsNCiAgICAgICAgV2VkLCAyNSBTZXAgMjAyNCAyMjozOTowMyAtMDcwMCAoUERUKQ0KWC1Hb29nbGUtU210cC1Tb3VyY2U6IEFHSFQrSUhocFVnem42dE4ycnAyUDc0NkNKQ1JDZ1NXZXEyYndWdVFDNWFpcXFFSThOdGhhSTlER0JJb2V5V3VRTWFQeXVCOUV2WmoNClgtUmVjZWl2ZWQ6IGJ5IDIwMDI6YTE3OjkwYjozMTQ0OmIwOjJkODo3N2NjOjg1ZSB3aXRoIFNNVFAgaWQgOThlNjdlZDU5ZTFkM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zZXJpZCAzMykNCglpZCA0NzU5QzFGMDk7IFRodSwgMjYgU2VwIDIwMjQgMDc6Mzk6MDIgKzAyMDAgKENFU1QpDQpUbzogaW9hbkBmbG93Y3J5cHQuY29tDQpTdWJqZWN0OiBUZXN0IFNwb29mZWQgZW1haWwgYnkgTWFydA0KRnJvbTogIkFkbWluaXN0cmF0b3IiIDxoYWNrZXJAZ21haWwuY29tPg0KWC1Qcmlvcml0eTogMyAoTm9ybWFsKQ0KSW1wb3J0YW5jZTogTm9ybWFsDQpFcnJvcnMtVG86IGhhY2tlckBnbWFpbC5jb20NClJlcGx5LVRvOiBoYWNrZXJAZ21haWwuY29tDQpDb250ZW50LVR5cGU6IHRleHQvcGxhaW47IGNoYXJzZXQ9dXRmLTgNCk1lc3NhZ2UtSWQ6IDwyMDI0MDkyNjA1MzkwMi40NzU5QzFGMDlAZW1rZWkuY3o-DQpEYXRlOiBUaHUsIDI2IFNlcCAyMDI0IDA3OjM5OjAyICswMjAwIChDRVNUKQ0KDQp0ZXN0DQoNCi1NYXJ0IGF0IEZsb3dDcnlwdA0K", | ||
"historyId": "298166", | ||
"internalDate": "1727329142000" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters