From aa31abd93f568045d601df2507b228ec71e97926 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Wed, 10 Jun 2015 19:47:29 +0200 Subject: Allow debug build besides release build --- OpenKeychain/build.gradle | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'OpenKeychain/build.gradle') diff --git a/OpenKeychain/build.gradle b/OpenKeychain/build.gradle index a4caa1fe7..88480966e 100644 --- a/OpenKeychain/build.gradle +++ b/OpenKeychain/build.gradle @@ -111,6 +111,30 @@ android { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + + // Reference them in the java files with e.g. BuildConfig.ACCOUNT_TYPE. + buildConfigField "String", "ACCOUNT_TYPE", "\"org.sufficientlysecure.keychain.account\"" + buildConfigField "String", "PROVIDER_AUTHORITY", "\"org.sufficientlysecure.keychain.provider\"" + buildConfigField "String", "TEMPSTORAGE_AUTHORITY", "\"org.sufficientlysecure.keychain.tempstorage\"" + + // Reference them in .xml files. + resValue "string", "account_type", "org.sufficientlysecure.keychain.account" + resValue "string", "provider_authority", "org.sufficientlysecure.keychain.provider" + resValue "string", "tempstorage_authority", "org.sufficientlysecure.keychain.tempstorage" + } + + debug { + applicationIdSuffix ".debug" + + // Reference them in the java files with e.g. BuildConfig.ACCOUNT_TYPE. + buildConfigField "String", "ACCOUNT_TYPE", "\"org.sufficientlysecure.keychain.debug.account\"" + buildConfigField "String", "PROVIDER_AUTHORITY", "\"org.sufficientlysecure.keychain.debug.provider\"" + buildConfigField "String", "TEMPSTORAGE_AUTHORITY", "\"org.sufficientlysecure.keychain.debug.tempstorage\"" + + // Reference them in .xml files. + resValue "string", "account_type", "org.sufficientlysecure.keychain.debug.account" + resValue "string", "provider_authority", "org.sufficientlysecure.keychain.debug.provider" + resValue "string", "tempstorage_authority", "org.sufficientlysecure.keychain.debug.tempstorage" } } -- cgit v1.2.3