-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Datadog integration leads to build failures - WPB-11936 #2153
base: develop
Are you sure you want to change the base?
Changes from all commits
9149b18
156902f
98fd03e
c05bcce
f56c8c0
af351af
ac5fd17
f7b344a
cd8966f
03d00f7
cae88da
9636e59
5451235
16ae85a
a42f91c
cbdaec3
5e1ac6a
a5961e8
d6b2dab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// | ||
// Wire | ||
// Copyright (C) 2024 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 UIKit | ||
|
||
public final class WireDatadog { | ||
|
||
public var userIdentifier: String { | ||
"" | ||
} | ||
|
||
public init( | ||
applicationID: String, | ||
buildVersion: String, | ||
buildNumber: String, | ||
clientToken: String, | ||
identifierForVendor: UUID?, | ||
environmentName: String | ||
) { | ||
// do nothing | ||
} | ||
|
||
public func enable() { | ||
// do nothing | ||
} | ||
|
||
public func log( | ||
level: WireDatadog.LogLevel, | ||
message: String, | ||
error: (any Error)? = nil, | ||
attributes: [String: any Encodable] | ||
) { | ||
// do nothing | ||
} | ||
|
||
public func addAttribute(forKey key: String, value: String) { | ||
// do nothing | ||
} | ||
|
||
public func removeAttribute(forKey key: String) { | ||
// do nothing | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
} | ||
], | ||
"defaultOptions" : { | ||
"codeCoverage" : false, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you confirm that this was necessary? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not completely sure, but I think it does not hurt to keep it disabled for now since we don't collect code coverage for now |
||
"commandLineArgumentEntries" : [ | ||
{ | ||
"argument" : "-XCTestObserverClass InfiniteLoopAfterRunningTests", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you consider making the path change instead of the source files? It might be easier to maintain 🤔
As a side note, if we take the file route perhaps this line is not necessary as I guess that is the default path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from the doc it was saying here lies the directory and on the other one just filenames. I didn't play with this