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.
This commit is contained in:
Eric House 2016-05-02 21:45:53 -07:00
parent a8ebaaf789
commit f0dc295bde

View file

@ -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'])
}