diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-07-09 13:16:30 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-07-09 13:16:30 +0200 |
commit | bceda47d12033ee2130197cc4716d4f7474a229d (patch) | |
tree | bcd32bb60f139c29c470a4e4b3df4a4c30ba2d9a /OpenKeychain/src/test/java/org/sufficientlysecure/keychain/WorkaroundBuildConfig.java | |
parent | 2299c0302376d94312d3b7ae58ea6b7f7b5138c9 (diff) | |
download | open-keychain-bceda47d12033ee2130197cc4716d4f7474a229d.tar.gz open-keychain-bceda47d12033ee2130197cc4716d4f7474a229d.tar.bz2 open-keychain-bceda47d12033ee2130197cc4716d4f7474a229d.zip |
Tests not working anymore on travis after using new annotation parameter
Revert "Get rid of robolectric workaround by using new annotation in robolectric 3.0"
This reverts commit 85a47d22f9bb1e4aaf5770c67416a5532977658e.
Diffstat (limited to 'OpenKeychain/src/test/java/org/sufficientlysecure/keychain/WorkaroundBuildConfig.java')
-rw-r--r-- | OpenKeychain/src/test/java/org/sufficientlysecure/keychain/WorkaroundBuildConfig.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenKeychain/src/test/java/org/sufficientlysecure/keychain/WorkaroundBuildConfig.java b/OpenKeychain/src/test/java/org/sufficientlysecure/keychain/WorkaroundBuildConfig.java new file mode 100644 index 000000000..5f1a20fe9 --- /dev/null +++ b/OpenKeychain/src/test/java/org/sufficientlysecure/keychain/WorkaroundBuildConfig.java @@ -0,0 +1,16 @@ +package org.sufficientlysecure.keychain; + +import org.sufficientlysecure.keychain.BuildConfig; + +/** + * Temporary workaround for https://github.com/robolectric/robolectric/issues/1747 + */ +public final class WorkaroundBuildConfig { + public static final boolean DEBUG = BuildConfig.DEBUG; + // Workaround: Use real packageName not applicationId + public static final String APPLICATION_ID = "org.sufficientlysecure.keychain"; + public static final String BUILD_TYPE = BuildConfig.BUILD_TYPE; + public static final String FLAVOR = BuildConfig.FLAVOR; + public static final int VERSION_CODE = BuildConfig.VERSION_CODE; + public static final String VERSION_NAME = BuildConfig.VERSION_NAME; +} |