Skip to content

Commit

Permalink
Release 1.8.4 (327)
Browse files Browse the repository at this point in the history
  • Loading branch information
denis15yo committed Sep 30, 2024
1 parent 5a45879 commit 92b5936
Show file tree
Hide file tree
Showing 260 changed files with 18,208 additions and 2,128 deletions.
43 changes: 17 additions & 26 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
{
"pins" : [
{
"identity" : "anycodable",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Flight-School/AnyCodable",
"state" : {
"revision" : "862808b2070cd908cb04f9aafe7de83d35f81b05",
"version" : "0.6.7"
}
},
{
"identity" : "bigdecimal",
"kind" : "remoteSourceControl",
Expand All @@ -33,7 +24,7 @@
"location" : "https://github.com/denis15yo/core-swift.git",
"state" : {
"branch" : "release/1.0.0",
"revision" : "78f8920a260775686dd0e04f5045677447bb7a6c"
"revision" : "6a36c9b16f84ed28ffbc27994ece3d974da35fdb"
}
},
{
Expand Down Expand Up @@ -123,7 +114,7 @@
"location" : "[email protected]:mobyrix/nicegram-assistant-ios.git",
"state" : {
"branch" : "master",
"revision" : "576a005d81774db47ff572bcecb257d4b31d2da5"
"revision" : "a2192f14cfe92c2363cd12dee79abd53f6ce12d4"
}
},
{
Expand All @@ -132,7 +123,7 @@
"location" : "[email protected]:mobyrix/nicegram-wallet-ios.git",
"state" : {
"branch" : "master",
"revision" : "d2655c574276adaf88ffd8d618b766a8d308c027"
"revision" : "b39e6dca69f39ebeb13f44e9b12da32397b5f6fa"
}
},
{
Expand Down Expand Up @@ -176,17 +167,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Web3Auth/session-manager-swift.git",
"state" : {
"revision" : "20cc7bff065d7fe53164d17e7714a3f17d4cea2a",
"version" : "4.0.2"
"revision" : "67d5f7db655d02778861057fb280ecf47c923b09",
"version" : "5.0.0"
}
},
{
"identity" : "single-factor-auth-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Web3Auth/single-factor-auth-swift.git",
"state" : {
"revision" : "4caaaa858950b25ea420dbba79de6b4c58801db4",
"version" : "6.0.0"
"revision" : "44e222ea3fcec4faf17c5813f832cfc1d2d06d4b",
"version" : "8.0.0"
}
},
{
Expand Down Expand Up @@ -230,8 +221,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-collections",
"state" : {
"revision" : "9bf03ff58ce34478e66aaee630e491823326fd06",
"version" : "1.1.3"
"revision" : "671108c96644956dddcd89dd59c203dcdb36cec7",
"version" : "1.1.4"
}
},
{
Expand Down Expand Up @@ -338,8 +329,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/torusresearch/torus-utils-swift.git",
"state" : {
"revision" : "608c28404c506983bfec7bbd957632fc0544db8c",
"version" : "8.1.2"
"revision" : "eda55b8537a600e657d19d4c452c0a36f217883c",
"version" : "9.0.1"
}
},
{
Expand All @@ -356,26 +347,26 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/trustwallet/wallet-core.git",
"state" : {
"revision" : "db50956fe49d7feb5aca3a4406f49b722e5cfab5",
"version" : "4.1.7"
"revision" : "4af0ee33be559941fbda7d3519a9dd032006ab52",
"version" : "4.1.9"
}
},
{
"identity" : "walletconnectswiftv2",
"kind" : "remoteSourceControl",
"location" : "https://github.com/WalletConnect/WalletConnectSwiftV2.git",
"state" : {
"revision" : "2d0c59f682f1c1395b3c2f6e27eb020087952df3",
"version" : "1.20.2"
"revision" : "3327c0a8c014b155534b91520554d812e2960077",
"version" : "1.20.3"
}
},
{
"identity" : "xcodeedit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/tomlokhorst/XcodeEdit",
"state" : {
"revision" : "b6b67389a0f1a6fdd9c6457a8ab5b02eaab13c5c",
"version" : "2.9.2"
"revision" : "017d23f71fa8d025989610db26d548c44cacefae",
"version" : "2.10.2"
}
}
],
Expand Down
125 changes: 125 additions & 0 deletions Telegram/Telegram-iOS/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -5633,6 +5633,8 @@ Sorry for the inconvenience.";

"Settings.RemoveConfirmation" = "Remove";

"Conversation.ContextMenuOpenInfo" = "Open Info";

"Conversation.ContextMenuOpenProfile" = "Open Profile";
"Conversation.ContextMenuSendMessage" = "Send Message";
"Conversation.ContextMenuMention" = "Mention";
Expand Down Expand Up @@ -10290,6 +10292,9 @@ Sorry for the inconvenience.";
"BoostGift.GiveawayCreated.Text" = "Check your channel's [Statistics]() to see how this giveaway boosted your channel.";
"BoostGift.PremiumGifted.Title" = "Premium Subscriptions Gifted";
"BoostGift.PremiumGifted.Text" = "Check your channel's [Statistics]() to see how gifts boosted your channel.";
"BoostGift.StarsGiveawayCreated.Title" = "Stars Giveaway Created";
"BoostGift.StarsGiveawayCreated.Text" = "Check your channel's [Statistics]() to see how this giveaway boosted your channel.";
"BoostGift.Group.StarsGiveawayCreated.Text" = "Check your group's [Boosts]() to see how this giveaway boosted your group.";

"BoostGift.Subscribers.Title" = "Gift Premium";
"BoostGift.Subscribers.Subtitle" = "select up to %@ subscribers";
Expand Down Expand Up @@ -10505,11 +10510,15 @@ Sorry for the inconvenience.";

"Notification.GiveawayResultsNoWinners_1" = "Due to the giveaway terms, no winners could be selected by Telegram, a gift link was forwarded to channel administrators.";
"Notification.GiveawayResultsNoWinners_any" = "Due to the giveaway terms, no winners could be selected by Telegram, all **%@** gift links were forwarded to channel administrators.";
"Notification.GiveawayResultsNoWinners.Group_1" = "Due to the giveaway terms, no winners could be selected by Telegram, a gift link was forwarded to group administrators.";
"Notification.GiveawayResultsNoWinners.Group_any" = "Due to the giveaway terms, no winners could be selected by Telegram, all **%@** gift links were forwarded to group administrators.";

"Notification.GiveawayResultsMixedWinners_1" = "**%@** winner of the giveaway was randomly selected by Telegram and received their gift link in a private message.";
"Notification.GiveawayResultsMixedWinners_any" = "**%@** winners of the giveaway were randomly selected by Telegram and received their gift links in private messages.";
"Notification.GiveawayResultsMixedUnclaimed_1" = "**%@** undistributed gift link was forwarded to channel administrators";
"Notification.GiveawayResultsMixedUnclaimed_any" = "**%@** undistributed gift links were forwarded to channel administrators";
"Notification.GiveawayResultsMixedUnclaimed.Group_1" = "**%@** undistributed gift link was forwarded to group administrators";
"Notification.GiveawayResultsMixedUnclaimed.Group_any" = "**%@** undistributed gift links were forwarded to group administrators";

"Chat.Giveaway.DeleteConfirmation.Title" = "Do you want to delete the Giveaway Announcement?";
"Chat.Giveaway.DeleteConfirmation.Text" = "Deleting this message won't cancel the giveaway - the winners will still be selected on **%@**.\n\nOnce deleted, the Giveaway Announcement cannot be recovered.";
Expand Down Expand Up @@ -12264,6 +12273,7 @@ Sorry for the inconvenience.";
"Stars.Intro.Incoming" = "Incoming";
"Stars.Intro.Outgoing" = "Outgoing";

"Stars.Intro.Transaction.GiveawayPrize" = "Giveaway Prize";
"Stars.Intro.Transaction.MediaPurchase" = "Media Purchase";
"Stars.Intro.Transaction.AppleTopUp.Title" = "Stars Top-Up";
"Stars.Intro.Transaction.AppleTopUp.Subtitle" = "via App Store";
Expand Down Expand Up @@ -12811,6 +12821,121 @@ Sorry for the inconvenience.";

"Chat.ToastStarsSent.Title_1" = "Star sent!";
"Chat.ToastStarsSent.Title_any" = "Stars sent!";

"Chat.ToastStarsSent.AnonymousTitle_1" = "Star sent anonymously!";
"Chat.ToastStarsSent.AnonymousTitle_any" = "Stars sent anonymously!";

"Chat.ToastStarsSent.Text" = "You have reacted with %1$@ %2$@.";
"Chat.ToastStarsSent.TextStarAmount_1" = "star";
"Chat.ToastStarsSent.TextStarAmount_any" = "stars";

"Stars.Purchase.StarsReactionsNeededInfo" = "Buy Stars to send paid reactions **%@** and other channels.";
"Chat.ToastStarsReactionsDisabled" = "Star Reactions were disabled in %@";

"ChatContextMenu.SingleReactionEmojiSet" = "This reaction is from #[%@]() emoji pack.";

"Channel.AdminLog.MessageParticipantSubscriptionExtended" = "%@ extended their subscription";

"Notification.StarsPrize" = "You received a gift";

"Notification.GiveawayStartedStars" = "%1$@ just started a giveaway of %2$@ Telegram Stars for its followers.";
"Notification.GiveawayStartedStarsGroup" = "%1$@ just started a giveaway of %2$@ Telegram Stars for its members.";

"Notification.StarsGiveawayStarted" = "%1$@ just started a giveaway of %2$@ for its followers.";
"Notification.StarsGiveawayStartedGroup" = "%1$@ just started a giveaway of %2$@ for its members.";
"Notification.StarsGiveawayStarted.Stars_1" = "%@ Telegram Star";
"Notification.StarsGiveawayStarted.Stars_any" = "%@ Telegram Stars";

"Chat.Giveaway.Message.Stars.PrizeText" = "%1$@ will be distributed %2$@.";
"Chat.Giveaway.Message.Stars.Stars_1" = "**%@** Stars";
"Chat.Giveaway.Message.Stars.Stars_any" = "**%@** Stars";
"Chat.Giveaway.Message.Stars.Winners_1" = "to **%@** winner";
"Chat.Giveaway.Message.Stars.Winners_any" = "among **%@** winners";

"Chat.Giveaway.Info.Stars.Stars_1" = "**%@ Star**";
"Chat.Giveaway.Info.Stars.Stars_any" = "**%@ Stars**";
"Chat.Giveaway.Info.Stars.OngoingIntro" = "The giveaway is sponsored by the admins of **%1$@**, who acquired %2$@ for its followers.";
"Chat.Giveaway.Info.Stars.EndedIntro" = "The giveaway was sponsored by the admins of **%1$@**, who acquired %2$@ for its followers.";
"Chat.Giveaway.Info.Stars.Group.OngoingIntro" = "The giveaway is sponsored by the admins of **%1$@**, who acquired %2$@ for its members.";
"Chat.Giveaway.Info.Stars.Group.EndedIntro" = "The giveaway was sponsored by the admins of **%1$@**, who acquired %2$@ for its members.";

"Stars.Transaction.Giveaway.Title" = "Received Prize";
"Stars.Transaction.Giveaway.Reason" = "Reason";
"Stars.Transaction.Giveaway.Giveaway" = "Giveaway";
"Stars.Transaction.Giveaway.Prize" = "Prize";
"Stars.Transaction.Giveaway.Stars_1" = "%@ Star";
"Stars.Transaction.Giveaway.Stars_any" = "%@ Stars";

"Stats.RevenueInTon" = "Revenue in TON";
"Stats.RevenueInStars" = "Revenue in Stars";
"Stats.RevenueInUsd" = "Revenue in USD";

"BoostGift.NewDescriptionGroup" = "Get more boosts and members for\nyour group by giving away prizes.";
"BoostGift.NewDescription" = "Get more boosts and subscribers for\nyour channel by giving away prizes.";
"BoostGift.Prize" = "PRIZE";
"BoostGift.Prize.Premium" = "Telegram Premium";
"BoostGift.Prize.Stars" = "Telegram Stars";
"BoostGift.Stars.Title" = "STARS TO DISTRIBUTE";
"BoostGift.Stars.Boosts_1" = "%@ BOOST";
"BoostGift.Stars.Boosts_any" = "%@ BOOSTS";
"BoostGift.Stars.Stars_1" = "%@ Star";
"BoostGift.Stars.Stars_any" = "%@ Stars";
"BoostGift.Stars.PerUser" = "%@ per user";
"BoostGift.Stars.ShowMoreOptions" = "Show More Options";
"BoostGift.Stars.Info" = "Choose how many stars to give away and how many boosts to receive for 1 year.";
"BoostGift.AdditionalPrizesInfoStarsOff" = "Turn this on if you want to give the winners your own prizes in addition to Stars.";

"BoostGift.AdditionalPrizesInfoStars_1" = "**%@** Star";
"BoostGift.AdditionalPrizesInfoStars_any" = "**%@** Stars";
"BoostGift.AdditionalPrizesInfoStarsOn" = "All prizes: %1$@%2$@.";
"BoostGift.AdditionalPrizesInfoStarsAndOther" = " and **%1$@** %2$@";

"BoostGift.Stars.Winners" = "NUMBER OF WINNERS";
"BoostGift.Stars.WinnersInfo" = "Choose how many winners you want to distribute stars among.";

"BoostGift.Group.StarsDateInfo" = "Choose when %@ of your group will be randomly selected to receive Stars.";
"BoostGift.StarsDateInfo" = "Choose when %@ of your channel will be randomly selected to receive Stars.";

"BoostGift.PrepaidGiveawayStarsCount_1" = "%@ Telegram Premium";
"BoostGift.PrepaidGiveawayStarsCount_any" = "%@ Telegram Premium";
"BoostGift.PrepaidGiveawayStarsMonths" = "%@-month subscriptions";

"WebBrowser.ShowInstantView" = "Show Instant View";
"WebBrowser.HideInstantView" = "Hide Instant View";

"Stats.Boosts.Stars_1" = "%@ Star";
"Stats.Boosts.Stars_any" = "%@ Stars";
"Stats.Boosts.StarsWinners_1" = "for %@ winner";
"Stats.Boosts.StarsWinners_any" = "among %@ winners";

"BoostGift.PrepaidGiveaway.StarsCount_1" = "%@ Star";
"BoostGift.PrepaidGiveaway.StarsCount_any" = "%@ Stars";
"BoostGift.PrepaidGiveaway.StarsWinners_1" = "for %@ winner";
"BoostGift.PrepaidGiveaway.StarsWinners_any" = "among %@ winners";

"Stars.Transaction.Giveaway.Boost.Stars_1" = "%@ Star";
"Stars.Transaction.Giveaway.Boost.Stars_any" = "%@ Stars";
"Stars.Transaction.Giveaway.Boost.Boosts_1" = "%@ Boost";
"Stars.Transaction.Giveaway.Boost.Boosts_any" = "%@ Boosts";
"Stars.Transaction.Giveaway.Boost.Members_1" = "%@ Member";
"Stars.Transaction.Giveaway.Boost.Members_any" = "%@ Members";
"Stars.Transaction.Giveaway.Boost.Subscriber_1" = "%@ Subscriber";
"Stars.Transaction.Giveaway.Boost.Subscriber_any" = "%@ Subscribers";

"Conversation.ContextMenuCopyEmail" = "Copy Email";

"Chat.Giveaway.Message.WinnersInfo.Stars_1" = "**%@ Star**";
"Chat.Giveaway.Message.WinnersInfo.Stars_any" = "**%@ Stars**";
"Chat.Giveaway.Message.WinnersInfo.Stars.One" = "The winner received %@.";
"Chat.Giveaway.Message.WinnersInfo.Stars.Many" = "All winners received a total of %@.";

"Premium.BoostByGiveawayDescription" = "Get more boosts and subscribers for your channel by giving away prizes. [Get boosts >]()";
"Premium.Group.BoostByGiveawayDescription" = "Get more boosts and members for your group by giving away prizes. [Get boosts >]()";

"Notification.StarsGiveawayResultsNoWinners" = "Due to the giveaway terms, no winners could be selected by Telegram, all stars were credited to channel administrators.";
"Notification.StarsGiveawayResultsNoWinners.Group" = "Due to the giveaway terms, no winners could be selected by Telegram, all stars were credited to group administrators.";

"Notification.StarsGiveaway.Title" = "Congratulations!";
"Notification.StarsGiveaway.Subtitle" = "You won a prize in a giveaway organized by **%1$@**.\n\nYour prize is **%2$@**.";
"Notification.StarsGiveaway.Subtitle.Stars_1" = "%@ Star";
"Notification.StarsGiveaway.Subtitle.Stars_any" = "%@ Stars";
9 changes: 5 additions & 4 deletions build-system/Make/BuildConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,14 @@ def load_codesigning_data_from_git(working_dir, repo_url, temp_key_path, branch,

encrypted_working_dir = working_dir + '/encrypted'
if os.path.exists(encrypted_working_dir):
original_working_dir = os.getcwd()
os.chdir(encrypted_working_dir)
if always_fetch:
original_working_dir = os.getcwd()
os.chdir(encrypted_working_dir)
check_run_system('GIT_SSH_COMMAND="{ssh_command}" git fetch'.format(ssh_command=ssh_command))
check_run_system('git checkout "{branch}"'.format(branch=branch))
check_run_system('git checkout "{branch}"'.format(branch=branch))
if always_fetch:
check_run_system('GIT_SSH_COMMAND="{ssh_command}" git pull'.format(ssh_command=ssh_command))
os.chdir(original_working_dir)
os.chdir(original_working_dir)
else:
os.makedirs(encrypted_working_dir, exist_ok=True)
original_working_dir = os.getcwd()
Expand Down
1 change: 1 addition & 0 deletions submodules/AccountContext/Sources/AccountContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,7 @@ public protocol SharedAccountContext: AnyObject {
func makeStarsAmountScreen(context: AccountContext, initialValue: Int64?, completion: @escaping (Int64) -> Void) -> ViewController
func makeStarsWithdrawalScreen(context: AccountContext, stats: StarsRevenueStats, completion: @escaping (Int64) -> Void) -> ViewController
func makeStarsGiftScreen(context: AccountContext, message: EngineMessage) -> ViewController
func makeStarsGiveawayBoostScreen(context: AccountContext, peerId: EnginePeer.Id, boost: ChannelBoostersContext.State.Boost) -> ViewController

func makeMiniAppListScreenInitialData(context: AccountContext) -> Signal<MiniAppListScreenInitialData, NoError>
func makeMiniAppListScreen(context: AccountContext, initialData: MiniAppListScreenInitialData) -> ViewController
Expand Down
24 changes: 22 additions & 2 deletions submodules/AccountContext/Sources/AttachmentMainButtonState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ public struct AttachmentMainButtonState {
public enum Background {
case color(UIColor)
case premium

public var colorValue: UIColor? {
if case let .color(color) = self {
return color
}
return nil
}
}

public enum Progress: Equatable {
Expand All @@ -18,13 +25,22 @@ public struct AttachmentMainButtonState {
case bold
}

public enum Position: String, Equatable {
case top
case bottom
case left
case right
}

public let text: String?
public let font: Font
public let background: Background
public let textColor: UIColor
public let isVisible: Bool
public let progress: Progress
public let isEnabled: Bool
public let hasShimmer: Bool
public let position: Position?

public init(
text: String?,
Expand All @@ -33,7 +49,9 @@ public struct AttachmentMainButtonState {
textColor: UIColor,
isVisible: Bool,
progress: Progress,
isEnabled: Bool
isEnabled: Bool,
hasShimmer: Bool,
position: Position? = nil
) {
self.text = text
self.font = font
Expand All @@ -42,9 +60,11 @@ public struct AttachmentMainButtonState {
self.isVisible = isVisible
self.progress = progress
self.isEnabled = isEnabled
self.hasShimmer = hasShimmer
self.position = position
}

public static var initial: AttachmentMainButtonState {
return AttachmentMainButtonState(text: nil, font: .bold, background: .color(.clear), textColor: .clear, isVisible: false, progress: .none, isEnabled: false)
return AttachmentMainButtonState(text: nil, font: .bold, background: .color(.clear), textColor: .clear, isVisible: false, progress: .none, isEnabled: false, hasShimmer: false)
}
}
3 changes: 2 additions & 1 deletion submodules/AccountContext/Sources/ChatController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,8 @@ public protocol ChatController: ViewController {
var canReadHistory: ValuePromise<Bool> { get }
var parentController: ViewController? { get set }
var customNavigationController: NavigationController? { get set }


var dismissPreviewing: (() -> Void)? { get set }
var purposefulAction: (() -> Void)? { get set }

var stateUpdated: ((ContainedViewLayoutTransition) -> Void)? { get set }
Expand Down
1 change: 1 addition & 0 deletions submodules/AccountContext/Sources/Premium.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public enum StarsPurchasePurpose: Equatable {
case generic
case topUp(requiredStars: Int64, purpose: String?)
case transfer(peerId: EnginePeer.Id, requiredStars: Int64)
case reactions(peerId: EnginePeer.Id, requiredStars: Int64)
case subscription(peerId: EnginePeer.Id, requiredStars: Int64, renew: Bool)
case gift(peerId: EnginePeer.Id)
case unlockMedia(requiredStars: Int64)
Expand Down
Loading

0 comments on commit 92b5936

Please sign in to comment.