mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-25 11:24:54 -06:00
39 lines
1.2 KiB
Groovy
39 lines
1.2 KiB
Groovy
|
apply plugin: 'com.android.library'
|
||
|
|
||
|
group = 'com.github.daniel-stoneuk'
|
||
|
|
||
|
def versionMajor = 2
|
||
|
def versionMinor = 3
|
||
|
def versionPatch = 0
|
||
|
def versionBuild = 0 // bump for dogfood builds, public betas, etc.
|
||
|
|
||
|
android {
|
||
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
||
|
|
||
|
defaultConfig {
|
||
|
minSdkVersion 14
|
||
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||
|
versionCode versionMajor * 10000 + versionMinor * 1000 + versionPatch * 100 + versionBuild
|
||
|
versionName "${versionMajor}.${versionMinor}" + (versionPatch == 0 ? "" : ".${versionPatch}")
|
||
|
}
|
||
|
|
||
|
buildTypes {
|
||
|
release {
|
||
|
minifyEnabled false
|
||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||
|
}
|
||
|
debugMinify {
|
||
|
debuggable = true
|
||
|
minifyEnabled = true
|
||
|
proguardFiles 'proguard-android.txt'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||
|
implementation "androidx.appcompat:appcompat:${androidXAppCompat}"
|
||
|
implementation "androidx.cardview:cardview:${androidXCardView}"
|
||
|
implementation "com.google.android.material:material:${googleMaterial}"
|
||
|
}
|