mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
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:
parent
a8ebaaf789
commit
f0dc295bde
1 changed files with 12 additions and 0 deletions
|
@ -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'])
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue