safedispatch-mobile/safeDispatch/build.gradle

84 lines
2.5 KiB
Groovy
Raw Permalink Normal View History

2022-03-14 09:53:00 +00:00
apply plugin: 'com.android.application'
apply plugin: 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
2022-03-22 10:11:08 +00:00
apply plugin: "com.gladed.androidgitversion"
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
mavenCentral()
}
dependencies {
classpath "gradle.plugin.com.gladed.gradle.androidgitversion:gradle-android-git-version:0.4.3"
}
}
2022-03-22 13:10:29 +00:00
androidGitVersion {
codeFormat 'MNNBBBB'
format '%tag%%.count%'
hideBranches = ['develop']
}
2022-03-14 09:53:00 +00:00
android {
compileSdkVersion 31
buildToolsVersion "31.0.0"
defaultConfig {
applicationId "com.safemobile.dispatch"
minSdkVersion 21
targetSdkVersion 31
2022-03-22 10:11:08 +00:00
versionName androidGitVersion.name()
versionCode androidGitVersion.code()
2022-03-22 13:10:29 +00:00
archivesBaseName = "SafeDispatchMobile_v.$versionName"
2022-03-14 09:53:00 +00:00
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
buildFeatures {
viewBinding false
}
2022-03-23 11:33:54 +00:00
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
//abortOnError false
}
2022-03-14 09:53:00 +00:00
}
dependencies {
implementation project(':libSafeMobile')
// support libraries
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'androidx.media:media:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'com.google.android.gms:play-services-auth:20.1.0'
// Fused location provider with and without google services
implementation 'com.google.android.gms:play-services-location:19.0.1'
// Google maps library
implementation 'com.google.android.gms:play-services-maps:18.0.2'
// define a BOM and its version
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.9.3"))
// define any required OkHttp artifacts without version
implementation("com.squareup.okhttp3:okhttp")
implementation("com.squareup.okhttp3:logging-interceptor")
// add Gson
implementation 'com.google.code.gson:gson:2.8.6'
//retrofit
}