Skip to content

Commit

Permalink
Release 1.5.9 (234)
Browse files Browse the repository at this point in the history
  • Loading branch information
denis15yo committed Apr 17, 2024
1 parent 24db734 commit f0924f9
Show file tree
Hide file tree
Showing 3,364 changed files with 600,598 additions and 1,419,880 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions Nicegram/NGStats/Sources/StickersSharing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ extension StickersDataProviderImpl: StickersDataProvider {
channelEmojiStatus: flags.contains(.isAvailableAsChannelStatus),
official: flags.contains(.isOfficial),
masks: flags.contains(.isMasks),
animated: flags.contains(.isAnimated),
videos: flags.contains(.isVideo),
animated: false,
videos: false,
emojis: flags.contains(.isEmoji),
id: pack.id.id,
title: pack.title,
Expand Down
8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"location" : "https://github.com/denis15yo/GRDB.swift.git",
"state" : {
"branch" : "master",
"revision" : "58d3673030f8a640d7278f45bf2dc21b078ecae8"
"revision" : "afc958017ee4feefd3c61c8e2cddf81d079d2e39"
}
},
{
Expand All @@ -51,7 +51,7 @@
"location" : "git@bitbucket.org:mobyrix/nicegram-assistant-ios.git",
"state" : {
"branch" : "develop",
"revision" : "82fdd662ad67b20b2d93408f9dc853c3f8a1fb1e"
"revision" : "667bceccb7102dff96ba018b22c5fa1a6d30c9c6"
}
},
{
Expand All @@ -68,8 +68,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/SDWebImage/SDWebImage.git",
"state" : {
"revision" : "73b9397cfbd902f606572964055464903b1d84c6",
"version" : "5.19.0"
"revision" : "f6afa0132961d593f07970d84e2d8b588c29ea04",
"version" : "5.19.1"
}
},
{
Expand Down
30 changes: 7 additions & 23 deletions Telegram/NotificationService/Sources/NotificationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,8 @@ private final class NotificationServiceHandler {
let _ = try? FileManager.default.createDirectory(atPath: logsPath, withIntermediateDirectories: true, attributes: nil)

setupSharedLogger(rootPath: logsPath, path: logsPath)

Logger.shared.log("NotificationService \(episode)", "Started handling notification")

initializeAccountManagement()

Expand Down Expand Up @@ -1159,32 +1161,14 @@ private final class NotificationServiceHandler {
}

let _ = messageId

/*if (peerId != 0 && messageId != 0 && parsedAttachment != nil && attachmentData != nil) {
userInfo[@"peerId"] = @(peerId);
userInfo[@"messageId.namespace"] = @(0);
userInfo[@"messageId.id"] = @(messageId);
userInfo[@"media"] = [attachmentData base64EncodedStringWithOptions:0];
if (isExpandableMedia) {
if ([categoryString isEqualToString:@"r"]) {
_bestAttemptContent.categoryIdentifier = @"withReplyMedia";
} else if ([categoryString isEqualToString:@"m"]) {
_bestAttemptContent.categoryIdentifier = @"withMuteMedia";
}
}
}*/
}

/*if (accountInfos.accounts.count > 1) {
if (_bestAttemptContent.title.length != 0 && account.peerName.length != 0) {
_bestAttemptContent.title = [NSString stringWithFormat:@"%@ → %@", _bestAttemptContent.title, account.peerName];
}
}*/

if let storyId {
content.category = "st"
if content.category == "t" {
content.category = "str"
} else {
content.category = "st"
}
action = .pollStories(peerId: peerId, content: content, storyId: storyId)
} else {
action = .poll(peerId: peerId, content: content, messageId: messageIdValue)
Expand Down
462 changes: 459 additions & 3 deletions Telegram/Telegram-iOS/en.lproj/Localizable.strings

Large diffs are not rendered by default.

71 changes: 58 additions & 13 deletions Telegram/WidgetKitWidget/TodayViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -737,9 +737,22 @@ struct WidgetView: View {
chatUpdateView(size: geometry.size)
})
})
.background(Rectangle().foregroundColor(getBackgroundColor()))
.padding(0.0)
.unredacted()
.widgetBackground(Rectangle().foregroundColor(getBackgroundColor()))
}
}

@available(iOSApplicationExtension 14.0, iOS 14.0, *)
extension View {
func widgetBackground(_ backgroundView: some View) -> some View {
if #available(iOSApplicationExtension 17.0, iOS 17.0, *) {
return containerBackground(for: .widget) {
backgroundView
}
} else {
return background(backgroundView)
}
}
}

Expand Down Expand Up @@ -774,6 +787,17 @@ struct AvatarsWidgetView: View {
}
}

func getBackgroundColor() -> Color {
switch colorScheme {
case .light:
return .white
case .dark:
return Color(.sRGB, red: 28.0 / 255.0, green: 28.0 / 255.0, blue: 30.0 / 255.0, opacity: 1.0)
@unknown default:
return .secondary
}
}

