From f96473c616952c81a1f632a5ae85832f43b0e09e Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Wed, 21 Oct 2020 16:59:23 +0200 Subject: [PATCH] disable encrpted chat button and update sdk to 4.4.3 --- .../Base.lproj/UIContactDetailsCell.xib | 18 +++++++++++++----- Classes/LinphoneUI/UIContactDetailsCell.h | 1 + Classes/LinphoneUI/UIContactDetailsCell.m | 2 +- Podfile | 2 +- linphone.xcodeproj/project.pbxproj | 8 ++++---- 5 files changed, 20 insertions(+), 11 deletions(-) diff --git a/Classes/LinphoneUI/Base.lproj/UIContactDetailsCell.xib b/Classes/LinphoneUI/Base.lproj/UIContactDetailsCell.xib index 07bd69788..3fd4cc6d0 100644 --- a/Classes/LinphoneUI/Base.lproj/UIContactDetailsCell.xib +++ b/Classes/LinphoneUI/Base.lproj/UIContactDetailsCell.xib @@ -1,9 +1,10 @@ - + - + + @@ -16,6 +17,7 @@ + @@ -34,7 +36,7 @@ - + @@ -53,7 +55,7 @@ - + @@ -138,7 +140,7 @@ - + @@ -158,5 +160,11 @@ + + + + + + diff --git a/Classes/LinphoneUI/UIContactDetailsCell.h b/Classes/LinphoneUI/UIContactDetailsCell.h index 0e002628f..a1fc40261 100644 --- a/Classes/LinphoneUI/UIContactDetailsCell.h +++ b/Classes/LinphoneUI/UIContactDetailsCell.h @@ -35,6 +35,7 @@ @property(weak, nonatomic) IBOutlet UIIconButton *deleteButton; @property(weak, nonatomic) IBOutlet UIIconButton *callButton; @property(weak, nonatomic) IBOutlet UIIconButton *chatButton; +@property (weak, nonatomic) IBOutlet UIIconButton *encryptedChatButton; @property (weak, nonatomic) IBOutlet UIImageView *linphoneImage; @property (weak, nonatomic) UIView *waitView; @property (strong, nonatomic) IBOutlet UIButton *inviteButton; diff --git a/Classes/LinphoneUI/UIContactDetailsCell.m b/Classes/LinphoneUI/UIContactDetailsCell.m index 4ebaee0ea..d3ce7071e 100644 --- a/Classes/LinphoneUI/UIContactDetailsCell.m +++ b/Classes/LinphoneUI/UIContactDetailsCell.m @@ -51,7 +51,7 @@ _addressLabel.text.UTF8String); } LinphoneAddress *addr = linphone_core_interpret_url(LC, normAddr); - _chatButton.enabled = _callButton.enabled = (addr != NULL); + _chatButton.enabled = _callButton.enabled = _encryptedChatButton.enabled = (addr != NULL); _chatButton.accessibilityLabel = [NSString stringWithFormat:NSLocalizedString(@"Chat with %@", nil), _addressLabel.text]; diff --git a/Podfile b/Podfile index 54d30cf5f..beb3366b5 100644 --- a/Podfile +++ b/Podfile @@ -5,7 +5,7 @@ source "https://github.com/CocoaPods/Specs.git" def all_pods if ENV['PODFILE_PATH'].nil? - pod 'linphone-sdk', '4.4.2' + pod 'linphone-sdk', '4.4.3' else pod 'linphone-sdk', :path => ENV['PODFILE_PATH'] # local sdk end diff --git a/linphone.xcodeproj/project.pbxproj b/linphone.xcodeproj/project.pbxproj index be19dbb60..fb5c964e5 100644 --- a/linphone.xcodeproj/project.pbxproj +++ b/linphone.xcodeproj/project.pbxproj @@ -4923,7 +4923,7 @@ "-DENABLE_QRCODE=TRUE", "-DENABLE_SMS_INVITE=TRUE", "$(inherited)", - "-DLINPHONE_SDK_VERSION=\\\"4.4.2\\\"", + "-DLINPHONE_SDK_VERSION=\\\"4.4.3\\\"", ); OTHER_SWIFT_FLAGS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone; @@ -5046,7 +5046,7 @@ "-DENABLE_QRCODE=TRUE", "-DENABLE_SMS_INVITE=TRUE", "$(inherited)", - "-DLINPHONE_SDK_VERSION=\\\"4.4.2\\\"", + "-DLINPHONE_SDK_VERSION=\\\"4.4.3\\\"", ); OTHER_SWIFT_FLAGS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone; @@ -5168,7 +5168,7 @@ "-DENABLE_QRCODE=TRUE", "-DENABLE_SMS_INVITE=TRUE", "$(inherited)", - "-DLINPHONE_SDK_VERSION=\\\"4.4.2\\\"", + "-DLINPHONE_SDK_VERSION=\\\"4.4.3\\\"", ); OTHER_SWIFT_FLAGS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone; @@ -5289,7 +5289,7 @@ "-DENABLE_QRCODE=TRUE", "-DENABLE_SMS_INVITE=TRUE", "$(inherited)", - "-DLINPHONE_SDK_VERSION=\\\"4.4.2\\\"", + "-DLINPHONE_SDK_VERSION=\\\"4.4.3\\\"", ); OTHER_SWIFT_FLAGS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone;