Skip to content

Commit b7dd397

Browse files
authored
Merge pull request #489 from jorgeblacio/release_1.1.21
Bug Fixes, composer height and Forward localization.
2 parents 5af4ee1 + 6009b24 commit b7dd397

File tree

9 files changed

+19
-7
lines changed

9 files changed

+19
-7
lines changed

NotificationExtension/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>XPC!</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.1.20</string>
20+
<string>$(MARKETING_VERSION)</string>
2121
<key>CFBundleVersion</key>
2222
<string>1</string>
2323
<key>NSExtension</key>

ShareExtension/ComposerUIView.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class ComposerUIView: UIView {
6262
weak var myAccount: Account!
6363
var checkedDomains: [String: Bool] = Utils.defaultDomains
6464
var accountOptionsInterface: AccountOptionsInterface?
65+
var composerEditorHeight: CGFloat = 0.0
6566

6667
var theme: Theme {
6768
return ThemeManager.shared.theme
@@ -230,7 +231,7 @@ extension ComposerUIView: RichEditorDelegate {
230231

231232
func richEditor(_ editor: RichEditorView, heightDidChange height: Int) {
232233
let cgheight = CGFloat(height)
233-
let diff = cgheight - self.editorHeightConstraint.constant
234+
let diff = cgheight - composerEditorHeight
234235
let offset = self.scrollView.contentOffset
235236

236237
if CGFloat(height + CONTACT_FIELDS_HEIGHT + TOOLBAR_MARGIN_HEIGHT) > self.view.frame.origin.y + self.view.frame.width {
@@ -247,7 +248,7 @@ extension ComposerUIView: RichEditorDelegate {
247248
guard height > COMPOSER_MIN_HEIGHT else {
248249
return
249250
}
250-
251+
composerEditorHeight = cgheight
251252
self.editorHeightConstraint.constant = cgheight
252253
}
253254
}

ShareExtension/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>XPC!</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.1.20</string>
20+
<string>$(MARKETING_VERSION)</string>
2121
<key>CFBundleVersion</key>
2222
<string>1</string>
2323
<key>NSExtension</key>

iOS-Email-Client.xcodeproj/project.pbxproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2768,6 +2768,7 @@
27682768
INFOPLIST_FILE = "iOS-Email-Client/Info.plist";
27692769
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
27702770
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
2771+
MARKETING_VERSION = 1.1.21;
27712772
OTHER_LDFLAGS = (
27722773
"-ObjC",
27732774
"$(inherited)",
@@ -2806,6 +2807,7 @@
28062807
INFOPLIST_FILE = "iOS-Email-Client/Info.plist";
28072808
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
28082809
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
2810+
MARKETING_VERSION = 1.1.21;
28092811
OTHER_LDFLAGS = (
28102812
"-ObjC",
28112813
"$(inherited)",
@@ -2950,6 +2952,7 @@
29502952
INFOPLIST_FILE = "iOS-Email-Client/Info.plist";
29512953
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
29522954
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
2955+
MARKETING_VERSION = 1.1.21;
29532956
OTHER_LDFLAGS = (
29542957
"-ObjC",
29552958
"$(inherited)",
@@ -3009,6 +3012,7 @@
30093012
INFOPLIST_FILE = ShareExtension/Info.plist;
30103013
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
30113014
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
3015+
MARKETING_VERSION = 1.1.21;
30123016
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
30133017
MTL_FAST_MATH = YES;
30143018
PRODUCT_BUNDLE_IDENTIFIER = com.criptext.mail.ShareExtension;
@@ -3038,6 +3042,7 @@
30383042
INFOPLIST_FILE = ShareExtension/Info.plist;
30393043
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
30403044
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
3045+
MARKETING_VERSION = 1.1.21;
30413046
MTL_FAST_MATH = YES;
30423047
PRODUCT_BUNDLE_IDENTIFIER = com.criptext.mail.ShareExtension;
30433048
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -3067,6 +3072,7 @@
30673072
INFOPLIST_FILE = ShareExtension/Info.plist;
30683073
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
30693074
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
3075+
MARKETING_VERSION = 1.1.21;
30703076
MTL_FAST_MATH = YES;
30713077
PRODUCT_BUNDLE_IDENTIFIER = com.criptext.mail.support.ShareExtension;
30723078
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -3097,6 +3103,7 @@
30973103
INFOPLIST_FILE = NotificationExtension/Info.plist;
30983104
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
30993105
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
3106+
MARKETING_VERSION = 1.1.21;
31003107
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
31013108
MTL_FAST_MATH = YES;
31023109
PRODUCT_BUNDLE_IDENTIFIER = com.criptext.mail.NotificationExtension;
@@ -3129,6 +3136,7 @@
31293136
INFOPLIST_FILE = NotificationExtension/Info.plist;
31303137
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
31313138
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
3139+
MARKETING_VERSION = 1.1.21;
31323140
MTL_FAST_MATH = YES;
31333141
PRODUCT_BUNDLE_IDENTIFIER = com.criptext.mail.NotificationExtension;
31343142
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -3161,6 +3169,7 @@
31613169
INFOPLIST_FILE = NotificationExtension/Info.plist;
31623170
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
31633171
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
3172+
MARKETING_VERSION = 1.1.21;
31643173
MTL_FAST_MATH = YES;
31653174
PRODUCT_BUNDLE_IDENTIFIER = com.criptext.mail.support.NotificationExtension;
31663175
PRODUCT_NAME = "$(TARGET_NAME)";

iOS-Email-Client/Controllers/ComposeViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ extension ComposeViewController: RichEditorDelegate {
11271127

11281128
func richEditor(_ editor: RichEditorView, heightDidChange height: Int) {
11291129
let cgheight = CGFloat(height)
1130-
let diff = cgheight - self.editorHeightConstraint.constant
1130+
let diff = cgheight - composerEditorHeight
11311131
let offset = self.scrollView.contentOffset
11321132

11331133
if CGFloat(height + CONTACT_FIELDS_HEIGHT + TOOLBAR_MARGIN_HEIGHT) > self.toolbarView.frame.origin.y {

iOS-Email-Client/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.1.20</string>
20+
<string>$(MARKETING_VERSION)</string>
2121
<key>CFBundleURLTypes</key>
2222
<array>
2323
<dict>

iOS-Email-Client/Interfaces/EmailMoreOptionsInterface.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class EmailMoreOptionsInterface: MoreOptionsViewInterface {
4343
case .replyAll:
4444
return String.localize("REPLY_ALL")
4545
case .forward:
46-
return String.localize("FORWARD")
46+
return String.localize("FORWARD_MAIL")
4747
case .delete:
4848
return String.localize("DELETE")
4949
case .mark:

iOS-Email-Client/en.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@
255255
"REJECT" = "Reject";
256256
"REPLY" = "Reply";
257257
"REPLY_ALL" = "Reply All";
258+
"FORWARD" = "Forward";
258259
"DELETE" = "Delete";
259260
"DELETE_PERMANENTLY" = "Delete Permanently";
260261
"PRIVACY_SECURITY" = "Privacy and Security";

iOS-Email-Client/es-419.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@
255255
"REJECT" = "Rechazar";
256256
"REPLY" = "Responder";
257257
"REPLY_ALL" = "Responder a todos";
258+
"FORWARD" = "Reenviar";
258259
"DELETE" = "Eliminar";
259260
"DELETE_PERMANENTLY" = "Eliminar Permanentemente";
260261
"PRIVACY_SECURITY" = "Seguridad y Privacidad";

0 commit comments

Comments
 (0)