summaryrefslogtreecommitdiffhomepage
path: root/ci
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2021-10-13 18:14:45 +0200
committerAlbin <albin@mullvad.net>2021-12-16 11:38:25 +0100
commit6c4d31dfc59772e9a80d0260fee34cf03d5c05f5 (patch)
tree8418020b852073a6dfb0c4c44fabdb1586404d11 /ci
parent4dcdb1306d23a8e831389130fdef452cae4dc809 (diff)
downloadmullvadvpn-6c4d31dfc59772e9a80d0260fee34cf03d5c05f5.tar.xz
mullvadvpn-6c4d31dfc59772e9a80d0260fee34cf03d5c05f5.zip
Split Android project and app module
The purpose of this is to: * Comply better with the default Android project structure (see https://developer.android.com/studio/build). * Avoid conflicts between project and app dependencies and plugins.
Diffstat (limited to 'ci')
-rw-r--r--ci/ci-android-xml.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/ci/ci-android-xml.sh b/ci/ci-android-xml.sh
index b63e7ece1a..1d7c46020a 100644
--- a/ci/ci-android-xml.sh
+++ b/ci/ci-android-xml.sh
@@ -13,25 +13,25 @@ function tidy-up-android-xml {
--indent-attributes yes \
--indent-spaces 4 \
--literal-attributes yes \
- android/src/main/AndroidManifest.xml \
- android/src/main/res/anim*/*.xml \
- android/src/main/res/drawable*/*.xml \
- android/src/main/res/layout*/*.xml \
- android/src/main/res/values/*.xml
+ android/app/src/main/AndroidManifest.xml \
+ android/app/src/main/res/anim*/*.xml \
+ android/app/src/main/res/drawable*/*.xml \
+ android/app/src/main/res/layout*/*.xml \
+ android/app/src/main/res/values/*.xml
# FIXME - when tidy learns to not leave whitespace around, remove the line below - https://github.com/htacg/tidy-html5/issues/864
- find android/src/main/ -name '*.xml' -exec sed -i -e 's/[ \t]*$//' '{}' ';'
+ find android/app/src/main/ -name '*.xml' -exec sed -i -e 's/[ \t]*$//' '{}' ';'
}
# Autoformats Android XML files and returns 0 if no files were actually changed, or 1 if files were changed
function tidy-verify-xml {
tidy-up-android-xml
- if git diff --exit-code -- android/src/main/AndroidManifest.xml android/src/main/res; then
+ if git diff --exit-code -- android/app/src/main/AndroidManifest.xml android/app/src/main/res; then
echo "Android XML files are correctly formatted"
return 0
else
- echo "android/src/main contains files that were changed, XML is not formatted properly"
+ echo "android/app/src/main contains files that were changed, XML is not formatted properly"
return 1
fi
}