@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maccesar/titools",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "description": "Titanium SDK skills and agents for AI coding assistants (Claude Code, Gemini CLI, Codex CLI)",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -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 — RECOMMENDED: match Titanium activity theme${C_RESET}"
443
+ echo " ${C_BOLD}3. Android 12+ splash screen — OPTIONAL, advanced${C_RESET}"
450
444
  echo
451
- echo " ${C_YELLOW}Titanium SDK 13.x${C_RESET} shows a system splash using your launcher icon on"
452
- echo " Android 12+. If the system splash background does NOT match your first"
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}Fix${C_RESET}: define a custom theme that inherits from a ${C_BOLD}Titanium parent${C_RESET} theme"
457
- echo " and applies to the whole application. Keeps the ActionBar intact while"
458
- echo " synchronizing the splash background with the activity background."
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 " ${C_DIM}Create ${SPLASH_DIR}/splash_theme.xml:${C_RESET}"
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/Theme.Titanium.Light.NoTitle">
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 " ${C_DIM}Then in tiapp.xml under <android><manifest>:${C_RESET}"
472
- cat <<'EOF'
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 " ${C_YELLOW}⚠ Inherit ONLY from Titanium parents${C_RESET} (${C_BOLD}Theme.Titanium.*${C_RESET}). Do NOT"
485
- echo " inherit from ${C_DIM}@android:style/Theme.DeviceDefault.NoActionBar${C_RESET} on"
486
- echo " ${C_BOLD}<application>${C_RESET} that strips the ActionBar from every screen."
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 " ${C_DIM}The splash_icon.png × 5 files are OPTIONAL — the theme above points${C_RESET}"
489
- echo " ${C_DIM}windowSplashScreenAnimatedIcon at the launcher icon, which is usually${C_RESET}"
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}Reference: LM - La Baraja uses this exact pattern in production with${C_RESET}"
494
- echo " ${C_DIM}zero flicker on Android 12+.${C_RESET}"
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