import os import shutil SRC_BASE = "/Users/hamzaaleghwairyeen/development/App/Intaleq" DEST_RIDER = "/Users/hamzaaleghwairyeen/development/App/IntaleqApp/intaleq_rider" DEST_DRIVER = "/Users/hamzaaleghwairyeen/development/App/IntaleqApp/intaleq_driver" # Copy iOS AppIcon src_appicon = os.path.join(SRC_BASE, "ios/Runner/Assets.xcassets/AppIcon.appiconset") if os.path.exists(src_appicon): shutil.copytree(src_appicon, os.path.join(DEST_RIDER, "ios/Runner/Assets.xcassets/AppIcon.appiconset"), dirs_exist_ok=True) shutil.copytree(src_appicon, os.path.join(DEST_DRIVER, "ios/Runner/Assets.xcassets/AppIcon.appiconset"), dirs_exist_ok=True) print("iOS AppIcon set copied successfully.") # Copy Android mipmap folders mipmaps = ["mipmap-hdpi", "mipmap-mdpi", "mipmap-xhdpi", "mipmap-xxhdpi", "mipmap-xxxhdpi"] for mm in mipmaps: src_mm = os.path.join(SRC_BASE, "android/app/src/main/res", mm) if os.path.exists(src_mm): shutil.copytree(src_mm, os.path.join(DEST_RIDER, "android/app/src/main/res", mm), dirs_exist_ok=True) shutil.copytree(src_mm, os.path.join(DEST_DRIVER, "android/app/src/main/res", mm), dirs_exist_ok=True) print(f"Android {mm} copied successfully.")