feat(android): the launch screen shows the padlock, not Delphi's flame
The launcher icon and the launch screen are different resources. On Android 12+ the theme points windowSplashScreenAnimatedIcon at splash_vector, which was Delphi's logo, over a #FFF background - a white flash before a dark app, every single launch. Same padlock, drawn at 288 units with its content inside the central 192 the system guarantees. splash_background goes slate, in the light variant too since the app has only one theme. For Android 11 and earlier, which have no SplashScreen API and merely paint windowBackground, splash_image_def composes the background and the logo itself. One source for the vector, copied onto the density and night variants by repack: four identical files in the repo would eventually diverge. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -26,6 +26,21 @@ Copy-Item "$bds\binandroid64\libsk4d.so" "$p\library\lib\arm64-v8a\libsk4d.so" -
|
||||
# devraient suffire, mais rien ne les deploie ici.
|
||||
Copy-Item "$PSScriptRoot\android-res\*" "$p\res\" -Recurse -Force
|
||||
|
||||
# 1 ter. L'ecran de demarrage existe en plusieurs variantes de densite et de
|
||||
# theme, toutes identiques chez nous. Une seule source, recopiee : quatre
|
||||
# fichiers identiques dans le depot finiraient par diverger.
|
||||
$splash = "$p\res\drawable\splash_vector.xml"
|
||||
foreach ($v in 'drawable-anydpi-v31', 'drawable-night-anydpi-v21', 'drawable-night-anydpi-v31') {
|
||||
if (Test-Path "$p\res\$v") { Copy-Item $splash "$p\res\$v\splash_vector.xml" -Force }
|
||||
}
|
||||
if (Test-Path "$p\res\drawable-anydpi-v21") {
|
||||
Copy-Item "$p\res\drawable\splash_image_def.xml" "$p\res\drawable-anydpi-v21\splash_image_def.xml" -Force
|
||||
}
|
||||
# Le fond sombre vaut aussi en theme clair : l'application n'a qu'un theme.
|
||||
if (Test-Path "$p\res\values-night-v21") {
|
||||
Copy-Item "$PSScriptRoot\android-res\values\colors.xml" "$p\res\values-night-v21\colors.xml" -Force
|
||||
}
|
||||
|
||||
# 2. aapt : reconstruit l'archive non alignee depuis library, classes, res.
|
||||
& $pac -u8 --aaptpackage="$sdk\build-tools\33.0.2\Aapt.exe,$p\library,$p\classes,$p\res,$p\assets,$p\AndroidManifest.xml,$sdk\platforms\android-33\android.jar,$p\bin\pmserverApk-unaligned.apk"
|
||||
if ($LASTEXITCODE -ne 0) { throw "aapt a echoue" }
|
||||
|
||||
Reference in New Issue
Block a user