[android] Copy screenshots in Gradle

Follow up e1e2510071

Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
This commit is contained in:
Roman Tsisyk 2023-01-31 10:59:16 +02:00
parent 9c0c014a54
commit 233e7560ba
2 changed files with 4 additions and 10 deletions

View file

@ -23,16 +23,6 @@ jobs:
ref: master
path: screenshots
# This symlink is not stored in the repo because Linter checks fail for the FDroid build.
# Linter complains about an invalid symlink (we don't check out screenshots for FDroid).
- name: Create symlink for GP screenshots
shell: bash
run: |
for locale in en-US tr-TR; do
mkdir -p android/src/google/play/listings/${locale}/graphics
ln -sf ../../../../../../screenshots/android/${locale}/graphics android/src/google/play/listings/${locale}/graphics
done
- name: Checkout private keys
uses: actions/checkout@v3
with:

View file

@ -464,6 +464,10 @@ task prepareGoogleReleaseListing {
final overrideFile = new File(sourceFile.getPath().replace(".txt", "-${targetFlavor}.txt"))
targetFile.text = overrideFile.exists() ? overrideFile.text : sourceFile.text
}
copy {
from "${projectDir}/../screenshots/android"
into targetDir
}
}
}