Files
archery-bookkeeper/tools/test_android_fix.py
T
Mikkeli Matlock 8f7d870985 Fix vertical overflow by removing nested Scaffold architecture
- Remove nested Scaffold from ScoringPage (now uses LayoutBuilder)
- Use proper constraint-based height calculation instead of MediaQuery
- Maintain score preservation across navigation without nested scaffolds
- Fix viewport architecture to work within MainNavigationPage body
- Minor keypad layout adjustment (77%/23% flex ratio)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-24 13:28:43 +09:00

42 lines
1.6 KiB
Python

#!/usr/bin/env python3
"""
Test Android package structure fix.
"""
from flutter_rename import FlutterRenamer
from pathlib import Path
def test_android_structure_update():
"""Test Android package structure detection and fix logic."""
print("Testing Android package structure update...")
renamer = FlutterRenamer()
config = renamer.detect_current_configuration()
print(f"Current Android namespace: {config.get('android_namespace', 'N/A')}")
# Check current MainActivity location
old_package = config.get('android_namespace', '')
if old_package:
old_parts = old_package.split('.')
old_package_dir = renamer.project_root / "android" / "app" / "src" / "main" / "kotlin" / Path(*old_parts)
mainactivity_file = old_package_dir / "MainActivity.kt"
print(f"MainActivity location: {mainactivity_file}")
print(f"MainActivity exists: {mainactivity_file.exists()}")
if mainactivity_file.exists():
with open(mainactivity_file, 'r') as f:
content = f.read()
print(f"Current package declaration: {content.split()[1] if 'package' in content else 'Not found'}")
# Test what would happen with a rename
new_package = "com.novoyuuparosk.test_app"
print(f"\nTesting rename to: {new_package}")
new_parts = new_package.split('.')
new_package_dir = renamer.project_root / "android" / "app" / "src" / "main" / "kotlin" / Path(*new_parts)
print(f"New MainActivity location would be: {new_package_dir / 'MainActivity.kt'}")
if __name__ == "__main__":
test_android_structure_update()