Update build.gradle

This commit is contained in:
SerpentSpirale 2021-11-20 23:57:30 +01:00 committed by Boulay Mathias
parent 84787e0bd7
commit b73b85f92f

View File

@ -1,16 +1,16 @@
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
def getDate() { return new Date().format('yyyyMMdd')} static def getDate() { return new Date().format('yyyyMMdd')}
def getDateSeconds() { static def getDateSeconds() {
if(System.getenv("GITHUB_ACTIONS").equals("true")) { if(System.getenv("GITHUB_ACTIONS") == "true") {
return 9934841+Integer.parseInt(System.getenv("GITHUB_RUN_NUMBER")) return 9934841+Integer.parseInt(System.getenv("GITHUB_RUN_NUMBER"))
}else{ }else{
return 172005 return 172005
} }
} }
def getVersionName = { def getVersionName = {
// Get the last version tag, as well as the short head of the last commit // Get the last version tag, as well as the short head of the last commit
ByteArrayOutputStream TAG = new ByteArrayOutputStream() ByteArrayOutputStream TAG = new ByteArrayOutputStream()
ByteArrayOutputStream BRANCH = new ByteArrayOutputStream() ByteArrayOutputStream BRANCH = new ByteArrayOutputStream()
@ -37,7 +37,7 @@ def getVersionName = {
} }
android { android {
compileSdkVersion 30 compileSdkVersion 31
dexOptions { dexOptions {
javaMaxHeapSize "4g" javaMaxHeapSize "4g"
} }
@ -118,13 +118,13 @@ dependencies {
// implementation 'com.wu-man:android-bsf-api:3.1.3' // implementation 'com.wu-man:android-bsf-api:3.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.preference:preference:1.1.1' implementation 'androidx.preference:preference:1.1.1'
implementation 'androidx.appcompat:appcompat:1.3.1' implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'androidx.legacy:legacy-preference-v14:1.0.0' implementation 'androidx.legacy:legacy-preference-v14:1.0.0'
implementation 'com.google.android.material:material:1.4.0' implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.annotation:annotation:1.2.0' implementation 'androidx.annotation:annotation:1.3.0'
implementation 'androidx.browser:browser:1.3.0' implementation 'androidx.browser:browser:1.4.0'
implementation "androidx.constraintlayout:constraintlayout:2.1.1" implementation "androidx.constraintlayout:constraintlayout:2.1.2"
implementation 'com.github.martin-stone:hsv-alpha-color-picker-android:3.0.1' implementation 'com.github.martin-stone:hsv-alpha-color-picker-android:3.0.1'
implementation 'com.github.duanhong169:checkerboarddrawable:1.0.2' implementation 'com.github.duanhong169:checkerboarddrawable:1.0.2'