From f55fbddbc2441e773c22c020ce4c5989efb3c24b Mon Sep 17 00:00:00 2001 From: John Cordeiro Date: Tue, 15 Nov 2016 12:46:09 -0300 Subject: [PATCH] Improve key security --- app/build.gradle | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 6f64855..cb4167b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -13,13 +13,16 @@ apply plugin: 'io.fabric' apply plugin: 'com.google.gms.google-services' apply plugin: 'me.tatarka.retrolambda' +Properties localProperties = new Properties() +localProperties.load(project.rootProject.file('local.properties').newDataInputStream()) + android { signingConfigs { signature { - keyAlias 'ureport' - keyPassword 'htaq3XVfSucCEbS' - storeFile file('/Users/john-mac/Documents/Ilhasoft/U-report/signature/ureport.jks') - storePassword 'htaq3XVfSucCEbS' + keyAlias localProperties.getProperty('signature.keyAlias') + keyPassword localProperties.getProperty('signature.keyPassword') + storeFile file(localProperties.getProperty('signature.storeFile')) + storePassword localProperties.getProperty('signature.storePassword') } } lintOptions {