diff --git a/.gitignore b/.gitignore index 65b5d03cb8..939ef11029 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ /app/play_release /tools/config.sh crowdin.properties +keystore.properties diff --git a/app/build.gradle b/app/build.gradle index 20e65ec7c3..89cb0e8673 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,5 +1,9 @@ apply plugin: 'com.android.application' +def keystorePropertiesFile = rootProject.file("keystore.properties") +def keystoreProperties = new Properties() +keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) + android { compileSdkVersion 28 defaultConfig { @@ -16,6 +20,14 @@ android { } } } + signingConfigs { + release { + storeFile file(keystoreProperties['storeFile']) + storePassword keystoreProperties['storePassword'] + keyAlias keystoreProperties['keyAlias'] + keyPassword keystoreProperties['keyPassword'] + } + } buildTypes { release { @@ -23,6 +35,7 @@ android { minifyEnabled = true useProguard = true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + signingConfig signingConfigs.release } debug { debuggable = true