Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
izivkov committed Aug 5, 2024
1 parent db551db commit fb20385
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 28 deletions.
8 changes: 8 additions & 0 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 28 additions & 28 deletions app/src/main/java/org/avmedia/gshock/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -91,37 +91,37 @@ class MainActivity : AppCompatActivity() {
}

private suspend fun runCommands() {
// println("Button pressed: ${api.getPressedButton()}")
// println("Name returned: ${api.getWatchName()}")
println("Button pressed: ${api.getPressedButton()}")
println("Name returned: ${api.getWatchName()}")

// println("Battery Level: ${api.getBatteryLevel()}")
// println("Timer: ${api.getTimer()}")
// println("App Info: ${api.getAppInfo()}")
//
// println("Home Time: ${api.getHomeTime()}")
// println("Temperaure: ${api.getWatchTemperature()}")
//
// getDSTState()
// getWorldCities()
// getDSTForWorldCities()
//
// generateCustomEvent()
//
// val currentTZ = TimeZone.getDefault().id
// api.setTime("Europe/Sofia")
// api.setTime("Asia/Kolkata")
// api.setTime("Pacific/Kiritimati")
// api.setTime("UTC")
// api.setTime(currentTZ)
// val alarms = api.getAlarms()
// println("Alarm model: $alarms")
//
// alarms[0] = Alarm(6, 45, enabled = true, hasHourlyChime = false)
// alarms[4] = Alarm(9, 25, enabled = false)
// api.setAlarms(alarms)
println("Battery Level: ${api.getBatteryLevel()}")
println("Timer: ${api.getTimer()}")
println("App Info: ${api.getAppInfo()}")

println("Home Time: ${api.getHomeTime()}")
println("Temperaure: ${api.getWatchTemperature()}")

getDSTState()
getWorldCities()
getDSTForWorldCities()

generateCustomEvent()

val currentTZ = TimeZone.getDefault().id
api.setTime("Europe/Sofia")
api.setTime("Asia/Kolkata")
api.setTime("Pacific/Kiritimati")
api.setTime("UTC")
api.setTime(currentTZ)
val alarms = api.getAlarms()
println("Alarm model: $alarms")

alarms[0] = Alarm(6, 45, enabled = true, hasHourlyChime = false)
alarms[4] = Alarm(9, 25, enabled = false)
api.setAlarms(alarms)

handleReminders()
// handleSettings()
handleSettings()
}

private fun runTimezonesTest() {
Expand Down

0 comments on commit fb20385

Please sign in to comment.