From 05c208c647b183d3622cbf09efb8f51a0cb98e54 Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Tue, 23 Apr 2024 14:59:06 +0200 Subject: [PATCH] Remove comments --- flutter/ios/Classes/SentryFlutterPluginApple.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flutter/ios/Classes/SentryFlutterPluginApple.swift b/flutter/ios/Classes/SentryFlutterPluginApple.swift index c62791a3d8..e36416e202 100644 --- a/flutter/ios/Classes/SentryFlutterPluginApple.swift +++ b/flutter/ios/Classes/SentryFlutterPluginApple.swift @@ -29,9 +29,9 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin { private static var engineEndtime: Int64 = 0 public static func register(with registrar: FlutterPluginRegistrar) { - let currentDate = Date() // Gets the current date and time - let timeInterval = currentDate.timeIntervalSince1970 // Time in seconds since epoch (1970-01-01) - engineEndtime = Int64(timeInterval * 1000) // Convert to milliseconds + let currentDate = Date() + let timeInterval = currentDate.timeIntervalSince1970 + engineEndtime = Int64(timeInterval * 1000) #if os(iOS) let channel = FlutterMethodChannel(name: "sentry_flutter", binaryMessenger: registrar.messenger()) @@ -84,8 +84,8 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin { return iso8601FormatterWithMillisecondPrecision.date(from: iso8601String) ?? iso8601Formatter.date(from: iso8601String) // Parse date with low precision formatter for backward compatible } - - + + private func fetchEngineEndtime(result: @escaping FlutterResult) { result(SentryFlutterPluginApple.engineEndtime) } @@ -162,7 +162,7 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin { let arguments = call.arguments as? [String: Any?] let key = arguments?["key"] as? String removeTag(key: key, result: result) - + case "fetchEngineEndtime": fetchEngineEndtime(result: result)