Skip to content

[Feature] Developer Tools

Apollo Zhu requested to merge apollozhu/kdeconnect-ios:developer-tools into master

Changelog

  • Replaced all NSLog and print with OSLog
  • Added a hidden developer mode, activatable by:
    • tapping the build version 10 consecutive times,
    • activate the build version label with VoiceOver, or
    • in DEBUG mode with isDebugging in the launch argument (enabled by default)
  • Added a OSLog view to see the logs, with basic filters and search
  • Added a Network Package composer to author network packages
    • Added a hidden network package debug mode that sets capabilities to all network packges, activatable by:
      • typing isDebuggingNetworkPackage in the Network Package composer payload text editor
      • in DEBUG mode with isDebuggingNetworkPackage in the launch argument (disabled by default)
  • Replace [self] with [weak self] everywhere
    • Address crash on Battery.sendBatteryStatusOut()
    • log Battery instance leak for debugging

Note

  • Debug messages are only available for viewing when attached to a debugger
  • Privacy redaction is not applied to network packages (device's UUID assigned by KDE Connect and name will be exposed in the log)
  • These logs are stored on users' devices only and we have no way of accessing them. Users must manually export/screenshot the logs

Known Issues

Demo

OSLog and developer tools

Network Package composer

Edited by Apollo Zhu

Merge request reports