chore: remove test logs

This commit is contained in:
Lucas Nogueira
2025-11-19 17:00:14 -03:00
parent 5767b848fa
commit 14fb36e347
2 changed files with 8 additions and 10 deletions
@@ -49,8 +49,6 @@ public class Geolocation(private val context: Context) {
val lowPrio = if (networkEnabled) Priority.PRIORITY_BALANCED_POWER_ACCURACY else Priority.PRIORITY_LOW_POWER val lowPrio = if (networkEnabled) Priority.PRIORITY_BALANCED_POWER_ACCURACY else Priority.PRIORITY_LOW_POWER
val prio = if (enableHighAccuracy) Priority.PRIORITY_HIGH_ACCURACY else lowPrio val prio = if (enableHighAccuracy) Priority.PRIORITY_HIGH_ACCURACY else lowPrio
Logger.error(prio.toString())
LocationServices LocationServices
.getFusedLocationProviderClient(context) .getFusedLocationProviderClient(context)
.getCurrentLocation(prio, null) .getCurrentLocation(prio, null)
@@ -2,12 +2,12 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import AudioToolbox
import CoreHaptics
import SwiftRs import SwiftRs
import Tauri import Tauri
import UIKit import UIKit
import WebKit import WebKit
import CoreHaptics
import AudioToolbox
class ImpactFeedbackOptions: Decodable { class ImpactFeedbackOptions: Decodable {
let style: ImpactFeedbackStyle let style: ImpactFeedbackStyle
@@ -69,19 +69,21 @@ class HapticsPlugin: Plugin {
try engine.start() try engine.start()
engine.resetHandler = { [] in engine.resetHandler = { [] in
do { do {
try engine.start() try engine.start()
} catch { } catch {
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate) AudioServicesPlayAlertSound(kSystemSoundID_Vibrate)
} }
} }
// TODO: Make some of this (or all) configurable? // TODO: Make some of this (or all) configurable?
let intensity: CHHapticEventParameter = CHHapticEventParameter(parameterID: .hapticIntensity, value: 1.0) let intensity: CHHapticEventParameter = CHHapticEventParameter(
let sharpness: CHHapticEventParameter = CHHapticEventParameter(parameterID: .hapticSharpness, value: 1.0) parameterID: .hapticIntensity, value: 1.0)
let sharpness: CHHapticEventParameter = CHHapticEventParameter(
parameterID: .hapticSharpness, value: 1.0)
let continuousEvent = CHHapticEvent( let continuousEvent = CHHapticEvent(
eventType: .hapticContinuous, eventType: .hapticContinuous,
parameters: [intensity, sharpness], parameters: [intensity, sharpness],
relativeTime: 0.0, relativeTime: 0.0,
duration: args.duration/1000 duration: args.duration / 1000
) )
let pattern = try CHHapticPattern(events: [continuousEvent], parameters: []) let pattern = try CHHapticPattern(events: [continuousEvent], parameters: [])
let player = try engine.makePlayer(with: pattern) let player = try engine.makePlayer(with: pattern)
@@ -94,8 +96,6 @@ class HapticsPlugin: Plugin {
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate) AudioServicesPlayAlertSound(kSystemSoundID_Vibrate)
} }
Logger.error("VIBRATE END")
invoke.resolve() invoke.resolve()
} }