Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
02bf0b5
chore: rename WireLogging to WireLegacyLogging - WPB-14876
caldrian Oct 30, 2025
1cde701
fix file headers
caldrian Oct 30, 2025
65a3559
fix build errors
caldrian Oct 31, 2025
9a743d6
cleanup
caldrian Oct 31, 2025
0e8abc7
fix build eerror
caldrian Oct 31, 2025
a278cde
fix more errors
caldrian Oct 31, 2025
06f2e6a
format Swift code
caldrian Oct 31, 2025
92d9f7e
Trigger CI
caldrian Oct 31, 2025
ba6edbf
pass -warnings-as-errors
caldrian Oct 31, 2025
5da4312
adjust fastlane files
caldrian Oct 31, 2025
20c206c
trigger warning
caldrian Oct 31, 2025
625ea1d
minor fixes
caldrian Oct 31, 2025
b09c017
minor fix
caldrian Oct 31, 2025
ecee38c
Merge branch 'develop' of github.com:wireapp/wire-ios into chore/trea…
caldrian Oct 31, 2025
caf702a
fix error
caldrian Oct 31, 2025
8a17e57
minor fixes
caldrian Oct 31, 2025
b3171fa
Merge branch 'chore/treat-warnings-as-errors-WPB-11987' into chore/re…
caldrian Oct 31, 2025
94c17ed
delete unused file
caldrian Oct 31, 2025
511462e
Merge branch 'develop' of github.com:wireapp/wire-ios into chore/rena…
caldrian Oct 31, 2025
87cb96f
Merge branch 'develop' of github.com:wireapp/wire-ios into chore/trea…
caldrian Oct 31, 2025
c2828bf
Merge branch 'chore/treat-warnings-as-errors-WPB-11987' into chore/re…
caldrian Oct 31, 2025
3c58740
Trigger CI
caldrian Oct 31, 2025
6a97075
Merge branch 'chore/treat-warnings-as-errors-WPB-11987' into chore/re…
caldrian Oct 31, 2025
2157fb3
fix swiftformat action
caldrian Oct 31, 2025
4c0977c
Merge branch 'chore/treat-warnings-as-errors-WPB-11987' into chore/re…
caldrian Oct 31, 2025
447b073
Merge remote-tracking branch 'github/gh-readonly-queue/develop/pr-381…
caldrian Nov 3, 2025
a4f0f0b
Merge branch 'chore/treat-warnings-as-errors-WPB-11987' into chore/re…
caldrian Nov 3, 2025
05829cc
Merge branch 'develop' of github.com:wireapp/wire-ios into chore/rena…
caldrian Nov 3, 2025
31dac0a
add placeholder file
caldrian Nov 3, 2025
b7e5d7e
Trigger CI
caldrian Nov 3, 2025
5eaa39b
attempt to fix build errors
caldrian Nov 3, 2025
3262d7e
Merge branch 'develop' of github.com:wireapp/wire-ios into chore/rena…
caldrian Nov 3, 2025
9684f5d
renamings
caldrian Nov 3, 2025
0c7ecb5
various fixes
caldrian Nov 3, 2025
fec15f2
undo changing imports
caldrian Nov 3, 2025
f887672
create WireLogging
caldrian Nov 3, 2025
6cc2dd0
few more fixes
caldrian Nov 3, 2025
a8a2ab7
fix build errors in WireAnalytics
caldrian Nov 3, 2025
0c72b83
move WireLogLevel
caldrian Nov 3, 2025
ecc86bc
fix build errors
caldrian Nov 3, 2025
b5e3f14
fix more errors
caldrian Nov 3, 2025
99aa84f
fix more errors
caldrian Nov 3, 2025
50061a3
fix more errors
caldrian Nov 3, 2025
685e402
Merge branch 'chore/rename-wirelogging-to-wirelegacylogging-start-ove…
caldrian Nov 3, 2025
7ce213d
revert some changes
caldrian Nov 3, 2025
5109758
Merge branch 'develop' of github.com:wireapp/wire-ios into chore/rena…
caldrian Nov 3, 2025
934ceaf
Merge branch 'develop' of github.com:wireapp/wire-ios into chore/rena…
caldrian Nov 3, 2025
d38f596
format code
caldrian Nov 3, 2025
076a3fc
Merge branch 'develop' of github.com:wireapp/wire-ios into chore/rena…
caldrian Nov 5, 2025
c05793a
Merge branch 'develop' of github.com:wireapp/wire-ios into chore/rena…
caldrian Nov 6, 2025
9fbb0c8
Merge branch 'develop' of github.com:wireapp/wire-ios into chore/rena…
caldrian Nov 10, 2025
27ac5c7
Merge branch 'develop' of github.com:wireapp/wire-ios into chore/rena…
caldrian Nov 24, 2025
8136e0e
Merge branch 'develop' of github.com:wireapp/wire-ios into chore/rena…
caldrian Nov 27, 2025
32dc49e
Trigger CI
caldrian Nov 28, 2025
708549e
Trigger CI
caldrian Nov 28, 2025
7512363
Merge branch 'develop' of github.com:wireapp/wire-ios into chore/rena…
caldrian Dec 12, 2025
5cad884
Merge branch 'develop' of github.com:wireapp/wire-ios into chore/rena…
caldrian Jan 16, 2026
145b7d8
remove Starscream
caldrian Jan 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions WireAnalytics/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ let package = Package(
dependencies: [
.product(name: "WireFoundation", package: "WireFoundation"),
.product(name: "WireLogging", package: "WireLogging"),
.product(name: "WireLegacyLogging", package: "WireLogging")
]
),
.target(
Expand All @@ -50,7 +51,10 @@ let package = Package(

.target(
name: "WireDatadog",
dependencies: datadogDependencies() + ["WireLogging"],
dependencies: datadogDependencies() + [
"WireLogging",
.product(name: "WireLegacyLogging", package: "WireLogging")
],
sources: datadogFiles()
),

Expand Down Expand Up @@ -101,9 +105,9 @@ func datadogDependencies() -> [Target.Dependency] {

func datadogFiles() -> [String] {
if isDatadogEnabled {
["WireDatadog.swift"]
["WireDatadog.swift", "WireLegacyLogging.swift"]
} else {
["WireFakeDatadog.swift"]
["WireFakeDatadog.swift", "WireLegacyLogging.swift"]
}
}

Expand Down
21 changes: 21 additions & 0 deletions WireAnalytics/Sources/WireAnalytics/WireLegacyLogging.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//
// Wire
// Copyright (C) 2025 Wire Swiss GmbH
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see http://www.gnu.org/licenses/.
//

import WireLegacyLogging

typealias WireLogger = WireLegacyLogging.WireLogger
21 changes: 21 additions & 0 deletions WireAnalytics/Sources/WireDatadog/WireLegacyLogging.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//
// Wire
// Copyright (C) 2025 Wire Swiss GmbH
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see http://www.gnu.org/licenses/.
//

public import WireLegacyLogging

public typealias WireLogger = WireLegacyLogging.WireLogger
2 changes: 1 addition & 1 deletion WireAuthentication/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ let package = Package(
.target(
name: "WireAuthenticationUI",
dependencies: [
"WireLogging",
.product(name: "WireLegacyLogging", package: "WireLogging"),
"WireFoundation",
"WireAuthenticationAPI",
.product(name: "WireDesign", package: "WireUI"),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//

Check failure on line 1 in WireAuthentication/Sources/WireAuthenticationLogic/WireLegacyLogging.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Header comments should be consistent with project patterns (file_header)
// Wire
// Copyright (C) 2025 Wire Swiss GmbH
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see http://www.gnu.org/licenses/.
//

public import WireLegacyLogging

public typealias WireLogger = WireLegacyLogging.WireLogger
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//

Check failure on line 1 in WireAuthentication/Sources/WireAuthenticationUI/WireLegacyLogging.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Header comments should be consistent with project patterns (file_header)
// Wire
// Copyright (C) 2025 Wire Swiss GmbH
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see http://www.gnu.org/licenses/.
//

public import WireLegacyLogging

public typealias WireLogger = WireLegacyLogging.WireLogger
1 change: 1 addition & 0 deletions WireBackup/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ let package = Package(
"KaliumBackup",
"WireFoundation",
"WireLogging",
.product(name: "WireLegacyLogging", package: "WireLogging"),
.product(name: "WireUtilitiesPackage", package: "WireFoundation")
]
),
Expand Down
22 changes: 22 additions & 0 deletions WireBackup/Sources/WireBackup/WireLegacyLogging.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// Wire
// Copyright (C) 2025 Wire Swiss GmbH
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see http://www.gnu.org/licenses/.
//

public import WireLegacyLogging

public typealias WireLogger = WireLegacyLogging.WireLogger
public typealias LoggerProtocol = WireLegacyLogging.LoggerProtocol
4 changes: 2 additions & 2 deletions WireCalling/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let package = Package(
name: "WireCallingDomain",
dependencies: [
"WireFoundation",
"WireLogging"
.product(name: "WireLegacyLogging", package: "WireLogging")
]
),
.target(
Expand All @@ -39,7 +39,7 @@ let package = Package(
name: "WireCallingData",
dependencies: [
"WireCallingDomain",
"WireLogging"
.product(name: "WireLegacyLogging", package: "WireLogging")
]
),
.target(
Expand Down
2 changes: 1 addition & 1 deletion WireDomain/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ let package = Package(
name: "WireDomainPackage",
dependencies: [
"WireNetwork",
"WireLogging",
.product(name: "WireLegacyLogging", package: "WireLogging"),
"WireFoundation"
]
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public struct IncrementalSyncV2: LiveSyncProtocol {
self.createPushChannelState = createPushChannelState
}

private var logAttributes: WireLogging.LogAttributes {
private var logAttributes: LogAttributes {
.incrementalSyncV3
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public struct PullPendingUpdateEventsSyncV2: PullPendingUpdateEventsSyncV2Protoc
self.syncMarkerGenerator = syncMarkerGenerator
}

private var logAttributes: WireLogging.LogAttributes {
private var logAttributes: LogAttributes {
.incrementalSyncV3 + .newNSE
}

Expand Down
24 changes: 24 additions & 0 deletions WireDomain/Sources/WireDomain/WireLegacyLogging.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// Wire
// Copyright (C) 2025 Wire Swiss GmbH
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see http://www.gnu.org/licenses/.
//

import WireLegacyLogging

typealias Flow = WireLegacyLogging.Flow
typealias WireLogger = WireLegacyLogging.WireLogger
typealias LogAttributes = WireLegacyLogging.LogAttributes
typealias LogAttributesKey = WireLegacyLogging.LogAttributesKey
10 changes: 5 additions & 5 deletions WireDomain/WireDomain Project.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
59202AD22D54D3D500143413 /* WireDomainPackage in Frameworks */ = {isa = PBXBuildFile; productRef = 59202AD12D54D3D500143413 /* WireDomainPackage */; };
598D042D2C89C63100B64D71 /* WireFoundation in Frameworks */ = {isa = PBXBuildFile; productRef = 598D042C2C89C63100B64D71 /* WireFoundation */; };
59DBDE982D395BB50069C64C /* WireDomainPackage in Frameworks */ = {isa = PBXBuildFile; productRef = 59DBDE972D395BB50069C64C /* WireDomainPackage */; };
59EA774F2D00CE0C002CA0B8 /* WireLogging in Frameworks */ = {isa = PBXBuildFile; productRef = 59EA774E2D00CE0C002CA0B8 /* WireLogging */; };
59EA774F2D00CE0C002CA0B8 /* WireLegacyLogging in Frameworks */ = {isa = PBXBuildFile; productRef = 59EA774E2D00CE0C002CA0B8 /* WireLegacyLogging */; };
C91D188E2D7212FC00B63B66 /* NeedleFoundation in Frameworks */ = {isa = PBXBuildFile; productRef = C91D188D2D7212FC00B63B66 /* NeedleFoundation */; };
C97BCCAA2C98704B004F2D0D /* WireDomain.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 01D0DCA62C1C8C870076CB1C /* WireDomain.framework */; };
C9B4C1F72D4915F10072A0EE /* WireCrypto in Frameworks */ = {isa = PBXBuildFile; productRef = C9B4C1F62D4915F10072A0EE /* WireCrypto */; };
Expand Down Expand Up @@ -119,7 +119,7 @@
C91D188E2D7212FC00B63B66 /* NeedleFoundation in Frameworks */,
59DBDE982D395BB50069C64C /* WireDomainPackage in Frameworks */,
591B6E452C8B09BA009F8A7B /* WireDataModel.framework in Frameworks */,
59EA774F2D00CE0C002CA0B8 /* WireLogging in Frameworks */,
59EA774F2D00CE0C002CA0B8 /* WireLegacyLogging in Frameworks */,
C9B4C1F72D4915F10072A0EE /* WireCrypto in Frameworks */,
01D0DCC62C1C8CD90076CB1C /* WireTransport.framework in Frameworks */,
);
Expand Down Expand Up @@ -248,7 +248,7 @@
name = WireDomain;
packageProductDependencies = (
598D042C2C89C63100B64D71 /* WireFoundation */,
59EA774E2D00CE0C002CA0B8 /* WireLogging */,
59EA774E2D00CE0C002CA0B8 /* WireLegacyLogging */,
C9B4C1F62D4915F10072A0EE /* WireCrypto */,
59DBDE972D395BB50069C64C /* WireDomainPackage */,
C91D188D2D7212FC00B63B66 /* NeedleFoundation */,
Expand Down Expand Up @@ -968,9 +968,9 @@
isa = XCSwiftPackageProductDependency;
productName = WireDomainPackage;
};
59EA774E2D00CE0C002CA0B8 /* WireLogging */ = {
59EA774E2D00CE0C002CA0B8 /* WireLegacyLogging */ = {
isa = XCSwiftPackageProductDependency;
productName = WireLogging;
productName = WireLegacyLogging;
};
C91D188D2D7212FC00B63B66 /* NeedleFoundation */ = {
isa = XCSwiftPackageProductDependency;
Expand Down
24 changes: 21 additions & 3 deletions WireLogging/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,39 @@ let package = Package(
platforms: [.iOS("16.4"), .macOS(.v12)],
products: [
.library(name: "WireLogging", targets: ["WireLogging"]),
.library(name: "WireLoggingSupport", targets: ["WireLoggingSupport"])
.library(name: "WireLoggingSupport", targets: ["WireLoggingSupport"]),
.library(name: "WireLegacyLogging", targets: ["WireLegacyLogging"]),
.library(name: "WireLegacyLoggingSupport", targets: ["WireLegacyLoggingSupport"])
],
dependencies: [
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.1.0"),
.package(path: "../WirePlugins")
],
targets: [
.target(name: "WireLogging"),
.target(
name: "WireLoggingSupport",
dependencies: ["WireLogging"],
plugins: [.plugin(name: "SourceryPlugin", package: "WirePlugins")]
plugins: [
.plugin(name: "SourceryPlugin", package: "WirePlugins")
]
),
.testTarget(
name: "WireLoggingTests",
dependencies: ["WireLogging"]
dependencies: ["WireLogging", "WireLoggingSupport"]
),

.target(name: "WireLegacyLogging"),
.target(
name: "WireLegacyLoggingSupport",
dependencies: ["WireLegacyLogging"],
plugins: [
.plugin(name: "SourceryPlugin", package: "WirePlugins")
]
),
.testTarget(
name: "WireLegacyLoggingTests",
dependencies: ["WireLegacyLogging"]
)
]
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ final class AggregatedLogger: LoggerProtocol {
$0.addTag(key, value: value)
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,20 @@ public enum LogAttributesKey: String, Comparable, Sendable {
public static func < (lhs: LogAttributesKey, rhs: LogAttributesKey) -> Bool {
lhs.rawValue < rhs.rawValue
}

}

public extension LogAttributes {

static let safePublic = [LogAttributesKey.public: true]

/// PushChannelV2 (consumable notications sync)
static let pushChannelV2 = [LogAttributesKey.pushChannelVersion: "v2"]

/// PushChannel V1 (regular sync)
static let pushChannelV1 = [LogAttributesKey.pushChannelVersion: "v1"]

/// legacy pushChannel (Starscream)
static let pushChannelV0 = [LogAttributesKey.pushChannelVersion: "v0"]

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public protocol LoggerProtocol {

/// Add an attribute, value to each logs - DataDog only
func addTag(_ key: LogAttributesKey, value: String?)

}

public extension LoggerProtocol {
Expand All @@ -35,8 +36,8 @@ public extension LoggerProtocol {
var logAttributes = attributes

// drop attributes used for visibility and category
logAttributes.removeValue(forKey: LogAttributesKey.public)
logAttributes.removeValue(forKey: LogAttributesKey.tag)
logAttributes.removeValue(forKey: .public)
logAttributes.removeValue(forKey: .tag)

guard !logAttributes.isEmpty else {
return ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,5 @@ public class SystemLogger: LoggerProtocol {
os_log(osLogType, log: logger, "\(finalMessage)")
#endif
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sources:
- ${PACKAGE_ROOT_DIR}/Sources/WireLegacyLogging
templates:
- ${TARGET_DIR}/Sourcery/AutoMockable.stencil
output:
${DERIVED_SOURCES_DIR}
args:
autoMockablePublicImports: ["Foundation", "WireLegacyLogging"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//

Check failure on line 1 in WireLogging/Sources/WireLegacyLoggingSupport/WireLegacyLogging.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Header comments should be consistent with project patterns (file_header)
// Wire
// Copyright (C) 2025 Wire Swiss GmbH
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see http://www.gnu.org/licenses/.
//

// This target generates mocks via 'sourcery'. It uses the plugin configured in `Package.swift`.
// The generated mocks are processed from the sandbox directory and are not visible in the project folder:
// https://github.com/apple/swift-package-manager/blob/main/Documentation/Plugins.md#implementing-the-build-tool-plugin-script
Loading
Loading