mirror of
https://github.com/markqvist/Sideband.git
synced 2026-10-26 19:01:47 -04:00
Add Dockerfile and targets for building in Docker
This commit is contained in:
parent
6a187192a5
commit
483dfd8653
4 changed files with 107 additions and 1 deletions
2
docker/dist_env
Normal file
2
docker/dist_env
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export VERSION=$(wget -q https://pypi.org/pypi/${PACKAGENAME}/json -O - | grep -oP "\"version\":\"\d+\.\d+\.+\d+\"" -o | cut -d \" -f 4)
|
||||
export DL_URL=$(wget -q https://pypi.org/pypi/${PACKAGENAME}/json -O - | grep -oP "\"url\":\".{1,150}${VERSION}-py\d-none-any.whl\"" | cut -d \" -f 4 | head -n -1)
|
||||
21
docker/init.gradle
Normal file
21
docker/init.gradle
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// This is necessary to ensure that Sideband can be built on the
|
||||
// correct API version. Else, the build will fail, with the build tools
|
||||
// nagging us to upgrade the targetSdkVersion (doing so breaks the
|
||||
// program currently). Yet another case of G**gle foolishness. This
|
||||
// just bypasses the error and continues compiling regardless.
|
||||
|
||||
apply plugin: DisableAbortOnError
|
||||
|
||||
class DisableAbortOnError implements Plugin<Gradle> {
|
||||
void apply (Gradle gradle) {
|
||||
gradle.allprojects { project ->
|
||||
afterEvaluate {
|
||||
android {
|
||||
lintOptions {
|
||||
abortOnError = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue