Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ jobs:
for abi in armeabi-v7a arm64-v8a x86_64; do
unzip -l "$apk" "lib/$abi/*" > /dev/null || { echo "::error::The APK has no lib/$abi - check RuntimeIdentifiers"; exit 1; }
done
# Play automatic protection rejects a bundle whose minSdkVersion is below 24, and 0.7.0
# only found out at the Play upload (#550). The .apk is rendered from the same bundle.
aapt2=$(ls -d "$ANDROID_HOME"/build-tools/*/aapt2 | sort -V | tail -n1)
min_sdk=$("$aapt2" dump badging "$apk" | sed -n "s/^\(minSdkVersion\|sdkVersion\):'\([0-9]*\)'$/\2/p")
test "${min_sdk:-0}" -ge 24 || { echo "::error::The APK has minSdkVersion '${min_sdk}', Play needs 24 - check SupportedOSPlatformVersion"; exit 1; }
mkdir -p dist play
cp "$apk" "dist/lagebuch-${VERSION}.apk"
cp "$aab" "play/lagebuch-${VERSION}.aab"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Betriebssystem beim ersten Start einmal:
`dpkg -i`: das Paket deklariert seine Systemabhängigkeiten (ICU, fontconfig,
X11-Bibliotheken), die nur `apt` auflöst. Falls doch `dpkg -i`:
`sudo apt-get -f install` räumt auf.
- **Android** – ab Android 6.0 (API 23); `.apk` öffnen und die Installation
- **Android** – ab Android 7.0 (API 24); `.apk` öffnen und die Installation
aus unbekannten Quellen für diese App einmal erlauben. Die Android-App ist
ein Begleitgerät: sie verbindet sich mit einem Einsatz, der auf einem Laptop
gehostet wird.
Expand Down
1 change: 1 addition & 0 deletions changelog.d/+android-min-sdk-24.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The Android app now requires Android 7.0 (API 24), the minimum Google Play accepts for a new release, so the 0.7 line can be published there (#550).
6 changes: 4 additions & 2 deletions src/LageBuch.App.Android/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
-p:ApplicationVersion, -p:ApplicationDisplayVersion and $(ApplicationId) from the csproj and
the release workflow. That is exactly what happened: every published APK up to and including
lagebuch-0.6.0.apk reported versionName 0.1.0 / versionCode 1, whatever its tag said. The
csproj is the only source of truth; the tag feeds it through release.yml. -->
csproj is the only source of truth; the tag feeds it through release.yml.
minSdkVersion is absent for the same reason: $(SupportedOSPlatformVersion) sets it. Play
automatic protection refuses a bundle below API 24 (#550), and release.yml checks the floor. -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="36" />
<uses-sdk android:targetSdkVersion="36" />
<!-- Required to join a hosted Einsatz. The Android SDK adds INTERNET to Debug builds by
itself so the debugger can attach, which is why every development device had it and no
released one did: a Release APK declared no permission at all and the connection could
Expand Down
2 changes: 1 addition & 1 deletion src/LageBuch.App.Android/LageBuch.App.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
-p:Version (assembly version, shown on the About screen). Never bump these by hand. -->
<ApplicationVersion>1</ApplicationVersion>
<ApplicationDisplayVersion>0.0.0</ApplicationDisplayVersion>
<SupportedOSPlatformVersion>23</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion>24</SupportedOSPlatformVersion>
<!-- .NET 9+ defaults to android-arm64;android-x64 only. Many Android tablets (the Galaxy Tab A
line among them) run a 32-bit armeabi-v7a userland, and Play lists the app as incompatible
for them. Play splits the .aab per ABI, so arm64 devices download no extra bytes; only the
Expand Down
Loading