
dependencies {
  def DEFAULT_PLAY_SERVICES_VERSION   = "11.8.0"
  def DEFAULT_SUPPORT_LIB_VERSION     = "27.0.1"

  def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : DEFAULT_PLAY_SERVICES_VERSION
  def supportLibVersion = DEFAULT_SUPPORT_LIB_VERSION

  if (project.hasProperty('supportLibVersion')) {
    supportLibVersion = project.supportLibVersion
  } else if (project.hasProperty('supportVersion')) {
    supportLibVersion = project.supportVersion
  }

  println "******************************************************************"
  println "* nativescript-background-geolocation"
  println "* - googlePlayServicesVersion: $googlePlayServicesVersion"
  println "* - supportLibVersion: $supportLibVersion"  
  println "******************************************************************"
  
  compile "com.google.android.gms:play-services-location:$googlePlayServicesVersion"
  compile "com.android.support:appcompat-v7:$supportLibVersion"
  compile 'com.squareup.okhttp3:okhttp:3.10.0'
  compile 'org.greenrobot:eventbus:3.0.0'
  compile 'org.slf4j:slf4j-api:1.7.21'
  compile 'com.github.tony19:logback-android:1.1.1-9'
  compile 'com.intentfilter:android-permissions:0.1.6'
}
