Skip to content

Instantly share code, notes, and snippets.

@locskot
Created November 12, 2019 12:42
Show Gist options
  • Save locskot/89c50ebd931d15bdd472eab01c7be81a to your computer and use it in GitHub Desktop.
Save locskot/89c50ebd931d15bdd472eab01c7be81a to your computer and use it in GitHub Desktop.
group 'com.transistorsoft.flutter.backgroundgeolocation'
version '1.0-SNAPSHOT'
apply plugin: 'com.android.library'
def DEFAULT_COMPILE_SDK_VERSION = 28
def DEFAULT_PLAY_SERVICES_LOCATION_VERSION = "16.0.0"
def DEFAULT_APP_COMPAT_VERSION = "1.0.2"
def DEFAULT_OK_HTTP_VERSION = "3.12.1"
def DEFAULT_ANDROID_PERMISSIONS_VERSION = "0.1.8"
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
android {
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
defaultConfig {
minSdkVersion 16
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
disable 'InvalidPackage'
}
}
repositories {
maven {
url './libs'
}
}
dependencies {
def playServicesLocationVersion = safeExtGet('playServicesLocationVersion', DEFAULT_PLAY_SERVICES_LOCATION_VERSION)
def appCompatVersion = safeExtGet('appCompatVersion', safeExtGet('supportLibVersion', DEFAULT_APP_COMPAT_VERSION))
def okHttpVersion = safeExtGet('okHttpVersion', DEFAULT_OK_HTTP_VERSION)
def androidPermissionsVersion = safeExtGet('androidPermissionsVersion', DEFAULT_ANDROID_PERMISSIONS_VERSION)
implementation fileTree(include: '*.aar', dir: 'libs')
implementation "com.google.android.gms:play-services-location:$playServicesLocationVersion"
implementation 'org.greenrobot:eventbus:3.0.0'
implementation "com.squareup.okhttp3:okhttp:$okHttpVersion"
implementation 'org.slf4j:slf4j-api:1.7.25'
implementation 'com.github.tony19:logback-android:2.0.0'
// android-permissions
implementation "com.intentfilter:android-permissions:$androidPermissionsVersion"
implementation "androidx.appcompat:appcompat:$appCompatVersion"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment