1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Remove debug logs

This commit is contained in:
Dominik Schürmann 2014-03-04 22:11:42 +01:00
parent f5b1ed920b
commit 6881daae6a
2 changed files with 29 additions and 6 deletions

View File

@ -37,6 +37,35 @@ android {
assets.srcDirs = ['tests/assets'] assets.srcDirs = ['tests/assets']
} }
} }
/*
* To sign release build, create file gradle.properties in ~/.gradle/ with this content:
*
* signingStoreLocation=/home/key.store
* signingStorePassword=xxx
* signingKeyAlias=alias
* signingKeyPassword=xxx
*/
if (project.hasProperty('signingStoreLocation') &&
project.hasProperty('signingStorePassword') &&
project.hasProperty('signingKeyAlias') &&
project.hasProperty('signingKeyPassword')) {
println "Found sign properties in gradle.properties! Signing build…"
signingConfigs {
release {
storeFile file(signingStoreLocation)
storePassword signingStorePassword
keyAlias signingKeyAlias
keyPassword signingKeyPassword
}
}
buildTypes.release.signingConfig = signingConfigs.release
} else {
buildTypes.release.signingConfig = null
}
// Do not abort build if lint finds errors // Do not abort build if lint finds errors
lintOptions { lintOptions {

View File

@ -117,7 +117,6 @@ public class MessageOpenPgpView extends LinearLayout {
} }
if (decryptedData != null && signatureResult == null) { if (decryptedData != null && signatureResult == null) {
// encrypted-only // encrypted-only
Log.d(K9.LOG_TAG, "null!");
MessageOpenPgpView.this.setBackgroundColor(mFragment.getResources().getColor( MessageOpenPgpView.this.setBackgroundColor(mFragment.getResources().getColor(
R.color.openpgp_blue)); R.color.openpgp_blue));
@ -312,9 +311,6 @@ public class MessageOpenPgpView extends LinearLayout {
sigResult = result.getParcelableExtra(OpenPgpApi.RESULT_SIGNATURE); sigResult = result.getParcelableExtra(OpenPgpApi.RESULT_SIGNATURE);
} }
if (sigResult == null)
Log.d(K9.LOG_TAG, "sig null");
if (K9.DEBUG) if (K9.DEBUG)
Log.d(K9.LOG_TAG, "result: " + os.toByteArray().length Log.d(K9.LOG_TAG, "result: " + os.toByteArray().length
+ " str=" + output); + " str=" + output);
@ -324,11 +320,9 @@ public class MessageOpenPgpView extends LinearLayout {
mProgress.setVisibility(View.GONE); mProgress.setVisibility(View.GONE);
mFragment.setMessageWithOpenPgp(output, sigResult); mFragment.setMessageWithOpenPgp(output, sigResult);
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
Log.e(K9.LOG_TAG, "UnsupportedEncodingException", e); Log.e(K9.LOG_TAG, "UnsupportedEncodingException", e);
} }
break; break;
} }
case OpenPgpApi.RESULT_CODE_USER_INTERACTION_REQUIRED: { case OpenPgpApi.RESULT_CODE_USER_INTERACTION_REQUIRED: {