mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 17:43:06 +02:00
c1b59e8c18
Bumps [material](https://github.com/material-components/material-components-android) from 1.3.0 to 1.4.0. - [Release notes](https://github.com/material-components/material-components-android/releases) - [Commits](https://github.com/material-components/material-components-android/compare/1.3.0...1.4.0) --- updated-dependencies: - dependency-name: com.google.android.material:material dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
108 lines
2.6 KiB
Groovy
108 lines
2.6 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:4.2.2'
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
def getVersionName = { ->
|
|
try {
|
|
def stdout = new ByteArrayOutputStream()
|
|
exec {
|
|
commandLine 'git', 'describe', '--tags'
|
|
standardOutput = stdout
|
|
}
|
|
exec {
|
|
commandLine 'git', 'log', '--format="%h"', '-n 1'
|
|
standardOutput = stdout
|
|
}
|
|
return stdout.toString().replace('\n', '-').replace('"', '').trim()
|
|
}
|
|
catch (ignored) {
|
|
return null
|
|
}
|
|
}
|
|
|
|
android {
|
|
compileOptions {
|
|
coreLibraryDesugaringEnabled true
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
compileSdkVersion 30
|
|
|
|
buildFeatures {
|
|
viewBinding = true
|
|
}
|
|
|
|
aaptOptions {
|
|
cruncherEnabled = false
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId "de.dennisguse.opentracks"
|
|
versionCode 4176
|
|
versionName "v3.18.5"
|
|
|
|
buildConfigField "String", "VERSION_NAME_FULL", "\"${getVersionName()}\""
|
|
|
|
|
|
|
|
minSdkVersion 21
|
|
targetSdkVersion 30
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
applicationIdSuffix ".debug"
|
|
versionNameSuffix "-debug"
|
|
}
|
|
|
|
release {
|
|
minifyEnabled false
|
|
}
|
|
|
|
releasePlayStore {
|
|
applicationIdSuffix ".playstore"
|
|
versionNameSuffix "-PlayStore"
|
|
}
|
|
}
|
|
|
|
applicationVariants.all { variant ->
|
|
variant.resValue "string", "applicationId", variant.applicationId
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.3.0'
|
|
implementation 'androidx.preference:preference:1.1.1'
|
|
implementation 'androidx.documentfile:documentfile:1.0.1'
|
|
implementation 'com.google.android.material:material:1.4.0'
|
|
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
|
|
|
|
androidTestImplementation 'androidx.test:core:1.4.0'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test:rules:1.4.0'
|
|
androidTestImplementation 'androidx.test:runner:1.4.0'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
androidTestImplementation 'org.mockito:mockito-android:3.10.0'
|
|
}
|