diff --git a/app/build.gradle b/app/build.gradle index ffbd6b14..899cafbd 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -19,30 +19,22 @@ android { setProperty("archivesBaseName", "animetv-" + versionName) } - def keystoreFile = file('../keystore/debug.keystore') - def isKeystoreFileExists = keystoreFile.exists() && !keystoreFile.isDirectory() - buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' - if (isKeystoreFileExists) { - signingConfig signingConfigs.debug - } + signingConfig signingConfigs.debug } debug { minifyEnabled false } } - - if (isKeystoreFileExists) { - signingConfigs { - debug { - storeFile storeFile - storePassword "android" - keyAlias "androiddebugkey" - keyPassword "android" - } + signingConfigs { + debug { + storeFile file('../keystore/debug.keystore') + storePassword "android" + keyAlias "androiddebugkey" + keyPassword "android" } } }