 statusBarIcon = null
 pluginReady = false
 
-# package dependencies
-AdmZip = require 'adm-zip'
-fs = require 'fs'
-os = require 'os'
-path = require 'path'
-child_process = require 'child_process'
-request = require 'request'
-rimraf = require 'rimraf'
-ini = require 'ini'
-
-StatusBarTileView = require './status-bar-tile-view'
-Logger = require './logger'
-
 module.exports =
   activate: (state) ->
     log = new Logger('WakaTime')

getUserHome = ->
  process.env[if process.platform == 'win32' then 'USERPROFILE' else 'HOME'] || ''

setupConfigs = ->
  configFile = path.join getUserHome(), '.wakatime.cfg'
  fs.readFile configFile, 'utf-8', (err, configContent) ->

      log.setLevel('DEBUG')
    packageVersion = atom.packages.getLoadedPackage('wakatime').metadata.version
    log.debug 'Initializing WakaTime v' + packageVersion + '...'
    requestIdleCallback @delayedActivate, {timeout: 10000}

  delayedActivate: ->
    loadDependencies()
    setupConfigs()
    @settingChangedObserver = atom.config.observe 'wakatime', settingChangedHandler
    checkPython()

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