mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Rename file
This commit is contained in:
parent
53d2b2e194
commit
ed783e66d4
|
@ -584,7 +584,7 @@
|
||||||
C35E8AA92485C85800ACB629 /* GeoLite2-Country-Blocks-IPv4.csv in Resources */ = {isa = PBXBuildFile; fileRef = C35E8AA62485C85600ACB629 /* GeoLite2-Country-Blocks-IPv4.csv */; };
|
C35E8AA92485C85800ACB629 /* GeoLite2-Country-Blocks-IPv4.csv in Resources */ = {isa = PBXBuildFile; fileRef = C35E8AA62485C85600ACB629 /* GeoLite2-Country-Blocks-IPv4.csv */; };
|
||||||
C35E8AAE2485E51D00ACB629 /* IP2Country.swift in Sources */ = {isa = PBXBuildFile; fileRef = C35E8AAD2485E51D00ACB629 /* IP2Country.swift */; };
|
C35E8AAE2485E51D00ACB629 /* IP2Country.swift in Sources */ = {isa = PBXBuildFile; fileRef = C35E8AAD2485E51D00ACB629 /* IP2Country.swift */; };
|
||||||
C3638C0524C7F0B500AF29BC /* LK002RemoveFriendRequests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C3638C0424C7F0B500AF29BC /* LK002RemoveFriendRequests.swift */; };
|
C3638C0524C7F0B500AF29BC /* LK002RemoveFriendRequests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C3638C0424C7F0B500AF29BC /* LK002RemoveFriendRequests.swift */; };
|
||||||
C3645350252449260045C478 /* VoiceMessageView2.swift in Sources */ = {isa = PBXBuildFile; fileRef = C364534F252449260045C478 /* VoiceMessageView2.swift */; };
|
C3645350252449260045C478 /* VoiceMessageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C364534F252449260045C478 /* VoiceMessageView.swift */; };
|
||||||
C364535C252467900045C478 /* AudioUtilities.swift in Sources */ = {isa = PBXBuildFile; fileRef = C364535B252467900045C478 /* AudioUtilities.swift */; };
|
C364535C252467900045C478 /* AudioUtilities.swift in Sources */ = {isa = PBXBuildFile; fileRef = C364535B252467900045C478 /* AudioUtilities.swift */; };
|
||||||
C369549D24D27A3500CEB4E3 /* MultiDeviceRemovalSheet.swift in Sources */ = {isa = PBXBuildFile; fileRef = C369549C24D27A3500CEB4E3 /* MultiDeviceRemovalSheet.swift */; };
|
C369549D24D27A3500CEB4E3 /* MultiDeviceRemovalSheet.swift in Sources */ = {isa = PBXBuildFile; fileRef = C369549C24D27A3500CEB4E3 /* MultiDeviceRemovalSheet.swift */; };
|
||||||
C36B8707243C50C60049991D /* SignalMessaging.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 453518921FC63DBF00210559 /* SignalMessaging.framework */; };
|
C36B8707243C50C60049991D /* SignalMessaging.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 453518921FC63DBF00210559 /* SignalMessaging.framework */; };
|
||||||
|
@ -1386,7 +1386,7 @@
|
||||||
C35E8AA62485C85600ACB629 /* GeoLite2-Country-Blocks-IPv4.csv */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "GeoLite2-Country-Blocks-IPv4.csv"; sourceTree = "<group>"; };
|
C35E8AA62485C85600ACB629 /* GeoLite2-Country-Blocks-IPv4.csv */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "GeoLite2-Country-Blocks-IPv4.csv"; sourceTree = "<group>"; };
|
||||||
C35E8AAD2485E51D00ACB629 /* IP2Country.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IP2Country.swift; sourceTree = "<group>"; };
|
C35E8AAD2485E51D00ACB629 /* IP2Country.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IP2Country.swift; sourceTree = "<group>"; };
|
||||||
C3638C0424C7F0B500AF29BC /* LK002RemoveFriendRequests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LK002RemoveFriendRequests.swift; sourceTree = "<group>"; };
|
C3638C0424C7F0B500AF29BC /* LK002RemoveFriendRequests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LK002RemoveFriendRequests.swift; sourceTree = "<group>"; };
|
||||||
C364534F252449260045C478 /* VoiceMessageView2.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoiceMessageView2.swift; sourceTree = "<group>"; };
|
C364534F252449260045C478 /* VoiceMessageView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoiceMessageView.swift; sourceTree = "<group>"; };
|
||||||
C364535B252467900045C478 /* AudioUtilities.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AudioUtilities.swift; sourceTree = "<group>"; };
|
C364535B252467900045C478 /* AudioUtilities.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AudioUtilities.swift; sourceTree = "<group>"; };
|
||||||
C369549C24D27A3500CEB4E3 /* MultiDeviceRemovalSheet.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MultiDeviceRemovalSheet.swift; sourceTree = "<group>"; };
|
C369549C24D27A3500CEB4E3 /* MultiDeviceRemovalSheet.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MultiDeviceRemovalSheet.swift; sourceTree = "<group>"; };
|
||||||
C396469C2509D3ED00B0B9F5 /* pl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pl; path = translations/pl.lproj/Localizable.strings; sourceTree = "<group>"; };
|
C396469C2509D3ED00B0B9F5 /* pl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pl; path = translations/pl.lproj/Localizable.strings; sourceTree = "<group>"; };
|
||||||
|
@ -2694,7 +2694,7 @@
|
||||||
B8BB82B423947F2D00BA5194 /* TextField.swift */,
|
B8BB82B423947F2D00BA5194 /* TextField.swift */,
|
||||||
C3C3CF8824D8EED300E1CCE7 /* TextView.swift */,
|
C3C3CF8824D8EED300E1CCE7 /* TextView.swift */,
|
||||||
C31D1DDC25217014005D4DA8 /* UserCell.swift */,
|
C31D1DDC25217014005D4DA8 /* UserCell.swift */,
|
||||||
C364534F252449260045C478 /* VoiceMessageView2.swift */,
|
C364534F252449260045C478 /* VoiceMessageView.swift */,
|
||||||
);
|
);
|
||||||
path = Components;
|
path = Components;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
@ -4031,7 +4031,7 @@
|
||||||
3427C64320F500E000EEC730 /* OWSMessageTimerView.m in Sources */,
|
3427C64320F500E000EEC730 /* OWSMessageTimerView.m in Sources */,
|
||||||
B90418E6183E9DD40038554A /* DateUtil.m in Sources */,
|
B90418E6183E9DD40038554A /* DateUtil.m in Sources */,
|
||||||
340FC8BD204DAC8D007AEB0F /* ShowGroupMembersViewController.m in Sources */,
|
340FC8BD204DAC8D007AEB0F /* ShowGroupMembersViewController.m in Sources */,
|
||||||
C3645350252449260045C478 /* VoiceMessageView2.swift in Sources */,
|
C3645350252449260045C478 /* VoiceMessageView.swift in Sources */,
|
||||||
3496956F21A301A100DCFE74 /* OWSBackupLazyRestore.swift in Sources */,
|
3496956F21A301A100DCFE74 /* OWSBackupLazyRestore.swift in Sources */,
|
||||||
459311FC1D75C948008DD4F0 /* OWSDeviceTableViewCell.m in Sources */,
|
459311FC1D75C948008DD4F0 /* OWSDeviceTableViewCell.m in Sources */,
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import Accelerate
|
import Accelerate
|
||||||
|
|
||||||
@objc(LKVoiceMessageView2)
|
@objc(LKVoiceMessageView)
|
||||||
final class VoiceMessageView2 : UIView {
|
final class VoiceMessageView : UIView {
|
||||||
private let voiceMessage: TSAttachment
|
private let voiceMessage: TSAttachment
|
||||||
private let isOutgoing: Bool
|
private let isOutgoing: Bool
|
||||||
private var isAnimating = false
|
private var isAnimating = false
|
||||||
|
@ -91,7 +91,7 @@ final class VoiceMessageView2 : UIView {
|
||||||
|
|
||||||
private func setUpViewHierarchy() {
|
private func setUpViewHierarchy() {
|
||||||
set(.width, to: 200)
|
set(.width, to: 200)
|
||||||
set(.height, to: VoiceMessageView2.contentHeight)
|
set(.height, to: VoiceMessageView.contentHeight)
|
||||||
addSubview(loader)
|
addSubview(loader)
|
||||||
loader.pin(to: self)
|
loader.pin(to: self)
|
||||||
layer.insertSublayer(backgroundShapeLayer, at: 0)
|
layer.insertSublayer(backgroundShapeLayer, at: 0)
|
||||||
|
@ -109,9 +109,9 @@ final class VoiceMessageView2 : UIView {
|
||||||
}
|
}
|
||||||
|
|
||||||
private func animateLoader() {
|
private func animateLoader() {
|
||||||
loader.frame = CGRect(x: 0, y: 0, width: 0, height: VoiceMessageView2.contentHeight)
|
loader.frame = CGRect(x: 0, y: 0, width: 0, height: VoiceMessageView.contentHeight)
|
||||||
UIView.animate(withDuration: 2) { [weak self] in
|
UIView.animate(withDuration: 2) { [weak self] in
|
||||||
self?.loader.frame = CGRect(x: 0, y: 0, width: 200, height: VoiceMessageView2.contentHeight)
|
self?.loader.frame = CGRect(x: 0, y: 0, width: 200, height: VoiceMessageView.contentHeight)
|
||||||
} completion: { [weak self] _ in
|
} completion: { [weak self] _ in
|
||||||
guard let self = self else { return }
|
guard let self = self else { return }
|
||||||
if self.isAnimating { self.animateLoader() }
|
if self.isAnimating { self.animateLoader() }
|
|
@ -839,7 +839,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||||
OWSAssertDebug(attachment);
|
OWSAssertDebug(attachment);
|
||||||
OWSAssertDebug([attachment isAudio]);
|
OWSAssertDebug([attachment isAudio]);
|
||||||
|
|
||||||
LKVoiceMessageView2 *voiceMessageView = [[LKVoiceMessageView2 alloc] initWithVoiceMessage:attachment isOutgoing:self.isOutgoing];
|
LKVoiceMessageView *voiceMessageView = [[LKVoiceMessageView alloc] initWithVoiceMessage:attachment isOutgoing:self.isOutgoing];
|
||||||
[voiceMessageView setDuration:(int)self.viewItem.audioDurationSeconds];
|
[voiceMessageView setDuration:(int)self.viewItem.audioDurationSeconds];
|
||||||
[voiceMessageView updateForProgress:self.viewItem.audioProgressSeconds / self.viewItem.audioDurationSeconds];
|
[voiceMessageView updateForProgress:self.viewItem.audioProgressSeconds / self.viewItem.audioDurationSeconds];
|
||||||
|
|
||||||
|
@ -1065,7 +1065,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
case OWSMessageCellType_Audio:
|
case OWSMessageCellType_Audio:
|
||||||
result = CGSizeMake(maxMessageWidth, LKVoiceMessageView2.contentHeight);
|
result = CGSizeMake(maxMessageWidth, LKVoiceMessageView.contentHeight);
|
||||||
break;
|
break;
|
||||||
case OWSMessageCellType_GenericAttachment: {
|
case OWSMessageCellType_GenericAttachment: {
|
||||||
TSAttachment *attachment = (self.viewItem.attachmentStream ?: self.viewItem.attachmentPointer);
|
TSAttachment *attachment = (self.viewItem.attachmentStream ?: self.viewItem.attachmentPointer);
|
||||||
|
|
|
@ -24,7 +24,7 @@ NSString *NSStringForOWSMessageCellType(OWSMessageCellType cellType);
|
||||||
@class ContactShareViewModel;
|
@class ContactShareViewModel;
|
||||||
@class ConversationViewCell;
|
@class ConversationViewCell;
|
||||||
@class DisplayableText;
|
@class DisplayableText;
|
||||||
@class LKVoiceMessageView2;
|
@class LKVoiceMessageView;
|
||||||
@class OWSLinkPreview;
|
@class OWSLinkPreview;
|
||||||
@class OWSQuotedReplyModel;
|
@class OWSQuotedReplyModel;
|
||||||
@class OWSUnreadIndicator;
|
@class OWSUnreadIndicator;
|
||||||
|
@ -99,7 +99,7 @@ NSString *NSStringForOWSMessageCellType(OWSMessageCellType cellType);
|
||||||
|
|
||||||
#pragma mark - Audio Playback
|
#pragma mark - Audio Playback
|
||||||
|
|
||||||
@property (nonatomic, weak) LKVoiceMessageView2 *lastAudioMessageView;
|
@property (nonatomic, weak) LKVoiceMessageView *lastAudioMessageView;
|
||||||
|
|
||||||
@property (nonatomic, readonly) CGFloat audioDurationSeconds;
|
@property (nonatomic, readonly) CGFloat audioDurationSeconds;
|
||||||
@property (nonatomic, readonly) CGFloat audioProgressSeconds;
|
@property (nonatomic, readonly) CGFloat audioProgressSeconds;
|
||||||
|
|
Loading…
Reference in a new issue