diff --git a/OpenKeychain/build.gradle b/OpenKeychain/build.gradle index 93c8f5c17..134a90c28 100644 --- a/OpenKeychain/build.gradle +++ b/OpenKeychain/build.gradle @@ -252,6 +252,12 @@ android { } } + variantFilter { variant -> + if(variant.buildType.name.equals('debug') && variant.getFlavors().get(0).name.equals('google')) { + variant.setIgnore(true); + } + } + /* * To sign release build, create file gradle.properties in ~/.gradle/ with this content: * diff --git a/README.md b/README.md index 87550081a..97f0ef3fb 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,8 @@ Select SDK Platform for API levels 25. 6. Execute ``./gradlew assembleFdroidDebug`` 7. You can install the app with ``adb install -r OpenKeychain/build/outputs/apk/OpenKeychain-fdroid-debug.apk`` +The "google" flavor is only used to include donations via Play Store, for development the "fdroid" flavor should be used. + ### Run Tests 1. Use OpenJDK instead of Oracle JDK 2. Execute ``./gradlew clean testFdroidDebugUnitTest --continue``