func itemView(index: Int) -> some View {
let peers: ParsedPeers?
var isPlaceholder = false
Expand Down Expand Up @@ -829,6 +853,7 @@ struct AvatarsWidgetView: View {
})
.padding(EdgeInsets(top: 10.0, leading: 10.0, bottom: 10.0, trailing: 10.0))
.unredacted()
.widgetBackground(Rectangle().foregroundColor(getBackgroundColor()))
}
}

Expand Down Expand Up @@ -862,12 +887,22 @@ struct Static_Widget: Widget {
public var body: some WidgetConfiguration {
let presentationData = WidgetPresentationData.getForExtension()

return IntentConfiguration(kind: kind, intent: SelectFriendsIntent.self, provider: Provider(), content: { entry in
WidgetView(data: getWidgetData(contents: entry.contents), presentationData: presentationData)
})
.supportedFamilies([.systemMedium])
.configurationDisplayName(presentationData.widgetChatsGalleryTitle)
.description(presentationData.widgetChatsGalleryDescription)
if #available(iOSApplicationExtension 15.0, iOS 15.0, *) {
return IntentConfiguration(kind: kind, intent: SelectFriendsIntent.self, provider: Provider(), content: { entry in
WidgetView(data: getWidgetData(contents: entry.contents), presentationData: presentationData)
})
.supportedFamilies([.systemMedium])
.configurationDisplayName(presentationData.widgetChatsGalleryTitle)
.contentMarginsDisabled()
.description(presentationData.widgetChatsGalleryDescription)
} else {
return IntentConfiguration(kind: kind, intent: SelectFriendsIntent.self, provider: Provider(), content: { entry in
WidgetView(data: getWidgetData(contents: entry.contents), presentationData: presentationData)
})
.supportedFamilies([.systemMedium])
.configurationDisplayName(presentationData.widgetChatsGalleryTitle)
.description(presentationData.widgetChatsGalleryDescription)
}
}
}

