Feature Request
Add the ability to _transport.py_ to be "smart" enough to re-create the iphone in a similar way as Titanium Studio does.
- "iphone/transport.py"
# Clean build dir (if it exists), error otherwise (no iphone support)
info("Cleaning build...")
if os.path.exists(build_dir):
for f in os.listdir(build_dir):
path = os.path.join(build_dir,f)
if os.path.isfile(path):
os.remove(path)
else:
shutil.rmtree(path)
else:
info("Your project is not configured to be built for iphone.")
exit(1)
When you run clean in Titanium Studio (Project -> Clean... -> Clean All Projects for instance) it deletes the iphone directory under build.
- If project has no iphone it won't migrate resources:
egomezMBP:Titanium Studio Workspace egomez$ /Library/Application\ Support/Titanium/mobilesdk/osx/3.0.0.GA/iphone/./transport.py AppLeak/
[INFO] Cleaning build...
[INFO] Your project is not configured to be built for iphone.
- Build Titanium project to get it to work (iphone build present).
egomezMBP:Titanium Studio Workspace egomez$ /Library/Application\ Support/Titanium/mobilesdk/osx/3.0.0.GA/iphone/./transport.py AppLeak/
[INFO] Cleaning build...
[INFO] Migrating resources...
[INFO] Migrating platform/iphone to Resources...
[INFO] Migrating tiapp.xml...
[INFO] Generating project from Titanium template...
transport.py
has been deprecated and there currently no alternative.