From f0dc295bde004ff8cdefae1e7bfe161ae2a55ac3 Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 2 May 2016 21:45:53 -0700 Subject: [PATCH] break gradle release builds with an error message that will, with luck, communicate to the f-droid maintainer that ant it still the way to build. Should stop the flood of error reports from f-droid users. --- xwords4/android/XWords4/app/build.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xwords4/android/XWords4/app/build.gradle b/xwords4/android/XWords4/app/build.gradle index eeb249fea..4a1b9fa8c 100644 --- a/xwords4/android/XWords4/app/build.gradle +++ b/xwords4/android/XWords4/app/build.gradle @@ -114,6 +114,18 @@ android { } } +// Prevent release builds. They haven't been tested, and now that +// f-droid has been releasing them they're KNOWN not to work. +android.applicationVariants.all { variant -> + if ( variant.name.endsWith("Release") ) { + String NAME = "check" + variant.name.capitalize() + "Manifest" + task "$NAME"(overwrite: true) << { + throw new RuntimeException('<<<<< Release builds should not be built ' + + 'using gradle! Please use ant for now. >>>>>'); + } + } +} + dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) }