Expand All @@ -878,12 +913,22 @@ struct Static_AvatarsWidget: Widget {
public var body: some WidgetConfiguration {
let presentationData = WidgetPresentationData.getForExtension()

return IntentConfiguration(kind: kind, intent: SelectAvatarFriendsIntent.self, provider: AvatarsProvider(), content: { entry in
AvatarsWidgetView(data: getWidgetData(contents: entry.contents), presentationData: presentationData)
})
.supportedFamilies([.systemMedium])
.configurationDisplayName(presentationData.widgetShortcutsGalleryTitle)
.description(presentationData.widgetShortcutsGalleryDescription)
if #available(iOSApplicationExtension 15.0, iOS 15.0, *) {
return IntentConfiguration(kind: kind, intent: SelectAvatarFriendsIntent.self, provider: AvatarsProvider(), content: { entry in
AvatarsWidgetView(data: getWidgetData(contents: entry.contents), presentationData: presentationData)
})
.supportedFamilies([.systemMedium])
.configurationDisplayName(presentationData.widgetShortcutsGalleryTitle)
.contentMarginsDisabled()
.description(presentationData.widgetShortcutsGalleryDescription)
} else {
return IntentConfiguration(kind: kind, intent: SelectAvatarFriendsIntent.self, provider: AvatarsProvider(), content: { entry in
AvatarsWidgetView(data: getWidgetData(contents: entry.contents), presentationData: presentationData)
})
.supportedFamilies([.systemMedium])
.configurationDisplayName(presentationData.widgetShortcutsGalleryTitle)
.description(presentationData.widgetShortcutsGalleryDescription)
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion build-system/bazel-rules/rules_apple
Submodule rules_apple updated 107 files
2 changes: 1 addition & 1 deletion build-system/bazel-rules/rules_swift
Submodule rules_swift updated 98 files
+6 −0 .bcr/presubmit.yml
+2 −2 MODULE.bazel
+19 −5 doc/BUILD
+3 −1 doc/api.md
+100 −0 doc/doc.bzl
+264 −0 doc/proto_migration.md
+33 −11 doc/providers.md
+279 −152 doc/rules.md
+0 −0 examples/xplatform/custom_swift_proto_compiler/BUILD
+9 −0 examples/xplatform/custom_swift_proto_compiler/compiler/BUILD
+10 −0 examples/xplatform/custom_swift_proto_compiler/protos/BUILD
+7 −0 examples/xplatform/custom_swift_proto_compiler/protos/example.proto
+24 −0 examples/xplatform/custom_swift_proto_compiler/rules/BUILD
+18 −0 examples/xplatform/custom_swift_proto_compiler/rules/custom_proto_compiler.sh
+4 −0 examples/xplatform/custom_swift_proto_compiler/rules/custom_proto_compiler_plugin.sh
+136 −0 examples/xplatform/custom_swift_proto_compiler/rules/custom_swift_proto_compiler.bzl
+12 −0 examples/xplatform/custom_swift_proto_compiler/swift/BUILD
+84 −0 examples/xplatform/deprecated_grpc/BUILD
+63 −0 examples/xplatform/deprecated_grpc/client_main.swift
+105 −0 examples/xplatform/deprecated_grpc/client_unit_test.swift
+0 −0 examples/xplatform/deprecated_grpc/echo.proto
+7 −0 examples/xplatform/deprecated_grpc/main.swift
+64 −0 examples/xplatform/deprecated_grpc/server_main.swift
+48 −0 examples/xplatform/deprecated_proto/BUILD
+7 −0 examples/xplatform/deprecated_proto/PathToUnderscores/message_1/message.proto
+7 −0 examples/xplatform/deprecated_proto/PathToUnderscores/message_2/message.proto
+29 −0 examples/xplatform/deprecated_proto/example.proto
+41 −0 examples/xplatform/deprecated_proto/main.swift
+19 −44 examples/xplatform/grpc/BUILD
+3 −4 examples/xplatform/grpc/client_main.swift
+10 −11 examples/xplatform/grpc/client_unit_test.swift
+1 −1 examples/xplatform/grpc/main.swift
+6 −7 examples/xplatform/grpc/server_main.swift
+51 −0 examples/xplatform/grpc/service/BUILD
+9 −0 examples/xplatform/grpc/service/service.proto
+14 −0 examples/xplatform/grpc/service/service_messages.proto
+54 −0 examples/xplatform/grpc/test_client_unit_test.swift
+13 −5 examples/xplatform/proto/BUILD
+2 −2 examples/xplatform/proto/main.swift
+70 −0 examples/xplatform/proto_files/BUILD
+17 −0 examples/xplatform/proto_files/main.swift
+7 −0 examples/xplatform/proto_files/message_1.proto
+9 −0 examples/xplatform/proto_files/message_2.proto
+9 −0 examples/xplatform/proto_files/message_3.proto
+33 −0 examples/xplatform/proto_glob/BUILD
+13 −0 examples/xplatform/proto_glob/main.swift
+7 −0 examples/xplatform/proto_glob/package_1/example.proto
+7 −0 examples/xplatform/proto_glob/package_2/example.proto
+15 −0 examples/xplatform/proto_path/BUILD
+13 −0 examples/xplatform/proto_path/main.swift
+0 −0 examples/xplatform/proto_path/protos/BUILD
+26 −0 examples/xplatform/proto_path/protos/package_1/BUILD
+7 −0 examples/xplatform/proto_path/protos/package_1/message_1.proto
+32 −0 examples/xplatform/proto_path/protos/package_2/BUILD
+9 −0 examples/xplatform/proto_path/protos/package_2/message_2.proto
+51 −0 proto/BUILD
+57 −0 proto/compilers/BUILD
+89 −0 proto/compilers/swift_proto_compiler_macros.bzl
+7 −0 proto/copy_swift_sources.sh.tpl
+44 −0 proto/proto.bzl
+29 −0 proto/swift_proto_common.bzl
+347 −0 proto/swift_proto_compiler.bzl
+324 −0 proto/swift_proto_library.bzl
+108 −0 proto/swift_proto_utils.bzl
+8 −2 swift/BUILD
+69 −0 swift/deprecated_proto/BUILD
+43 −15 swift/deprecated_proto/deprecated_swift_grpc_library.bzl
+19 −4 swift/deprecated_proto/deprecated_swift_proto_library.bzl
+0 −0 swift/deprecated_proto/proto_gen_utils.bzl
+48 −11 swift/deprecated_proto/swift_protoc_gen_aspect.bzl
+0 −0 swift/deprecated_proto/transitions.bzl
+20 −70 swift/internal/BUILD
+4 −2 swift/internal/actions.bzl
+5 −2 swift/internal/attrs.bzl
+65 −8 swift/internal/compiling.bzl
+13 −0 swift/internal/derived_files.bzl
+19 −5 swift/internal/feature_names.bzl
+49 −8 swift/internal/providers.bzl
+4 −0 swift/internal/swift_autoconfiguration.bzl
+17 −1 swift/internal/swift_import.bzl
+6 −0 swift/internal/swift_library.bzl
+1 −0 swift/internal/swift_module_alias.bzl
+9 −7 swift/internal/swift_toolchain.bzl
+5 −14 swift/internal/toolchain_config.bzl
+0 −38 swift/internal/utils.bzl
+1 −1 swift/internal/vfsoverlay.bzl
+10 −16 swift/internal/xcode_swift_toolchain.bzl
+2 −2 swift/repositories.bzl
+18 −12 swift/swift.bzl
+3 −0 test/BUILD
+78 −0 test/fixtures/private_swiftinterface/BUILD
+22 −0 test/fixtures/private_swiftinterface/Lib.swift
+20 −0 test/fixtures/private_swiftinterface/main.swift
+54 −0 test/private_swiftinterface_tests.bzl
+9 −22 test/rules/action_command_line_test.bzl
+10 −7 test/rules/provider_test.bzl
+16 −3 test/rules/swift_library_artifact_collector.bzl
+119 −1 test/split_derived_files_tests.bzl
2 changes: 1 addition & 1 deletion build-system/bazel-rules/rules_xcodeproj
Submodule rules_xcodeproj updated 166 files

0 comments on commit f0924f9

Please sign in to comment.