@maccesar/titools 2.7.1 → 2.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -439,59 +439,49 @@ EOF
|
|
|
439
439
|
EOF
|
|
440
440
|
|
|
441
441
|
if [[ $WITH_SPLASH_ICON -eq 1 ]]; then
|
|
442
|
-
case "$PROJECT_TYPE" in
|
|
443
|
-
alloy) SPLASH_DIR="app/platform/android/res/values" ;;
|
|
444
|
-
classic) SPLASH_DIR="platform/android/res/values" ;;
|
|
445
|
-
*) SPLASH_DIR="platform/android/res/values" ;;
|
|
446
|
-
esac
|
|
447
|
-
|
|
448
442
|
echo
|
|
449
|
-
echo " ${C_BOLD}3. Android 12+ splash screen —
|
|
443
|
+
echo " ${C_BOLD}3. Android 12+ splash screen — OPTIONAL, advanced${C_RESET}"
|
|
450
444
|
echo
|
|
451
|
-
echo "
|
|
452
|
-
echo "
|
|
453
|
-
echo " Titanium activity background, you get a visible ${C_BOLD}FLICKER${C_RESET} at the end of"
|
|
454
|
-
echo " the splash (navy → white → content) right before index.js renders."
|
|
445
|
+
echo " Titanium SDK 13.x shows a system splash automatically using your launcher"
|
|
446
|
+
echo " icon. ${C_YELLOW}For most apps THE DEFAULT IS ENOUGH — do nothing.${C_RESET}"
|
|
455
447
|
echo
|
|
456
|
-
echo " ${C_BOLD}
|
|
457
|
-
echo "
|
|
458
|
-
echo "
|
|
448
|
+
echo " If you experience a visible ${C_BOLD}FLICKER${C_RESET} at the end of the splash (brief"
|
|
449
|
+
echo " color flash before index.js renders), that is the system splash background"
|
|
450
|
+
echo " mismatching your first Titanium activity background."
|
|
459
451
|
echo
|
|
460
|
-
echo "
|
|
452
|
+
echo " Fixing it requires adding a custom theme + wiring it in tiapp.xml. This is"
|
|
453
|
+
echo " ${C_BOLD}INVASIVE${C_RESET} — do NOT auto-apply the snippet below without:"
|
|
454
|
+
echo " ${C_DIM}(a) verifying the parent theme you pick actually exists in your${C_RESET}"
|
|
455
|
+
echo " ${C_DIM} Titanium SDK version (theme names vary across SDK releases)${C_RESET}"
|
|
456
|
+
echo " ${C_DIM}(b) checking whether your project already has a custom theme —${C_RESET}"
|
|
457
|
+
echo " ${C_DIM} if so, EXTEND it instead of overriding via android:theme${C_RESET}"
|
|
458
|
+
echo " ${C_DIM}(c) testing the build succeeds before committing tiapp.xml${C_RESET}"
|
|
459
|
+
echo
|
|
460
|
+
echo " ${C_DIM}Template (verify parent theme exists in your SDK before using):${C_RESET}"
|
|
461
461
|
cat <<EOF
|
|
462
|
+
<!-- app/platform/android/res/values/splash_theme.xml -->
|
|
462
463
|
<?xml version="1.0" encoding="utf-8"?>
|
|
463
464
|
<resources>
|
|
464
|
-
<style name="Theme.App.Splash" parent="@style/
|
|
465
|
+
<style name="Theme.App.Splash" parent="@style/YOUR_APP_PARENT_THEME">
|
|
465
466
|
<item name="android:windowSplashScreenBackground">${BG_COLOR}</item>
|
|
466
467
|
<item name="android:windowSplashScreenAnimatedIcon">@mipmap/ic_launcher</item>
|
|
467
468
|
</style>
|
|
468
469
|
</resources>
|
|
469
470
|
EOF
|
|
470
471
|
echo
|
|
471
|
-
echo " ${
|
|
472
|
-
|
|
473
|
-
<application android:icon="@mipmap/ic_launcher"
|
|
474
|
-
android:theme="@style/Theme.App.Splash"
|
|
475
|
-
android:usesCleartextTraffic="false"/>
|
|
476
|
-
EOF
|
|
477
|
-
echo
|
|
478
|
-
echo " ${C_BOLD}Parent theme options${C_RESET} (pick per your ActionBar needs):"
|
|
479
|
-
echo " ${C_DIM}@style/Theme.Titanium.Light — ActionBar + title bar${C_RESET}"
|
|
480
|
-
echo " ${C_DIM}@style/Theme.Titanium.Light.NoTitle — ActionBar, no title (common)${C_RESET}"
|
|
481
|
-
echo " ${C_DIM}@style/Theme.Titanium.Light.Fullscreen — no ActionBar, no status bar${C_RESET}"
|
|
482
|
-
echo " ${C_DIM}(plus Dark variants)${C_RESET}"
|
|
472
|
+
echo " ${C_BOLD}Known-working parent${C_RESET} (confirmed in Titanium SDK 13.2.0):"
|
|
473
|
+
echo " ${C_DIM}@style/Theme.Titanium.Light.Fullscreen${C_RESET}"
|
|
483
474
|
echo
|
|
484
|
-
echo "
|
|
485
|
-
echo "
|
|
486
|
-
echo "
|
|
475
|
+
echo " If your SDK does not expose Theme.Titanium.Light.Fullscreen, check the"
|
|
476
|
+
echo " styles.xml shipped with your installed SDK under the android/ folder —"
|
|
477
|
+
echo " the available parent themes vary across SDK versions."
|
|
487
478
|
echo
|
|
488
|
-
echo " ${
|
|
489
|
-
echo "
|
|
490
|
-
echo " ${C_DIM}what you want. Point it at @drawable/splash_icon only if you designed${C_RESET}"
|
|
491
|
-
echo " ${C_DIM}a distinct custom splash icon.${C_RESET}"
|
|
479
|
+
echo " ${C_YELLOW}⚠${C_RESET} Do NOT inherit from ${C_DIM}@android:style/Theme.DeviceDefault.NoActionBar${C_RESET}."
|
|
480
|
+
echo " That parent strips the ActionBar from every screen in your app."
|
|
492
481
|
echo
|
|
493
|
-
echo " ${C_DIM}
|
|
494
|
-
echo " ${C_DIM}
|
|
482
|
+
echo " ${C_DIM}The splash_icon.png × 5 files are generated for advanced use (custom${C_RESET}"
|
|
483
|
+
echo " ${C_DIM}splash icon distinct from launcher). Most apps do NOT need them —${C_RESET}"
|
|
484
|
+
echo " ${C_DIM}Titanium falls back to the launcher icon for the system splash.${C_RESET}"
|
|
495
485
|
fi
|
|
496
486
|
|
|
497
487
|
if [[ $WITH_NOTIFICATION -eq 1 ]]; then
|