The PLATFORM variable is assigned either from $ANDROID_PLATFORM or gets
a default value (currently $PLATFORM_VERSION).
The check to use either dx (SDK < 31) or d8 (SDK >= 31) must be based on
the actual $PLATFORM, not the default $PLATFORM_VERSION.
Refs 52138fd9213216a21fbdcda4d430394d7c8f0979
Refs <57d30780dd/debian/patches/0002-Workaround-broken-script.patch>
PR #2850 <https://github.com/Genymobile/scrcpy/pull/2850>
Signed-off-by: Romain Vimont <rom@rom1v.com>
Make the versionCode a decimal representation of the scrcpy version.
This will for example allow to correctly number the versionCode of
v1.17.1 after a v1.18 is released:
- v1.18 -> 11800
- v1.17.1 -> 11701
- v1.18.1 -> 11801
This should increase the portability of bash scripts across various *nix
systems such as BSD-like distributions.
PR #1716 <https://github.com/Genymobile/scrcpy/pull/1716>
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
Signed-off-by: Romain Vimont <rom@rom1v.com>
Since commit b963a3b9d56f744cceba2e19cba3f9fef858c058, the server uses
BuildConfig.VERSION_NAME.
Generate this field manually for building without gradle.