Skip to content

Commit 0f573c6

Browse files
committed
format
1 parent 7a413eb commit 0f573c6

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let package = Package(
1212
.library(
1313
name: "Analytics",
1414
targets: ["Analytics"]
15-
),
15+
)
1616
],
1717
dependencies: [
1818
.package(url: "https://github.com/apple/swift-http-types", from: "1.3.0"),

Sources/Analytics/Analytics.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public struct Analytics<HTTPClient: HTTPClientProtocol> {
2121
self.clientInformation = clientInformation
2222
self.session = session
2323
}
24-
24+
2525
public func log(payload: Payload) async throws {
2626
let payloadData = try ProtobufEncoder.encoding(NestedValue(value: payload))
2727
try await log(bodyData: payloadData)
@@ -73,10 +73,10 @@ public struct Analytics<HTTPClient: HTTPClientProtocol> {
7373
),
7474
],
7575
sessionInformations: session.parameters,
76-
value4: UInt(Date.now.timeIntervalSince1970 * 100), // upload_timestamp_millis
77-
value5: UInt(Date.now.timeIntervalSince1970 * 100), // start_timestamp_millis
78-
value6: UInt(Date.now.timeIntervalSince1970 * 100), // end_timestamp_millis
79-
value7: UInt(Date.now.timeIntervalSince1970 * 100), // previous_bundle_end_timestamp_millis
76+
value4: UInt(Date.now.timeIntervalSince1970 * 100), // upload_timestamp_millis
77+
value5: UInt(Date.now.timeIntervalSince1970 * 100), // start_timestamp_millis
78+
value6: UInt(Date.now.timeIntervalSince1970 * 100), // end_timestamp_millis
79+
value7: UInt(Date.now.timeIntervalSince1970 * 100), // previous_bundle_end_timestamp_millis
8080
os: clientInformation.os,
8181
osVersion: clientInformation.osVersion,
8282
deviceModel: clientInformation.deviceModel,
@@ -85,15 +85,15 @@ public struct Analytics<HTTPClient: HTTPClientProtocol> {
8585
installMethod: clientInformation.installMethod,
8686
bundleId: clientInformation.bundleId,
8787
appVersion: clientInformation.appVersion,
88-
value17: 110700, // gmp_version
89-
value18: 110700, // uploading_gmp_version
88+
value17: 110700, // gmp_version
89+
value18: 110700, // uploading_gmp_version
9090
value21: "BC75E8783E8141ECB7A179248F24080C", // fix // app_instance_id
9191
value23: 25, // count up // bundle_sequential_index
9292
googleAppId: clientInformation.googleAppId,
9393
value26: UInt(Date.now.timeIntervalSince1970 * 100), // free // previous_bundle_start_timestamp_millis
9494
value27: "C86A6B98-E407-4954-BC16-F693A22F9FA9", // fix // resettable_device_id
9595
value30: "d4Xw8qsiRUIBoMYlsYHnot", // fix // firebase_instance_id
96-
value31: 1, // app_version_major
96+
value31: 1, // app_version_major
9797
value35: 1_727_127_969_769_945, // fix // config_version
9898
value45: 42_820_019, // fix
9999
value52: "G1--", // fix // consent_signals

Sources/Analytics/Parameter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public enum Parameter {
1919
static func bool(_ value: Bool) -> Self {
2020
.uint(value ? 1 : 0)
2121
}
22-
22+
2323
public init(from decoder: inout ProtobufDecoder) throws {
2424
var value: Parameter.Value?
2525

0 commit comments

Comments
 (0)