 Website:     https://wakatime.com/
 ###
 
+StatusBarTileView = require './status-bar-tile-view'
+Logger = require './logger'
+
+# dependencies lazy-loaded to improve startup time
+AdmZip = null
+fs = null
+os = null
+path = null
+child_process = null
+request = null
+rimraf = null
+ini = null
+
 # package-global attributes
 log = null
 packageVersion = null

      log.setLevel('DEBUG')
    packageVersion = atom.packages.getLoadedPackage('wakatime').metadata.version
    log.debug 'Initializing WakaTime v' + packageVersion + '...'
    setupConfigs()
    @settingChangedObserver = atom.config.observe 'wakatime', settingChangedHandler

    isPythonInstalled((installed) ->
      if not installed
        if os.type() is 'Windows_NT'
          installPython(checkCLI)
        else
          window.alert('Please install Python (https://www.python.org/downloads/) and restart Atom to enable the WakaTime plugin.')
      else
        checkCLI()
    )

  consumeStatusBar: (statusBar) ->
    statusBarIcon = new StatusBarTileView()

statusBarIcon = null
pluginReady = false

module.exports =
  activate: (state) ->
    log = new Logger('WakaTime')
